Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
feat(erd): add entity-relationship diagrams
mangoef956fd4444c
diff --git a/archify/SKILL.md b/archify/SKILL.mdindex 7efc61bd..b59a10f2 100644--- a/archify/SKILL.md+++ b/archify/SKILL.md@@ -1,6 +1,6 @@---name: archify-description: Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid.+description: Create polished, validated architecture, workflow, sequence, data-flow, lifecycle/state, and entity-relationship diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, stateDiagram, and erDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, database schemas, ER/entity-relationship models, or to convert/beautify Mermaid.license: MITmetadata:version: "3.0"@@ -26,9 +26,9 @@ When the user supplies a frozen candidate, run `finalize` first as one CLI invocUse this path for ordinary generation. Read branch references only when their stated trigger applies.-1. Choose `architecture`, `workflow`, `sequence`, `dataflow`, or `lifecycle` from the question.+1. Choose `architecture`, `workflow`, `sequence`, `dataflow`, `lifecycle`, or `erd` from the question.2. Use the exact schema and example paths in the Type router without listing their directories. Read [Authoring defaults](references/authoring-defaults.md) and the mode's example in a bounded batch separate from project documents and complete schemas so neither is truncated; recover any missing section before writing. For Architecture, use the matching showcase example. For Sequence, Dataflow, and Lifecycle, also read the mode and common schemas. Read the relevant schema definition before choosing any new field, enum, or constrained text, especially boundary kinds. Examples teach shape, not facts. Use fresh IDs, wording, and layout. Go directly to the candidate without preliminary help, doctor, starter validation, temporary diagrams, or output-path listing. Query brands only for an explicitly requested mark; read [Brand marks](references/brand-marks.md) for an unknown mark with a user-provided URL.-3. Once the requested scope and, for a real codebase, [source evidence](references/repository-authoring.md) are covered, write the complete candidate directly without planning coordinates in prose. Choose Architecture abstraction and connected placement using Authoring defaults before coordinates: show the main user journey and necessary branches, preserve control roles and behavior-changing conditions, and leave enough room for actual relationship labels. No node, relationship, source, view, card, or boundary count is a target or ceiling. Use automatic routes first; add explicit routing only for necessary branch, return, supplied geometry, or measured repair. Set `meta.quality_profile` to `"showcase"` unless the user requests dense `standard`.+3. Once the requested scope and, for a real codebase, [source evidence](references/repository-authoring.md) are covered, write the complete candidate directly without planning coordinates in prose. Choose Architecture abstraction and connected placement using Authoring defaults before coordinates: show the main user journey and necessary branches, preserve control roles and behavior-changing conditions, and leave enough room for actual relationship labels. No node, relationship, source, view, card, or boundary count is a target or ceiling. Use automatic routes first; add explicit routing only for necessary branch, return, supplied geometry, or measured repair. Set `meta.quality_profile` to `"showcase"` unless the user requests dense `standard`. For ERD, use a table-first layout: show every physical column in `entities[].attributes`, keep its SQL type and source comment, and never move columns into cards as a substitute for the table. Classify tables into functional domains before placement, give each domain a concise `tag`, and place its members in one contiguous non-interleaved run. A multi-domain schema reads best as one domain per column — each `tag` a vertical run — because the reader scales a wide canvas up to the reader width and shrinks a tall one until the page fits, so the wide arrangement is the one that stays complete and legible inside a laptop viewport. A schema-first ERD over roughly 8 tables or 50 fields is itself a dense map: author its first complete-field pass at `standard` and upgrade only once the layout still reads.4. Once the complete first candidate is written, run `finalize` directly. Its first gate is showcase validation; successful first drafts need no separate pre-validation. Keep the candidate unchanged while the command runs:```bash@@ -47,6 +47,7 @@ Use this path for ordinary generation. Read branch references only when their stBefore the first candidate, use the authoring references and relevant repository source, not Archify implementation or tests. Inspect Archify implementation if diagnostics remain unactionable after focused repairs.+## Type router| Type | Use for | Schema | Example |@@ -56,6 +57,7 @@ Before the first candidate, use the authoring references and relevant repository| `sequence` | API call chains, request lifecycles, async traces, returns | `schemas/sequence.schema.json` | `examples/cache-miss-request.sequence.json` || `dataflow` | Pipelines, ETL/ELT, lineage, governance, consumers | `schemas/dataflow.schema.json` | `examples/product-analytics.dataflow.json` || `lifecycle` | State/status transitions, retries, waiting and terminal states | `schemas/lifecycle.schema.json` | `examples/deployment-release.lifecycle.json` |+| `erd` | Tables/entities, attributes, primary/foreign/unique keys, cardinality between them | `schemas/erd.schema.json` | `examples/orders.erd.json` |When ambiguous, run `node bin/archify.mjs guide "<scenario>" --json`. Scenario proof examples are structural references, not facts to copy.@@ -66,6 +68,7 @@ Read Mermaid for topology and meaning, then author fresh Archify JSON; do not me- `flowchart` / `graph` → `workflow`, or `architecture` for a component map.- `sequenceDiagram` → `sequence`; participants become semantic participants and arrows become messages.- `stateDiagram` → `lifecycle`; states and transitions retain meaning, not Mermaid style.+- `erDiagram` → `erd`; entity and relationship names, keys, and cardinality retain meaning, not Mermaid style.## Deliverydiff --git a/archify/bin/archify.mjs b/archify/bin/archify.mjsindex fa2066d9..b00aeeab 100755--- a/archify/bin/archify.mjs+++ b/archify/bin/archify.mjs@@ -9,7 +9,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));const skillRoot = path.resolve(__dirname, '..');-const TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);+const TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']);const DELIVERY_SIDECAR_SUFFIXES = Object.freeze(['.delivery.json','.delivery-pending.json',@@ -2194,7 +2194,7 @@ function usage() {archify demo [output-directory]Types:- architecture, workflow, sequence, dataflow, lifecycle+ architecture, workflow, sequence, dataflow, lifecycle, erd`;}@@ -5885,6 +5885,7 @@ async function commandDoctor(args) {sequence: 'cache-miss-request.sequence.json',dataflow: 'product-analytics.dataflow.json',lifecycle: 'agent-run.lifecycle.json',+ erd: 'orders.erd.json',};for (const type of TYPES) {diff --git a/archify/bin/preview.mjs b/archify/bin/preview.mjsindex 7e6609e6..52c96ae2 100644--- a/archify/bin/preview.mjs+++ b/archify/bin/preview.mjs@@ -25,7 +25,7 @@ const defaultDebounceMs = 400;const defaultPollMs = 800;const defaultStopGraceMs = 3000;const defaultStopKillMs = 750;-const diagramTypes = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);+const diagramTypes = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']);let previewCommitSequence = 0;function sha256(value) {diff --git a/archify/examples/locales/es.json b/archify/examples/locales/es.jsonindex 4f20b09b..530a1a0a 100644--- a/archify/examples/locales/es.json+++ b/archify/examples/locales/es.json@@ -5,6 +5,7 @@"diagram.description.sequence": "Un diagrama de secuencia generado por Archify.","diagram.description.dataflow": "Un diagrama de flujo de datos generado por Archify.","diagram.description.lifecycle": "Un diagrama de ciclo de vida generado por Archify.",+ "diagram.description.erd": "Un diagrama de entidad-relación generado por Archify.","node.focus": "Enfocar {label}","node.focus.detail": "Enfocar {label}, {detail}","node.context.architecture": "Componente de arquitectura",@@ -12,6 +13,7 @@"node.context.sequence": "Participante de secuencia","node.context.dataflow": "Nodo de flujo de datos","node.context.lifecycle": "Estado del ciclo de vida",+ "node.context.erd": "Entidad","legend.title": "Leyenda","legend.architecture.frontend": "Frontend","legend.architecture.backend": "Backend",@@ -46,6 +48,12 @@"legend.lifecycle.neutral": "neutral","legend.lifecycle.external": "externo","legend.lifecycle.final": "estado final",+ "legend.erd.pk": "Clave primaria",+ "legend.erd.fk": "Clave foránea",+ "legend.erd.uk": "Clave única",+ "legend.erd.one": "Uno",+ "legend.erd.many": "Muchos",+ "legend.erd.optional": "Opcional","viewer.kind.frontend": "Frontend","viewer.kind.backend": "Backend","viewer.kind.database": "Base de datos",diff --git a/archify/examples/locales/ko.json b/archify/examples/locales/ko.jsonindex 9ba33d6a..34bc24ba 100644--- a/archify/examples/locales/ko.json+++ b/archify/examples/locales/ko.json@@ -5,6 +5,7 @@"diagram.description.sequence": "Archify로 생성한 시퀀스 다이어그램입니다.","diagram.description.dataflow": "Archify로 생성한 데이터플로우 다이어그램입니다.","diagram.description.lifecycle": "Archify로 생성한 라이프사이클 다이어그램입니다.",+ "diagram.description.erd": "Archify로 생성한 개체-관계 다이어그램입니다.","node.focus": "{label} 포커스","node.focus.detail": "{label} 포커스, {detail}","node.context.architecture": "아키텍처 구성요소",@@ -12,6 +13,7 @@"node.context.sequence": "시퀀스 참가자","node.context.dataflow": "데이터플로우 노드","node.context.lifecycle": "라이프사이클 상태",+ "node.context.erd": "엔터티","legend.title": "범례","legend.architecture.frontend": "프런트엔드","legend.architecture.backend": "백엔드",@@ -46,6 +48,12 @@"legend.lifecycle.neutral": "중립 상태","legend.lifecycle.external": "외부 상태","legend.lifecycle.final": "종료 상태",+ "legend.erd.pk": "기본 키",+ "legend.erd.fk": "외래 키",+ "legend.erd.uk": "고유 키",+ "legend.erd.one": "하나",+ "legend.erd.many": "다수",+ "legend.erd.optional": "선택 사항","viewer.kind.frontend": "프런트엔드","viewer.kind.backend": "백엔드","viewer.kind.database": "데이터베이스",diff --git a/archify/examples/orders.erd.json b/archify/examples/orders.erd.jsonnew file mode 100644index 00000000..f79065f3--- /dev/null+++ b/archify/examples/orders.erd.json@@ -0,0 +1,337 @@+{+ "schema_version": 1,+ "diagram_type": "erd",+ "meta": {+ "title": "Order management schema",+ "locale": "en",+ "output": "examples/erd-orders-rendered.html",+ "quality_profile": "showcase",+ "views": [+ {+ "id": "identity",+ "label": "Reference rows",+ "focus": [+ "customer",+ "product"+ ],+ "note": "The rows everything else points at, with their unique keys."+ },+ {+ "id": "checkout",+ "label": "Checkout core",+ "focus": [+ "order",+ "order_item",+ "customer"+ ],+ "note": "order is the hub: order_item and payment both point back at it."+ },+ {+ "id": "followups",+ "label": "Payment and stock",+ "focus": [+ "payment",+ "order",+ "inventory",+ "product"+ ],+ "note": "One optional dashed link and one mandatory stock link."+ }+ ]+ },+ "layout": {+ "mode": "grid",+ "gapY": 38,+ "gapX": 72+ },+ "entities": [+ {+ "id": "customer",+ "label": "customer",+ "tag": "accounts",+ "row": 0,+ "col": 0,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "email",+ "type": "varchar(255)",+ "key": "uk"+ },+ {+ "name": "display_name",+ "type": "varchar(120)"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "order",+ "label": "order",+ "tag": "checkout",+ "row": 0,+ "col": 1,+ "width": 260,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "customer_id",+ "type": "bigint",+ "key": "fk",+ "references": "customer.id"+ },+ {+ "name": "status",+ "type": "varchar(32)"+ },+ {+ "name": "total_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "currency",+ "type": "char(3)"+ },+ {+ "name": "placed_at",+ "type": "timestamptz"+ },+ {+ "name": "updated_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "order_item",+ "label": "order_item",+ "tag": "line items",+ "row": 1,+ "col": 2,+ "width": 254,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "order_id",+ "type": "bigint",+ "key": "fk",+ "references": "order.id"+ },+ {+ "name": "product_id",+ "type": "bigint",+ "key": "fk",+ "references": "product.id"+ },+ {+ "name": "quantity",+ "type": "int"+ },+ {+ "name": "unit_price",+ "type": "numeric(12,2)"+ },+ {+ "name": "discount_amount",+ "type": "numeric(12,2)"+ }+ ]+ },+ {+ "id": "product",+ "label": "product",+ "tag": "catalog",+ "row": 1,+ "col": 1,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "sku",+ "type": "varchar(64)",+ "key": "uk"+ },+ {+ "name": "name",+ "type": "varchar(160)"+ },+ {+ "name": "price",+ "type": "numeric(12,2)"+ },+ {+ "name": "cost_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "active",+ "type": "boolean"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "inventory",+ "label": "inventory",+ "tag": "catalog",+ "row": 1,+ "col": 0,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "product_id",+ "type": "bigint",+ "key": "fk",+ "references": "product.id"+ },+ {+ "name": "warehouse_code",+ "type": "varchar(16)"+ },+ {+ "name": "quantity",+ "type": "int"+ },+ {+ "name": "reserved_quantity",+ "type": "int"+ },+ {+ "name": "updated_at",+ "type": "timestamptz"+ }+ ],+ "width": 236+ },+ {+ "id": "payment",+ "label": "payment",+ "tag": "checkout",+ "row": 0,+ "col": 2,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "order_id",+ "type": "bigint",+ "key": "fk",+ "references": "order.id"+ },+ {+ "name": "method",+ "type": "varchar(32)"+ },+ {+ "name": "amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "paid_at",+ "type": "timestamptz"+ },+ {+ "name": "external_ref",+ "type": "varchar(64)"+ }+ ]+ }+ ],+ "relationships": [+ {+ "id": "order_customer",+ "from": "order",+ "to": "customer",+ "label": "placed by",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "payment_order",+ "from": "payment",+ "to": "order",+ "fromCardinality": "many",+ "fromOptional": true,+ "toCardinality": "one",+ "identifying": false+ },+ {+ "id": "order_item_order",+ "from": "order_item",+ "to": "order",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "order_item_product",+ "from": "order_item",+ "to": "product",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "inventory_product",+ "from": "inventory",+ "to": "product",+ "fromCardinality": "many",+ "toCardinality": "one"+ }+ ],+ "cards": [+ {+ "dot": "cyan",+ "title": "Keys",+ "items": [+ "Every child carries the parent id as a bigint foreign key.",+ "order is the hub: order_item and payment each hold an order_id.",+ "email and sku are unique, so they carry a secondary key marker."+ ]+ },+ {+ "dot": "amber",+ "title": "Optionality",+ "items": [+ "An order may exist before any payment attempt, so the payment side is zero or many.",+ "The payment relationship is non-identifying: it is drawn dashed.",+ "customer, product, and order_item links are all mandatory."+ ]+ },+ {+ "dot": "emerald",+ "title": "How the bands read",+ "items": [+ "The checkout band is the order and the payment that settles it.",+ "The catalog band is what orders point at: one product, one stock record.",+ "accounts and line items stand alone; a single-table domain keeps its tag in the table header."+ ]+ }+ ]+}diff --git a/archify/examples/subscription-billing.erd.json b/archify/examples/subscription-billing.erd.jsonnew file mode 100644index 00000000..ac75e30e--- /dev/null+++ b/archify/examples/subscription-billing.erd.json@@ -0,0 +1,548 @@+{+ "schema_version": 1,+ "diagram_type": "erd",+ "meta": {+ "title": "Subscription billing schema",+ "locale": "en",+ "output": "examples/subscription-billing-rendered.html",+ "quality_profile": "showcase",+ "views": [+ {+ "id": "tenancy",+ "label": "Who belongs where",+ "focus": [+ "tenant",+ "user_account",+ "membership"+ ],+ "note": "A user reaches a tenant through membership, which is why both ids are foreign keys on that table."+ },+ {+ "id": "billing-run",+ "label": "One invoice run",+ "focus": [+ "subscription",+ "invoice",+ "invoice_line",+ "price",+ "plan"+ ],+ "note": "A subscription holds a price, an invoice holds its lines; the amount rolls up from the line."+ },+ {+ "id": "money-in",+ "label": "Money in and back out",+ "focus": [+ "payment_method",+ "payment",+ "refund",+ "invoice"+ ],+ "note": "Payments are optional until a method is charged, and a refund only ever points at a captured payment."+ }+ ]+ },+ "layout": {+ "mode": "grid",+ "gapX": 64,+ "gapY": 26+ },+ "entities": [+ {+ "id": "tenant",+ "label": "tenant",+ "row": 0,+ "col": 0,+ "tag": "accounts",+ "attributes": [+ {+ "name": "id",+ "type": "uuid",+ "key": "pk"+ },+ {+ "name": "slug",+ "type": "varchar(64)",+ "key": "uk"+ },+ {+ "name": "name",+ "type": "varchar(160)"+ },+ {+ "name": "status",+ "type": "varchar(16)"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "user_account",+ "label": "user_account",+ "row": 1,+ "col": 0,+ "tag": "accounts",+ "attributes": [+ {+ "name": "id",+ "type": "uuid",+ "key": "pk"+ },+ {+ "name": "email",+ "type": "varchar(255)",+ "key": "uk"+ },+ {+ "name": "display_name",+ "type": "varchar(120)"+ },+ {+ "name": "locale",+ "type": "char(5)"+ },+ {+ "name": "mfa_enabled",+ "type": "boolean"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "membership",+ "label": "membership",+ "row": 2,+ "col": 0,+ "tag": "accounts",+ "width": 250,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "tenant_id",+ "type": "uuid",+ "key": "fk",+ "references": "tenant.id"+ },+ {+ "name": "user_id",+ "type": "uuid",+ "key": "fk",+ "references": "user_account.id"+ },+ {+ "name": "role",+ "type": "varchar(24)"+ },+ {+ "name": "joined_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "plan",+ "label": "plan",+ "row": 0,+ "col": 2,+ "tag": "catalog",+ "attributes": [+ {+ "name": "id",+ "type": "varchar(32)",+ "key": "pk"+ },+ {+ "name": "name",+ "type": "varchar(80)"+ },+ {+ "name": "billing_interval",+ "type": "varchar(16)"+ },+ {+ "name": "seat_based",+ "type": "boolean"+ },+ {+ "name": "active",+ "type": "boolean"+ }+ ]+ },+ {+ "id": "price",+ "label": "price",+ "row": 1,+ "col": 2,+ "tag": "catalog",+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "plan_id",+ "type": "varchar(32)",+ "key": "fk",+ "references": "plan.id"+ },+ {+ "name": "currency",+ "type": "char(3)"+ },+ {+ "name": "unit_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "effective_from",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "subscription",+ "label": "subscription",+ "row": 0,+ "col": 1,+ "width": 240,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "tenant_id",+ "type": "uuid",+ "key": "fk",+ "references": "tenant.id"+ },+ {+ "name": "price_id",+ "type": "bigint",+ "key": "fk",+ "references": "price.id"+ },+ {+ "name": "status",+ "type": "varchar(16)"+ },+ {+ "name": "seats",+ "type": "int"+ },+ {+ "name": "started_at",+ "type": "timestamptz"+ },+ {+ "name": "canceled_at",+ "type": "timestamptz"+ }+ ],+ "tag": "billing"+ },+ {+ "id": "invoice",+ "label": "invoice",+ "row": 1,+ "col": 1,+ "width": 252,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "subscription_id",+ "type": "bigint",+ "key": "fk",+ "references": "subscription.id"+ },+ {+ "name": "number",+ "type": "varchar(32)",+ "key": "uk"+ },+ {+ "name": "status",+ "type": "varchar(16)"+ },+ {+ "name": "subtotal_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "tax_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "total_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "issued_at",+ "type": "timestamptz"+ }+ ],+ "tag": "billing"+ },+ {+ "id": "invoice_line",+ "label": "invoice_line",+ "row": 2,+ "col": 1,+ "width": 250,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "invoice_id",+ "type": "bigint",+ "key": "fk",+ "references": "invoice.id"+ },+ {+ "name": "description",+ "type": "varchar(200)"+ },+ {+ "name": "quantity",+ "type": "int"+ },+ {+ "name": "unit_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "amount",+ "type": "numeric(12,2)"+ }+ ],+ "tag": "billing"+ },+ {+ "id": "payment_method",+ "label": "payment_method",+ "row": 0,+ "col": 3,+ "width": 240,+ "tag": "payments",+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "tenant_id",+ "type": "uuid",+ "key": "fk",+ "references": "tenant.id"+ },+ {+ "name": "kind",+ "type": "varchar(16)"+ },+ {+ "name": "last4",+ "type": "char(4)"+ },+ {+ "name": "expires_at",+ "type": "date"+ },+ {+ "name": "is_default",+ "type": "boolean"+ }+ ]+ },+ {+ "id": "payment",+ "label": "payment",+ "row": 1,+ "col": 3,+ "tag": "payments",+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "invoice_id",+ "type": "bigint",+ "key": "fk",+ "references": "invoice.id"+ },+ {+ "name": "payment_method_id",+ "type": "bigint",+ "key": "fk",+ "references": "payment_method.id"+ },+ {+ "name": "amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "status",+ "type": "varchar(16)"+ },+ {+ "name": "captured_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "refund",+ "label": "refund",+ "row": 2,+ "col": 3,+ "tag": "payments",+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "payment_id",+ "type": "bigint",+ "key": "fk",+ "references": "payment.id"+ },+ {+ "name": "amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "reason",+ "type": "varchar(120)"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ }+ ],+ "relationships": [+ {+ "id": "membership_tenant",+ "from": "membership",+ "to": "tenant",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "membership_user",+ "from": "membership",+ "to": "user_account",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "price_plan",+ "from": "price",+ "to": "plan",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "subscription_tenant",+ "from": "subscription",+ "to": "tenant",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "subscription_price",+ "from": "subscription",+ "to": "price",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "invoice_subscription",+ "from": "invoice",+ "to": "subscription",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "invoice_line_invoice",+ "from": "invoice_line",+ "to": "invoice",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "payment_method_tenant",+ "from": "payment_method",+ "to": "tenant",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "payment_invoice",+ "from": "payment",+ "to": "invoice",+ "fromCardinality": "many",+ "toCardinality": "one",+ "fromOptional": true+ },+ {+ "id": "payment_method_of_payment",+ "from": "payment",+ "to": "payment_method",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "refund_payment",+ "from": "refund",+ "to": "payment",+ "fromCardinality": "many",+ "toCardinality": "one"+ }+ ],+ "cards": [+ {+ "dot": "cyan",+ "title": "Scope",+ "items": [+ "A redacted subscription-billing model: eleven tables, the fields the service actually stores.",+ "Money is numeric(12,2) rather than float; every amount column records a currency or inherits one from price.",+ "Timestamps are timestamptz, so an invoice keeps the instant it was issued, not a local reading of it."+ ]+ },+ {+ "dot": "amber",+ "title": "Optionality",+ "items": [+ "An invoice may exist before a payment attempt, so the payment side is zero or many.",+ "A refund is mandatory on its payment: nothing is refunded that was never captured.",+ "membership carries both foreign keys; a user with no tenant has no membership row at all."+ ]+ }+ ]+}diff --git a/archify/recipes/scenarios.mjs b/archify/recipes/scenarios.mjsindex f8372b7d..1f082fc9 100644--- a/archify/recipes/scenarios.mjs+++ b/archify/recipes/scenarios.mjs@@ -250,6 +250,31 @@ const RAW_RECIPES = [prompt: '用 Archify 生命周期模式建模部署对象。展示排队、构建、验证、等待审批、晋级、回滚以及所有终态,并标注允许每次状态转换的事件和守卫条件。',},},+ {+ id: 'database-schema', type: 'erd', proof: 'orders',+ presentation: { preset: 'classic', motion: 'static', views: 'optional' },+ start: {+ en: { descriptionPrompt: 'Use Archify to model this data model as an entity-relationship diagram: [paste the schema DDL, or describe the tables, their key columns, and how they relate]. No repository is required. Include every column the reader needs rather than a summary, mark primary, foreign, and unique keys, and draw each foreign-key relationship with the cardinality and optionality of both ends.' },+ zh: { descriptionPrompt: '用 Archify 把这份数据模型画成实体关系图:[粘贴建表 DDL,或描述表、关键字段以及表之间的关联]。不需要代码库。字段要完整而不是摘要,标注主键、外键和唯一键,并为每条外键关系画出两端的基数和可选性。' },+ },+ signals: [['entity relationship', 14], ['er diagram', 15], ['database schema', 13], ['table schema', 12], ['foreign key', 11], ['primary key', 9], ['cardinality', 9], ['实体关系图', 15], ['ER 图', 15], ['表结构', 13], ['数据库设计', 12], ['外键', 11], ['主键', 9], ['实体关系', 12]],+ en: {+ title: 'Database schema', question: 'Which tables exist, what columns and keys do they carry, and how do they relate?',+ summary: 'An entity-relationship map of tables with their complete column lists, key markers, and the cardinality between them.',+ useWhen: 'Schema reviews, data-model onboarding, migration planning, or explaining a foreign-key graph.',+ avoidWhen: 'The question is row-level movement between systems (data flow) or access order at runtime (sequence).',+ include: ['tables with their complete column lists', 'primary, foreign, and unique key markers', 'cardinality and optionality at both ends', 'cards reserved for supplementary notes'],+ prompt: 'Use Archify ERD mode to model this schema. Show every physical column inside its table — the field list is this diagram\'s primary content, not a summary — and mark primary, foreign, and unique keys. Draw every foreign-key relationship with its cardinality and optionality at both ends, and group related tables into contiguous domain blocks. Keep cards for supplementary notes instead of moving columns out of the tables.',+ },+ zh: {+ title: '数据库表结构', question: '有哪些表、各自带哪些字段和键、彼此如何关联?',+ summary: '用实体关系图展示表及其完整字段清单、键标记和表之间的基数关系。',+ useWhen: '适合表结构评审、数据模型上手、迁移规划和解释外键关系图。',+ avoidWhen: '如果重点是系统之间的行级数据流动或运行期访问顺序,请用数据流图或时序图。',+ include: ['表及其完整字段清单', '主键、外键、唯一键标记', '两端的基数与可选性', '卡片只放补充说明'],+ prompt: '用 Archify ERD 模式建模这份表结构。每张表的完整物理字段都画在表内——字段清单是这张图的主要内容,不是摘要——并标注主键、外键和唯一键。为每条外键关系画出两端的基数和可选性,把相关表组织成连续的领域块。卡片只保留补充说明,不要用它把字段移出表外。',+ },+ },{id: 'layout-repair', type: 'architecture', proof: 'web-app',presentation: { preset: 'classic', motion: 'static' },diff --git a/archify/references/authoring-contract.md b/archify/references/authoring-contract.mdindex 623473f9..5a4e5a49 100644--- a/archify/references/authoring-contract.md+++ b/archify/references/authoring-contract.md@@ -17,6 +17,7 @@ For a disproportionate sublabel, keep its exact role or protocol concise and plaRead both the mode schema and `schemas/common.schema.json`. The mode schemas use `$ref`, so the common file is where shared enums live.- `componentType`: `frontend`, `backend`, `database`, `cloud`, `security`, `messagebus`, `external`+- Entity-relationship documents use `entities` and `relationships`; `key` accepts `pk`, `fk`, or `uk`, and `fromCardinality`/`toCardinality` accept `one` or `many`.- `variant`: `default`, `emphasis`, `security`, `dashed`- Relationship IDs use the shared identifier pattern and must be unique in their collection.@@ -48,10 +49,13 @@ both. `visible: true` may show an unused supported convention, whileA label override changes reader wording only. Never infer a kind from prose oruse the legend to compensate for missing nodes, states, messages, or flows.Long labels are measured and wrap into deterministic rows. Architecture's-implicit automatic viewBox grows from that same measured footprint. For-backwards compatibility, a legacy document with no `meta.legend` may omit an-implicit auto legend that cannot fit its explicit viewBox; this never changes-its typed topology. Adding `meta.legend` makes the presentation intentional and+implicit automatic viewBox grows from that same measured footprint, and an+automatic ERD canvas is sized the same way so its default legend is always in+the generated content. For backwards compatibility, a legacy document with no+`meta.legend` may omit an implicit auto legend that cannot fit its explicit+viewBox; this never changes its typed topology. An ERD that authors a+`meta.viewBox` keeps that fixed area and reports the capacity instead of+dropping the legend. Adding `meta.legend` makes the presentation intentional andstrict: if its resolved labels cannot fit the authored viewBox, shorten or hidethem, or widen the viewBox using the emitted diagnostic.@@ -308,6 +312,66 @@ Participants are ordered by conversation role. Messages own their vertical orderStages express transformation or custody. Rows separate parallel streams. Label only data contracts, classifications, or cross-boundary movement that is not obvious.+### ERD++Treat a schema ERD as a table catalogue as well as a relationship map. If the+schema has more than 8 tables or 50 fields, it is a dense full-schema map: start+with `meta.quality_profile: "standard"` so complete field visibility is not+traded away for repeated showcase route repairs. Include every physical column in+`attributes`, keep the source SQL type, and preserve the+field's Chinese comment in the type string as `SQL_TYPE|中文备注` because the+schema has no separate comment property. The default viewer shows these rows at+the `read` level; do not rely on hover/focus or cards to reveal physical fields.+Cards may explain constraints, inferred relationships, or domain rules, but never+replace a field list.++Before placing boxes, classify tables into functional domains using verified table+names, comments, module paths, and foreign-key meaning. Put the domain name in+`tag` and give each domain one contiguous run of grid cells: a single row with+adjacent columns, or a single column with adjacent rows. All tables with the same+tag stay together; do not interleave unrelated tables between members. A domain+that forms one such run is drawn as a labelled band behind its tables, so the+grouping is visible without reading every box;+a tag spread across the canvas earns no band and stays in that table's header+instead, which is also how a single-table domain reads. Order parent/core tables+toward the shared boundary and+place their direct children beside or beneath them. Columns read left to right and+rows read top to bottom, so a relationship between neighbouring columns is one+straight corridor. Never place an unrelated entity between two aligned anchors;+the router can detour around it, but the clear corridor is shorter and reads+better. Use `row`/`col` for this normal grouped layout, and only use explicit+`pos`/`via` after a diagnostic identifies a concrete geometry problem.++Put one key per attribute (`key`) and the real references in `references`. A+many-to-many pair is a real fact about the model, so state it and identify the join+table when one exists. A relationship has two ends and each one declares its own+maximum, so a `many`-to-`one` foreign key needs both `fromCardinality` and+`toCardinality`; `fromOptional`/`toOptional` only lowers that same end's minimum+from one to zero (an optional `one` end reads zero-or-one, an optional `many` end+reads zero-or-many), and `identifying: false` draws the non-identifying dashed+line. The foot opens toward the entity it describes, so the drawn glyph states the+end's maximum, not a direction of travel.++A table side only has room for so many ends: the ports spread at most `(side+extent - 32) / (ends - 1)` apart, and a cardinality glyph is 14 units tall. More+relationship ends than that room allows is `layout/marker-capacity`, which names+the table, the side, and the ways out — add fields so the side is taller, spread+the relationships, or reduce the fan-in. Never fix it by hiding the cardinality.++Give the domains a column each when the model has to read completely inside a+laptop viewport. The Reader scales a wide canvas up to the reader width and+narrows a tall one until the whole page fits, so the same eleven tables cost text+size when they are stacked as four horizontal domains instead of four vertical+ones. Leave a whole tile of the grid free where a long relationship has to cross+a domain: a run that crosses an occupied cell forces a jog, and a jog below the+interior floor is a `composition/short-interior-segment` failure.++An automatic canvas is sized so the default legend is always in the generated+content, and a canvas the author fixes with `meta.viewBox` reports its legend+capacity instead of dropping the key; see+[`../renderers/erd/README.md`](../renderers/erd/README.md) for the band, port, and+reader contract.+### LifecycleSchema v2 (new diagrams): each populated lane is one row, `main` first,diff --git a/archify/references/delivery-contract.md b/archify/references/delivery-contract.mdindex 1cde6441..a5476d94 100644--- a/archify/references/delivery-contract.md+++ b/archify/references/delivery-contract.md@@ -2,7 +2,7 @@## Failed finalize and candidate repair-`finalize` stops at the first non-passing gate. Use compact stdout or `evidence.summaryReceipt`; read its full sidecar only when the summary lacks evidence needed for a coherent repair. A receipt with four artifact checks is basic validation, not showcase acceptance: require all nine checks, zero composition errors, and zero warnings. Fix `meta.quality_profile` and schema errors before geometry.+`finalize` stops at the first non-passing gate. Use compact stdout or `evidence.summaryReceipt`; read its full sidecar only when the summary lacks evidence needed for a coherent repair. A receipt with four artifact checks is basic validation, not showcase acceptance: require all nine checks, zero composition errors, and zero warnings. Fix `meta.quality_profile` and schema errors before geometry. A dense full-schema ERD may keep `standard` for its first complete-field pass: require zero structural errors, no edge-through-node failures, complete field rows, and a readable grouped grid, and record composition warnings instead of spending unbounded time on them.For a validation failure, edit the existing JSON in the connected neighborhood named by diagnostics before rerunning a command. Preserve requested semantics, meaningful labels, source evidence, and fixed or agreed topology. Several routes sharing nodes call for one placement repair; read [Architecture layout repair](architecture-layout-repair.md) for that case. Reflow a blocked main path rather than nudging unrelated labels. Keep unrelated geometry when its composition already reads clearly. Use `--layout-json` before editing only when compact evidence lacks needed measurements. Workflow v2 uses its stable compiler receipt, not solver internals, as authoring evidence.diff --git a/archify/renderers/architecture/routing.mjs b/archify/renderers/architecture/routing.mjsindex f2de2875..12a1c39e 100644--- a/archify/renderers/architecture/routing.mjs+++ b/archify/renderers/architecture/routing.mjs@@ -35,6 +35,23 @@ import { shortestOrthogonalGridRoute } from '../shared/route-quality.mjs';* default label rect of a routed relationship given the routes and label* rects resolved so far; later automatic routes keep clear of it so a dense* fan-out does not leave the label nowhere to go+ * @param {(conn: object, endpoint: 'source'|'target') => string|undefined} [options.sideFor]+ * endpoint side of a relationship whose author did not pin one, for a type+ * that reads its layout on a different axis than architecture's row fan-out;+ * an endpoint this hook leaves undefined keeps the shared inference+ * @param {number} [options.maxPortSpacing] widest spacing the automatic port+ * spread may use on a shared side; a type whose endpoint glyphs are taller+ * than the default raises this so two symbols never draw over each other+ * @param {(context: {conn: object, from: object, to: object, start: number[], end: number[], fromSide: string, toSide: string}) => number[][][]} [options.preferredCandidates]+ * candidate families tried before the shared ones, so a type-owned corridor+ * (a bundled trunk, a dedicated lane) wins over the generic midpoint+ * @param {boolean} [options.compositionFloors = true] hold every automatic+ * route to the rhythm floors the showcase gate enforces, so the planner never+ * accepts a route the gate will reject. A type that draws a route differently+ * from its logical points (the erd renderer removes the bundled trunk stretch+ * from each branch and draws the bus as one path) turns this off: the floors+ * describe a route drawn exactly as planned, and that type answers for the+ * drawn result at its own gate instead.*/export function createRouter(components, connections = [], {frames = [],@@ -43,6 +60,10 @@ export function createRouter(components, connections = [], {labelRectFor = null,distinctAutomaticPorts = false,preferReadableRoutes = false,+ sideFor = null,+ maxPortSpacing = null,+ preferredCandidates = null,+ compositionFloors = true,} = {}) {const frameBorders = frames.flatMap((frame) => frameBorderSegments(frame));const LABEL_CLEARANCE = 4;@@ -81,7 +102,8 @@ export function createRouter(components, connections = [], {// gate enforces afterwards. Accepting a route here that the gate rejects// only hands the author a hand-routing repair the planner could have made.function routeMeetsCompositionFloors(points) {- if (collectRouteRhythmIssues({ routedRelations: [{ points }], interiorSegmentPx, microSegmentPx }).length) {+ if (compositionFloors+ && collectRouteRhythmIssues({ routedRelations: [{ points }], interiorSegmentPx, microSegmentPx }).length) {return false;}return !frames.length || collectBorderRuns({ routedRelations: [{ points }], frames }).length === 0;@@ -407,6 +429,22 @@ export function createRouter(components, connections = [], {}case 'auto':default: {+ // A caller may own the corridor for relationships that would otherwise+ // share one channel. Preferred candidates are tried before the shared+ // families, so a declared trunk or lane wins over the generic midpoint;+ // a candidate that violates the endpoint contract or an obstacle is+ // skipped and the historical order below still applies.+ if (preferredCandidates) {+ for (const candidate of preferredCandidates({ conn, from, to, start, end, fromSide, toSide }) || []) {+ const points = [start, ...candidate, end];+ if (routeHonorsEndpointSides(points, fromSide, toSide)+ && routeClearsEndpointComponents(points, from, to)+ && routeClearsComponents(conn, points)+ && routeMeetsCompositionFloors(points)+ && !routeConflictsWithResolved(conn, points, resolvedRoutes)) return candidate;+ }+ }+// Direct line unless the anchors are clearly orthogonal-friendly.const deltaX = Math.abs(start[0] - end[0]);const deltaY = Math.abs(start[1] - end[1]);@@ -670,9 +708,18 @@ export function createRouter(components, connections = [], {const stroke = (relation) => relation.width || (relation.variant === 'emphasis' ? 1.8 : 1.5);const markerSpacing = (left, right) => 3.5 * (stroke(left) + stroke(right));const portSpacing = (left, right) => Math.max(14, markerSpacing(left, right) + 3.5);+ function fanOutSide(conn, endpoint) {+ const fanOut = rowFanOutSides(components.get(conn.from), components.get(conn.to));+ return endpoint === 'source' ? fanOut?.fromSide : fanOut?.toSide;+ }+ // A caller may own the endpoint side of a relationship; whatever it leaves+ // unresolved keeps architecture's row fan-out inference.+ function inferredSide(conn, endpoint) {+ return sideFor?.(conn, endpoint) || fanOutSide(conn, endpoint);+ }const automaticPorts = automaticPortSpread(connections, components, {- sideFor: (relation, endpoint) => rowFanOutSides(components.get(relation.from), components.get(relation.to))- ?.[endpoint === 'source' ? 'fromSide' : 'toSide'],+ sideFor: inferredSide,+ ...(maxPortSpacing === null ? {} : { maxSpacing: maxPortSpacing }),// Preserve the established initial placement for ordinary markers; only// widen groups whose arrowheads cannot fit the legacy 14px slots....(distinctAutomaticPorts ? { spacingFor: (left, right) =>@@ -690,10 +737,9 @@ export function createRouter(components, connections = [], {function inferredConnectionSides(conn) {const from = components.get(conn.from);const to = components.get(conn.to);- const fanOut = rowFanOutSides(from, to);return {- fromSide: chosenSide(conn.fromSide, fanOut?.fromSide || defaultFromSide(from, to)),- toSide: chosenSide(conn.toSide, fanOut?.toSide || defaultToSide(from, to)),+ fromSide: chosenSide(conn.fromSide, inferredSide(conn, 'source') || defaultFromSide(from, to)),+ toSide: chosenSide(conn.toSide, inferredSide(conn, 'target') || defaultToSide(from, to)),};}@@ -702,6 +748,14 @@ export function createRouter(components, connections = [], {return selectedSides.get(conn) || inferredConnectionSides(conn);}+ // The same side inference without the planning pass. A caller that must group+ // relationships before any route exists (the erd renderer assigns a shared+ // trunk per fan-in) reads its sides here: connectionSides() plans routes, and+ // planning asks the grouping what the trunks are.+ function inferredSides(conn) {+ return inferredConnectionSides(conn);+ }+function connectionEndpointSide(conn, endpoint) {const field = endpoint === 'source' ? 'fromSide' : 'toSide';if (conn[field] && conn[field] !== 'auto') return conn[field];@@ -1153,5 +1207,5 @@ export function createRouter(components, connections = [], {return { ...planningMetrics };}- return { pathFor, connectionSides, connectionEndpointSide, routingMetrics };+ return { ports: automaticPorts, pathFor, connectionSides, inferredSides, connectionEndpointSide, routingMetrics };}diff --git a/archify/renderers/erd/README.md b/archify/renderers/erd/README.mdnew file mode 100644index 00000000..41767269--- /dev/null+++ b/archify/renderers/erd/README.md@@ -0,0 +1,215 @@+# Entity-Relationship Renderer++Render `diagram_type: "erd"` JSON files into the standard Archify HTML template.++```bash+node archify/renderers/erd/render-erd.mjs input.erd.json output.html+```++The renderer validates input against `archify/schemas/erd.schema.json` with the+bundled standalone validator. No dependency installation is required.++If `output.html` is omitted, the renderer uses `meta.output` from the JSON file+or falls back to `erd.html` in the current working directory.++After rendering, run the artifact checker:++```bash+node archify/scripts/check-render-output.mjs output.html+```++## Input++ERD JSON files must set:++```json+{+ "schema_version": 1,+ "diagram_type": "erd",+ "meta": { "title": "Order management schema" },+ "entities": [],+ "relationships": [],+ "cards": []+}+```++An entity carries the table name in `label`, its attributes in `attributes`, and a+`row`/`col` cell in the banded grid. The box height follows the declared attribute+count, so the layout never needs hand-measured sizes. An attribute's `key` accepts+`pk`, `fk`, or `uk`; an `fk` must also name its target as `"entity.attribute"` in+`references`, and that target is checked against the declared entities and+attributes.++A relationship reads `from` -> `to` and is drawn with crow's foot notation at+both ends. The foot opens toward the entity whose cardinality it describes: its+toes stand on that table's edge and its apex sits one foot back along the line,+so the glyph cannot be read as an arrowhead pointing at the table. Both ends+declare their own maximum: `fromCardinality`/`toCardinality` take `one` or+`many` and are required, because a maximum the author never stated is a fact the+diagram would be inventing; `fromOptional`/`toOptional` add the optional circle+past the apex and lower that end's minimum from one to zero.+`identifying: false` draws the non-identifying dashed line.++## Layout and routing++`layout.mode: "grid"` places each entity by `row`/`col`. Every raw attribute index+owns the width of its widest entity and every raw row index owns the height of+its tallest, so boxes in one band line up without hand measurement and an empty+index leaves a routing channel. `pos` overrides the cell for a bounded+exception.++Relationships route through the orthogonal router the other typed renderers use+(`../architecture/routing.mjs`), so the same contracts apply: automatic port+spreading on a shared entity, the endpoint-side contract, the route-rhythm+floors, and the universal Clean Flow gate. The ERD is a caller, not a fork: it+passes `sideFor`, `maxPortSpacing`, `preferredCandidates`, and+`compositionFloors: false`, and reads the planning-free `inferredSides` and the+`ports` map. Each option is inert when omitted, which is how architecture and+lifecycle keep their routing byte for byte. Five differences are specific to this+renderer:++- Endpoints resolve horizontal-first, like every other non-architecture type: a+ relationship leaves and enters on the left/right whenever the tables sit side+ by side, and only falls back to a top/bottom port when they share a column. The+ shared router's default is architecture's dominant-axis inference, which would+ split one fan-in into two groups whenever a target happened to sit further away+ vertically than horizontally.+- Automatic ports on one side spread up to 24 units apart, because a cardinality+ glyph is 14 units tall: at the shared 14-unit spread two crow's feet on one table+ edge read as a single smudge. That spacing is a cap, not a floor — a side only+ fits `(extent - 32) / (ends - 1)` — so a table with more relationship ends than+ its side has room for fails with `layout/marker-capacity`, which names the+ table, the side, the spacing, and the three ways out.+- Relationships that would share one corridor get a deterministic lane offset,+ so parallel foreign keys never sit on the identical channel line.+- Relationships that share one entity side (a fan-in of foreign keys, or a+ fan-out parent) and one marker style bundle onto a single trunk just outside+ that side: one bus line with a short branch per relationship, instead of a+ sheaf of parallel lanes. The trunk bridges one port step of uncovered bus, so+ the port spread above still reads as one line. The trunk is only a preferred+ route — a branch that would break the endpoint contract or clip an entity falls+ back to the ordinary families and stays unbundled, and anything authored+ (`route`, `via`, `labelAt`) keeps its own line. Logical routes still traverse+ the trunk, so every gate, label, and the layout report see the full geometry.+- Entity boxes are opaque obstacles. When a third entity sits between two+ aligned anchors, the shared obstacle grid routes around it, and a route that+ still cannot clear an unrelated entity fails with+ `clean-flow/edge-through-node` rather than being drawn through the box.++The renderer also reports ER-specific diagnostics: unknown entities in+`from`/`to`, unknown attribute names and unresolved `references`, duplicate attribute+names, self-referencing relationships, overlapping entity boxes, and rows whose+text cannot fit inside the declared entity width.++## Domain bands++`tag` names a table's functional domain, and a domain is drawn as a band when the+tables carrying that tag occupy a contiguous run of grid cells — one row with+adjacent columns, or one column with adjacent rows. The band is measured from the+placed boxes and carries the tag as its caption, which is what makes a grouped+schema readable at a glance: the reader sees blocks instead of six equally+weighted boxes.++A tag spread across the canvas earns no band, because a band around the gap would+claim a grouping the placement contradicts; that tag stays in the table header+instead, together with any `sublabel`. A single-table domain always reads that+way. `sublabel` is the per-table note and is never drawn on a band.++The header note is the one text this renderer will leave out. It is written+right-aligned in the table's header band, so it draws only when it fits the fixed+64-unit budget that band reserves beside the table name — a budget that does not+grow with the box, so a wider table does not buy a longer note. A longer note is+dropped rather than run over the name or past the header edge; the string itself+stays on the node (`data-node-sublabel`, `data-node-tag`, and the SVG `<title>`),+and a dropped `sublabel` also stays in the table's accessible name, while a+dropped `tag` does not, because the accessible name is the label plus the+`aria-label` detail. The lever is a shorter note. The domain `tag` never depends+on it — a banded table shows its domain on the band, and an unbanded table shows+the tag in the header only while it fits.++## Cardinality ink++The crow's foot, the single bar, and the optional circle are drawn in the theme's+muted text ink rather than the shared arrow token: at the light theme's arrow+colour a glyph over a table fill sits near 2:1 contrast and reads as a smudge,+while the muted text ink clears the 3:1 non-text floor in both themes. The legend+repeats the same ink and stroke weight, and its labels render one step larger and+heavier than the shared legend default, so the legend shows the reader the exact+glyph the diagram draws.++## The legend band++The default legend is part of the generated content, so an automatic canvas is+sized to hold it: the shared measurement decides whether the reserved strip+fits, and the drawing area grows a band at a time until it does. A route or a+relationship label that still collides with the placed band is a real capacity+failure and raises the diagnostic instead of dropping the key, and an authored+`meta.viewBox` — a fixed drawing area — names the capacity it lacks+(`legend/vertical-overflow`, `legend/label-too-wide`, or `legend/content-overlap`,+each with the fix that resolves it).++A canvas taller than one screen is a normal schema, not a defect. An automatic+canvas declares `data-reader-fit="intrinsic-height"` and+`data-reader-min-text="7.5"`, which is the Reader's permission to narrow a tall+schema down to the point where the page fits — never below that declared minimum,+so the field rows stay readable and anything taller than that scrolls; an+authored `meta.viewBox` keeps the authored fit contract. Field rows, their types,+and the key glyph carry `data-detail="context"` on the text itself, because the+Reader sizes the diagram from the texts that declare a level — a field that is+only context inside a row group would be shrunk past the readable floor on a tall+schema.++Narrowing is a floor, not a goal. The bundled eleven-table example measures, at+1440x900 and with the same tables and typography, as a 1230x678 canvas the Reader+renders at the full 1346px (scale 1.09), so its field types land at 11.5px. The+same tables grouped as four horizontal domains instead form a 910x874 canvas that+the Reader narrows to 777px (scale 0.85), landing the same types at 9.0px. A+horizontal arrangement that reaches the reader width instead of being narrowed+still trades text size for the columns it needs, which is why the measurement+here is the pair and not a rule about which axis is right.++## Typography++Table rows are text a reader scans, so the ERD's rhythm is looser than the generic+diagram rhythm: a 30-unit header, 20-unit rows, a 13-unit table name, 11-unit+field names, and a 10.5-unit type. The type keeps the same ink as the field name+because it is data, not an aside: at the muted token it measured 3.98:1 against a+table fill, under the 4.5:1 text floor, which is why it read as faint in review.+A row whose text cannot fit is a diagnostic rather than a silently truncated+cell, so a narrow table names the field it cannot show and asks for a wider box.++Field rows, their types, and the key glyph each carry `data-detail="context"` on+the text itself, not only on the row group: the Viewer's reader sizes the diagram+from the texts that declare a level, so a tall schema would otherwise be shrunk+past the readable floor. An automatic canvas also declares+`data-reader-fit="intrinsic-height"`, which is what lets a schema taller than one+screen scroll at a readable size instead of being squeezed to fit; an authored+`meta.viewBox` keeps the authored fit contract.++Relationship labels are set at 9 units in the relationship's own accent, with the+mask measured from the same factor, so a labelled schema keeps its semantic text+above the readable floor. They are the smallest text the diagram carries, and+they are semantic data: a collision is a repair (move the label, widen the+corridor), never a reason to drop the wording.++## Reading a schema++An ERD is also a table catalogue. For a schema with more than 8 tables or 50+fields, start with `meta.quality_profile: "standard"` so complete field+visibility remains the priority; promote to `showcase` only after the grouped+layout is genuinely readable. Include every physical column in+`entities[].attributes`, keep its SQL type, and preserve the source comment in the+type string as `SQL_TYPE|中文备注` when the schema has no separate comment field.+The renderer shows ERD attribute rows at the default `read` level, so fields do+not depend on hover or focus. Use cards only for supplementary constraints,+inferred relationships, and domain rules; never use them to hide the full table.++Group tables by functional domain before assigning grid cells. Give members of one+domain the same concise `tag` and keep them in one contiguous, non-interleaved run+— a row with adjacent columns or a column with adjacent rows; that run is what the+band is measured from. Give each domain a column of its own when the whole schema+has to be visible at once: the domain then reads top to bottom, the relationships+between neighbouring domains run left to right, and the canvas stays wide enough+for the Reader to show it at full text size. A wide entity is a taller wall for+the router to get around, and the projected text minimum still applies at+1440x900, so prefer a compact grouped grid over shrinking or hiding fields.diff --git a/archify/renderers/erd/grid.mjs b/archify/renderers/erd/grid.mjsnew file mode 100644index 00000000..3677d423--- /dev/null+++ b/archify/renderers/erd/grid.mjs@@ -0,0 +1,118 @@+/** Banded grid placement for the ER IR. Not auto-layout: column widths and row+ * band heights are measured from the boxes the author declares, so the same+ * spec always produces the same coordinates. */++export const DEFAULT_ER_GRID = {+ mode: 'grid',+ // The top origin leaves room for a domain caption above the first band, and+ // the left origin starts the first column inside the page margin so the+ // canvas is not edge-to-edge. Row bands are taller than the generic rhythm+ // because a table row is text a reader has to scan, not a node label.+ origin: [32, 40],+ gapX: 56,+ gapY: 44,+ // Wide enough for a long field name plus its SQL type at the legibility+ // sizes below (a 20-character name and a numeric(12,2) type).+ entityW: 240,+ // Header and row bands are sized for the field type legibility the reader+ // asked for: an 11-unit field name and a 10.5-unit type sit on a 20-unit+ // row, and the table name leads them on a 30-unit header.+ headerH: 30,+ rowH: 20,+};++export function erGridLayout(er) {+ const raw = er.layout;+ if (!raw || raw.mode !== 'grid') return null;+ return { ...DEFAULT_ER_GRID, ...raw };+}++// An entity may omit `width` and inherit the grid's default. Both the layout and+// the placement validator must resolve that the same way: reading `entity.width`+// directly turned the documented default into NaN and reported a placement+// failure for a box the schema accepts.+export function resolvedEntityWidth(entity, grid) {+ return Number.isFinite(entity?.width) ? entity.width : (grid?.entityW ?? DEFAULT_ER_GRID.entityW);+}++// One header band plus one band per declared column. An entity with no columns+// still needs a readable body, so the minimum is a single row.+export function entityHeight(entity, grid) {+ const rows = Math.max(1, Array.isArray(entity.attributes) ? entity.attributes.length : 0);+ return grid.headerH + rows * grid.rowH + 6;+}++// Every raw column index owns the widest box placed in it and every raw row+// index owns the tallest, so boxes in one band share a baseline without anyone+// measuring by hand. Indices with no box still contribute their gap, which is+// how an author asks for a routing channel between two bands.+export function bandedLayout(entities, grid) {+ const widths = new Map();+ const heights = new Map();+ for (const entity of entities) {+ if (!Number.isInteger(entity.row) || !Number.isInteger(entity.col)) continue;+ widths.set(entity.col, Math.max(widths.get(entity.col) || 0, resolvedEntityWidth(entity, grid)));+ heights.set(entity.row, Math.max(heights.get(entity.row) || 0, entity.height));+ }++ const columnX = new Map();+ const rowY = new Map();+ let x = grid.origin[0];+ const maxCol = Math.max(-1, ...widths.keys());+ for (let col = 0; col <= maxCol; col += 1) {+ columnX.set(col, x);+ x += (widths.get(col) || 0) + grid.gapX;+ }+ let y = grid.origin[1];+ const maxRow = Math.max(-1, ...heights.keys());+ for (let row = 0; row <= maxRow; row += 1) {+ rowY.set(row, y);+ y += (heights.get(row) || 0) + grid.gapY;+ }++ return { columnX, rowY, widths, heights, totalWidth: x, totalHeight: y };+}++export function resolveEntityPos(entity, grid, bands) {+ if (Array.isArray(entity.pos) && entity.pos.length === 2) return entity.pos;+ if (!grid || !bands) return [NaN, NaN];+ if (!Number.isInteger(entity.row) || !Number.isInteger(entity.col)) return [NaN, NaN];+ const columnX = bands.columnX.get(entity.col);+ const rowY = bands.rowY.get(entity.row);+ if (!Number.isFinite(columnX) || !Number.isFinite(rowY)) return [NaN, NaN];+ // Centre each box in its column so the gaps on both sides stay equal; the+ // router reads those gaps as corridors.+ const width = resolvedEntityWidth(entity, grid);+ const columnWidth = bands.widths.get(entity.col) || width;+ return [columnX + (columnWidth - width) / 2, rowY];+}++export function validateErGridPlacement(er, grid, bands, problems) {+ const seen = new Map();+ for (const entity of er.entities ?? []) {+ const hasPos = Array.isArray(entity.pos) && entity.pos.length === 2;+ if (!hasPos && !grid) {+ problems.push(`Entity "${entity.id}" needs pos [x,y] or a grid layout with row/col.`);+ continue;+ }+ if (hasPos) continue;+ if (!Number.isInteger(entity.row) || !Number.isInteger(entity.col)) {+ problems.push(`Entity "${entity.id}" needs pos [x,y] or grid row/col when layout.mode is "grid".`);+ continue;+ }+ if (entity.row < 0 || entity.col < 0) {+ problems.push(`Entity "${entity.id}" row/col must be non-negative integers.`);+ continue;+ }+ const key = `${entity.row},${entity.col}`;+ if (seen.has(key)) {+ problems.push(`Entities "${seen.get(key)}" and "${entity.id}" share grid cell row ${entity.row} col ${entity.col}.`);+ } else {+ seen.set(key, entity.id);+ }+ const [x, y] = resolveEntityPos(entity, grid, bands);+ if (!Number.isFinite(x) || !Number.isFinite(y)) {+ problems.push(`Entity "${entity.id}" could not be placed from row ${entity.row} col ${entity.col}.`);+ }+ }+}diff --git a/archify/renderers/erd/render-erd.mjs b/archify/renderers/erd/render-erd.mjsnew file mode 100644index 00000000..707fef79--- /dev/null+++ b/archify/renderers/erd/render-erd.mjs@@ -0,0 +1,1138 @@+import path from 'node:path';+import { fileURLToPath } from 'node:url';+import { esc, renderDefinitions, renderSemanticSigil, textUnits } from '../shared/utils.mjs';+import {+ animateAttr,+ focusEdgeAttrs,+ focusNodeAttrs,+ focusNodeTitle,+ loadDiagram,+ svgAccessibleText,+ svgRootAttrs,+ writeDiagram,+} from '../shared/cli.mjs';+import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';+import {+ legendFootprint,+ measureLegend,+ relationshipLegendObstacles,+ resolveLegend,+ renderLegend as renderResolvedLegend,+} from '../shared/legend.mjs';+import { nodeTextFit, fittedNodeFontSize } from '../shared/text-fit.mjs';+import { translateMessage as i18nText } from '../shared/i18n.mjs';+import {+ DEFAULT_ER_GRID,+ bandedLayout,+ entityHeight,+ erGridLayout,+ resolveEntityPos,+ resolvedEntityWidth,+ validateErGridPlacement,+} from './grid.mjs';+import {+ asArray,+ arrowClassMap,+ cleanAmbiguousCorridorProblems,+ cleanCrossingProblems,+ cleanEndpointSideProblems,+ cleanFlowProblems,+ cleanLabelRouteClearanceProblems,+ cleanRouteRhythmProblems,+ componentFill,+ componentText,+ labelPoint,+ legacyDefaultFromSide,+ legacyDefaultToSide,+ rectsOverlap,+ roundedPath,+ routePointsValue,+ segmentIntersectsRect,+ suggestComponentSeparation,+ suggestLabelObstacleFix,+ variantAccent,+} from '../shared/geometry.mjs';+import { createRouter } from '../architecture/routing.mjs';+import { entityBox, connectionPath as relationshipPath } from '../shared/layout-report.mjs';++const __dirname = path.dirname(fileURLToPath(import.meta.url));+const layoutJsonMode = process.argv.includes('--layout-json');+const cliArgs = process.argv.filter((arg) => arg !== '--layout-json');+const { diagram: er, template, outPath, sourceEvidence } = loadDiagram({+ rendererDir: __dirname,+ diagramType: 'erd',+ defaultExample: 'orders.erd.json',+ argv: cliArgs,+});++const grid = erGridLayout(er);++const layout = {+ margin: 24,+ legendH: 34,+ padX: 12,+ keyWidth: 30,+ keyFont: 9,+ headerFont: 13,+ headerFontMinimum: 10,+ rowFont: 11,+ rowFontMinimum: 9,+ typeFont: 10.5,+ typeFontMinimum: 9,+ detailPreferred: 10,+ detailMinimum: 8,+ minRelationshipLength: 24,+};++const ENTITY_FILL = componentFill.database;+const ENTITY_ACCENT = componentText.database;+const KEY_ACCENT = { pk: 't-database', fk: 't-messagebus', uk: 't-muted' };++// ---- Measure entities from the banded grid -----------------------------------+// Header and row metrics live in the grid contract so the banded layout and the+// renderer can never disagree about a box's height.+const metrics = grid ?? DEFAULT_ER_GRID;++// Width resolution lives in the grid module so placement and measurement cannot+// disagree about an entity that omits `width`.+const entityWidth = (entity) => resolvedEntityWidth(entity, grid);++const measuredEntities = asArray(er.entities).map((entity) => {+ const attributes = asArray(entity.attributes);+ const width = entityWidth(entity);+ return {+ ...entity,+ attributes,+ width,+ height: entityHeight({ ...entity, attributes }, grid ?? DEFAULT_ER_GRID),+ };+});++const bands = grid ? bandedLayout(measuredEntities, grid) : null;++const entities = new Map(measuredEntities.map((entity) => {+ const [x, y] = resolveEntityPos(entity, grid, bands);+ return [entity.id, { ...entity, x, y, cx: x + entity.width / 2, cy: y + entity.height / 2 }];+}));++const relationships = asArray(er.relationships);++// ---- Domain bands ------------------------------------------------------------+// A `tag` names a domain, and a domain has to read as one block. The band is+// measured from the placed boxes of the entities that carry the tag, so it+// follows the authored grid instead of introducing a second layout pass. Only a+// run that is genuinely contiguous (one row with adjacent columns, or one column+// with adjacent rows) earns a band: a tag whose members are spread across the+// canvas is a grouping the author did not actually make, and drawing a band+// around the gap would claim a structure the table placement contradicts. A+// single-member or scattered tag still shows in its table's header note.+const DOMAIN_PAD_X = 12;+const DOMAIN_PAD_TOP = 18;+const DOMAIN_PAD_BOTTOM = 8;++function gridRunIsContiguous(members) {+ const cols = [...new Set(members.map((entity) => entity.col))].sort((a, b) => a - b);+ const rows = [...new Set(members.map((entity) => entity.row))].sort((a, b) => a - b);+ const adjacent = (values) => values.every((value, index) => index === 0 || value === values[index - 1] + 1);+ if (rows.length === 1) return adjacent(cols);+ if (cols.length === 1) return adjacent(rows);+ return false;+}++const domainGroups = (() => {+ const byTag = new Map();+ for (const entity of entities.values()) {+ if (!entity.tag) continue;+ if (!byTag.has(entity.tag)) byTag.set(entity.tag, []);+ byTag.get(entity.tag).push(entity);+ }+ const groups = [];+ for (const [tag, members] of byTag) {+ if (members.length < 2) continue;+ if (!members.every((entity) => Number.isInteger(entity.row) && Number.isInteger(entity.col))) continue;+ if (!gridRunIsContiguous(members)) continue;+ groups.push({ tag, members });+ }+ return groups;+})();++const bandedEntityIds = new Set(domainGroups.flatMap((group) => group.members.map((entity) => entity.id)));++function renderDomainBands() {+ if (!domainGroups.length) return '';+ return domainGroups.map(({ tag, members }) => {+ const minX = Math.min(...members.map((entity) => entity.x));+ const minY = Math.min(...members.map((entity) => entity.y));+ const maxX = Math.max(...members.map((entity) => entity.x + entity.width));+ const maxY = Math.max(...members.map((entity) => entity.y + entity.height));+ const x = minX - DOMAIN_PAD_X;+ const y = minY - DOMAIN_PAD_TOP;+ const width = maxX - minX + DOMAIN_PAD_X * 2;+ const height = maxY - minY + DOMAIN_PAD_TOP + DOMAIN_PAD_BOTTOM;+ return ` <g data-domain-band="${esc(tag)}">+ <rect x="${x}" y="${y}" width="${width}" height="${height}" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="${x + 10}" y="${y + 13}" class="t-muted" font-size="9" font-weight="700">${esc(tag)}</text>+ </g>`;+ }).join('\n');+}++const entitySteps = new Map();+for (const [index, relationship] of relationships.entries()) {+ if (!entitySteps.has(relationship.from)) entitySteps.set(relationship.from, index);+ if (!entitySteps.has(relationship.to)) entitySteps.set(relationship.to, index + 1);+}+for (const [index, entity] of asArray(er.entities).entries()) {+ if (!entitySteps.has(entity.id)) entitySteps.set(entity.id, index);+}++// ---- Cardinality -------------------------------------------------------------+// A relationship reads `from` -> `to` and both ends declare their own maximum.+// The schema requires each one, so an unstated maximum fails validation before+// rendering instead of reading as a fact the author never asserted; this+// fallback only keeps an already-invalid diagram from crashing the renderer.+function cardinalityOf(relationship, endpoint) {+ const value = endpoint === 'from' ? relationship.fromCardinality : relationship.toCardinality;+ if (value === 'one' || value === 'many') return value;+ return endpoint === 'from' ? 'many' : 'one';+}++function optionalOf(relationship, endpoint) {+ return (endpoint === 'from' ? relationship.fromOptional : relationship.toOptional) === true;+}++function markerStyleOf(relationship) {+ return (relationship.variant ?? (relationship.identifying === false ? 'dashed' : 'default'));+}++function cardinalityMarkerId(relationship, endpoint) {+ const cardinality = cardinalityOf(relationship, endpoint);+ const optional = optionalOf(relationship, endpoint) ? '-optional' : '';+ return `er-${cardinality}${optional}-${endpoint === 'from' ? 'start' : 'end'}`;+}++// Crow's foot notation: the foot opens toward the entity whose cardinality it+// describes. The toes touch that entity at the path endpoint and the apex sits+// one foot back along the relationship, so the glyph reads as "many rows here"+// rather than as an arrowhead pointing away from the table it describes.+// `start` markers are mirrored because an oriented marker's +x axis points+// along the path direction, which leaves the from-endpoint heading outward.+// The glyph is drawn in the muted text ink rather than the shared arrow token:+// at the light theme's arrow colour a crow's foot over a table fill sits near+// 2:1 contrast and reads as a smudge.+//+// The optionality ring sits past the apex rather than inside the toes. Both+// facts are about the same end, so a ring centred on the foot would be+// bisected by its middle toe and read as one muddy shape instead of+// "zero or many".+const MARKER_GLYPH_WIDTH = 24;+const MARKER_TOE_X = 22;+const MARKER_APEX_X = 8;+const MARKER_CIRCLE_X = 3.5;+// The glyph spans y 1..15, so two ports closer than this draw overlapping+// symbols and the side reads as one lattice instead of N cardinalities.+const MARKER_HEIGHT = 14;+function cardinalityMarkerMarkup(id, { cardinality, optional, mirror }) {+ const flip = (x) => (mirror ? MARKER_TOE_X - x : x);+ const parts = [];+ if (cardinality === 'many') {+ parts.push(`<path d="M ${flip(MARKER_APEX_X)} 8 L ${flip(MARKER_TOE_X)} 1 M ${flip(MARKER_APEX_X)} 8 L ${flip(MARKER_TOE_X)} 8 M ${flip(MARKER_APEX_X)} 8 L ${flip(MARKER_TOE_X)} 15"/>`);+ } else {+ parts.push(`<path d="M ${flip(17)} 1 L ${flip(17)} 15"/>`);+ }+ if (optional) {+ // The ring sits on the relationship line, so the line has to be masked+ // under it: a stroked circle alone leaves the dashes running through the+ // middle and the symbol reads as a crossed-out dot.+ parts.push(`<circle cx="${flip(MARKER_CIRCLE_X)}" cy="8" r="2.6" class="c-mask"/>`);+ parts.push(`<circle cx="${flip(MARKER_CIRCLE_X)}" cy="8" r="2.6"/>`);+ }+ const refX = mirror ? 0 : MARKER_TOE_X;+ return ` <marker id="${esc(id)}" markerWidth="${MARKER_GLYPH_WIDTH}" markerHeight="18" refX="${refX}" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ ${parts.join('\n ')}+ </marker>`;+}++function renderCardinalityDefs() {+ const used = new Set();+ for (const relationship of relationships) {+ used.add(`${cardinalityOf(relationship, 'from')}|${optionalOf(relationship, 'from')}|start`);+ used.add(`${cardinalityOf(relationship, 'to')}|${optionalOf(relationship, 'to')}|end`);+ }+ const ids = [];+ for (const cardinality of ['one', 'many']) {+ for (const optional of [false, true]) {+ for (const end of ['start', 'end']) {+ ids.push({ id: `er-${cardinality}${optional ? '-optional' : ''}-${end}`, cardinality, optional, mirror: end === 'start', key: `${cardinality}|${optional}|${end}` });+ }+ }+ }+ const markup = ids.filter((entry) => used.has(entry.key))+ .map((entry) => cardinalityMarkerMarkup(entry.id, entry));+ if (!markup.length) return '';+ return `\n <!-- Cardinality symbols -->\n${markup.join('\n')}`;+}++// ---- Legend ------------------------------------------------------------------+const LEGEND_CATALOG = ['pk', 'fk', 'uk', 'one', 'many', 'optional']+ .map((kind) => ({ kind, label: i18nText(er.meta.locale, `legend.erd.${kind}`), swatchWidth: 18 }));++const presentKinds = new Set();+for (const entity of entities.values()) {+ for (const attribute of entity.attributes) {+ if (attribute.key) presentKinds.add(attribute.key);+ }+}+for (const relationship of relationships) {+ presentKinds.add(cardinalityOf(relationship, 'from'));+ presentKinds.add(cardinalityOf(relationship, 'to'));+ if (optionalOf(relationship, 'from') || optionalOf(relationship, 'to')) presentKinds.add('optional');+}+const erLegendEntries = resolveLegend(er.meta?.legend, LEGEND_CATALOG, presentKinds);++// The reserved legend band: its baseline sits this far above the canvas bottom,+// and its labels are set at this size. Both are part of the band's footprint.+const LEGEND_BASELINE_GAP = 16;+const LEGEND_FONT_SIZE = 10;++// One layout object for the reserved legend band, shared by the sizing probe+// and the render call so the drawing area is never sized against a different+// strip than the one the legend is placed into.+function legendLayout(width, height, { obstacles = [], unfit = 'error' } = {}) {+ const contentBottom = Math.max(0, ...[...entities.values()].map((entity) => entity.y + entity.height));+ return {+ x: layout.margin,+ baselineY: height - LEGEND_BASELINE_GAP,+ width: width - layout.margin * 2,+ fontSize: LEGEND_FONT_SIZE,+ minTitleY: contentBottom + 8,+ obstacles,+ unfit,+ diagramType: 'erd',+ };+}++// The default legend is part of the generated content, so the drawing area is+// sized to hold it: a reserved strip that is a few units short grows the+// canvas instead of dropping the key. An authored `meta.viewBox` is a fixed+// area, and there the same measurement raises the capacity diagnostic.+function autoViewBox() {+ const maxX = Math.max(0, ...[...entities.values()].map((entity) => entity.x + entity.width));+ const maxY = Math.max(0, ...[...entities.values()].map((entity) => entity.y + entity.height));+ let width = Math.ceil(maxX + layout.margin);+ let footprint = legendFootprint(erLegendEntries, { width: Math.max(1, width - layout.margin * 2) });+ if (footprint.minWidth > width - layout.margin * 2) {+ width = Math.ceil(footprint.minWidth + layout.margin * 2);+ footprint = legendFootprint(erLegendEntries, { width: width - layout.margin * 2 });+ }+ let height = Math.ceil(maxY + layout.margin + layout.legendH + footprint.extraHeight);+ // The shared measurement decides whether the strip fits; each attempt adds a+ // whole band, so the loop ends after at most a few rounds.+ for (let attempt = 0; attempt < 4; attempt += 1) {+ if (measureLegend(erLegendEntries, legendLayout(width, height, { unfit: 'hide' }))) break;+ height += layout.legendH;+ }+ return [width, height];+}++// The legends are measured before routing exists (this runs at module load), so+// the probe covers the sizing failure modes — label width and band height. A+// route or label that later collides with the placed band is a real capacity+// failure and keeps its diagnostic.+const viewBox = Array.isArray(er.meta?.viewBox) ? er.meta.viewBox : autoViewBox();++// ---- Routing -----------------------------------------------------------------+// Relationships that would share one corridor get a deterministic lane each, so+// two routes never sit on the identical channel line. The lane is only a+// preference: a lane that breaks the endpoint contract or hits an entity is+// skipped and the shared candidate families run unchanged.+const LANE_STEP = 12;++// A relationship label is semantic data and the smallest text the diagram+// carries: at the shared 8-unit default it projects to ~7.0px on a tall canvas,+// under the 7.5px the canvas declares.+const RELATIONSHIP_LABEL_FONT = 9;+// The label's advance is measured from that size, not from a literal: the mask+// the renderer draws, the rect the layout checks measure, and the obstacle the+// legend measures must be the same rectangle, or a label can sit on a table edge+// with no diagnostic (the checks would be measuring a narrower box than the ink).+const RELATIONSHIP_LABEL_ADVANCE = 0.62;+function relationshipLabelBox(relationship) {+ const [lx, ly] = erLabelPoint(relationship);+ const width = Math.max(30, textUnits(relationship.label) * RELATIONSHIP_LABEL_FONT * RELATIONSHIP_LABEL_ADVANCE + 10);+ return { x: lx - width / 2, y: ly - 10, width, height: 14 };+}++// A cardinality glyph is 14 units tall, so two relationships leaving the same+// table side must sit at least this far apart: the shared 14px spread put them+// close enough to read as one shape. The trunk bridge below is derived from it.+const ERD_PORT_SPACING = 24;++const bandKey = (entity) => (+ Number.isInteger(entity.row) && Number.isInteger(entity.col)+ ? `i${entity.row},${entity.col}`+ : `p${Math.round(entity.x || 0)},${Math.round(entity.y || 0)}`+);++const { ports, pathFor, inferredSides, connectionEndpointSide } = createRouter(entities, relationships, {+ // Horizontal-first, like every other non-architecture type: a relationship+ // leaves and enters on the left/right when the tables sit side by side and+ // only falls back to a top/bottom port when they share a column. The shared+ // router defaults to architecture's dominant-axis inference, which would flip+ // the side of a relationship whose targets happen to sit further apart+ // vertically, splitting one fan-in into two groups nobody authored.+ sideFor: (relationship, endpoint) => {+ const from = entities.get(relationship.from);+ const to = entities.get(relationship.to);+ if (!from || !to) return undefined;+ return endpoint === 'source' ? legacyDefaultFromSide(from, to) : legacyDefaultToSide(from, to);+ },+ preferredCandidates: (context) => [...trunkCandidates(context), ...laneCandidates(context)],+ // A bundled trunk is drawn as one bus path and the trunk stretch is removed+ // from each branch's drawn route, so the router's rhythm floors — which+ // describe a route drawn exactly as planned — do not describe what this+ // renderer draws. The composition gate still measures the drawn result.+ compositionFloors: false,+ // A cardinality glyph is 14 units tall, so ports must clear it (see+ // ERD_PORT_SPACING, which the trunk bridge is derived from).+ maxPortSpacing: ERD_PORT_SPACING,+});++function corridorKey(relationship) {+ const from = entities.get(relationship.from);+ const to = entities.get(relationship.to);+ if (!from || !to) return null;+ const { fromSide, toSide } = inferredSides(relationship);+ const horizontalPorts = (fromSide === 'left' || fromSide === 'right');+ const verticalPorts = (fromSide === 'top' || fromSide === 'bottom');+ if (horizontalPorts === verticalPorts) return null;+ const ordered = horizontalPorts+ ? [from, to].sort((left, right) => left.cx - right.cx)+ : [from, to].sort((left, right) => left.cy - right.cy);+ return `${horizontalPorts ? 'h' : 'v'}:${bandKey(ordered[0])}|${bandKey(ordered[1])}`;+}++const laneOffsets = new Map();+{+ const groups = new Map();+ for (const relationship of relationships) {+ const key = corridorKey(relationship);+ if (!key) continue;+ const list = groups.get(key) || [];+ list.push(relationship);+ groups.set(key, list);+ }+ for (const list of groups.values()) {+ if (list.length < 2) continue;+ list.sort((left, right) => {+ const leftKey = `${left.from}\u0000${left.to}\u0000${left.id || ''}`;+ const rightKey = `${right.from}\u0000${right.to}\u0000${right.id || ''}`;+ return leftKey < rightKey ? -1 : leftKey > rightKey ? 1 : 0;+ });+ for (const [index, relationship] of list.entries()) {+ laneOffsets.set(relationship, index - (list.length - 1) / 2);+ }+ }+}++// ---- Bundled fan-in / fan-out trunks ------------------------------------------+// Relationships that share one entity side read better as a single trunk with+// short branches than as a sheaf of parallel lines (bus-style fan-in). A trunk+// group shares the resolved side, the marker style, and automatic routing;+// anything authored (route/via/labelAt) keeps its own line. The trunk is only+// a preferred candidate: a route that would break the endpoint contract or+// clip an entity falls back to the ordinary families and stays unbundled.+const TRUNK_OFFSETS = [16, 22, 12, 28];+const TRUNK_SNAP = LANE_STEP;+// One port step of uncovered bus is a bus with a gap in it: the branches were+// spread by ERD_PORT_SPACING, so the gap they leave is exactly that wide. Two+// steps means the runs belong to different groups and stay separate lines.+const TRUNK_BRIDGE = ERD_PORT_SPACING + 8;+const TRUNK_CAP = 10;+const TRUNK_LEG = 12;++const isHorizontalSide = (side) => (side === 'left' || side === 'right');++function relationshipAutoRouted(relationship) {+ return renderableRelationship(relationship)+ && !relationship.via+ && (!relationship.route || relationship.route === 'auto')+ && relationship.channelX === undefined+ && relationship.channelY === undefined+ && !relationship.labelAt;+}++function sideAnchor(entity, side) {+ if (side === 'left') return [entity.x, entity.cy];+ if (side === 'right') return [entity.x + entity.width, entity.cy];+ if (side === 'top') return [entity.cx, entity.y];+ return [entity.cx, entity.y + entity.height];+}++const trunkGroups = [];+const trunkAssignments = new Map();+{+ const fanIn = new Map();+ const fanOut = new Map();+ const resolvedSides = new Map();+ const push = (map, key, entry) => {+ const list = map.get(key) || [];+ list.push(entry);+ map.set(key, list);+ };+ for (const [index, relationship] of relationships.entries()) {+ if (!relationshipAutoRouted(relationship)) continue;+ const { fromSide, toSide } = inferredSides(relationship);+ resolvedSides.set(relationship, { fromSide, toSide });+ const styleKey = markerStyleOf(relationship);+ push(fanIn, `${relationship.to}\u0000${toSide}\u0000${styleKey}`, { index, relationship });+ push(fanOut, `${relationship.from}\u0000${fromSide}\u0000${styleKey}`, { index, relationship });+ }+ const taken = new Set();+ const buildGroups = (map, role) => {+ const grouped = [...map.values()]+ .filter((list) => list.length >= 2)+ .sort((left, right) => left[0].index - right[0].index);+ for (const list of grouped) {+ const members = list.filter((entry) => !taken.has(entry.relationship));+ if (members.length < 2) continue;+ const head = members[0].relationship;+ const sides = resolvedSides.get(head);+ const group = {+ role,+ entity: entities.get(role === 'in' ? head.to : head.from),+ side: role === 'in' ? sides.toSide : sides.fromSide,+ styleKey: markerStyleOf(head),+ members: members.map((entry) => entry.relationship),+ };+ for (const entry of members) {+ taken.add(entry.relationship);+ trunkAssignments.set(entry.relationship, { group });+ }+ trunkGroups.push(group);+ }+ };+ buildGroups(fanIn, 'in');+ buildGroups(fanOut, 'out');++ // One trunk coordinate per group, just outside the shared side. A coordinate+ // close to an already chosen trunk snaps onto it, so fan-in and fan-out+ // groups sharing one channel read as a single bus with drops on both sides.+ const chosenLines = [];+ for (const group of trunkGroups) {+ group.axis = isHorizontalSide(group.side) ? 0 : 1;+ const portAxis = group.axis === 0 ? 1 : 0;+ const coordinates = group.members.map((relationship) => {+ const port = ports.get(relationship)?.[group.role === 'in' ? 'to' : 'from'];+ return (port || sideAnchor(group.entity, group.side))[portAxis];+ });+ const low = Math.min(...coordinates) - TRUNK_CAP;+ const high = Math.max(...coordinates) + TRUNK_CAP;+ const clearsSpan = (coordinate) => {+ const segment = group.axis === 0+ ? { start: [coordinate, low], end: [coordinate, high] }+ : { start: [low, coordinate], end: [high, coordinate] };+ return [...entities.values()].every((entity) => !segmentIntersectsRect(segment, entity));+ };+ const base = isHorizontalSide(group.side)+ ? (group.side === 'left' ? group.entity.x : group.entity.x + group.entity.width)+ : (group.side === 'top' ? group.entity.y : group.entity.y + group.entity.height);+ const outward = group.side === 'left' || group.side === 'top' ? -1 : 1;+ for (const offset of TRUNK_OFFSETS) {+ const candidate = base + outward * offset;+ if (!clearsSpan(candidate)) continue;+ const near = chosenLines.find((line) => line.axis === group.axis+ && line.styleKey === group.styleKey+ && Math.abs(line.coordinate - candidate) < TRUNK_SNAP);+ // A snapped coordinate serves another group's span; it must clear this+ // one too, otherwise the next offset is tried.+ if (near && !clearsSpan(near.coordinate)) continue;+ // A differently styled trunk never shares a coordinate: the bus would+ // have to render in one group's dash language, so the next offset is+ // tried until the two lines are a lane apart.+ const clashing = chosenLines.some((line) => line.axis === group.axis+ && line.styleKey !== group.styleKey+ && Math.abs(line.coordinate - candidate) < TRUNK_SNAP);+ if (clashing) continue;+ group.coordinate = near ? near.coordinate : candidate;+ break;+ }+ if (group.coordinate === undefined) {+ for (const relationship of group.members) trunkAssignments.delete(relationship);+ continue;+ }+ chosenLines.push({ axis: group.axis, coordinate: group.coordinate, styleKey: group.styleKey });+ }+}++function trunkCandidates(context) {+ const candidate = trunkCandidateShape(context);+ return candidate ? [candidate] : [];+}++function trunkCandidateShape({ conn, start, end, fromSide, toSide }) {+ const assignment = trunkAssignments.get(conn);+ if (!assignment) return null;+ const { axis, coordinate } = assignment.group;+ const sideOffset = (side) => (side === 'right' || side === 'bottom' ? 1 : -1);+ if (axis === 0) {+ const startHorizontal = isHorizontalSide(fromSide);+ const endHorizontal = isHorizontalSide(toSide);+ if (startHorizontal && endHorizontal) return [[coordinate, start[1]], [coordinate, end[1]]];+ if (startHorizontal) {+ const approachY = end[1] + sideOffset(toSide) * TRUNK_LEG;+ return [[coordinate, start[1]], [coordinate, approachY], [end[0], approachY]];+ }+ if (endHorizontal) {+ const exitY = start[1] + sideOffset(fromSide) * TRUNK_LEG;+ return [[start[0], exitY], [coordinate, exitY], [coordinate, end[1]]];+ }+ return null;+ }+ const startHorizontal = isHorizontalSide(fromSide);+ const endHorizontal = isHorizontalSide(toSide);+ if (!startHorizontal && !endHorizontal) return [[start[0], coordinate], [end[0], coordinate]];+ if (!startHorizontal) {+ const approachX = end[0] + sideOffset(toSide) * TRUNK_LEG;+ return [[start[0], coordinate], [approachX, coordinate], [approachX, end[1]]];+ }+ if (!endHorizontal) {+ const exitX = start[0] + sideOffset(fromSide) * TRUNK_LEG;+ return [[exitX, start[1]], [exitX, coordinate], [end[0], coordinate]];+ }+ return null;+}++// The rendered `d` skips each trunk stretch — one shared trunk path carries it+// — while the logical points keep it, so every gate, label, and legend check+// still reasons about the full route.+const trunkRunCache = new Map();+function relationshipTrunkRuns(relationship) {+ const assignment = trunkAssignments.get(relationship);+ if (!assignment) return [];+ if (trunkRunCache.has(relationship)) return trunkRunCache.get(relationship);+ const { axis, coordinate } = assignment.group;+ const points = pathFor(relationship).points;+ const runs = [];+ for (let index = 0; index < points.length - 1; index += 1) {+ const [a, b] = [points[index], points[index + 1]];+ if (Math.abs(a[axis] - coordinate) > 0.5 || Math.abs(b[axis] - coordinate) > 0.5) continue;+ const low = Math.min(a[1 - axis], b[1 - axis]);+ const high = Math.max(a[1 - axis], b[1 - axis]);+ if (high - low < 1) continue;+ const last = runs[runs.length - 1];+ if (last && last.endIndex === index) {+ last.endIndex = index + 1;+ last.high = high;+ } else {+ runs.push({ startIndex: index, endIndex: index + 1, low, high });+ }+ }+ trunkRunCache.set(relationship, runs);+ return runs;+}++function bundledRelationshipD(routed, runs) {+ if (!runs.length) return routed.d;+ const inRun = new Set();+ for (const run of runs) {+ for (let index = run.startIndex; index < run.endIndex; index += 1) inRun.add(index);+ }+ const pieces = [];+ let current = [routed.points[0]];+ for (let index = 0; index < routed.points.length - 1; index += 1) {+ if (inRun.has(index)) {+ pieces.push(current);+ current = null;+ continue;+ }+ if (current === null) current = [routed.points[index]];+ current.push(routed.points[index + 1]);+ }+ if (current) pieces.push(current);+ return pieces+ .filter((piece) => piece.length >= 2)+ .map((piece) => roundedPath(piece, 8))+ .join(' ');+}++function bundledTrunkPaths() {+ const clusters = new Map();+ for (const relationship of relationships) {+ const runs = relationshipTrunkRuns(relationship);+ if (!runs.length) continue;+ const { axis, coordinate } = trunkAssignments.get(relationship).group;+ const styleKey = markerStyleOf(relationship);+ // Style is part of the cluster key so differently styled groups can never+ // share one trunk path even if their coordinates ever coincide.+ const key = `${axis}:${coordinate}:${styleKey}`;+ const list = clusters.get(key) || [];+ for (const run of runs) {+ list.push({ low: run.low, high: run.high, styleKey });+ }+ clusters.set(key, list);+ }+ const paths = [];+ for (const [key, runs] of clusters) {+ const [axis, coordinate] = key.split(':').slice(0, 2).map(Number);+ runs.sort((left, right) => left.low - right.low);+ const merged = [];+ for (const run of runs) {+ const last = merged[merged.length - 1];+ if (last && run.low <= last.high + 0.5) last.high = Math.max(last.high, run.high);+ else merged.push({ ...run });+ }+ // Branches that interleave leave short uncovered stretches on an otherwise+ // continuous bus. Bridge them when the bridged line stays clear of every+ // entity; anything wider stays separate so no phantom corridor is drawn.+ const segments = [];+ for (const segment of merged) {+ const last = segments[segments.length - 1];+ const gap = last ? segment.low - last.high : Infinity;+ if (last && gap > 0.5 && gap <= TRUNK_BRIDGE) {+ const probe = axis === 0+ ? { start: [coordinate, last.high], end: [coordinate, segment.low] }+ : { start: [last.high, coordinate], end: [segment.low, coordinate] };+ if (![...entities.values()].some((entity) => segmentIntersectsRect(probe, entity))) {+ last.high = segment.high;+ continue;+ }+ }+ segments.push({ ...segment });+ }+ for (const segment of segments) {+ const [cls] = arrowClassMap[segment.styleKey] || arrowClassMap.default;+ const points = axis === 0+ ? [[coordinate, segment.low], [coordinate, segment.high]]+ : [[segment.low, coordinate], [segment.high, coordinate]];+ paths.push(` <path data-er-trunk="" data-composition-points="${routePointsValue(points)}" d="${roundedPath(points, 8)}" class="${cls}" stroke-width="1.5"/>`);+ }+ }+ return paths.join('\n');+}++// Bundled labels default to the source-side stub so they never sit on the+// shared trunk, where they would read as annotating every branch at once.+function erLabelPoint(relationship) {+ const points = pathFor(relationship).points;+ if (!trunkAssignments.get(relationship)) return labelPoint(relationship, points);+ return labelPoint({ ...relationship, labelSegment: relationship.labelSegment ?? 0 }, points);+}++function channelFallback({ conn, start, end, fromSide, toSide }) {+ const horizontalPorts = fromSide === 'left' || fromSide === 'right';+ const verticalPorts = fromSide === 'top' || fromSide === 'bottom';+ if (horizontalPorts === verticalPorts) return null;+ const axis = horizontalPorts ? 0 : 1;+ const toPoints = (channel) => (horizontalPorts+ ? [[channel, start[1]], [channel, end[1]]]+ : [[start[0], channel], [end[0], channel]]);+ return { axis, toPoints, low: Math.min(start[axis], end[axis]), high: Math.max(start[axis], end[axis]) };+}++function laneCandidates(context) {+ const lane = laneOffsets.get(context.conn);+ if (lane === undefined) return [];+ const channel = channelFallback(context);+ if (!channel) return [];+ const base = (context.start[channel.axis] + context.end[channel.axis]) / 2;+ return [channel.toPoints(base + lane * LANE_STEP)];+}++// ---- Validation --------------------------------------------------------------+function renderableRelationship(relationship) {+ return entities.has(relationship.from) && entities.has(relationship.to);+}++function rowTextWidths(attribute) {+ const name = textUnits(attribute.name) * nodeTextFit.widthFactor;+ const type = attribute.type ? textUnits(attribute.type) * nodeTextFit.widthFactor : 0;+ return { name, type };+}++function validateEr() {+ const problems = [];+ validateErGridPlacement(er, grid, bands, problems);++ const seenEntityIds = new Set();+ for (const entity of asArray(er.entities)) {+ if (seenEntityIds.has(entity.id)) problems.push(`Entity ids must be unique; "${entity.id}" is declared twice.`);+ seenEntityIds.add(entity.id);++ if (!Number.isFinite(entity.width) && entity.width !== undefined) {+ problems.push(`Entity "${entity.id}" width must be a finite number.`);+ }+ const seenColumns = new Set();+ for (const [attributeIndex, attribute] of asArray(entity.attributes).entries()) {+ if (seenColumns.has(attribute.name)) {+ problems.push(`Entity "${entity.id}" declares attribute "${attribute.name}" twice.`);+ }+ seenColumns.add(attribute.name);+ const { name: nameUnits, type: typeUnits } = rowTextWidths(attribute);+ // entity.width is optional; validateEr sees the authored object, so the+ // overflow check must use the resolved width or an omitted width turns the+ // available space into NaN and silently skips the diagnostic.+ const available = entityWidth(entity) - layout.padX * 2 - layout.keyWidth;+ const needed = nameUnits * layout.rowFont + (typeUnits ? typeUnits * layout.typeFont + 8 : 0);+ if (needed > available) {+ problems.push(+ `Entity "${entity.id}" attribute ${attributeIndex} "${attribute.name}" needs ${Math.ceil(needed)}px of text but only ${Math.floor(available)}px is available — widen the entity, shorten the attribute name, or drop the type.`,+ );+ }+ }+ }++ for (const entity of entities.values()) {+ for (const other of entities.values()) {+ if (entity.id >= other.id) continue;+ if (!rectsOverlap(entity, other, 0)) continue;+ problems.push(`Entity "${entity.id}" overlaps entity "${other.id}".\n${suggestComponentSeparation(entity, other)}`);+ }+ }++ for (const [index, relationship] of relationships.entries()) {+ const id = relationship.id ? ` id "${relationship.id}"` : '';+ if (!entities.has(relationship.from)) {+ problems.push(`Relationship ${index}${id} references unknown source entity "${relationship.from}".`);+ continue;+ }+ if (!entities.has(relationship.to)) {+ problems.push(`Relationship ${index}${id} references unknown target entity "${relationship.to}".`);+ continue;+ }+ if (relationship.from === relationship.to) {+ problems.push(`Relationship ${index}${id} connects entity "${relationship.from}" to itself — draw it between two entities or describe the self-reference in a card.`);+ continue;+ }+ const routed = pathFor(relationship);+ const [start, end] = [routed.points[0], routed.points[routed.points.length - 1]];+ const distance = Math.hypot(end[0] - start[0], end[1] - start[1]);+ if (distance < layout.minRelationshipLength) {+ problems.push(`Relationship ${index}${id} "${relationship.from}" -> "${relationship.to}" is too short (${Math.round(distance)}px; minimum ${layout.minRelationshipLength}px) — place the entities farther apart.`);+ }+ }++ for (const [index, entity] of asArray(er.entities).entries()) {+ for (const [attributeIndex, attribute] of asArray(entity.attributes).entries()) {+ if (typeof attribute.references !== 'string') continue;+ const [targetId, targetColumn] = attribute.references.split('.');+ const target = entities.get(targetId);+ if (!target) {+ problems.push(`Entity "${entity.id}" attribute ${attributeIndex} "${attribute.name}" references unknown entity "${targetId}" in "${attribute.references}".`);+ continue;+ }+ if (!asArray(target.attributes).some((candidate) => candidate.name === targetColumn)) {+ problems.push(`Entity "${entity.id}" attribute ${attributeIndex} "${attribute.name}" references unknown attribute "${attribute.references}" — "${targetId}" has no attribute "${targetColumn}".`);+ }+ }+ }++ // A busy fan-in can leave less room than a glyph is tall. The marker spread+ // is a cap, not a floor: `automaticPortSpread` spaces a side by+ // `min(maxSpacing, (extent - 2 x gutter) / (n - 1))`, so a short table with+ // several relationships draws overlapping feet and bars. The gate cannot see+ // that (the routes are legal), so the renderer names it here.+ const portSpacingDetails = [];+ for (const [entityId, entity] of entities) {+ const sides = new Map();+ for (const relationship of relationships) {+ if (!relationshipAutoRouted(relationship)) continue;+ const { fromSide, toSide } = inferredSides(relationship);+ if (relationship.from === entityId) sides.set(fromSide, (sides.get(fromSide) || 0) + 1);+ if (relationship.to === entityId) sides.set(toSide, (sides.get(toSide) || 0) + 1);+ }+ for (const [side, count] of sides) {+ if (count < 2) continue;+ const extent = side === 'left' || side === 'right' ? entity.height : entity.width;+ const spacing = Math.min(ERD_PORT_SPACING, Math.max(0, extent - 32) / (count - 1));+ if (spacing >= MARKER_HEIGHT) continue;+ const message = `Entity "${entityId}" shares its ${side} side with ${count} relationship ends: their ports would sit ${Math.round(spacing)}px apart, under the ${MARKER_HEIGHT}px a cardinality glyph is tall, so the symbols overlap. Give the table more rows so that side is taller, spread the relationships across sides with room, or reduce the fan-in.`;+ problems.push(message);+ portSpacingDetails.push({+ code: 'layout/marker-capacity',+ severity: 'error',+ message,+ subject: { diagramType: 'erd', path: `/entities/${entityId}` },+ evidence: { entity: entityId, side, relationshipEnds: count, spacingPx: Math.round(spacing), markerHeightPx: MARKER_HEIGHT, sideExtentPx: extent },+ supportedFixes: [+ `add fields to "${entityId}" so its ${side} side is taller`,+ 'spread the relationships across the sides that have room',+ 'reduce the fan-in by modelling the shared parent instead of pointing every child at this table',+ ],+ });+ }+ }++ problems.push(...cleanEndpointSideProblems({+ relations: relationships,+ endpointIds: new Set(entities.keys()),+ pathFor,+ diagramType: 'erd',+ relationCollection: 'relationships',+ fromSideFor: (relationship) => connectionEndpointSide(relationship, 'source'),+ toSideFor: (relationship) => connectionEndpointSide(relationship, 'target'),+ routeHint: 'keep automatic routing so the renderer can use a side-aware bridge, or set truthful fromSide/toSide',+ }));+ problems.push(...cleanFlowProblems({+ relations: relationships,+ obstacles: entities.values(),+ pathFor,+ diagramType: 'erd',+ relationCollection: 'relationships',+ obstacleKind: 'entity',+ routeHint: 'adjust fromSide/toSide, set route/via, or move the entity',+ }));+ problems.push(...cleanCrossingProblems({+ relations: relationships,+ endpointIds: new Set(entities.keys()),+ pathFor,+ diagramType: 'erd',+ relationCollection: 'relationships',+ profile: er.meta?.quality_profile,+ routeHint: 'move the entities so unrelated relationships use separate corridors',+ }));+ problems.push(...cleanAmbiguousCorridorProblems({+ relations: relationships,+ endpointIds: new Set(entities.keys()),+ pathFor,+ diagramType: 'erd',+ relationCollection: 'relationships',+ profile: er.meta?.quality_profile,+ routeHint: 'give the relationships different fromSide/toSide targets, or move an entity so their corridors differ',+ }));+ problems.push(...cleanRouteRhythmProblems({+ relations: relationships,+ endpointIds: new Set(entities.keys()),+ pathFor,+ diagramType: 'erd',+ relationCollection: 'relationships',+ profile: er.meta?.quality_profile,+ routeHint: 'widen the gap between bands so every turn has room to read',+ }));++ const labelRects = [];+ for (const [index, relationship] of relationships.entries()) {+ if (!relationship.label || !renderableRelationship(relationship)) continue;+ const [lx, ly] = erLabelPoint(relationship);+ labelRects.push({+ relation: relationship,+ relationIndex: index,+ label: relationship.label,+ ...relationshipLabelBox(relationship),+ lx,+ ly,+ });+ }+ for (const rect of labelRects) {+ for (const entity of entities.values()) {+ if (!rectsOverlap(rect, entity, -2)) continue;+ problems.push(`Label "${rect.label}" overlaps entity "${entity.id}" — adjust labelDx/labelDy/labelSegment or set labelAt.\n${suggestLabelObstacleFix(rect, rect.lx, rect.ly, entity, 'entity')}`);+ }+ }+ problems.push(...cleanLabelRouteClearanceProblems({+ relations: relationships,+ labels: labelRects,+ endpointIds: new Set(entities.keys()),+ pathFor,+ diagramType: 'erd',+ relationCollection: 'relationships',+ profile: er.meta?.quality_profile,+ }));++ if (problems.length) {+ throwDiagnosticProblems('Entity-relationship layout validation failed', problems, {+ code: 'layout/constraint',+ subject: { diagramType: 'erd' },+ diagnostics: portSpacingDetails,+ });+ }+}++function buildLayoutReport() {+ return {+ diagram_type: 'erd',+ viewBox,+ layout,+ entities: [...entities.values()].map(entityBox),+ relationships: relationships+ .filter(renderableRelationship)+ .map((relationship) => ({+ ...relationshipPath(relationship, pathFor(relationship), relationship.labelAt),+ fromCardinality: cardinalityOf(relationship, 'from'),+ toCardinality: cardinalityOf(relationship, 'to'),+ })),+ };+}++// ---- Rendering ---------------------------------------------------------------+function renderEntityColumnRows(entity) {+ return entity.attributes.map((attribute, index) => {+ const rowTop = entity.y + metrics.headerH + index * metrics.rowH;+ const baseline = rowTop + metrics.rowH - 5;+ // The row carries `data-detail="context"` as a group, and each text repeats+ // it: the Viewer's reader sizes the diagram from the texts that declare the+ // level themselves, so a field that is only context inside a group would be+ // shrunk past the readable floor on a tall schema.+ const keyGlyph = attribute.key+ ? `<text data-detail="context" x="${entity.x + layout.padX}" y="${baseline}" class="${KEY_ACCENT[attribute.key] || 't-muted'}" font-size="${layout.keyFont}" font-weight="600">${esc(attribute.key.toUpperCase())}</text>`+ : '';+ const nameX = entity.x + layout.padX + layout.keyWidth;+ const typeSpace = attribute.type ? Math.min(96, textUnits(attribute.type) * layout.typeFont * nodeTextFit.widthFactor) : 0;+ const nameFontSize = fittedNodeFontSize(+ attribute.name,+ Math.max(40, entity.x + entity.width - layout.padX - typeSpace - nameX),+ layout.rowFont,+ layout.rowFontMinimum,+ );+ const type = attribute.type+ ? `<text data-detail="context" x="${entity.x + entity.width - layout.padX}" y="${baseline}" class="t-primary" font-size="${layout.typeFont}" text-anchor="end">${esc(attribute.type)}</text>`+ : '';+ return ` <g data-detail="context" data-er-row="${index}">+ <line x1="${entity.x}" y1="${rowTop}" x2="${entity.x + entity.width}" y2="${rowTop}" class="c-grid" stroke-width="0.5"/>+ ${keyGlyph}+ <text data-detail="context" x="${nameX}" y="${baseline}" class="t-primary" font-size="${nameFontSize}">${esc(attribute.name)}</text>+ ${type}+ </g>`;+ }).join('\n');+}++function renderEntity(entity) {+ const header = entity.y + metrics.headerH;+ // A banded table already carries its domain on the band, so repeating the tag+ // in the header would be noise; the header note falls back to the tag only for+ // a table that has no band of its own.+ const detail = entity.sublabel ?? (bandedEntityIds.has(entity.id) ? undefined : entity.tag);+ const detailFontSize = detail+ ? fittedNodeFontSize(detail, 60, layout.detailPreferred, layout.detailMinimum)+ : 0;+ const detailFits = detail ? textUnits(detail) * detailFontSize * nodeTextFit.widthFactor <= 64 : false;+ const labelFontSize = fittedNodeFontSize(entity.label, entity.width - 34, layout.headerFont, layout.headerFontMinimum);+ const passport = {+ kind: 'database',+ sublabel: entity.sublabel,+ tag: entity.tag,+ context: i18nText(er.meta.locale, 'node.context.erd'),+ };+ const sublabel = detailFits+ ? `\n <text data-detail="context" x="${entity.x + entity.width - layout.padX}" y="${entity.y + 16}" class="t-muted" font-size="${detailFontSize}" text-anchor="end">${esc(detail)}</text>`+ : '';+ const rows = renderEntityColumnRows(entity);+ return ` <g ${focusNodeAttrs(entity.id, entity.label, passport, er.meta.locale)}>+ ${focusNodeTitle(entity.label, passport)}+ <rect x="${entity.x}" y="${entity.y}" width="${entity.width}" height="${entity.height}" rx="5" class="c-mask"/>+ <rect x="${entity.x}" y="${entity.y}" width="${entity.width}" height="${entity.height}" rx="5" class="${ENTITY_FILL}"${animateAttr(er.meta, 'node', entitySteps.get(entity.id))} stroke-width="1.5"/>+ ${renderSemanticSigil('database', { x: entity.x + 6, y: entity.y + 5 })}+ <text data-node-label="" x="${entity.x + entity.width / 2}" y="${entity.y + 18}" class="t-primary" font-size="${labelFontSize}" font-weight="600" text-anchor="middle">${esc(entity.label)}</text>${sublabel}+ <line x1="${entity.x}" y1="${header}" x2="${entity.x + entity.width}" y2="${header}" class="c-grid" stroke-width="1"/>+${rows}+ </g>`;+}++function renderRelationshipPath(relationship, index) {+ const [cls] = arrowClassMap[markerStyleOf(relationship)] || arrowClassMap.default;+ const routed = pathFor(relationship);+ const d = bundledRelationshipD(routed, relationshipTrunkRuns(relationship));+ const strokeWidth = Number.isFinite(relationship.width) ? relationship.width : 1.5;+ return ` <path ${focusEdgeAttrs(relationship.from, relationship.to, relationship.label, index, relationship.id)} data-composition-points="${routePointsValue(routed.points)}" d="${d}" class="${cls}"${animateAttr(er.meta, 'edge', index)} stroke-width="${strokeWidth}" marker-start="url(#${cardinalityMarkerId(relationship, 'from')})" marker-end="url(#${cardinalityMarkerId(relationship, 'to')})"/>`;+}++function renderRelationshipLabel(relationship, index) {+ if (!relationship.label) return '';+ const [lx, ly] = erLabelPoint(relationship);+ const box = relationshipLabelBox(relationship);+ return ` <g data-detail="context" ${focusEdgeAttrs(relationship.from, relationship.to, relationship.label, index, relationship.id)}>+ <rect x="${box.x}" y="${box.y}" width="${box.width}" height="${box.height}" rx="3" class="c-mask"/>+ <text x="${lx}" y="${ly}" class="${variantAccent(relationship.variant)}" font-size="${RELATIONSHIP_LABEL_FONT}" text-anchor="middle">${esc(relationship.label)}</text>+ </g>`;+}++// The swatch repeats the marker's own ink and weight, so the legend shows the+// reader the exact glyph the diagram draws rather than a thinner stand-in.+function legendSwatch(entry) {+ const y = entry.baseline - 10;+ const ink = 'style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"';+ if (entry.kind === 'one' || entry.kind === 'many') {+ // The swatch repeats the marker's own orientation: the foot opens toward+ // the side a table would sit on, so the legend teaches the glyph the+ // relationship lines draw.+ const symbol = entry.kind === 'many'+ ? `<path d="M ${entry.x + 2} ${y + 6} L ${entry.x + 18} ${y + 1} M ${entry.x + 2} ${y + 6} L ${entry.x + 18} ${y + 6} M ${entry.x + 2} ${y + 6} L ${entry.x + 18} ${y + 11}" ${ink}/>`+ : `<path d="M ${entry.x + 10} ${y + 1} L ${entry.x + 10} ${y + 11}" ${ink}/>`;+ return symbol;+ }+ if (entry.kind === 'optional') {+ return `<circle cx="${entry.x + 9}" cy="${y + 6}" r="3" ${ink}/>`;+ }+ return `<text x="${entry.x + 2}" y="${y + 10}" class="${KEY_ACCENT[entry.kind] || 't-muted'}" font-size="${layout.keyFont}" font-weight="700">${esc(entry.kind.toUpperCase())}</text>`;+}++function renderLegend() {+ const relationshipObstacles = relationshipLegendObstacles(relationships, {+ pointsFor: (relationship) => (renderableRelationship(relationship) ? pathFor(relationship).points : []),+ labelRectFor: (relationship) => (+ relationship.label && renderableRelationship(relationship)+ ? relationshipLabelBox(relationship)+ : null+ ),+ });+ return renderResolvedLegend({+ entries: erLegendEntries,+ locale: er.meta.locale,+ layout: legendLayout(viewBox[0], viewBox[1], { obstacles: relationshipObstacles }),+ renderSwatch: legendSwatch,+ labelClass: 't-primary',+ labelWeight: 600,+ });+}++function renderSvg() {+ // A schema with more tables than one screen holds is a normal ERD, and the+ // reader asked for readable fields over a squeezed canvas: an automatic+ // canvas declares its height as intrinsic so the desktop reader scrolls+ // instead of shrinking the tables. An authored meta.viewBox stays+ // authoritative and keeps the established Viewer contract.+ const readerFit = er.meta?.viewBox ? '' : ' data-reader-fit="intrinsic-height"';+ const readerMinimumText = er.meta?.viewBox ? '' : ' data-reader-min-text="7.5"';+ return ` <svg viewBox="0 0 ${viewBox[0]} ${viewBox[1]}" ${svgRootAttrs(er.meta)}${readerFit}${readerMinimumText}>+${svgAccessibleText(er.meta, 'erd')}+${renderDefinitions(renderCardinalityDefs())}++ <!-- Background Grid -->+ <rect width="100%" height="100%" fill="url(#grid)" />++ <!-- Domain bands (behind the routes so a channel is never washed out) -->+${renderDomainBands()}++ <!-- Bundled relationship trunks (under the branches: a bus runs close+ to the shared side, so a cardinality glyph that reaches further out+ has to stay readable over it, and the ring's mask has to be able to+ punch through) -->+${bundledTrunkPaths()}++ <!-- Relationship paths (before entities for correct z-order) -->+${relationships.map((relationship, index) => (renderableRelationship(relationship) ? renderRelationshipPath(relationship, index) : '')).filter(Boolean).join('\n')}++ <!-- Entities -->+${[...entities.values()].map(renderEntity).join('\n\n')}++ <!-- Relationship labels -->+${relationships.map((relationship, index) => (renderableRelationship(relationship) ? renderRelationshipLabel(relationship, index) : '')).filter(Boolean).join('\n')}++ <!-- Legend -->+${renderLegend()}+ </svg>`;+}++validateEr();+if (layoutJsonMode) {+ console.log(JSON.stringify(buildLayoutReport(), null, 2));+ process.exit(0);+}+writeDiagram({+ outPath,+ template,+ diagramType: 'erd',+ meta: er.meta,+ svg: renderSvg(),+ cards: er.cards,+ sourceEvidence,+});diff --git a/archify/renderers/shared/cli.mjs b/archify/renderers/shared/cli.mjsindex bc4a5e3b..81a9379d 100644--- a/archify/renderers/shared/cli.mjs+++ b/archify/renderers/shared/cli.mjs@@ -139,7 +139,7 @@ export async function loadDiagramWithBrandMarks(options) {return loaded;}-const START_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);+const START_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']);function isFilesystemError(error) {return typeof error?.code === 'string'@@ -336,6 +336,7 @@ const SEMANTIC_COLLECTIONS = {sequence: 'participants',dataflow: 'nodes',lifecycle: 'states',+ erd: 'entities',};const RELATIONSHIP_COLLECTIONS = {@@ -344,6 +345,7 @@ const RELATIONSHIP_COLLECTIONS = {sequence: 'messages',dataflow: 'flows',lifecycle: 'transitions',+ erd: 'relationships',};// Relationship IDs are optional for backwards compatibility, but once andiff --git a/archify/renderers/shared/generated-validators.mjs b/archify/renderers/shared/generated-validators.mjsindex bd7b6786..1b4d7258 100644--- a/archify/renderers/shared/generated-validators.mjs+++ b/archify/renderers/shared/generated-validators.mjs@@ -11,7 +11,7 @@ import { validatePortablePath } from './portable-path.mjs';&& (str.charCodeAt(pos) & 0xfc00) === 0xdc00) pos += 1;}return length;-};const pattern4 = new RegExp("^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", "u");const pattern5 = new RegExp("^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$", "u");const pattern6 = new RegExp("(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$", "u");const pattern7 = new RegExp("[\\\\<>:\"|?*\\u0000-\\u001F\\u007F-\\u009F]", "u");const pattern8 = new RegExp("[\\uD800-\\uDFFF]", "u");const pattern9 = new RegExp("(^|/)[.]{1,2}(/|$)", "u");const pattern10 = new RegExp("[. ](/|$)", "u");const pattern11 = new RegExp("(^|/)[^/]{256}", "u");const pattern12 = new RegExp("(^|/)(?:[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Nn][Ii][Nn][$]|[Cc][Oo][Nn][Oo][Uu][Tt][$]|[Cc][Oo][Mm][1-9¹²³]|[Ll][Pp][Tt][1-9¹²³])(?:[.]|/|$)", "u");const pattern13 = new RegExp("(^|/)[^/]*~[1-9][0-9]*(?:[.]|/|$)", "u");const pattern14 = new RegExp("^[^/]+(?:/[^/]+)*$", "u");const pattern15 = new RegExp("^[a-fA-F0-9]{40}$", "u");const pattern16 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");const pattern29 = new RegExp("^[^\\r\\n]+$", "u");const pattern30 = new RegExp("^https?://", "u");const pattern32 = new RegExp("^[a-f0-9]{64}$", "u");const schema37 = {"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","label","focus"],"properties":{"id":{"$ref":"#/$defs/id"},"label":{"type":"string","minLength":1,"maxLength":48},"focus":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/id"}},"note":{"type":"string","maxLength":140}}}};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema55 = {"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"}}};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "from") || (key0 === "to"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(typeof data0 === "string"){if(!pattern16.test(data0)){const err3 = {instancePath:instancePath+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/workflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.edges === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "edges"},message:"must have required property '"+"edges"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(func1.call(schema31.properties, key0))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){let data0 = data.schema_version;if(!((data0 === 1) || (data0 === 2))){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/enum",keyword:"enum",params:{allowedValues: schema31.properties.schema_version.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("workflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "workflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.output === undefined){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data2){if(!(func1.call(schema31.properties.meta.properties, key1))){const err11 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern4.test(data4)){const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err19 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(func3(data6) < 1){const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err24 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern14.test(data8)){const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err43 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err44 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err45 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data12 = data2.repository;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data12.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data12){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.url !== undefined){let data13 = data12.url;if(typeof data13 === "string"){if(func3(data13) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data12.provider !== undefined){let data14 = data12.provider;if(!((data14 === "github") || (data14 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data12.link_mode !== undefined){let data15 = data12.link_mode;if(!((data15 === "web") || (data15 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data12.revision !== undefined){let data16 = data12.revision;if(typeof data16 === "string"){if(!pattern15.test(data16)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate22(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data18 = data2.legend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key5 in data18){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data18.mode !== undefined){let data19 = data18.mode;if(!(((data19 === "auto") || (data19 === "all")) || (data19 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data18.entries !== undefined){let data20 = data18.entries;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){for(const key6 in data20){if(!(((((((key6 === "frontend") || (key6 === "backend")) || (key6 === "database")) || (key6 === "cloud")) || (key6 === "security")) || (key6 === "messagebus")) || (key6 === "external"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data20.frontend !== undefined){let data21 = data20.frontend;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data21){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data22) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data20.backend !== undefined){let data24 = data20.backend;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data24){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data25) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data20.database !== undefined){let data27 = data20.database;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data27){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data28) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data20.cloud !== undefined){let data30 = data20.cloud;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data30){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data31) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data20.security !== undefined){let data33 = data20.security;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data33){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data34) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data20.messagebus !== undefined){let data36 = data20.messagebus;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(Object.keys(data36).length < 1){const err94 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}for(const key12 in data36){if(!((key12 === "label") || (key12 === "visible"))){const err95 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data36.label !== undefined){let data37 = data36.label;if(typeof data37 === "string"){if(func3(data37) > 80){const err96 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(func3(data37) < 1){const err97 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}else {const err98 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data36.visible !== undefined){if(typeof data36.visible !== "boolean"){const err99 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data20.external !== undefined){let data39 = data20.external;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(Object.keys(data39).length < 1){const err101 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}for(const key13 in data39){if(!((key13 === "label") || (key13 === "visible"))){const err102 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data39.label !== undefined){let data40 = data39.label;if(typeof data40 === "string"){if(func3(data40) > 80){const err103 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(func3(data40) < 1){const err104 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data39.visible !== undefined){if(typeof data39.visible !== "boolean"){const err106 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data2.viewBox !== undefined){let data42 = data2.viewBox;if(Array.isArray(data42)){if(data42.length > 2){const err110 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data42.length < 2){const err111 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const len0 = data42.length;if(len0 > 0){let data43 = data42[0];if((typeof data43 == "number") && (isFinite(data43))){if(data43 < 700 || isNaN(data43)){const err112 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 700},message:"must be >= 700"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}else {const err113 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(len0 > 1){let data44 = data42[1];if((typeof data44 == "number") && (isFinite(data44))){if(data44 < 240 || isNaN(data44)){const err114 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}const len1 = data42.length;if(!(len1 <= 2)){const err116 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}else {const err117 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}else {const err118 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data.lanes !== undefined){let data45 = data.lanes;if(Array.isArray(data45)){if(data45.length < 1){const err119 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const len2 = data45.length;for(let i0=0; i0<len2; i0++){let data46 = data45[i0];if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err120 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(data46.label === undefined){const err121 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}for(const key14 in data46){if(!(((key14 === "id") || (key14 === "label")) || (key14 === "variant"))){const err122 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data46.id !== undefined){let data47 = data46.id;if(typeof data47 === "string"){if(!pattern16.test(data47)){const err123 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data46.label !== undefined){let data48 = data46.label;if(typeof data48 === "string"){if(func3(data48) < 1){const err125 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data46.variant !== undefined){let data49 = data46.variant;if(!((data49 === "normal") || (data49 === "exception"))){const err127 = {instancePath:instancePath+"/lanes/" + i0+"/variant",schemaPath:"#/properties/lanes/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.lanes.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data.phases !== undefined){let data50 = data.phases;if(Array.isArray(data50)){const len3 = data50.length;for(let i1=0; i1<len3; i1++){let data51 = data50[i1];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.id === undefined){const err130 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data51.label === undefined){const err131 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data51.fromCol === undefined){const err132 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data51.toCol === undefined){const err133 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}for(const key15 in data51){if(!(((((key15 === "id") || (key15 === "label")) || (key15 === "fromCol")) || (key15 === "toCol")) || (key15 === "variant"))){const err134 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data51.id !== undefined){let data52 = data51.id;if(typeof data52 === "string"){if(!pattern16.test(data52)){const err135 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data51.label !== undefined){let data53 = data51.label;if(typeof data53 === "string"){if(func3(data53) < 1){const err137 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data51.fromCol !== undefined){let data54 = data51.fromCol;if(!(((typeof data54 == "number") && (!(data54 % 1) && !isNaN(data54))) && (isFinite(data54)))){const err139 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if((typeof data54 == "number") && (isFinite(data54))){if(data54 > 5 || isNaN(data54)){const err140 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data54 < 0 || isNaN(data54)){const err141 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}if(data51.toCol !== undefined){let data55 = data51.toCol;if(!(((typeof data55 == "number") && (!(data55 % 1) && !isNaN(data55))) && (isFinite(data55)))){const err142 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if((typeof data55 == "number") && (isFinite(data55))){if(data55 > 5 || isNaN(data55)){const err143 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data55 < 0 || isNaN(data55)){const err144 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}if(data51.variant !== undefined){let data56 = data51.variant;if(!((((data56 === "default") || (data56 === "emphasis")) || (data56 === "security")) || (data56 === "dashed"))){const err145 = {instancePath:instancePath+"/phases/" + i1+"/variant",schemaPath:"#/properties/phases/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.phases.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}}else {const err146 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data.groups !== undefined){let data57 = data.groups;if(Array.isArray(data57)){const len4 = data57.length;for(let i2=0; i2<len4; i2++){let data58 = data57[i2];if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.id === undefined){const err148 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data58.label === undefined){const err149 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data58.lane === undefined){const err150 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data58.fromCol === undefined){const err151 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data58.toCol === undefined){const err152 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}for(const key16 in data58){if(!((((((key16 === "id") || (key16 === "label")) || (key16 === "lane")) || (key16 === "fromCol")) || (key16 === "toCol")) || (key16 === "variant"))){const err153 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data58.id !== undefined){let data59 = data58.id;if(typeof data59 === "string"){if(!pattern16.test(data59)){const err154 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}else {const err155 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data58.label !== undefined){let data60 = data58.label;if(typeof data60 === "string"){if(func3(data60) < 1){const err156 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}else {const err157 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data58.lane !== undefined){let data61 = data58.lane;if(typeof data61 === "string"){if(!pattern16.test(data61)){const err158 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}else {const err159 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(data58.fromCol !== undefined){let data62 = data58.fromCol;if(!(((typeof data62 == "number") && (!(data62 % 1) && !isNaN(data62))) && (isFinite(data62)))){const err160 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if((typeof data62 == "number") && (isFinite(data62))){if(data62 > 5 || isNaN(data62)){const err161 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data62 < 0 || isNaN(data62)){const err162 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}if(data58.toCol !== undefined){let data63 = data58.toCol;if(!(((typeof data63 == "number") && (!(data63 % 1) && !isNaN(data63))) && (isFinite(data63)))){const err163 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if((typeof data63 == "number") && (isFinite(data63))){if(data63 > 5 || isNaN(data63)){const err164 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data63 < 0 || isNaN(data63)){const err165 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}if(data58.variant !== undefined){let data64 = data58.variant;if(!((((data64 === "default") || (data64 === "emphasis")) || (data64 === "security")) || (data64 === "dashed"))){const err166 = {instancePath:instancePath+"/groups/" + i2+"/variant",schemaPath:"#/properties/groups/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.groups.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data.mainPath !== undefined){let data65 = data.mainPath;if(Array.isArray(data65)){if(data65.length < 2){const err169 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const len5 = data65.length;for(let i3=0; i3<len5; i3++){let data66 = data65[i3];if(typeof data66 === "string"){if(!pattern16.test(data66)){const err170 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data.semanticChecks !== undefined){let data67 = data.semanticChecks;if(data67 && typeof data67 == "object" && !Array.isArray(data67)){if(Object.keys(data67).length < 1){const err173 = {instancePath:instancePath+"/semanticChecks",schemaPath:"#/properties/semanticChecks/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}for(const key17 in data67){if(!((((key17 === "allowedRoots") || (key17 === "allowedTerminals")) || (key17 === "requiredEdges")) || (key17 === "requiredPaths"))){const err174 = {instancePath:instancePath+"/semanticChecks",schemaPath:"#/properties/semanticChecks/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data67.allowedRoots !== undefined){let data68 = data67.allowedRoots;if(Array.isArray(data68)){const len6 = data68.length;for(let i4=0; i4<len6; i4++){let data69 = data68[i4];if(typeof data69 === "string"){if(!pattern16.test(data69)){const err175 = {instancePath:instancePath+"/semanticChecks/allowedRoots/" + i4,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/semanticChecks/allowedRoots/" + i4,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}else {const err177 = {instancePath:instancePath+"/semanticChecks/allowedRoots",schemaPath:"#/properties/semanticChecks/properties/allowedRoots/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data67.allowedTerminals !== undefined){let data70 = data67.allowedTerminals;if(Array.isArray(data70)){const len7 = data70.length;for(let i5=0; i5<len7; i5++){let data71 = data70[i5];if(typeof data71 === "string"){if(!pattern16.test(data71)){const err178 = {instancePath:instancePath+"/semanticChecks/allowedTerminals/" + i5,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}else {const err179 = {instancePath:instancePath+"/semanticChecks/allowedTerminals/" + i5,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {instancePath:instancePath+"/semanticChecks/allowedTerminals",schemaPath:"#/properties/semanticChecks/properties/allowedTerminals/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data67.requiredEdges !== undefined){let data72 = data67.requiredEdges;if(Array.isArray(data72)){const len8 = data72.length;for(let i6=0; i6<len8; i6++){if(!(validate24(data72[i6], {instancePath:instancePath+"/semanticChecks/requiredEdges/" + i6,parentData:data72,parentDataProperty:i6,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err181 = {instancePath:instancePath+"/semanticChecks/requiredEdges",schemaPath:"#/properties/semanticChecks/properties/requiredEdges/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data67.requiredPaths !== undefined){let data74 = data67.requiredPaths;if(Array.isArray(data74)){const len9 = data74.length;for(let i7=0; i7<len9; i7++){if(!(validate24(data74[i7], {instancePath:instancePath+"/semanticChecks/requiredPaths/" + i7,parentData:data74,parentDataProperty:i7,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err182 = {instancePath:instancePath+"/semanticChecks/requiredPaths",schemaPath:"#/properties/semanticChecks/properties/requiredPaths/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/semanticChecks",schemaPath:"#/properties/semanticChecks/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}if(data.nodes !== undefined){let data76 = data.nodes;if(Array.isArray(data76)){if(data76.length < 1){const err184 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const len10 = data76.length;for(let i8=0; i8<len10; i8++){let data77 = data76[i8];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.id === undefined){const err185 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data77.lane === undefined){const err186 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data77.col === undefined){const err187 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data77.type === undefined){const err188 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data77.label === undefined){const err189 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}for(const key18 in data77){if(!(func1.call(schema31.properties.nodes.items.properties, key18))){const err190 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data77.id !== undefined){let data78 = data77.id;if(typeof data78 === "string"){if(!pattern16.test(data78)){const err191 = {instancePath:instancePath+"/nodes/" + i8+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}else {const err192 = {instancePath:instancePath+"/nodes/" + i8+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data77.lane !== undefined){let data79 = data77.lane;if(typeof data79 === "string"){if(!pattern16.test(data79)){const err193 = {instancePath:instancePath+"/nodes/" + i8+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}else {const err194 = {instancePath:instancePath+"/nodes/" + i8+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data77.col !== undefined){let data80 = data77.col;if(!(((typeof data80 == "number") && (!(data80 % 1) && !isNaN(data80))) && (isFinite(data80)))){const err195 = {instancePath:instancePath+"/nodes/" + i8+"/col",schemaPath:"#/properties/nodes/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if((typeof data80 == "number") && (isFinite(data80))){if(data80 > 5 || isNaN(data80)){const err196 = {instancePath:instancePath+"/nodes/" + i8+"/col",schemaPath:"#/properties/nodes/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data80 < 0 || isNaN(data80)){const err197 = {instancePath:instancePath+"/nodes/" + i8+"/col",schemaPath:"#/properties/nodes/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}if(data77.type !== undefined){let data81 = data77.type;if(!(((((((data81 === "frontend") || (data81 === "backend")) || (data81 === "database")) || (data81 === "cloud")) || (data81 === "security")) || (data81 === "messagebus")) || (data81 === "external"))){const err198 = {instancePath:instancePath+"/nodes/" + i8+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data77.label !== undefined){let data82 = data77.label;if(typeof data82 === "string"){if(func3(data82) < 1){const err199 = {instancePath:instancePath+"/nodes/" + i8+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/nodes/" + i8+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data77.sublabel !== undefined){if(typeof data77.sublabel !== "string"){const err201 = {instancePath:instancePath+"/nodes/" + i8+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data77.tag !== undefined){if(typeof data77.tag !== "string"){const err202 = {instancePath:instancePath+"/nodes/" + i8+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data77.icon !== undefined){let data85 = data77.icon;if(!((((((((((((((((((((data85 === "calendar") || (data85 === "clock")) || (data85 === "person")) || (data85 === "briefcase")) || (data85 === "flag")) || (data85 === "moon")) || (data85 === "frontend")) || (data85 === "backend")) || (data85 === "database")) || (data85 === "cloud")) || (data85 === "security")) || (data85 === "messagebus")) || (data85 === "external")) || (data85 === "start")) || (data85 === "active")) || (data85 === "waiting")) || (data85 === "success")) || (data85 === "failure")) || (data85 === "neutral")) || (data85 === "none"))){const err203 = {instancePath:instancePath+"/nodes/" + i8+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data77.brand !== undefined){let data86 = data77.brand;const _errs223 = errors;let valid70 = false;let passing0 = null;const _errs224 = errors;const _errs226 = errors;let valid71 = false;const _errs227 = errors;if(typeof data86 === "string"){if(func3(data86) > 80){const err204 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if(!pattern29.test(data86)){const err205 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}var _valid1 = _errs227 === errors;valid71 = valid71 || _valid1;const _errs228 = errors;if(typeof data86 === "string"){if(!pattern30.test(data86)){const err206 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}var _valid1 = _errs228 === errors;valid71 = valid71 || _valid1;if(!valid71){const err207 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}if(typeof data86 === "string"){if(func3(data86) > 2048){const err208 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(func3(data86) < 1){const err209 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}var _valid0 = _errs224 === errors;if(_valid0){valid70 = true;passing0 = 0;}const _errs229 = errors;if(data86 && typeof data86 == "object" && !Array.isArray(data86)){if(data86.url === undefined){const err211 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data86.sha256 === undefined){const err212 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}for(const key19 in data86){if(!((key19 === "url") || (key19 === "sha256"))){const err213 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data86.url !== undefined){let data87 = data86.url;if(typeof data87 === "string"){if(func3(data87) > 2048){const err214 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(func3(data87) < 8){const err215 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(!pattern30.test(data87)){const err216 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data86.sha256 !== undefined){let data88 = data86.sha256;if(typeof data88 === "string"){if(!pattern32.test(data88)){const err218 = {instancePath:instancePath+"/nodes/" + i8+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/nodes/" + i8+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}}else {const err220 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}var _valid0 = _errs229 === errors;if(_valid0 && valid70){valid70 = false;passing0 = [passing0, 1];}else {if(_valid0){valid70 = true;passing0 = 1;}}if(!valid70){const err221 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}}if(data77.sources !== undefined){let data89 = data77.sources;if(Array.isArray(data89)){if(data89.length > 3){const err222 = {instancePath:instancePath+"/nodes/" + i8+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if(data89.length < 1){const err223 = {instancePath:instancePath+"/nodes/" + i8+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}const len11 = data89.length;for(let i9=0; i9<len11; i9++){let data90 = data89[i9];if(data90 && typeof data90 == "object" && !Array.isArray(data90)){if(data90.path === undefined){const err224 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}for(const key20 in data90){if(!((((key20 === "path") || (key20 === "line")) || (key20 === "end_line")) || (key20 === "label"))){const err225 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data90.path !== undefined){let data91 = data90.path;if(typeof data91 === "string"){if(func3(data91) > 240){const err226 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(func3(data91) < 1){const err227 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data90.line !== undefined){let data92 = data90.line;if(!(((typeof data92 == "number") && (!(data92 % 1) && !isNaN(data92))) && (isFinite(data92)))){const err229 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if((typeof data92 == "number") && (isFinite(data92))){if(data92 < 1 || isNaN(data92)){const err230 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}if(data90.end_line !== undefined){let data93 = data90.end_line;if(!(((typeof data93 == "number") && (!(data93 % 1) && !isNaN(data93))) && (isFinite(data93)))){const err231 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if((typeof data93 == "number") && (isFinite(data93))){if(data93 < 1 || isNaN(data93)){const err232 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}if(data90.label !== undefined){let data94 = data90.label;if(typeof data94 === "string"){if(func3(data94) > 48){const err233 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}if(func3(data94) < 1){const err234 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}else {const err235 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}}else {const err236 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/nodes/" + i8+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}if(data77.width !== undefined){let data95 = data77.width;if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 32 || isNaN(data95)){const err238 = {instancePath:instancePath+"/nodes/" + i8+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {instancePath:instancePath+"/nodes/" + i8+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data77.height !== undefined){let data96 = data77.height;if((typeof data96 == "number") && (isFinite(data96))){if(data96 < 32 || isNaN(data96)){const err240 = {instancePath:instancePath+"/nodes/" + i8+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}else {const err241 = {instancePath:instancePath+"/nodes/" + i8+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data77.yOffset !== undefined){let data97 = data77.yOffset;if(!((typeof data97 == "number") && (isFinite(data97)))){const err242 = {instancePath:instancePath+"/nodes/" + i8+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}else {const err243 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}else {const err244 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(data.edges !== undefined){let data98 = data.edges;if(Array.isArray(data98)){const len12 = data98.length;for(let i10=0; i10<len12; i10++){let data99 = data98[i10];if(data99 && typeof data99 == "object" && !Array.isArray(data99)){if(data99.from === undefined){const err245 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data99.to === undefined){const err246 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}for(const key21 in data99){if(!(func1.call(schema31.properties.edges.items.properties, key21))){const err247 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key21},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data99.id !== undefined){let data100 = data99.id;if(typeof data100 === "string"){if(!pattern16.test(data100)){const err248 = {instancePath:instancePath+"/edges/" + i10+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}else {const err249 = {instancePath:instancePath+"/edges/" + i10+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}if(data99.from !== undefined){let data101 = data99.from;if(typeof data101 === "string"){if(!pattern16.test(data101)){const err250 = {instancePath:instancePath+"/edges/" + i10+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}else {const err251 = {instancePath:instancePath+"/edges/" + i10+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(data99.to !== undefined){let data102 = data99.to;if(typeof data102 === "string"){if(!pattern16.test(data102)){const err252 = {instancePath:instancePath+"/edges/" + i10+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/edges/" + i10+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}if(data99.label !== undefined){if(typeof data99.label !== "string"){const err254 = {instancePath:instancePath+"/edges/" + i10+"/label",schemaPath:"#/properties/edges/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data99.variant !== undefined){let data104 = data99.variant;if(!((((data104 === "default") || (data104 === "emphasis")) || (data104 === "security")) || (data104 === "dashed"))){const err255 = {instancePath:instancePath+"/edges/" + i10+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}if(data99.role !== undefined){let data105 = data99.role;if(!(((((data105 === "main") || (data105 === "branch")) || (data105 === "async")) || (data105 === "return")) || (data105 === "error"))){const err256 = {instancePath:instancePath+"/edges/" + i10+"/role",schemaPath:"#/properties/edges/items/properties/role/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.role.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}if(data99.fromSide !== undefined){let data106 = data99.fromSide;if(!((((data106 === "left") || (data106 === "right")) || (data106 === "top")) || (data106 === "bottom"))){const err257 = {instancePath:instancePath+"/edges/" + i10+"/fromSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data99.toSide !== undefined){let data107 = data99.toSide;if(!((((data107 === "left") || (data107 === "right")) || (data107 === "top")) || (data107 === "bottom"))){const err258 = {instancePath:instancePath+"/edges/" + i10+"/toSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}if(data99.route !== undefined){let data108 = data99.route;if(!(((((((data108 === "auto") || (data108 === "straight")) || (data108 === "drop")) || (data108 === "outside-right")) || (data108 === "return-left")) || (data108 === "bottom-channel")) || (data108 === "up-channel"))){const err259 = {instancePath:instancePath+"/edges/" + i10+"/route",schemaPath:"#/properties/edges/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data99.via !== undefined){let data109 = data99.via;if(Array.isArray(data109)){const len13 = data109.length;for(let i11=0; i11<len13; i11++){let data110 = data109[i11];if(Array.isArray(data110)){if(data110.length > 2){const err260 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if(data110.length < 2){const err261 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}const len14 = data110.length;if(len14 > 0){let data111 = data110[0];if(!((typeof data111 == "number") && (isFinite(data111)))){const err262 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(len14 > 1){let data112 = data110[1];if(!((typeof data112 == "number") && (isFinite(data112)))){const err263 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}const len15 = data110.length;if(!(len15 <= 2)){const err264 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}else {const err265 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}else {const err266 = {instancePath:instancePath+"/edges/" + i10+"/via",schemaPath:"#/properties/edges/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}if(data99.labelAt !== undefined){let data113 = data99.labelAt;if(Array.isArray(data113)){if(data113.length > 2){const err267 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data113.length < 2){const err268 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const len16 = data113.length;if(len16 > 0){let data114 = data113[0];if(!((typeof data114 == "number") && (isFinite(data114)))){const err269 = {instancePath:instancePath+"/edges/" + i10+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}if(len16 > 1){let data115 = data113[1];if(!((typeof data115 == "number") && (isFinite(data115)))){const err270 = {instancePath:instancePath+"/edges/" + i10+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}const len17 = data113.length;if(!(len17 <= 2)){const err271 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data99.labelDx !== undefined){let data116 = data99.labelDx;if(!((typeof data116 == "number") && (isFinite(data116)))){const err273 = {instancePath:instancePath+"/edges/" + i10+"/labelDx",schemaPath:"#/properties/edges/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}if(data99.labelDy !== undefined){let data117 = data99.labelDy;if(!((typeof data117 == "number") && (isFinite(data117)))){const err274 = {instancePath:instancePath+"/edges/" + i10+"/labelDy",schemaPath:"#/properties/edges/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}}if(data99.labelSegment !== undefined){let data118 = data99.labelSegment;if(!(((typeof data118 == "number") && (!(data118 % 1) && !isNaN(data118))) && (isFinite(data118)))){const err275 = {instancePath:instancePath+"/edges/" + i10+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if((typeof data118 == "number") && (isFinite(data118))){if(data118 < 0 || isNaN(data118)){const err276 = {instancePath:instancePath+"/edges/" + i10+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}if(data99.channelX !== undefined){let data119 = data99.channelX;if(!((typeof data119 == "number") && (isFinite(data119)))){const err277 = {instancePath:instancePath+"/edges/" + i10+"/channelX",schemaPath:"#/properties/edges/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}if(data99.channelY !== undefined){let data120 = data99.channelY;if(!((typeof data120 == "number") && (isFinite(data120)))){const err278 = {instancePath:instancePath+"/edges/" + i10+"/channelY",schemaPath:"#/properties/edges/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data99.bias !== undefined){let data121 = data99.bias;if((typeof data121 == "number") && (isFinite(data121))){if(data121 > 1 || isNaN(data121)){const err279 = {instancePath:instancePath+"/edges/" + i10+"/bias",schemaPath:"#/properties/edges/items/properties/bias/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}if(data121 < 0 || isNaN(data121)){const err280 = {instancePath:instancePath+"/edges/" + i10+"/bias",schemaPath:"#/properties/edges/items/properties/bias/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}else {const err281 = {instancePath:instancePath+"/edges/" + i10+"/bias",schemaPath:"#/properties/edges/items/properties/bias/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data99.width !== undefined){let data122 = data99.width;if((typeof data122 == "number") && (isFinite(data122))){if(data122 < 0.5 || isNaN(data122)){const err282 = {instancePath:instancePath+"/edges/" + i10+"/width",schemaPath:"#/properties/edges/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}else {const err283 = {instancePath:instancePath+"/edges/" + i10+"/width",schemaPath:"#/properties/edges/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}else {const err284 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}else {const err285 = {instancePath:instancePath+"/edges",schemaPath:"#/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}if(data.cards !== undefined){let data123 = data.cards;if(Array.isArray(data123)){const len18 = data123.length;for(let i12=0; i12<len18; i12++){let data124 = data123[i12];if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.dot === undefined){const err286 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data124.title === undefined){const err287 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data124.items === undefined){const err288 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}for(const key22 in data124){if(!(((key22 === "dot") || (key22 === "title")) || (key22 === "items"))){const err289 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key22},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}if(data124.dot !== undefined){let data125 = data124.dot;if(!(((((((data125 === "cyan") || (data125 === "emerald")) || (data125 === "violet")) || (data125 === "amber")) || (data125 === "rose")) || (data125 === "orange")) || (data125 === "slate"))){const err290 = {instancePath:instancePath+"/cards/" + i12+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data124.title !== undefined){let data126 = data124.title;if(typeof data126 === "string"){if(func3(data126) < 1){const err291 = {instancePath:instancePath+"/cards/" + i12+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}else {const err292 = {instancePath:instancePath+"/cards/" + i12+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}if(data124.items !== undefined){let data127 = data124.items;if(Array.isArray(data127)){const len19 = data127.length;for(let i13=0; i13<len19; i13++){if(typeof data127[i13] !== "string"){const err293 = {instancePath:instancePath+"/cards/" + i12+"/items/" + i13,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}}else {const err294 = {instancePath:instancePath+"/cards/" + i12+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}}else {const err295 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}else {const err296 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const sequenceSchema = validate27;const schema73 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/sequence.schema.json","title":"Archify Sequence Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","participants","messages"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"sequence"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"column_fit":{"description":"Horizontal participant layout. Omit this field or use fixed for the stable 86px boxes and 108px gap. Use spread when a wide viewBox would leave unused horizontal space or meaningful participant labels do not fit the fixed boxes; spread derives wider boxes and gaps from the viewBox without changing participant order or message semantics.","enum":["fixed","spread"]},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"return":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":480},{"type":"number","minimum":480}],"items":false,"minItems":2,"maxItems":2}}},"participants":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"}}}},"segments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"from":{"type":"number"},"to":{"type":"number"},"label":{"type":"string","minLength":1}}}},"messages":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["from","to","y","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"y":{"type":"number","minimum":160},"label":{"type":"string","minLength":1},"variant":{"enum":["default","emphasis","security","dashed","return"]},"note":{"type":"string"}}}},"activations":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["participant","from","to"],"properties":{"participant":{"$ref":"common.schema.json#/$defs/id"},"from":{"type":"number"},"to":{"type":"number"},"type":{"$ref":"common.schema.json#/$defs/componentType"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const schema77 = {"enum":["trace","none"]};const schema78 = {"enum":["classic","signal-flow","blueprint","editorial"]};const schema79 = {"enum":["standard","showcase"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/sequence.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.participants === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "participants"},message:"must have required property '"+"participants"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.messages === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "messages"},message:"must have required property '"+"messages"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "participants")) || (key0 === "segments")) || (key0 === "messages")) || (key0 === "activations")) || (key0 === "cards"))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err6 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.diagram_type !== undefined){if("sequence" !== data.diagram_type){const err7 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "sequence"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data2.output === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema73.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(!pattern4.test(data4)){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err16 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err19 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(func3(data6) < 1){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err23 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err24 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err26 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err28 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err30 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err32 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err34 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err36 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err38 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(!pattern14.test(data8)){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err42 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err43 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err44 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.column_fit !== undefined){let data12 = data2.column_fit;if(!((data12 === "fixed") || (data12 === "spread"))){const err45 = {instancePath:instancePath+"/meta/column_fit",schemaPath:"#/properties/meta/properties/column_fit/enum",keyword:"enum",params:{allowedValues: schema73.properties.meta.properties.column_fit.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data13 = data2.repository;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data13.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data13){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data13.url !== undefined){let data14 = data13.url;if(typeof data14 === "string"){if(func3(data14) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data13.provider !== undefined){let data15 = data13.provider;if(!((data15 === "github") || (data15 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data13.link_mode !== undefined){let data16 = data13.link_mode;if(!((data16 === "web") || (data16 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data13.revision !== undefined){let data17 = data13.revision;if(typeof data17 === "string"){if(!pattern15.test(data17)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate28(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data19 = data2.legend;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){for(const key5 in data19){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data19.mode !== undefined){let data20 = data19.mode;if(!(((data20 === "auto") || (data20 === "all")) || (data20 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data19.entries !== undefined){let data21 = data19.entries;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){for(const key6 in data21){if(!(((((key6 === "default") || (key6 === "emphasis")) || (key6 === "security")) || (key6 === "dashed")) || (key6 === "return"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data21.default !== undefined){let data22 = data21.default;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data23) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data21.emphasis !== undefined){let data25 = data21.emphasis;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data26) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data21.security !== undefined){let data28 = data21.security;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data28){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data29) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data21.dashed !== undefined){let data31 = data21.dashed;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data31){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data32) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data21.return !== undefined){let data34 = data21.return;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(Object.keys(data34).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data34){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data34.label !== undefined){let data35 = data34.label;if(typeof data35 === "string"){if(func3(data35) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data35) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data34.visible !== undefined){if(typeof data34.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/return/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}else {const err94 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data2.viewBox !== undefined){let data37 = data2.viewBox;if(Array.isArray(data37)){if(data37.length > 2){const err96 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data37.length < 2){const err97 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const len0 = data37.length;if(len0 > 0){let data38 = data37[0];if((typeof data38 == "number") && (isFinite(data38))){if(data38 < 480 || isNaN(data38)){const err98 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(len0 > 1){let data39 = data37[1];if((typeof data39 == "number") && (isFinite(data39))){if(data39 < 480 || isNaN(data39)){const err100 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}const len1 = data37.length;if(!(len1 <= 2)){const err102 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data.participants !== undefined){let data40 = data.participants;if(Array.isArray(data40)){if(data40.length < 2){const err105 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const len2 = data40.length;for(let i0=0; i0<len2; i0++){let data41 = data40[i0];if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.id === undefined){const err106 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data41.type === undefined){const err107 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(data41.label === undefined){const err108 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}for(const key12 in data41){if(!(((((((key12 === "id") || (key12 === "type")) || (key12 === "label")) || (key12 === "sublabel")) || (key12 === "icon")) || (key12 === "brand")) || (key12 === "sources"))){const err109 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data41.id !== undefined){let data42 = data41.id;if(typeof data42 === "string"){if(!pattern16.test(data42)){const err110 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data41.type !== undefined){let data43 = data41.type;if(!(((((((data43 === "frontend") || (data43 === "backend")) || (data43 === "database")) || (data43 === "cloud")) || (data43 === "security")) || (data43 === "messagebus")) || (data43 === "external"))){const err112 = {instancePath:instancePath+"/participants/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data41.label !== undefined){let data44 = data41.label;if(typeof data44 === "string"){if(func3(data44) < 1){const err113 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data41.sublabel !== undefined){if(typeof data41.sublabel !== "string"){const err115 = {instancePath:instancePath+"/participants/" + i0+"/sublabel",schemaPath:"#/properties/participants/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data41.icon !== undefined){let data46 = data41.icon;if(!((((((((((((((((((((data46 === "calendar") || (data46 === "clock")) || (data46 === "person")) || (data46 === "briefcase")) || (data46 === "flag")) || (data46 === "moon")) || (data46 === "frontend")) || (data46 === "backend")) || (data46 === "database")) || (data46 === "cloud")) || (data46 === "security")) || (data46 === "messagebus")) || (data46 === "external")) || (data46 === "start")) || (data46 === "active")) || (data46 === "waiting")) || (data46 === "success")) || (data46 === "failure")) || (data46 === "neutral")) || (data46 === "none"))){const err116 = {instancePath:instancePath+"/participants/" + i0+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data41.brand !== undefined){let data47 = data41.brand;const _errs136 = errors;let valid41 = false;let passing0 = null;const _errs137 = errors;const _errs139 = errors;let valid42 = false;const _errs140 = errors;if(typeof data47 === "string"){if(func3(data47) > 80){const err117 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(!pattern29.test(data47)){const err118 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid1 = _errs140 === errors;valid42 = valid42 || _valid1;const _errs141 = errors;if(typeof data47 === "string"){if(!pattern30.test(data47)){const err119 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var _valid1 = _errs141 === errors;valid42 = valid42 || _valid1;if(!valid42){const err120 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {errors = _errs139;if(vErrors !== null){if(_errs139){vErrors.length = _errs139;}else {vErrors = null;}}}if(typeof data47 === "string"){if(func3(data47) > 2048){const err121 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(func3(data47) < 1){const err122 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid0 = _errs137 === errors;if(_valid0){valid41 = true;passing0 = 0;}const _errs142 = errors;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.url === undefined){const err124 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data47.sha256 === undefined){const err125 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}for(const key13 in data47){if(!((key13 === "url") || (key13 === "sha256"))){const err126 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data47.url !== undefined){let data48 = data47.url;if(typeof data48 === "string"){if(func3(data48) > 2048){const err127 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(func3(data48) < 8){const err128 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(!pattern30.test(data48)){const err129 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}else {const err130 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data47.sha256 !== undefined){let data49 = data47.sha256;if(typeof data49 === "string"){if(!pattern32.test(data49)){const err131 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}else {const err132 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}else {const err133 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var _valid0 = _errs142 === errors;if(_valid0 && valid41){valid41 = false;passing0 = [passing0, 1];}else {if(_valid0){valid41 = true;passing0 = 1;}}if(!valid41){const err134 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}}if(data41.sources !== undefined){let data50 = data41.sources;if(Array.isArray(data50)){if(data50.length > 3){const err135 = {instancePath:instancePath+"/participants/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data50.length < 1){const err136 = {instancePath:instancePath+"/participants/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}const len3 = data50.length;for(let i1=0; i1<len3; i1++){let data51 = data50[i1];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.path === undefined){const err137 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}for(const key14 in data51){if(!((((key14 === "path") || (key14 === "line")) || (key14 === "end_line")) || (key14 === "label"))){const err138 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data51.path !== undefined){let data52 = data51.path;if(typeof data52 === "string"){if(func3(data52) > 240){const err139 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(func3(data52) < 1){const err140 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data51.line !== undefined){let data53 = data51.line;if(!(((typeof data53 == "number") && (!(data53 % 1) && !isNaN(data53))) && (isFinite(data53)))){const err142 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if((typeof data53 == "number") && (isFinite(data53))){if(data53 < 1 || isNaN(data53)){const err143 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}if(data51.end_line !== undefined){let data54 = data51.end_line;if(!(((typeof data54 == "number") && (!(data54 % 1) && !isNaN(data54))) && (isFinite(data54)))){const err144 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if((typeof data54 == "number") && (isFinite(data54))){if(data54 < 1 || isNaN(data54)){const err145 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}}if(data51.label !== undefined){let data55 = data51.label;if(typeof data55 === "string"){if(func3(data55) > 48){const err146 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(func3(data55) < 1){const err147 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath:instancePath+"/participants/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}else {const err151 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}else {const err152 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data.segments !== undefined){let data56 = data.segments;if(Array.isArray(data56)){const len4 = data56.length;for(let i2=0; i2<len4; i2++){let data57 = data56[i2];if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.from === undefined){const err153 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data57.to === undefined){const err154 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data57.label === undefined){const err155 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}for(const key15 in data57){if(!(((key15 === "from") || (key15 === "to")) || (key15 === "label"))){const err156 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data57.from !== undefined){let data58 = data57.from;if(!((typeof data58 == "number") && (isFinite(data58)))){const err157 = {instancePath:instancePath+"/segments/" + i2+"/from",schemaPath:"#/properties/segments/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data57.to !== undefined){let data59 = data57.to;if(!((typeof data59 == "number") && (isFinite(data59)))){const err158 = {instancePath:instancePath+"/segments/" + i2+"/to",schemaPath:"#/properties/segments/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data57.label !== undefined){let data60 = data57.label;if(typeof data60 === "string"){if(func3(data60) < 1){const err159 = {instancePath:instancePath+"/segments/" + i2+"/label",schemaPath:"#/properties/segments/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/segments/" + i2+"/label",schemaPath:"#/properties/segments/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}else {const err162 = {instancePath:instancePath+"/segments",schemaPath:"#/properties/segments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data.messages !== undefined){let data61 = data.messages;if(Array.isArray(data61)){if(data61.length < 1){const err163 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const len5 = data61.length;for(let i3=0; i3<len5; i3++){let data62 = data61[i3];if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.from === undefined){const err164 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data62.to === undefined){const err165 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data62.y === undefined){const err166 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "y"},message:"must have required property '"+"y"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data62.label === undefined){const err167 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}for(const key16 in data62){if(!(((((((key16 === "id") || (key16 === "from")) || (key16 === "to")) || (key16 === "y")) || (key16 === "label")) || (key16 === "variant")) || (key16 === "note"))){const err168 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data62.id !== undefined){let data63 = data62.id;if(typeof data63 === "string"){if(!pattern16.test(data63)){const err169 = {instancePath:instancePath+"/messages/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/messages/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data62.from !== undefined){let data64 = data62.from;if(typeof data64 === "string"){if(!pattern16.test(data64)){const err171 = {instancePath:instancePath+"/messages/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {instancePath:instancePath+"/messages/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data62.to !== undefined){let data65 = data62.to;if(typeof data65 === "string"){if(!pattern16.test(data65)){const err173 = {instancePath:instancePath+"/messages/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {instancePath:instancePath+"/messages/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data62.y !== undefined){let data66 = data62.y;if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 160 || isNaN(data66)){const err175 = {instancePath:instancePath+"/messages/" + i3+"/y",schemaPath:"#/properties/messages/items/properties/y/minimum",keyword:"minimum",params:{comparison: ">=", limit: 160},message:"must be >= 160"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/messages/" + i3+"/y",schemaPath:"#/properties/messages/items/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data62.label !== undefined){let data67 = data62.label;if(typeof data67 === "string"){if(func3(data67) < 1){const err177 = {instancePath:instancePath+"/messages/" + i3+"/label",schemaPath:"#/properties/messages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/messages/" + i3+"/label",schemaPath:"#/properties/messages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data62.variant !== undefined){let data68 = data62.variant;if(!(((((data68 === "default") || (data68 === "emphasis")) || (data68 === "security")) || (data68 === "dashed")) || (data68 === "return"))){const err179 = {instancePath:instancePath+"/messages/" + i3+"/variant",schemaPath:"#/properties/messages/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema73.properties.messages.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data62.note !== undefined){if(typeof data62.note !== "string"){const err180 = {instancePath:instancePath+"/messages/" + i3+"/note",schemaPath:"#/properties/messages/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.activations !== undefined){let data70 = data.activations;if(Array.isArray(data70)){const len6 = data70.length;for(let i4=0; i4<len6; i4++){let data71 = data70[i4];if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.participant === undefined){const err183 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "participant"},message:"must have required property '"+"participant"+"'"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data71.from === undefined){const err184 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(data71.to === undefined){const err185 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}for(const key17 in data71){if(!((((key17 === "participant") || (key17 === "from")) || (key17 === "to")) || (key17 === "type"))){const err186 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data71.participant !== undefined){let data72 = data71.participant;if(typeof data72 === "string"){if(!pattern16.test(data72)){const err187 = {instancePath:instancePath+"/activations/" + i4+"/participant",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/activations/" + i4+"/participant",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data71.from !== undefined){let data73 = data71.from;if(!((typeof data73 == "number") && (isFinite(data73)))){const err189 = {instancePath:instancePath+"/activations/" + i4+"/from",schemaPath:"#/properties/activations/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data71.to !== undefined){let data74 = data71.to;if(!((typeof data74 == "number") && (isFinite(data74)))){const err190 = {instancePath:instancePath+"/activations/" + i4+"/to",schemaPath:"#/properties/activations/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data71.type !== undefined){let data75 = data71.type;if(!(((((((data75 === "frontend") || (data75 === "backend")) || (data75 === "database")) || (data75 === "cloud")) || (data75 === "security")) || (data75 === "messagebus")) || (data75 === "external"))){const err191 = {instancePath:instancePath+"/activations/" + i4+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}else {const err192 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/activations",schemaPath:"#/properties/activations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data.cards !== undefined){let data76 = data.cards;if(Array.isArray(data76)){const len7 = data76.length;for(let i5=0; i5<len7; i5++){let data77 = data76[i5];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.dot === undefined){const err194 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data77.title === undefined){const err195 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data77.items === undefined){const err196 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}for(const key18 in data77){if(!(((key18 === "dot") || (key18 === "title")) || (key18 === "items"))){const err197 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data77.dot !== undefined){let data78 = data77.dot;if(!(((((((data78 === "cyan") || (data78 === "emerald")) || (data78 === "violet")) || (data78 === "amber")) || (data78 === "rose")) || (data78 === "orange")) || (data78 === "slate"))){const err198 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data77.title !== undefined){let data79 = data77.title;if(typeof data79 === "string"){if(func3(data79) < 1){const err199 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data77.items !== undefined){let data80 = data77.items;if(Array.isArray(data80)){const len8 = data80.length;for(let i6=0; i6<len8; i6++){if(typeof data80[i6] !== "string"){const err201 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}else {const err202 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const dataflowSchema = validate30;const schema101 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/dataflow.schema.json","title":"Archify Data Flow Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","stages","nodes","flows"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"dataflow"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":360},{"type":"number","minimum":360}],"items":false,"minItems":2,"maxItems":2}}},"stages":{"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["label"],"properties":{"label":{"type":"string","minLength":1}}}},"nodes":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","stage","row"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"},"stage":{"type":"integer","minimum":0},"row":{"type":"integer","minimum":0},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"flows":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"classification":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","vertical-channel","bottom-channel","top-channel"]},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"channelX":{"type":"number"},"channelY":{"type":"number"},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const schema127 = {"enum":["left","right","top","bottom"]};const schema131 = {"type":"number","minimum":0.5};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate31.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate31.errors = vErrors;return errors === 0;}validate31.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/dataflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.stages === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stages"},message:"must have required property '"+"stages"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.flows === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "flows"},message:"must have required property '"+"flows"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "stages")) || (key0 === "nodes")) || (key0 === "flows")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("dataflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "dataflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.output === undefined){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data2){if(!(func1.call(schema101.properties.meta.properties, key1))){const err11 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern4.test(data4)){const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err19 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(func3(data6) < 1){const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err24 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern14.test(data8)){const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err43 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err44 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err45 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data12 = data2.repository;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data12.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data12){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.url !== undefined){let data13 = data12.url;if(typeof data13 === "string"){if(func3(data13) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data12.provider !== undefined){let data14 = data12.provider;if(!((data14 === "github") || (data14 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data12.link_mode !== undefined){let data15 = data12.link_mode;if(!((data15 === "web") || (data15 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data12.revision !== undefined){let data16 = data12.revision;if(typeof data16 === "string"){if(!pattern15.test(data16)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate31(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data18 = data2.legend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key5 in data18){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data18.mode !== undefined){let data19 = data18.mode;if(!(((data19 === "auto") || (data19 === "all")) || (data19 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data18.entries !== undefined){let data20 = data18.entries;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){for(const key6 in data20){if(!(((((key6 === "default") || (key6 === "emphasis")) || (key6 === "security")) || (key6 === "dashed")) || (key6 === "database"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data20.default !== undefined){let data21 = data20.default;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data21){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data22) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data20.emphasis !== undefined){let data24 = data20.emphasis;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data24){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data25) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data20.security !== undefined){let data27 = data20.security;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data27){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data28) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data20.dashed !== undefined){let data30 = data20.dashed;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data30){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data31) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data20.database !== undefined){let data33 = data20.database;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data33){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data34) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}else {const err94 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data2.viewBox !== undefined){let data36 = data2.viewBox;if(Array.isArray(data36)){if(data36.length > 2){const err96 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data36.length < 2){const err97 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const len0 = data36.length;if(len0 > 0){let data37 = data36[0];if((typeof data37 == "number") && (isFinite(data37))){if(data37 < 360 || isNaN(data37)){const err98 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(len0 > 1){let data38 = data36[1];if((typeof data38 == "number") && (isFinite(data38))){if(data38 < 360 || isNaN(data38)){const err100 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}const len1 = data36.length;if(!(len1 <= 2)){const err102 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data.stages !== undefined){let data39 = data.stages;if(Array.isArray(data39)){if(data39.length > 5){const err105 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data39.length < 2){const err106 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const len2 = data39.length;for(let i0=0; i0<len2; i0++){let data40 = data39[i0];if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.label === undefined){const err107 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}for(const key12 in data40){if(!(key12 === "label")){const err108 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data40.label !== undefined){let data41 = data40.label;if(typeof data41 === "string"){if(func3(data41) < 1){const err109 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}else {const err111 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}else {const err112 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data.nodes !== undefined){let data42 = data.nodes;if(Array.isArray(data42)){if(data42.length < 2){const err113 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const len3 = data42.length;for(let i1=0; i1<len3; i1++){let data43 = data42[i1];if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.id === undefined){const err114 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data43.type === undefined){const err115 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data43.label === undefined){const err116 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if(data43.stage === undefined){const err117 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "stage"},message:"must have required property '"+"stage"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data43.row === undefined){const err118 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}for(const key13 in data43){if(!(func1.call(schema101.properties.nodes.items.properties, key13))){const err119 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data43.id !== undefined){let data44 = data43.id;if(typeof data44 === "string"){if(!pattern16.test(data44)){const err120 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}else {const err121 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data43.type !== undefined){let data45 = data43.type;if(!(((((((data45 === "frontend") || (data45 === "backend")) || (data45 === "database")) || (data45 === "cloud")) || (data45 === "security")) || (data45 === "messagebus")) || (data45 === "external"))){const err122 = {instancePath:instancePath+"/nodes/" + i1+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data43.label !== undefined){let data46 = data43.label;if(typeof data46 === "string"){if(func3(data46) < 1){const err123 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data43.sublabel !== undefined){if(typeof data43.sublabel !== "string"){const err125 = {instancePath:instancePath+"/nodes/" + i1+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data43.tag !== undefined){if(typeof data43.tag !== "string"){const err126 = {instancePath:instancePath+"/nodes/" + i1+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data43.icon !== undefined){let data49 = data43.icon;if(!((((((((((((((((((((data49 === "calendar") || (data49 === "clock")) || (data49 === "person")) || (data49 === "briefcase")) || (data49 === "flag")) || (data49 === "moon")) || (data49 === "frontend")) || (data49 === "backend")) || (data49 === "database")) || (data49 === "cloud")) || (data49 === "security")) || (data49 === "messagebus")) || (data49 === "external")) || (data49 === "start")) || (data49 === "active")) || (data49 === "waiting")) || (data49 === "success")) || (data49 === "failure")) || (data49 === "neutral")) || (data49 === "none"))){const err127 = {instancePath:instancePath+"/nodes/" + i1+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data43.brand !== undefined){let data50 = data43.brand;const _errs144 = errors;let valid44 = false;let passing0 = null;const _errs145 = errors;const _errs147 = errors;let valid45 = false;const _errs148 = errors;if(typeof data50 === "string"){if(func3(data50) > 80){const err128 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(!pattern29.test(data50)){const err129 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid1 = _errs148 === errors;valid45 = valid45 || _valid1;const _errs149 = errors;if(typeof data50 === "string"){if(!pattern30.test(data50)){const err130 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid1 = _errs149 === errors;valid45 = valid45 || _valid1;if(!valid45){const err131 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(typeof data50 === "string"){if(func3(data50) > 2048){const err132 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(func3(data50) < 1){const err133 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var _valid0 = _errs145 === errors;if(_valid0){valid44 = true;passing0 = 0;}const _errs150 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.url === undefined){const err135 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data50.sha256 === undefined){const err136 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}for(const key14 in data50){if(!((key14 === "url") || (key14 === "sha256"))){const err137 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data50.url !== undefined){let data51 = data50.url;if(typeof data51 === "string"){if(func3(data51) > 2048){const err138 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(func3(data51) < 8){const err139 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(!pattern30.test(data51)){const err140 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data50.sha256 !== undefined){let data52 = data50.sha256;if(typeof data52 === "string"){if(!pattern32.test(data52)){const err142 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}else {const err143 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var _valid0 = _errs150 === errors;if(_valid0 && valid44){valid44 = false;passing0 = [passing0, 1];}else {if(_valid0){valid44 = true;passing0 = 1;}}if(!valid44){const err145 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}}if(data43.sources !== undefined){let data53 = data43.sources;if(Array.isArray(data53)){if(data53.length > 3){const err146 = {instancePath:instancePath+"/nodes/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data53.length < 1){const err147 = {instancePath:instancePath+"/nodes/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const len4 = data53.length;for(let i2=0; i2<len4; i2++){let data54 = data53[i2];if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.path === undefined){const err148 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}for(const key15 in data54){if(!((((key15 === "path") || (key15 === "line")) || (key15 === "end_line")) || (key15 === "label"))){const err149 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data54.path !== undefined){let data55 = data54.path;if(typeof data55 === "string"){if(func3(data55) > 240){const err150 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(func3(data55) < 1){const err151 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}else {const err152 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data54.line !== undefined){let data56 = data54.line;if(!(((typeof data56 == "number") && (!(data56 % 1) && !isNaN(data56))) && (isFinite(data56)))){const err153 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if((typeof data56 == "number") && (isFinite(data56))){if(data56 < 1 || isNaN(data56)){const err154 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}if(data54.end_line !== undefined){let data57 = data54.end_line;if(!(((typeof data57 == "number") && (!(data57 % 1) && !isNaN(data57))) && (isFinite(data57)))){const err155 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if((typeof data57 == "number") && (isFinite(data57))){if(data57 < 1 || isNaN(data57)){const err156 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}if(data54.label !== undefined){let data58 = data54.label;if(typeof data58 === "string"){if(func3(data58) > 48){const err157 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(func3(data58) < 1){const err158 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}else {const err159 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}}else {const err160 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/nodes/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data43.stage !== undefined){let data59 = data43.stage;if(!(((typeof data59 == "number") && (!(data59 % 1) && !isNaN(data59))) && (isFinite(data59)))){const err162 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if((typeof data59 == "number") && (isFinite(data59))){if(data59 < 0 || isNaN(data59)){const err163 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}if(data43.row !== undefined){let data60 = data43.row;if(!(((typeof data60 == "number") && (!(data60 % 1) && !isNaN(data60))) && (isFinite(data60)))){const err164 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if((typeof data60 == "number") && (isFinite(data60))){if(data60 < 0 || isNaN(data60)){const err165 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}if(data43.width !== undefined){let data61 = data43.width;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 48 || isNaN(data61)){const err166 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data43.height !== undefined){let data62 = data43.height;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 36 || isNaN(data62)){const err168 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data43.yOffset !== undefined){let data63 = data43.yOffset;if(!((typeof data63 == "number") && (isFinite(data63)))){const err170 = {instancePath:instancePath+"/nodes/" + i1+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data.flows !== undefined){let data64 = data.flows;if(Array.isArray(data64)){const len5 = data64.length;for(let i3=0; i3<len5; i3++){let data65 = data64[i3];if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.from === undefined){const err173 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data65.to === undefined){const err174 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(data65.label === undefined){const err175 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}for(const key16 in data65){if(!(func1.call(schema101.properties.flows.items.properties, key16))){const err176 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data65.id !== undefined){let data66 = data65.id;if(typeof data66 === "string"){if(!pattern16.test(data66)){const err177 = {instancePath:instancePath+"/flows/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/flows/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data65.from !== undefined){let data67 = data65.from;if(typeof data67 === "string"){if(!pattern16.test(data67)){const err179 = {instancePath:instancePath+"/flows/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}else {const err180 = {instancePath:instancePath+"/flows/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data65.to !== undefined){let data68 = data65.to;if(typeof data68 === "string"){if(!pattern16.test(data68)){const err181 = {instancePath:instancePath+"/flows/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/flows/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data65.label !== undefined){let data69 = data65.label;if(typeof data69 === "string"){if(func3(data69) < 1){const err183 = {instancePath:instancePath+"/flows/" + i3+"/label",schemaPath:"#/properties/flows/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/flows/" + i3+"/label",schemaPath:"#/properties/flows/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data65.classification !== undefined){if(typeof data65.classification !== "string"){const err185 = {instancePath:instancePath+"/flows/" + i3+"/classification",schemaPath:"#/properties/flows/items/properties/classification/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data65.variant !== undefined){let data71 = data65.variant;if(!((((data71 === "default") || (data71 === "emphasis")) || (data71 === "security")) || (data71 === "dashed"))){const err186 = {instancePath:instancePath+"/flows/" + i3+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data65.route !== undefined){let data72 = data65.route;if(!(((((data72 === "auto") || (data72 === "straight")) || (data72 === "vertical-channel")) || (data72 === "bottom-channel")) || (data72 === "top-channel"))){const err187 = {instancePath:instancePath+"/flows/" + i3+"/route",schemaPath:"#/properties/flows/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema101.properties.flows.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data65.fromSide !== undefined){let data73 = data65.fromSide;if(!((((data73 === "left") || (data73 === "right")) || (data73 === "top")) || (data73 === "bottom"))){const err188 = {instancePath:instancePath+"/flows/" + i3+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data65.toSide !== undefined){let data74 = data65.toSide;if(!((((data74 === "left") || (data74 === "right")) || (data74 === "top")) || (data74 === "bottom"))){const err189 = {instancePath:instancePath+"/flows/" + i3+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data65.channelX !== undefined){let data75 = data65.channelX;if(!((typeof data75 == "number") && (isFinite(data75)))){const err190 = {instancePath:instancePath+"/flows/" + i3+"/channelX",schemaPath:"#/properties/flows/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data65.channelY !== undefined){let data76 = data65.channelY;if(!((typeof data76 == "number") && (isFinite(data76)))){const err191 = {instancePath:instancePath+"/flows/" + i3+"/channelY",schemaPath:"#/properties/flows/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data65.labelAt !== undefined){let data77 = data65.labelAt;if(Array.isArray(data77)){if(data77.length > 2){const err192 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data77.length < 2){const err193 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}const len6 = data77.length;if(len6 > 0){let data78 = data77[0];if(!((typeof data78 == "number") && (isFinite(data78)))){const err194 = {instancePath:instancePath+"/flows/" + i3+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(len6 > 1){let data79 = data77[1];if(!((typeof data79 == "number") && (isFinite(data79)))){const err195 = {instancePath:instancePath+"/flows/" + i3+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}const len7 = data77.length;if(!(len7 <= 2)){const err196 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}else {const err197 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data65.labelDx !== undefined){let data80 = data65.labelDx;if(!((typeof data80 == "number") && (isFinite(data80)))){const err198 = {instancePath:instancePath+"/flows/" + i3+"/labelDx",schemaPath:"#/properties/flows/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data65.labelDy !== undefined){let data81 = data65.labelDy;if(!((typeof data81 == "number") && (isFinite(data81)))){const err199 = {instancePath:instancePath+"/flows/" + i3+"/labelDy",schemaPath:"#/properties/flows/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data65.labelSegment !== undefined){let data82 = data65.labelSegment;if(!(((typeof data82 == "number") && (!(data82 % 1) && !isNaN(data82))) && (isFinite(data82)))){const err200 = {instancePath:instancePath+"/flows/" + i3+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err201 = {instancePath:instancePath+"/flows/" + i3+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}if(data65.via !== undefined){let data83 = data65.via;if(Array.isArray(data83)){const len8 = data83.length;for(let i4=0; i4<len8; i4++){let data84 = data83[i4];if(Array.isArray(data84)){if(data84.length > 2){const err202 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(data84.length < 2){const err203 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}const len9 = data84.length;if(len9 > 0){let data85 = data84[0];if(!((typeof data85 == "number") && (isFinite(data85)))){const err204 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(len9 > 1){let data86 = data84[1];if(!((typeof data86 == "number") && (isFinite(data86)))){const err205 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}const len10 = data84.length;if(!(len10 <= 2)){const err206 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}else {const err207 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}else {const err208 = {instancePath:instancePath+"/flows/" + i3+"/via",schemaPath:"#/properties/flows/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data65.width !== undefined){let data87 = data65.width;if((typeof data87 == "number") && (isFinite(data87))){if(data87 < 0.5 || isNaN(data87)){const err209 = {instancePath:instancePath+"/flows/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/flows/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath:instancePath+"/flows",schemaPath:"#/properties/flows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data.cards !== undefined){let data88 = data.cards;if(Array.isArray(data88)){const len11 = data88.length;for(let i5=0; i5<len11; i5++){let data89 = data88[i5];if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.dot === undefined){const err213 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data89.title === undefined){const err214 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data89.items === undefined){const err215 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}for(const key17 in data89){if(!(((key17 === "dot") || (key17 === "title")) || (key17 === "items"))){const err216 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data89.dot !== undefined){let data90 = data89.dot;if(!(((((((data90 === "cyan") || (data90 === "emerald")) || (data90 === "violet")) || (data90 === "amber")) || (data90 === "rose")) || (data90 === "orange")) || (data90 === "slate"))){const err217 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data89.title !== undefined){let data91 = data89.title;if(typeof data91 === "string"){if(func3(data91) < 1){const err218 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data89.items !== undefined){let data92 = data89.items;if(Array.isArray(data92)){const len12 = data92.length;for(let i6=0; i6<len12; i6++){if(typeof data92[i6] !== "string"){const err220 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}}else {const err221 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}}else {const err224 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const lifecycleSchema = validate33;const schema133 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json","title":"Archify Lifecycle Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","lanes","states","transitions"],"properties":{"schema_version":{"enum":[1,2]},"diagram_type":{"const":"lifecycle"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"start":{"$ref":"common.schema.json#/$defs/legendEntry"},"active":{"$ref":"common.schema.json#/$defs/legendEntry"},"waiting":{"$ref":"common.schema.json#/$defs/legendEntry"},"decision":{"$ref":"common.schema.json#/$defs/legendEntry"},"success":{"$ref":"common.schema.json#/$defs/legendEntry"},"failure":{"$ref":"common.schema.json#/$defs/legendEntry"},"neutral":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":420},{"type":"number","minimum":300}],"items":false,"minItems":2,"maxItems":2}}},"lanes":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1}}}},"states":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","lane","col"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"enum":["start","active","waiting","decision","success","failure","neutral","external"]},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"},"step":{"type":"string"},"lane":{"$ref":"common.schema.json#/$defs/id"},"col":{"type":"integer","minimum":0,"maximum":4},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"transitions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"note":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","drop","bottom-channel","top-channel","right-channel","left-channel"]},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"channelX":{"type":"number"},"channelY":{"type":"number"},"cornerRadius":{"type":"number","minimum":0},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate33.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.states === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "states"},message:"must have required property '"+"states"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.transitions === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transitions"},message:"must have required property '"+"transitions"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "lanes")) || (key0 === "states")) || (key0 === "transitions")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){let data0 = data.schema_version;if(!((data0 === 1) || (data0 === 2))){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/enum",keyword:"enum",params:{allowedValues: schema133.properties.schema_version.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("lifecycle" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "lifecycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.output === undefined){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data2){if(!(func1.call(schema133.properties.meta.properties, key1))){const err11 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern4.test(data4)){const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err19 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(func3(data6) < 1){const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err24 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern14.test(data8)){const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err43 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err44 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err45 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data12 = data2.repository;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data12.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data12){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.url !== undefined){let data13 = data12.url;if(typeof data13 === "string"){if(func3(data13) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data12.provider !== undefined){let data14 = data12.provider;if(!((data14 === "github") || (data14 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data12.link_mode !== undefined){let data15 = data12.link_mode;if(!((data15 === "web") || (data15 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data12.revision !== undefined){let data16 = data12.revision;if(typeof data16 === "string"){if(!pattern15.test(data16)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate34(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data18 = data2.legend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key5 in data18){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data18.mode !== undefined){let data19 = data18.mode;if(!(((data19 === "auto") || (data19 === "all")) || (data19 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data18.entries !== undefined){let data20 = data18.entries;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){for(const key6 in data20){if(!((((((((key6 === "start") || (key6 === "active")) || (key6 === "waiting")) || (key6 === "decision")) || (key6 === "success")) || (key6 === "failure")) || (key6 === "neutral")) || (key6 === "external"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data20.start !== undefined){let data21 = data20.start;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data21){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data22) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/start/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data20.active !== undefined){let data24 = data20.active;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data24){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data25) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/active/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data20.waiting !== undefined){let data27 = data20.waiting;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data27){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data28) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/waiting/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data20.decision !== undefined){let data30 = data20.decision;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data30){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data31) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/decision/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data20.success !== undefined){let data33 = data20.success;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data33){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data34) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/success/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data20.failure !== undefined){let data36 = data20.failure;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(Object.keys(data36).length < 1){const err94 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}for(const key12 in data36){if(!((key12 === "label") || (key12 === "visible"))){const err95 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data36.label !== undefined){let data37 = data36.label;if(typeof data37 === "string"){if(func3(data37) > 80){const err96 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(func3(data37) < 1){const err97 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}else {const err98 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data36.visible !== undefined){if(typeof data36.visible !== "boolean"){const err99 = {instancePath:instancePath+"/meta/legend/entries/failure/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data20.neutral !== undefined){let data39 = data20.neutral;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(Object.keys(data39).length < 1){const err101 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}for(const key13 in data39){if(!((key13 === "label") || (key13 === "visible"))){const err102 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data39.label !== undefined){let data40 = data39.label;if(typeof data40 === "string"){if(func3(data40) > 80){const err103 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(func3(data40) < 1){const err104 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data39.visible !== undefined){if(typeof data39.visible !== "boolean"){const err106 = {instancePath:instancePath+"/meta/legend/entries/neutral/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data20.external !== undefined){let data42 = data20.external;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(Object.keys(data42).length < 1){const err108 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}for(const key14 in data42){if(!((key14 === "label") || (key14 === "visible"))){const err109 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data42.label !== undefined){let data43 = data42.label;if(typeof data43 === "string"){if(func3(data43) > 80){const err110 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(func3(data43) < 1){const err111 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data42.visible !== undefined){if(typeof data42.visible !== "boolean"){const err113 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}else {const err114 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}else {const err115 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data2.viewBox !== undefined){let data45 = data2.viewBox;if(Array.isArray(data45)){if(data45.length > 2){const err117 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data45.length < 2){const err118 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const len0 = data45.length;if(len0 > 0){let data46 = data45[0];if((typeof data46 == "number") && (isFinite(data46))){if(data46 < 420 || isNaN(data46)){const err119 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 420},message:"must be >= 420"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(len0 > 1){let data47 = data45[1];if((typeof data47 == "number") && (isFinite(data47))){if(data47 < 300 || isNaN(data47)){const err121 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 300},message:"must be >= 300"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}else {const err122 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}const len1 = data45.length;if(!(len1 <= 2)){const err123 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data.lanes !== undefined){let data48 = data.lanes;if(Array.isArray(data48)){if(data48.length > 4){const err126 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/maxItems",keyword:"maxItems",params:{limit: 4},message:"must NOT have more than 4 items"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data48.length < 1){const err127 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const len2 = data48.length;for(let i0=0; i0<len2; i0++){let data49 = data48[i0];if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err128 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data49.label === undefined){const err129 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}for(const key15 in data49){if(!((key15 === "id") || (key15 === "label"))){const err130 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data49.id !== undefined){let data50 = data49.id;if(typeof data50 === "string"){if(!pattern16.test(data50)){const err131 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}else {const err132 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data49.label !== undefined){let data51 = data49.label;if(typeof data51 === "string"){if(func3(data51) < 1){const err133 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}else {const err136 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data.states !== undefined){let data52 = data.states;if(Array.isArray(data52)){if(data52.length < 2){const err137 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}const len3 = data52.length;for(let i1=0; i1<len3; i1++){let data53 = data52[i1];if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.id === undefined){const err138 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data53.type === undefined){const err139 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data53.label === undefined){const err140 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data53.lane === undefined){const err141 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data53.col === undefined){const err142 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key16 in data53){if(!(func1.call(schema133.properties.states.items.properties, key16))){const err143 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data53.id !== undefined){let data54 = data53.id;if(typeof data54 === "string"){if(!pattern16.test(data54)){const err144 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data53.type !== undefined){let data55 = data53.type;if(!((((((((data55 === "start") || (data55 === "active")) || (data55 === "waiting")) || (data55 === "decision")) || (data55 === "success")) || (data55 === "failure")) || (data55 === "neutral")) || (data55 === "external"))){const err146 = {instancePath:instancePath+"/states/" + i1+"/type",schemaPath:"#/properties/states/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema133.properties.states.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data53.label !== undefined){let data56 = data53.label;if(typeof data56 === "string"){if(func3(data56) < 1){const err147 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}if(data53.sublabel !== undefined){if(typeof data53.sublabel !== "string"){const err149 = {instancePath:instancePath+"/states/" + i1+"/sublabel",schemaPath:"#/properties/states/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data53.tag !== undefined){if(typeof data53.tag !== "string"){const err150 = {instancePath:instancePath+"/states/" + i1+"/tag",schemaPath:"#/properties/states/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data53.icon !== undefined){let data59 = data53.icon;if(!((((((((((((((((((((data59 === "calendar") || (data59 === "clock")) || (data59 === "person")) || (data59 === "briefcase")) || (data59 === "flag")) || (data59 === "moon")) || (data59 === "frontend")) || (data59 === "backend")) || (data59 === "database")) || (data59 === "cloud")) || (data59 === "security")) || (data59 === "messagebus")) || (data59 === "external")) || (data59 === "start")) || (data59 === "active")) || (data59 === "waiting")) || (data59 === "success")) || (data59 === "failure")) || (data59 === "neutral")) || (data59 === "none"))){const err151 = {instancePath:instancePath+"/states/" + i1+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data53.brand !== undefined){let data60 = data53.brand;const _errs170 = errors;let valid50 = false;let passing0 = null;const _errs171 = errors;const _errs173 = errors;let valid51 = false;const _errs174 = errors;if(typeof data60 === "string"){if(func3(data60) > 80){const err152 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(!pattern29.test(data60)){const err153 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid1 = _errs174 === errors;valid51 = valid51 || _valid1;const _errs175 = errors;if(typeof data60 === "string"){if(!pattern30.test(data60)){const err154 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid1 = _errs175 === errors;valid51 = valid51 || _valid1;if(!valid51){const err155 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs173;if(vErrors !== null){if(_errs173){vErrors.length = _errs173;}else {vErrors = null;}}}if(typeof data60 === "string"){if(func3(data60) > 2048){const err156 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(func3(data60) < 1){const err157 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}else {const err158 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}var _valid0 = _errs171 === errors;if(_valid0){valid50 = true;passing0 = 0;}const _errs176 = errors;if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.url === undefined){const err159 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data60.sha256 === undefined){const err160 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}for(const key17 in data60){if(!((key17 === "url") || (key17 === "sha256"))){const err161 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data60.url !== undefined){let data61 = data60.url;if(typeof data61 === "string"){if(func3(data61) > 2048){const err162 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(func3(data61) < 8){const err163 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(!pattern30.test(data61)){const err164 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data60.sha256 !== undefined){let data62 = data60.sha256;if(typeof data62 === "string"){if(!pattern32.test(data62)){const err166 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid0 = _errs176 === errors;if(_valid0 && valid50){valid50 = false;passing0 = [passing0, 1];}else {if(_valid0){valid50 = true;passing0 = 1;}}if(!valid50){const err169 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}if(data53.sources !== undefined){let data63 = data53.sources;if(Array.isArray(data63)){if(data63.length > 3){const err170 = {instancePath:instancePath+"/states/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data63.length < 1){const err171 = {instancePath:instancePath+"/states/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const len4 = data63.length;for(let i2=0; i2<len4; i2++){let data64 = data63[i2];if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.path === undefined){const err172 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}for(const key18 in data64){if(!((((key18 === "path") || (key18 === "line")) || (key18 === "end_line")) || (key18 === "label"))){const err173 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data64.path !== undefined){let data65 = data64.path;if(typeof data65 === "string"){if(func3(data65) > 240){const err174 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(func3(data65) < 1){const err175 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data64.line !== undefined){let data66 = data64.line;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err177 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err178 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}if(data64.end_line !== undefined){let data67 = data64.end_line;if(!(((typeof data67 == "number") && (!(data67 % 1) && !isNaN(data67))) && (isFinite(data67)))){const err179 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if((typeof data67 == "number") && (isFinite(data67))){if(data67 < 1 || isNaN(data67)){const err180 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}if(data64.label !== undefined){let data68 = data64.label;if(typeof data68 === "string"){if(func3(data68) > 48){const err181 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(func3(data68) < 1){const err182 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}else {const err183 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath:instancePath+"/states/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data53.step !== undefined){if(typeof data53.step !== "string"){const err186 = {instancePath:instancePath+"/states/" + i1+"/step",schemaPath:"#/properties/states/items/properties/step/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data53.lane !== undefined){let data70 = data53.lane;if(typeof data70 === "string"){if(!pattern16.test(data70)){const err187 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data53.col !== undefined){let data71 = data53.col;if(!(((typeof data71 == "number") && (!(data71 % 1) && !isNaN(data71))) && (isFinite(data71)))){const err189 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if((typeof data71 == "number") && (isFinite(data71))){if(data71 > 4 || isNaN(data71)){const err190 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 4},message:"must be <= 4"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data71 < 0 || isNaN(data71)){const err191 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}if(data53.width !== undefined){let data72 = data53.width;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 48 || isNaN(data72)){const err192 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data53.height !== undefined){let data73 = data53.height;if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 36 || isNaN(data73)){const err194 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data53.yOffset !== undefined){let data74 = data53.yOffset;if(!((typeof data74 == "number") && (isFinite(data74)))){const err196 = {instancePath:instancePath+"/states/" + i1+"/yOffset",schemaPath:"#/properties/states/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}}else {const err197 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}else {const err198 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data.transitions !== undefined){let data75 = data.transitions;if(Array.isArray(data75)){const len5 = data75.length;for(let i3=0; i3<len5; i3++){let data76 = data75[i3];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.from === undefined){const err199 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data76.to === undefined){const err200 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}for(const key19 in data76){if(!(func1.call(schema133.properties.transitions.items.properties, key19))){const err201 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!pattern16.test(data77)){const err202 = {instancePath:instancePath+"/transitions/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {instancePath:instancePath+"/transitions/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data76.from !== undefined){let data78 = data76.from;if(typeof data78 === "string"){if(!pattern16.test(data78)){const err204 = {instancePath:instancePath+"/transitions/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}else {const err205 = {instancePath:instancePath+"/transitions/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data76.to !== undefined){let data79 = data76.to;if(typeof data79 === "string"){if(!pattern16.test(data79)){const err206 = {instancePath:instancePath+"/transitions/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}else {const err207 = {instancePath:instancePath+"/transitions/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(data76.label !== undefined){if(typeof data76.label !== "string"){const err208 = {instancePath:instancePath+"/transitions/" + i3+"/label",schemaPath:"#/properties/transitions/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data76.note !== undefined){if(typeof data76.note !== "string"){const err209 = {instancePath:instancePath+"/transitions/" + i3+"/note",schemaPath:"#/properties/transitions/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data76.variant !== undefined){let data82 = data76.variant;if(!((((data82 === "default") || (data82 === "emphasis")) || (data82 === "security")) || (data82 === "dashed"))){const err210 = {instancePath:instancePath+"/transitions/" + i3+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data76.route !== undefined){let data83 = data76.route;if(!(((((((data83 === "auto") || (data83 === "straight")) || (data83 === "drop")) || (data83 === "bottom-channel")) || (data83 === "top-channel")) || (data83 === "right-channel")) || (data83 === "left-channel"))){const err211 = {instancePath:instancePath+"/transitions/" + i3+"/route",schemaPath:"#/properties/transitions/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema133.properties.transitions.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data76.fromSide !== undefined){let data84 = data76.fromSide;if(!((((data84 === "left") || (data84 === "right")) || (data84 === "top")) || (data84 === "bottom"))){const err212 = {instancePath:instancePath+"/transitions/" + i3+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data76.toSide !== undefined){let data85 = data76.toSide;if(!((((data85 === "left") || (data85 === "right")) || (data85 === "top")) || (data85 === "bottom"))){const err213 = {instancePath:instancePath+"/transitions/" + i3+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data76.channelX !== undefined){let data86 = data76.channelX;if(!((typeof data86 == "number") && (isFinite(data86)))){const err214 = {instancePath:instancePath+"/transitions/" + i3+"/channelX",schemaPath:"#/properties/transitions/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data76.channelY !== undefined){let data87 = data76.channelY;if(!((typeof data87 == "number") && (isFinite(data87)))){const err215 = {instancePath:instancePath+"/transitions/" + i3+"/channelY",schemaPath:"#/properties/transitions/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data76.cornerRadius !== undefined){let data88 = data76.cornerRadius;if((typeof data88 == "number") && (isFinite(data88))){if(data88 < 0 || isNaN(data88)){const err216 = {instancePath:instancePath+"/transitions/" + i3+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/transitions/" + i3+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data76.labelAt !== undefined){let data89 = data76.labelAt;if(Array.isArray(data89)){if(data89.length > 2){const err218 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data89.length < 2){const err219 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}const len6 = data89.length;if(len6 > 0){let data90 = data89[0];if(!((typeof data90 == "number") && (isFinite(data90)))){const err220 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(len6 > 1){let data91 = data89[1];if(!((typeof data91 == "number") && (isFinite(data91)))){const err221 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}const len7 = data89.length;if(!(len7 <= 2)){const err222 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}else {const err223 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data76.labelDx !== undefined){let data92 = data76.labelDx;if(!((typeof data92 == "number") && (isFinite(data92)))){const err224 = {instancePath:instancePath+"/transitions/" + i3+"/labelDx",schemaPath:"#/properties/transitions/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data76.labelDy !== undefined){let data93 = data76.labelDy;if(!((typeof data93 == "number") && (isFinite(data93)))){const err225 = {instancePath:instancePath+"/transitions/" + i3+"/labelDy",schemaPath:"#/properties/transitions/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data76.labelSegment !== undefined){let data94 = data76.labelSegment;if(!(((typeof data94 == "number") && (!(data94 % 1) && !isNaN(data94))) && (isFinite(data94)))){const err226 = {instancePath:instancePath+"/transitions/" + i3+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if((typeof data94 == "number") && (isFinite(data94))){if(data94 < 0 || isNaN(data94)){const err227 = {instancePath:instancePath+"/transitions/" + i3+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}if(data76.via !== undefined){let data95 = data76.via;if(Array.isArray(data95)){const len8 = data95.length;for(let i4=0; i4<len8; i4++){let data96 = data95[i4];if(Array.isArray(data96)){if(data96.length > 2){const err228 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data96.length < 2){const err229 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}const len9 = data96.length;if(len9 > 0){let data97 = data96[0];if(!((typeof data97 == "number") && (isFinite(data97)))){const err230 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(len9 > 1){let data98 = data96[1];if(!((typeof data98 == "number") && (isFinite(data98)))){const err231 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}const len10 = data96.length;if(!(len10 <= 2)){const err232 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}else {const err233 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/transitions/" + i3+"/via",schemaPath:"#/properties/transitions/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}if(data76.width !== undefined){let data99 = data76.width;if((typeof data99 == "number") && (isFinite(data99))){if(data99 < 0.5 || isNaN(data99)){const err235 = {instancePath:instancePath+"/transitions/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}else {const err236 = {instancePath:instancePath+"/transitions/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/transitions",schemaPath:"#/properties/transitions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data.cards !== undefined){let data100 = data.cards;if(Array.isArray(data100)){const len11 = data100.length;for(let i5=0; i5<len11; i5++){let data101 = data100[i5];if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.dot === undefined){const err239 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data101.title === undefined){const err240 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if(data101.items === undefined){const err241 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}for(const key20 in data101){if(!(((key20 === "dot") || (key20 === "title")) || (key20 === "items"))){const err242 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}if(data101.dot !== undefined){let data102 = data101.dot;if(!(((((((data102 === "cyan") || (data102 === "emerald")) || (data102 === "violet")) || (data102 === "amber")) || (data102 === "rose")) || (data102 === "orange")) || (data102 === "slate"))){const err243 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}if(data101.title !== undefined){let data103 = data101.title;if(typeof data103 === "string"){if(func3(data103) < 1){const err244 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}else {const err245 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data101.items !== undefined){let data104 = data101.items;if(Array.isArray(data104)){const len12 = data104.length;for(let i6=0; i6<len12; i6++){if(typeof data104[i6] !== "string"){const err246 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}else {const err249 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}}else {const err250 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const architectureSchema = validate36;const schema169 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/architecture.schema.json","title":"Archify Architecture Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","components"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"architecture"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"engineering_profile":{"enum":["deployment-ownership"]},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"frontend":{"$ref":"common.schema.json#/$defs/legendEntry"},"backend":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"},"cloud":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"messagebus":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":320},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"layout":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["grid"]},"origin":{"$ref":"common.schema.json#/$defs/point"},"cols":{"type":"integer","minimum":1,"maximum":12},"gapX":{"type":"number","minimum":0},"gapY":{"type":"number","minimum":0},"cellW":{"type":"number","minimum":40},"cellH":{"type":"number","minimum":24}}},"components":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"},"row":{"type":"integer","minimum":0},"col":{"type":"integer","minimum":0},"pos":{"$ref":"common.schema.json#/$defs/point"},"size":{"type":"array","prefixItems":[{"type":"number","exclusiveMinimum":0},{"type":"number","exclusiveMinimum":0}],"items":false,"minItems":2,"maxItems":2}}}},"boundaries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["kind","label","wraps"],"properties":{"kind":{"enum":["region","security-group"]},"label":{"type":"string","minLength":1},"wraps":{"type":"array","minItems":1,"items":{"$ref":"common.schema.json#/$defs/id"}},"pad":{"type":"number","minimum":0}}}},"connections":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"route":{"enum":["auto","straight","orthogonal-h","orthogonal-v"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate37.errors = vErrors;return errors === 0;}validate37.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/architecture.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.components === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "components"},message:"must have required property '"+"components"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "layout")) || (key0 === "components")) || (key0 === "boundaries")) || (key0 === "connections")) || (key0 === "cards"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err5 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.diagram_type !== undefined){if("architecture" !== data.diagram_type){const err6 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "architecture"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data2.output === undefined){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key1 in data2){if(!(func1.call(schema169.properties.meta.properties, key1))){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err12 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern4.test(data4)){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err15 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err16 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err18 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(func3(data6) < 1){const err19 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err22 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err23 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err38 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern14.test(data8)){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err41 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err42 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err43 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.engineering_profile !== undefined){if(!(data2.engineering_profile === "deployment-ownership")){const err44 = {instancePath:instancePath+"/meta/engineering_profile",schemaPath:"#/properties/meta/properties/engineering_profile/enum",keyword:"enum",params:{allowedValues: schema169.properties.meta.properties.engineering_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.repository !== undefined){let data13 = data2.repository;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.url === undefined){const err45 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data13.revision === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}for(const key4 in data13){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data13.url !== undefined){let data14 = data13.url;if(typeof data14 === "string"){if(func3(data14) < 1){const err48 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data13.provider !== undefined){let data15 = data13.provider;if(!((data15 === "github") || (data15 === "gitee"))){const err50 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data13.link_mode !== undefined){let data16 = data13.link_mode;if(!((data16 === "web") || (data16 === "local-only"))){const err51 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data13.revision !== undefined){let data17 = data13.revision;if(typeof data17 === "string"){if(!pattern15.test(data17)){const err52 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data2.views !== undefined){if(!(validate37(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data19 = data2.legend;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){for(const key5 in data19){if(!((key5 === "mode") || (key5 === "entries"))){const err55 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data19.mode !== undefined){let data20 = data19.mode;if(!(((data20 === "auto") || (data20 === "all")) || (data20 === "hidden"))){const err56 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data19.entries !== undefined){let data21 = data19.entries;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){for(const key6 in data21){if(!(((((((key6 === "frontend") || (key6 === "backend")) || (key6 === "database")) || (key6 === "cloud")) || (key6 === "security")) || (key6 === "messagebus")) || (key6 === "external"))){const err57 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data21.frontend !== undefined){let data22 = data21.frontend;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err58 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err59 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err60 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(func3(data23) < 1){const err61 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err63 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data21.backend !== undefined){let data25 = data21.backend;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err65 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err66 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err67 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(func3(data26) < 1){const err68 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}else {const err69 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err70 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data21.database !== undefined){let data28 = data21.database;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err72 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}for(const key9 in data28){if(!((key9 === "label") || (key9 === "visible"))){const err73 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err74 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(func3(data29) < 1){const err75 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err77 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data21.cloud !== undefined){let data31 = data21.cloud;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err79 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}for(const key10 in data31){if(!((key10 === "label") || (key10 === "visible"))){const err80 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err81 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if(func3(data32) < 1){const err82 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err84 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data21.security !== undefined){let data34 = data21.security;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(Object.keys(data34).length < 1){const err86 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}for(const key11 in data34){if(!((key11 === "label") || (key11 === "visible"))){const err87 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data34.label !== undefined){let data35 = data34.label;if(typeof data35 === "string"){if(func3(data35) > 80){const err88 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(func3(data35) < 1){const err89 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}else {const err90 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(data34.visible !== undefined){if(typeof data34.visible !== "boolean"){const err91 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}else {const err92 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data21.messagebus !== undefined){let data37 = data21.messagebus;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(Object.keys(data37).length < 1){const err93 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key12 in data37){if(!((key12 === "label") || (key12 === "visible"))){const err94 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data37.label !== undefined){let data38 = data37.label;if(typeof data38 === "string"){if(func3(data38) > 80){const err95 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(func3(data38) < 1){const err96 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data37.visible !== undefined){if(typeof data37.visible !== "boolean"){const err98 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data21.external !== undefined){let data40 = data21.external;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(Object.keys(data40).length < 1){const err100 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}for(const key13 in data40){if(!((key13 === "label") || (key13 === "visible"))){const err101 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data40.label !== undefined){let data41 = data40.label;if(typeof data41 === "string"){if(func3(data41) > 80){const err102 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(func3(data41) < 1){const err103 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data40.visible !== undefined){if(typeof data40.visible !== "boolean"){const err105 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}else {const err106 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data2.viewBox !== undefined){let data43 = data2.viewBox;if(Array.isArray(data43)){if(data43.length > 2){const err109 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data43.length < 2){const err110 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const len0 = data43.length;if(len0 > 0){let data44 = data43[0];if((typeof data44 == "number") && (isFinite(data44))){if(data44 < 320 || isNaN(data44)){const err111 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 320},message:"must be >= 320"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(len0 > 1){let data45 = data43[1];if((typeof data45 == "number") && (isFinite(data45))){if(data45 < 240 || isNaN(data45)){const err113 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}const len1 = data43.length;if(!(len1 <= 2)){const err115 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}else {const err117 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data.layout !== undefined){let data46 = data.layout;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.mode === undefined){const err118 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}for(const key14 in data46){if(!(((((((key14 === "mode") || (key14 === "origin")) || (key14 === "cols")) || (key14 === "gapX")) || (key14 === "gapY")) || (key14 === "cellW")) || (key14 === "cellH"))){const err119 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data46.mode !== undefined){if(!(data46.mode === "grid")){const err120 = {instancePath:instancePath+"/layout/mode",schemaPath:"#/properties/layout/properties/mode/enum",keyword:"enum",params:{allowedValues: schema169.properties.layout.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data46.origin !== undefined){let data48 = data46.origin;if(Array.isArray(data48)){if(data48.length > 2){const err121 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data48.length < 2){const err122 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const len2 = data48.length;if(len2 > 0){let data49 = data48[0];if(!((typeof data49 == "number") && (isFinite(data49)))){const err123 = {instancePath:instancePath+"/layout/origin/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(len2 > 1){let data50 = data48[1];if(!((typeof data50 == "number") && (isFinite(data50)))){const err124 = {instancePath:instancePath+"/layout/origin/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}const len3 = data48.length;if(!(len3 <= 2)){const err125 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data46.cols !== undefined){let data51 = data46.cols;if(!(((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51))) && (isFinite(data51)))){const err127 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if((typeof data51 == "number") && (isFinite(data51))){if(data51 > 12 || isNaN(data51)){const err128 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data51 < 1 || isNaN(data51)){const err129 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}if(data46.gapX !== undefined){let data52 = data46.gapX;if((typeof data52 == "number") && (isFinite(data52))){if(data52 < 0 || isNaN(data52)){const err130 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}else {const err131 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data46.gapY !== undefined){let data53 = data46.gapY;if((typeof data53 == "number") && (isFinite(data53))){if(data53 < 0 || isNaN(data53)){const err132 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}else {const err133 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(data46.cellW !== undefined){let data54 = data46.cellW;if((typeof data54 == "number") && (isFinite(data54))){if(data54 < 40 || isNaN(data54)){const err134 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/minimum",keyword:"minimum",params:{comparison: ">=", limit: 40},message:"must be >= 40"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}else {const err135 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data46.cellH !== undefined){let data55 = data46.cellH;if((typeof data55 == "number") && (isFinite(data55))){if(data55 < 24 || isNaN(data55)){const err136 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/minimum",keyword:"minimum",params:{comparison: ">=", limit: 24},message:"must be >= 24"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}else {const err138 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data.components !== undefined){let data56 = data.components;if(Array.isArray(data56)){if(data56.length < 1){const err139 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const len4 = data56.length;for(let i0=0; i0<len4; i0++){let data57 = data56[i0];if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.id === undefined){const err140 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data57.type === undefined){const err141 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data57.label === undefined){const err142 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key15 in data57){if(!(func1.call(schema169.properties.components.items.properties, key15))){const err143 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data57.id !== undefined){let data58 = data57.id;if(typeof data58 === "string"){if(!pattern16.test(data58)){const err144 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data57.type !== undefined){let data59 = data57.type;if(!(((((((data59 === "frontend") || (data59 === "backend")) || (data59 === "database")) || (data59 === "cloud")) || (data59 === "security")) || (data59 === "messagebus")) || (data59 === "external"))){const err146 = {instancePath:instancePath+"/components/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data57.label !== undefined){let data60 = data57.label;if(typeof data60 === "string"){if(func3(data60) < 1){const err147 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}if(data57.sublabel !== undefined){if(typeof data57.sublabel !== "string"){const err149 = {instancePath:instancePath+"/components/" + i0+"/sublabel",schemaPath:"#/properties/components/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data57.tag !== undefined){if(typeof data57.tag !== "string"){const err150 = {instancePath:instancePath+"/components/" + i0+"/tag",schemaPath:"#/properties/components/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data57.icon !== undefined){let data63 = data57.icon;if(!((((((((((((((((((((data63 === "calendar") || (data63 === "clock")) || (data63 === "person")) || (data63 === "briefcase")) || (data63 === "flag")) || (data63 === "moon")) || (data63 === "frontend")) || (data63 === "backend")) || (data63 === "database")) || (data63 === "cloud")) || (data63 === "security")) || (data63 === "messagebus")) || (data63 === "external")) || (data63 === "start")) || (data63 === "active")) || (data63 === "waiting")) || (data63 === "success")) || (data63 === "failure")) || (data63 === "neutral")) || (data63 === "none"))){const err151 = {instancePath:instancePath+"/components/" + i0+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data57.brand !== undefined){let data64 = data57.brand;const _errs175 = errors;let valid48 = false;let passing0 = null;const _errs176 = errors;const _errs178 = errors;let valid49 = false;const _errs179 = errors;if(typeof data64 === "string"){if(func3(data64) > 80){const err152 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(!pattern29.test(data64)){const err153 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid1 = _errs179 === errors;valid49 = valid49 || _valid1;const _errs180 = errors;if(typeof data64 === "string"){if(!pattern30.test(data64)){const err154 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid1 = _errs180 === errors;valid49 = valid49 || _valid1;if(!valid49){const err155 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}if(typeof data64 === "string"){if(func3(data64) > 2048){const err156 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(func3(data64) < 1){const err157 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}else {const err158 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}var _valid0 = _errs176 === errors;if(_valid0){valid48 = true;passing0 = 0;}const _errs181 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.url === undefined){const err159 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data64.sha256 === undefined){const err160 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}for(const key16 in data64){if(!((key16 === "url") || (key16 === "sha256"))){const err161 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data64.url !== undefined){let data65 = data64.url;if(typeof data65 === "string"){if(func3(data65) > 2048){const err162 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(func3(data65) < 8){const err163 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(!pattern30.test(data65)){const err164 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data64.sha256 !== undefined){let data66 = data64.sha256;if(typeof data66 === "string"){if(!pattern32.test(data66)){const err166 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid0 = _errs181 === errors;if(_valid0 && valid48){valid48 = false;passing0 = [passing0, 1];}else {if(_valid0){valid48 = true;passing0 = 1;}}if(!valid48){const err169 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}}}if(data57.sources !== undefined){let data67 = data57.sources;if(Array.isArray(data67)){if(data67.length > 3){const err170 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data67.length < 1){const err171 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const len5 = data67.length;for(let i1=0; i1<len5; i1++){let data68 = data67[i1];if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.path === undefined){const err172 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}for(const key17 in data68){if(!((((key17 === "path") || (key17 === "line")) || (key17 === "end_line")) || (key17 === "label"))){const err173 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data68.path !== undefined){let data69 = data68.path;if(typeof data69 === "string"){if(func3(data69) > 240){const err174 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(func3(data69) < 1){const err175 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data68.line !== undefined){let data70 = data68.line;if(!(((typeof data70 == "number") && (!(data70 % 1) && !isNaN(data70))) && (isFinite(data70)))){const err177 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if((typeof data70 == "number") && (isFinite(data70))){if(data70 < 1 || isNaN(data70)){const err178 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}if(data68.end_line !== undefined){let data71 = data68.end_line;if(!(((typeof data71 == "number") && (!(data71 % 1) && !isNaN(data71))) && (isFinite(data71)))){const err179 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if((typeof data71 == "number") && (isFinite(data71))){if(data71 < 1 || isNaN(data71)){const err180 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}if(data68.label !== undefined){let data72 = data68.label;if(typeof data72 === "string"){if(func3(data72) > 48){const err181 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(func3(data72) < 1){const err182 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}else {const err183 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data57.row !== undefined){let data73 = data57.row;if(!(((typeof data73 == "number") && (!(data73 % 1) && !isNaN(data73))) && (isFinite(data73)))){const err186 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 0 || isNaN(data73)){const err187 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}}if(data57.col !== undefined){let data74 = data57.col;if(!(((typeof data74 == "number") && (!(data74 % 1) && !isNaN(data74))) && (isFinite(data74)))){const err188 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err189 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}}if(data57.pos !== undefined){let data75 = data57.pos;if(Array.isArray(data75)){if(data75.length > 2){const err190 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data75.length < 2){const err191 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}const len6 = data75.length;if(len6 > 0){let data76 = data75[0];if(!((typeof data76 == "number") && (isFinite(data76)))){const err192 = {instancePath:instancePath+"/components/" + i0+"/pos/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(len6 > 1){let data77 = data75[1];if(!((typeof data77 == "number") && (isFinite(data77)))){const err193 = {instancePath:instancePath+"/components/" + i0+"/pos/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}const len7 = data75.length;if(!(len7 <= 2)){const err194 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data57.size !== undefined){let data78 = data57.size;if(Array.isArray(data78)){if(data78.length > 2){const err196 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data78.length < 2){const err197 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}const len8 = data78.length;if(len8 > 0){let data79 = data78[0];if((typeof data79 == "number") && (isFinite(data79))){if(data79 <= 0 || isNaN(data79)){const err198 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}else {const err199 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(len8 > 1){let data80 = data78[1];if((typeof data80 == "number") && (isFinite(data80))){if(data80 <= 0 || isNaN(data80)){const err200 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}else {const err201 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}const len9 = data78.length;if(!(len9 <= 2)){const err202 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data.boundaries !== undefined){let data81 = data.boundaries;if(Array.isArray(data81)){const len10 = data81.length;for(let i2=0; i2<len10; i2++){let data82 = data81[i2];if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.kind === undefined){const err206 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data82.label === undefined){const err207 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data82.wraps === undefined){const err208 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "wraps"},message:"must have required property '"+"wraps"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}for(const key18 in data82){if(!((((key18 === "kind") || (key18 === "label")) || (key18 === "wraps")) || (key18 === "pad"))){const err209 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data82.kind !== undefined){let data83 = data82.kind;if(!((data83 === "region") || (data83 === "security-group"))){const err210 = {instancePath:instancePath+"/boundaries/" + i2+"/kind",schemaPath:"#/properties/boundaries/items/properties/kind/enum",keyword:"enum",params:{allowedValues: schema169.properties.boundaries.items.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data82.label !== undefined){let data84 = data82.label;if(typeof data84 === "string"){if(func3(data84) < 1){const err211 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}else {const err212 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data82.wraps !== undefined){let data85 = data82.wraps;if(Array.isArray(data85)){if(data85.length < 1){const err213 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}const len11 = data85.length;for(let i3=0; i3<len11; i3++){let data86 = data85[i3];if(typeof data86 === "string"){if(!pattern16.test(data86)){const err214 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}else {const err215 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}}else {const err216 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data82.pad !== undefined){let data87 = data82.pad;if((typeof data87 == "number") && (isFinite(data87))){if(data87 < 0 || isNaN(data87)){const err217 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}else {const err218 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}}else {const err220 = {instancePath:instancePath+"/boundaries",schemaPath:"#/properties/boundaries/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data.connections !== undefined){let data88 = data.connections;if(Array.isArray(data88)){const len12 = data88.length;for(let i4=0; i4<len12; i4++){let data89 = data88[i4];if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.from === undefined){const err221 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(data89.to === undefined){const err222 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}for(const key19 in data89){if(!(func1.call(schema169.properties.connections.items.properties, key19))){const err223 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data89.id !== undefined){let data90 = data89.id;if(typeof data90 === "string"){if(!pattern16.test(data90)){const err224 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}else {const err225 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data89.from !== undefined){let data91 = data89.from;if(typeof data91 === "string"){if(!pattern16.test(data91)){const err226 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}else {const err227 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data89.to !== undefined){let data92 = data89.to;if(typeof data92 === "string"){if(!pattern16.test(data92)){const err228 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data89.label !== undefined){if(typeof data89.label !== "string"){const err230 = {instancePath:instancePath+"/connections/" + i4+"/label",schemaPath:"#/properties/connections/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data89.variant !== undefined){let data94 = data89.variant;if(!((((data94 === "default") || (data94 === "emphasis")) || (data94 === "security")) || (data94 === "dashed"))){const err231 = {instancePath:instancePath+"/connections/" + i4+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data89.fromSide !== undefined){let data95 = data89.fromSide;if(!((((data95 === "left") || (data95 === "right")) || (data95 === "top")) || (data95 === "bottom"))){const err232 = {instancePath:instancePath+"/connections/" + i4+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}if(data89.toSide !== undefined){let data96 = data89.toSide;if(!((((data96 === "left") || (data96 === "right")) || (data96 === "top")) || (data96 === "bottom"))){const err233 = {instancePath:instancePath+"/connections/" + i4+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}if(data89.route !== undefined){let data97 = data89.route;if(!((((data97 === "auto") || (data97 === "straight")) || (data97 === "orthogonal-h")) || (data97 === "orthogonal-v"))){const err234 = {instancePath:instancePath+"/connections/" + i4+"/route",schemaPath:"#/properties/connections/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema169.properties.connections.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}if(data89.via !== undefined){let data98 = data89.via;if(Array.isArray(data98)){const len13 = data98.length;for(let i5=0; i5<len13; i5++){let data99 = data98[i5];if(Array.isArray(data99)){if(data99.length > 2){const err235 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data99.length < 2){const err236 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const len14 = data99.length;if(len14 > 0){let data100 = data99[0];if(!((typeof data100 == "number") && (isFinite(data100)))){const err237 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}if(len14 > 1){let data101 = data99[1];if(!((typeof data101 == "number") && (isFinite(data101)))){const err238 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}const len15 = data99.length;if(!(len15 <= 2)){const err239 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}else {const err240 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}}else {const err241 = {instancePath:instancePath+"/connections/" + i4+"/via",schemaPath:"#/properties/connections/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data89.labelAt !== undefined){let data102 = data89.labelAt;if(Array.isArray(data102)){if(data102.length > 2){const err242 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if(data102.length < 2){const err243 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}const len16 = data102.length;if(len16 > 0){let data103 = data102[0];if(!((typeof data103 == "number") && (isFinite(data103)))){const err244 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(len16 > 1){let data104 = data102[1];if(!((typeof data104 == "number") && (isFinite(data104)))){const err245 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}const len17 = data102.length;if(!(len17 <= 2)){const err246 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}else {const err247 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data89.labelDx !== undefined){let data105 = data89.labelDx;if(!((typeof data105 == "number") && (isFinite(data105)))){const err248 = {instancePath:instancePath+"/connections/" + i4+"/labelDx",schemaPath:"#/properties/connections/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}if(data89.labelDy !== undefined){let data106 = data89.labelDy;if(!((typeof data106 == "number") && (isFinite(data106)))){const err249 = {instancePath:instancePath+"/connections/" + i4+"/labelDy",schemaPath:"#/properties/connections/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}if(data89.labelSegment !== undefined){let data107 = data89.labelSegment;if(!(((typeof data107 == "number") && (!(data107 % 1) && !isNaN(data107))) && (isFinite(data107)))){const err250 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if((typeof data107 == "number") && (isFinite(data107))){if(data107 < 0 || isNaN(data107)){const err251 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}if(data89.width !== undefined){let data108 = data89.width;if((typeof data108 == "number") && (isFinite(data108))){if(data108 < 0.5 || isNaN(data108)){const err252 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}else {const err255 = {instancePath:instancePath+"/connections",schemaPath:"#/properties/connections/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}if(data.cards !== undefined){let data109 = data.cards;if(Array.isArray(data109)){const len18 = data109.length;for(let i6=0; i6<len18; i6++){let data110 = data109[i6];if(data110 && typeof data110 == "object" && !Array.isArray(data110)){if(data110.dot === undefined){const err256 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if(data110.title === undefined){const err257 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(data110.items === undefined){const err258 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}for(const key20 in data110){if(!(((key20 === "dot") || (key20 === "title")) || (key20 === "items"))){const err259 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data110.dot !== undefined){let data111 = data110.dot;if(!(((((((data111 === "cyan") || (data111 === "emerald")) || (data111 === "violet")) || (data111 === "amber")) || (data111 === "rose")) || (data111 === "orange")) || (data111 === "slate"))){const err260 = {instancePath:instancePath+"/cards/" + i6+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data110.title !== undefined){let data112 = data110.title;if(typeof data112 === "string"){if(func3(data112) < 1){const err261 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}else {const err262 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data110.items !== undefined){let data113 = data110.items;if(Array.isArray(data113)){const len19 = data113.length;for(let i7=0; i7<len19; i7++){if(typeof data113[i7] !== "string"){const err263 = {instancePath:instancePath+"/cards/" + i6+"/items/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}else {const err264 = {instancePath:instancePath+"/cards/" + i6+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}}else {const err265 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}else {const err266 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}else {const err267 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};+};const pattern4 = new RegExp("^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$", "u");const pattern5 = new RegExp("^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$", "u");const pattern6 = new RegExp("(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$", "u");const pattern7 = new RegExp("[\\\\<>:\"|?*\\u0000-\\u001F\\u007F-\\u009F]", "u");const pattern8 = new RegExp("[\\uD800-\\uDFFF]", "u");const pattern9 = new RegExp("(^|/)[.]{1,2}(/|$)", "u");const pattern10 = new RegExp("[. ](/|$)", "u");const pattern11 = new RegExp("(^|/)[^/]{256}", "u");const pattern12 = new RegExp("(^|/)(?:[Cc][Oo][Nn]|[Pp][Rr][Nn]|[Aa][Uu][Xx]|[Nn][Uu][Ll]|[Cc][Oo][Nn][Ii][Nn][$]|[Cc][Oo][Nn][Oo][Uu][Tt][$]|[Cc][Oo][Mm][1-9¹²³]|[Ll][Pp][Tt][1-9¹²³])(?:[.]|/|$)", "u");const pattern13 = new RegExp("(^|/)[^/]*~[1-9][0-9]*(?:[.]|/|$)", "u");const pattern14 = new RegExp("^[^/]+(?:/[^/]+)*$", "u");const pattern15 = new RegExp("^[a-fA-F0-9]{40}$", "u");const pattern16 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");const pattern29 = new RegExp("^[^\\r\\n]+$", "u");const pattern30 = new RegExp("^https?://", "u");const pattern32 = new RegExp("^[a-f0-9]{64}$", "u");const schema37 = {"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","label","focus"],"properties":{"id":{"$ref":"#/$defs/id"},"label":{"type":"string","minLength":1,"maxLength":48},"focus":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/id"}},"note":{"type":"string","maxLength":140}}}};function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const schema55 = {"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"}}};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.from === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.to === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}for(const key0 in data){if(!((key0 === "from") || (key0 === "to"))){const err2 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.from !== undefined){let data0 = data.from;if(typeof data0 === "string"){if(!pattern16.test(data0)){const err3 = {instancePath:instancePath+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}else {const err4 = {instancePath:instancePath+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.to !== undefined){let data1 = data.to;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}else {const err7 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/workflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.edges === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "edges"},message:"must have required property '"+"edges"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(func1.call(schema31.properties, key0))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){let data0 = data.schema_version;if(!((data0 === 1) || (data0 === 2))){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/enum",keyword:"enum",params:{allowedValues: schema31.properties.schema_version.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("workflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "workflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.output === undefined){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data2){if(!(func1.call(schema31.properties.meta.properties, key1))){const err11 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern4.test(data4)){const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err19 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(func3(data6) < 1){const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err24 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern14.test(data8)){const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err43 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err44 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err45 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data12 = data2.repository;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data12.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data12){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.url !== undefined){let data13 = data12.url;if(typeof data13 === "string"){if(func3(data13) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data12.provider !== undefined){let data14 = data12.provider;if(!((data14 === "github") || (data14 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data12.link_mode !== undefined){let data15 = data12.link_mode;if(!((data15 === "web") || (data15 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data12.revision !== undefined){let data16 = data12.revision;if(typeof data16 === "string"){if(!pattern15.test(data16)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate22(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data18 = data2.legend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key5 in data18){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data18.mode !== undefined){let data19 = data18.mode;if(!(((data19 === "auto") || (data19 === "all")) || (data19 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data18.entries !== undefined){let data20 = data18.entries;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){for(const key6 in data20){if(!(((((((key6 === "frontend") || (key6 === "backend")) || (key6 === "database")) || (key6 === "cloud")) || (key6 === "security")) || (key6 === "messagebus")) || (key6 === "external"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data20.frontend !== undefined){let data21 = data20.frontend;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data21){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data22) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data20.backend !== undefined){let data24 = data20.backend;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data24){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data25) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data20.database !== undefined){let data27 = data20.database;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data27){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data28) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data20.cloud !== undefined){let data30 = data20.cloud;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data30){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data31) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data20.security !== undefined){let data33 = data20.security;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data33){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data34) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data20.messagebus !== undefined){let data36 = data20.messagebus;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(Object.keys(data36).length < 1){const err94 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}for(const key12 in data36){if(!((key12 === "label") || (key12 === "visible"))){const err95 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data36.label !== undefined){let data37 = data36.label;if(typeof data37 === "string"){if(func3(data37) > 80){const err96 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(func3(data37) < 1){const err97 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}else {const err98 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data36.visible !== undefined){if(typeof data36.visible !== "boolean"){const err99 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data20.external !== undefined){let data39 = data20.external;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(Object.keys(data39).length < 1){const err101 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}for(const key13 in data39){if(!((key13 === "label") || (key13 === "visible"))){const err102 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data39.label !== undefined){let data40 = data39.label;if(typeof data40 === "string"){if(func3(data40) > 80){const err103 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(func3(data40) < 1){const err104 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data39.visible !== undefined){if(typeof data39.visible !== "boolean"){const err106 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data2.viewBox !== undefined){let data42 = data2.viewBox;if(Array.isArray(data42)){if(data42.length > 2){const err110 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data42.length < 2){const err111 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const len0 = data42.length;if(len0 > 0){let data43 = data42[0];if((typeof data43 == "number") && (isFinite(data43))){if(data43 < 700 || isNaN(data43)){const err112 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 700},message:"must be >= 700"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}else {const err113 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(len0 > 1){let data44 = data42[1];if((typeof data44 == "number") && (isFinite(data44))){if(data44 < 240 || isNaN(data44)){const err114 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}const len1 = data42.length;if(!(len1 <= 2)){const err116 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}else {const err117 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}else {const err118 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data.lanes !== undefined){let data45 = data.lanes;if(Array.isArray(data45)){if(data45.length < 1){const err119 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const len2 = data45.length;for(let i0=0; i0<len2; i0++){let data46 = data45[i0];if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err120 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(data46.label === undefined){const err121 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}for(const key14 in data46){if(!(((key14 === "id") || (key14 === "label")) || (key14 === "variant"))){const err122 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data46.id !== undefined){let data47 = data46.id;if(typeof data47 === "string"){if(!pattern16.test(data47)){const err123 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data46.label !== undefined){let data48 = data46.label;if(typeof data48 === "string"){if(func3(data48) < 1){const err125 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data46.variant !== undefined){let data49 = data46.variant;if(!((data49 === "normal") || (data49 === "exception"))){const err127 = {instancePath:instancePath+"/lanes/" + i0+"/variant",schemaPath:"#/properties/lanes/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.lanes.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data.phases !== undefined){let data50 = data.phases;if(Array.isArray(data50)){const len3 = data50.length;for(let i1=0; i1<len3; i1++){let data51 = data50[i1];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.id === undefined){const err130 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data51.label === undefined){const err131 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data51.fromCol === undefined){const err132 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data51.toCol === undefined){const err133 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}for(const key15 in data51){if(!(((((key15 === "id") || (key15 === "label")) || (key15 === "fromCol")) || (key15 === "toCol")) || (key15 === "variant"))){const err134 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data51.id !== undefined){let data52 = data51.id;if(typeof data52 === "string"){if(!pattern16.test(data52)){const err135 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data51.label !== undefined){let data53 = data51.label;if(typeof data53 === "string"){if(func3(data53) < 1){const err137 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data51.fromCol !== undefined){let data54 = data51.fromCol;if(!(((typeof data54 == "number") && (!(data54 % 1) && !isNaN(data54))) && (isFinite(data54)))){const err139 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if((typeof data54 == "number") && (isFinite(data54))){if(data54 > 5 || isNaN(data54)){const err140 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data54 < 0 || isNaN(data54)){const err141 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}if(data51.toCol !== undefined){let data55 = data51.toCol;if(!(((typeof data55 == "number") && (!(data55 % 1) && !isNaN(data55))) && (isFinite(data55)))){const err142 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if((typeof data55 == "number") && (isFinite(data55))){if(data55 > 5 || isNaN(data55)){const err143 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data55 < 0 || isNaN(data55)){const err144 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}}if(data51.variant !== undefined){let data56 = data51.variant;if(!((((data56 === "default") || (data56 === "emphasis")) || (data56 === "security")) || (data56 === "dashed"))){const err145 = {instancePath:instancePath+"/phases/" + i1+"/variant",schemaPath:"#/properties/phases/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.phases.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}}else {const err146 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data.groups !== undefined){let data57 = data.groups;if(Array.isArray(data57)){const len4 = data57.length;for(let i2=0; i2<len4; i2++){let data58 = data57[i2];if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.id === undefined){const err148 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data58.label === undefined){const err149 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data58.lane === undefined){const err150 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data58.fromCol === undefined){const err151 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data58.toCol === undefined){const err152 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}for(const key16 in data58){if(!((((((key16 === "id") || (key16 === "label")) || (key16 === "lane")) || (key16 === "fromCol")) || (key16 === "toCol")) || (key16 === "variant"))){const err153 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data58.id !== undefined){let data59 = data58.id;if(typeof data59 === "string"){if(!pattern16.test(data59)){const err154 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}else {const err155 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data58.label !== undefined){let data60 = data58.label;if(typeof data60 === "string"){if(func3(data60) < 1){const err156 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}else {const err157 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data58.lane !== undefined){let data61 = data58.lane;if(typeof data61 === "string"){if(!pattern16.test(data61)){const err158 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}else {const err159 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(data58.fromCol !== undefined){let data62 = data58.fromCol;if(!(((typeof data62 == "number") && (!(data62 % 1) && !isNaN(data62))) && (isFinite(data62)))){const err160 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if((typeof data62 == "number") && (isFinite(data62))){if(data62 > 5 || isNaN(data62)){const err161 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data62 < 0 || isNaN(data62)){const err162 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}if(data58.toCol !== undefined){let data63 = data58.toCol;if(!(((typeof data63 == "number") && (!(data63 % 1) && !isNaN(data63))) && (isFinite(data63)))){const err163 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if((typeof data63 == "number") && (isFinite(data63))){if(data63 > 5 || isNaN(data63)){const err164 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data63 < 0 || isNaN(data63)){const err165 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}if(data58.variant !== undefined){let data64 = data58.variant;if(!((((data64 === "default") || (data64 === "emphasis")) || (data64 === "security")) || (data64 === "dashed"))){const err166 = {instancePath:instancePath+"/groups/" + i2+"/variant",schemaPath:"#/properties/groups/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.groups.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data.mainPath !== undefined){let data65 = data.mainPath;if(Array.isArray(data65)){if(data65.length < 2){const err169 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}const len5 = data65.length;for(let i3=0; i3<len5; i3++){let data66 = data65[i3];if(typeof data66 === "string"){if(!pattern16.test(data66)){const err170 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data.semanticChecks !== undefined){let data67 = data.semanticChecks;if(data67 && typeof data67 == "object" && !Array.isArray(data67)){if(Object.keys(data67).length < 1){const err173 = {instancePath:instancePath+"/semanticChecks",schemaPath:"#/properties/semanticChecks/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}for(const key17 in data67){if(!((((key17 === "allowedRoots") || (key17 === "allowedTerminals")) || (key17 === "requiredEdges")) || (key17 === "requiredPaths"))){const err174 = {instancePath:instancePath+"/semanticChecks",schemaPath:"#/properties/semanticChecks/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data67.allowedRoots !== undefined){let data68 = data67.allowedRoots;if(Array.isArray(data68)){const len6 = data68.length;for(let i4=0; i4<len6; i4++){let data69 = data68[i4];if(typeof data69 === "string"){if(!pattern16.test(data69)){const err175 = {instancePath:instancePath+"/semanticChecks/allowedRoots/" + i4,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/semanticChecks/allowedRoots/" + i4,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}else {const err177 = {instancePath:instancePath+"/semanticChecks/allowedRoots",schemaPath:"#/properties/semanticChecks/properties/allowedRoots/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data67.allowedTerminals !== undefined){let data70 = data67.allowedTerminals;if(Array.isArray(data70)){const len7 = data70.length;for(let i5=0; i5<len7; i5++){let data71 = data70[i5];if(typeof data71 === "string"){if(!pattern16.test(data71)){const err178 = {instancePath:instancePath+"/semanticChecks/allowedTerminals/" + i5,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}else {const err179 = {instancePath:instancePath+"/semanticChecks/allowedTerminals/" + i5,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {instancePath:instancePath+"/semanticChecks/allowedTerminals",schemaPath:"#/properties/semanticChecks/properties/allowedTerminals/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data67.requiredEdges !== undefined){let data72 = data67.requiredEdges;if(Array.isArray(data72)){const len8 = data72.length;for(let i6=0; i6<len8; i6++){if(!(validate24(data72[i6], {instancePath:instancePath+"/semanticChecks/requiredEdges/" + i6,parentData:data72,parentDataProperty:i6,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err181 = {instancePath:instancePath+"/semanticChecks/requiredEdges",schemaPath:"#/properties/semanticChecks/properties/requiredEdges/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data67.requiredPaths !== undefined){let data74 = data67.requiredPaths;if(Array.isArray(data74)){const len9 = data74.length;for(let i7=0; i7<len9; i7++){if(!(validate24(data74[i7], {instancePath:instancePath+"/semanticChecks/requiredPaths/" + i7,parentData:data74,parentDataProperty:i7,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}}}else {const err182 = {instancePath:instancePath+"/semanticChecks/requiredPaths",schemaPath:"#/properties/semanticChecks/properties/requiredPaths/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/semanticChecks",schemaPath:"#/properties/semanticChecks/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}if(data.nodes !== undefined){let data76 = data.nodes;if(Array.isArray(data76)){if(data76.length < 1){const err184 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const len10 = data76.length;for(let i8=0; i8<len10; i8++){let data77 = data76[i8];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.id === undefined){const err185 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data77.lane === undefined){const err186 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data77.col === undefined){const err187 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data77.type === undefined){const err188 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data77.label === undefined){const err189 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}for(const key18 in data77){if(!(func1.call(schema31.properties.nodes.items.properties, key18))){const err190 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data77.id !== undefined){let data78 = data77.id;if(typeof data78 === "string"){if(!pattern16.test(data78)){const err191 = {instancePath:instancePath+"/nodes/" + i8+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}else {const err192 = {instancePath:instancePath+"/nodes/" + i8+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data77.lane !== undefined){let data79 = data77.lane;if(typeof data79 === "string"){if(!pattern16.test(data79)){const err193 = {instancePath:instancePath+"/nodes/" + i8+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}else {const err194 = {instancePath:instancePath+"/nodes/" + i8+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data77.col !== undefined){let data80 = data77.col;if(!(((typeof data80 == "number") && (!(data80 % 1) && !isNaN(data80))) && (isFinite(data80)))){const err195 = {instancePath:instancePath+"/nodes/" + i8+"/col",schemaPath:"#/properties/nodes/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if((typeof data80 == "number") && (isFinite(data80))){if(data80 > 5 || isNaN(data80)){const err196 = {instancePath:instancePath+"/nodes/" + i8+"/col",schemaPath:"#/properties/nodes/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data80 < 0 || isNaN(data80)){const err197 = {instancePath:instancePath+"/nodes/" + i8+"/col",schemaPath:"#/properties/nodes/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}if(data77.type !== undefined){let data81 = data77.type;if(!(((((((data81 === "frontend") || (data81 === "backend")) || (data81 === "database")) || (data81 === "cloud")) || (data81 === "security")) || (data81 === "messagebus")) || (data81 === "external"))){const err198 = {instancePath:instancePath+"/nodes/" + i8+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data77.label !== undefined){let data82 = data77.label;if(typeof data82 === "string"){if(func3(data82) < 1){const err199 = {instancePath:instancePath+"/nodes/" + i8+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/nodes/" + i8+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data77.sublabel !== undefined){if(typeof data77.sublabel !== "string"){const err201 = {instancePath:instancePath+"/nodes/" + i8+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data77.tag !== undefined){if(typeof data77.tag !== "string"){const err202 = {instancePath:instancePath+"/nodes/" + i8+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data77.icon !== undefined){let data85 = data77.icon;if(!((((((((((((((((((((data85 === "calendar") || (data85 === "clock")) || (data85 === "person")) || (data85 === "briefcase")) || (data85 === "flag")) || (data85 === "moon")) || (data85 === "frontend")) || (data85 === "backend")) || (data85 === "database")) || (data85 === "cloud")) || (data85 === "security")) || (data85 === "messagebus")) || (data85 === "external")) || (data85 === "start")) || (data85 === "active")) || (data85 === "waiting")) || (data85 === "success")) || (data85 === "failure")) || (data85 === "neutral")) || (data85 === "none"))){const err203 = {instancePath:instancePath+"/nodes/" + i8+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data77.brand !== undefined){let data86 = data77.brand;const _errs223 = errors;let valid70 = false;let passing0 = null;const _errs224 = errors;const _errs226 = errors;let valid71 = false;const _errs227 = errors;if(typeof data86 === "string"){if(func3(data86) > 80){const err204 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if(!pattern29.test(data86)){const err205 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}var _valid1 = _errs227 === errors;valid71 = valid71 || _valid1;const _errs228 = errors;if(typeof data86 === "string"){if(!pattern30.test(data86)){const err206 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}var _valid1 = _errs228 === errors;valid71 = valid71 || _valid1;if(!valid71){const err207 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}if(typeof data86 === "string"){if(func3(data86) > 2048){const err208 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(func3(data86) < 1){const err209 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}var _valid0 = _errs224 === errors;if(_valid0){valid70 = true;passing0 = 0;}const _errs229 = errors;if(data86 && typeof data86 == "object" && !Array.isArray(data86)){if(data86.url === undefined){const err211 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data86.sha256 === undefined){const err212 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}for(const key19 in data86){if(!((key19 === "url") || (key19 === "sha256"))){const err213 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data86.url !== undefined){let data87 = data86.url;if(typeof data87 === "string"){if(func3(data87) > 2048){const err214 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(func3(data87) < 8){const err215 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(!pattern30.test(data87)){const err216 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/nodes/" + i8+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data86.sha256 !== undefined){let data88 = data86.sha256;if(typeof data88 === "string"){if(!pattern32.test(data88)){const err218 = {instancePath:instancePath+"/nodes/" + i8+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/nodes/" + i8+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}}else {const err220 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}var _valid0 = _errs229 === errors;if(_valid0 && valid70){valid70 = false;passing0 = [passing0, 1];}else {if(_valid0){valid70 = true;passing0 = 1;}}if(!valid70){const err221 = {instancePath:instancePath+"/nodes/" + i8+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}}if(data77.sources !== undefined){let data89 = data77.sources;if(Array.isArray(data89)){if(data89.length > 3){const err222 = {instancePath:instancePath+"/nodes/" + i8+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if(data89.length < 1){const err223 = {instancePath:instancePath+"/nodes/" + i8+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}const len11 = data89.length;for(let i9=0; i9<len11; i9++){let data90 = data89[i9];if(data90 && typeof data90 == "object" && !Array.isArray(data90)){if(data90.path === undefined){const err224 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}for(const key20 in data90){if(!((((key20 === "path") || (key20 === "line")) || (key20 === "end_line")) || (key20 === "label"))){const err225 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data90.path !== undefined){let data91 = data90.path;if(typeof data91 === "string"){if(func3(data91) > 240){const err226 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(func3(data91) < 1){const err227 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data90.line !== undefined){let data92 = data90.line;if(!(((typeof data92 == "number") && (!(data92 % 1) && !isNaN(data92))) && (isFinite(data92)))){const err229 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if((typeof data92 == "number") && (isFinite(data92))){if(data92 < 1 || isNaN(data92)){const err230 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}if(data90.end_line !== undefined){let data93 = data90.end_line;if(!(((typeof data93 == "number") && (!(data93 % 1) && !isNaN(data93))) && (isFinite(data93)))){const err231 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if((typeof data93 == "number") && (isFinite(data93))){if(data93 < 1 || isNaN(data93)){const err232 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}if(data90.label !== undefined){let data94 = data90.label;if(typeof data94 === "string"){if(func3(data94) > 48){const err233 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}if(func3(data94) < 1){const err234 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}else {const err235 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}}else {const err236 = {instancePath:instancePath+"/nodes/" + i8+"/sources/" + i9,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/nodes/" + i8+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}if(data77.width !== undefined){let data95 = data77.width;if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 32 || isNaN(data95)){const err238 = {instancePath:instancePath+"/nodes/" + i8+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {instancePath:instancePath+"/nodes/" + i8+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data77.height !== undefined){let data96 = data77.height;if((typeof data96 == "number") && (isFinite(data96))){if(data96 < 32 || isNaN(data96)){const err240 = {instancePath:instancePath+"/nodes/" + i8+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}else {const err241 = {instancePath:instancePath+"/nodes/" + i8+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data77.yOffset !== undefined){let data97 = data77.yOffset;if(!((typeof data97 == "number") && (isFinite(data97)))){const err242 = {instancePath:instancePath+"/nodes/" + i8+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}else {const err243 = {instancePath:instancePath+"/nodes/" + i8,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}else {const err244 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(data.edges !== undefined){let data98 = data.edges;if(Array.isArray(data98)){const len12 = data98.length;for(let i10=0; i10<len12; i10++){let data99 = data98[i10];if(data99 && typeof data99 == "object" && !Array.isArray(data99)){if(data99.from === undefined){const err245 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data99.to === undefined){const err246 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}for(const key21 in data99){if(!(func1.call(schema31.properties.edges.items.properties, key21))){const err247 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key21},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data99.id !== undefined){let data100 = data99.id;if(typeof data100 === "string"){if(!pattern16.test(data100)){const err248 = {instancePath:instancePath+"/edges/" + i10+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}else {const err249 = {instancePath:instancePath+"/edges/" + i10+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}if(data99.from !== undefined){let data101 = data99.from;if(typeof data101 === "string"){if(!pattern16.test(data101)){const err250 = {instancePath:instancePath+"/edges/" + i10+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}else {const err251 = {instancePath:instancePath+"/edges/" + i10+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(data99.to !== undefined){let data102 = data99.to;if(typeof data102 === "string"){if(!pattern16.test(data102)){const err252 = {instancePath:instancePath+"/edges/" + i10+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/edges/" + i10+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}if(data99.label !== undefined){if(typeof data99.label !== "string"){const err254 = {instancePath:instancePath+"/edges/" + i10+"/label",schemaPath:"#/properties/edges/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data99.variant !== undefined){let data104 = data99.variant;if(!((((data104 === "default") || (data104 === "emphasis")) || (data104 === "security")) || (data104 === "dashed"))){const err255 = {instancePath:instancePath+"/edges/" + i10+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}if(data99.role !== undefined){let data105 = data99.role;if(!(((((data105 === "main") || (data105 === "branch")) || (data105 === "async")) || (data105 === "return")) || (data105 === "error"))){const err256 = {instancePath:instancePath+"/edges/" + i10+"/role",schemaPath:"#/properties/edges/items/properties/role/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.role.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}if(data99.fromSide !== undefined){let data106 = data99.fromSide;if(!((((data106 === "left") || (data106 === "right")) || (data106 === "top")) || (data106 === "bottom"))){const err257 = {instancePath:instancePath+"/edges/" + i10+"/fromSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data99.toSide !== undefined){let data107 = data99.toSide;if(!((((data107 === "left") || (data107 === "right")) || (data107 === "top")) || (data107 === "bottom"))){const err258 = {instancePath:instancePath+"/edges/" + i10+"/toSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema68.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}if(data99.route !== undefined){let data108 = data99.route;if(!(((((((data108 === "auto") || (data108 === "straight")) || (data108 === "drop")) || (data108 === "outside-right")) || (data108 === "return-left")) || (data108 === "bottom-channel")) || (data108 === "up-channel"))){const err259 = {instancePath:instancePath+"/edges/" + i10+"/route",schemaPath:"#/properties/edges/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data99.via !== undefined){let data109 = data99.via;if(Array.isArray(data109)){const len13 = data109.length;for(let i11=0; i11<len13; i11++){let data110 = data109[i11];if(Array.isArray(data110)){if(data110.length > 2){const err260 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if(data110.length < 2){const err261 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}const len14 = data110.length;if(len14 > 0){let data111 = data110[0];if(!((typeof data111 == "number") && (isFinite(data111)))){const err262 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(len14 > 1){let data112 = data110[1];if(!((typeof data112 == "number") && (isFinite(data112)))){const err263 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}const len15 = data110.length;if(!(len15 <= 2)){const err264 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}else {const err265 = {instancePath:instancePath+"/edges/" + i10+"/via/" + i11,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}else {const err266 = {instancePath:instancePath+"/edges/" + i10+"/via",schemaPath:"#/properties/edges/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}if(data99.labelAt !== undefined){let data113 = data99.labelAt;if(Array.isArray(data113)){if(data113.length > 2){const err267 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data113.length < 2){const err268 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const len16 = data113.length;if(len16 > 0){let data114 = data113[0];if(!((typeof data114 == "number") && (isFinite(data114)))){const err269 = {instancePath:instancePath+"/edges/" + i10+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}if(len16 > 1){let data115 = data113[1];if(!((typeof data115 == "number") && (isFinite(data115)))){const err270 = {instancePath:instancePath+"/edges/" + i10+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}const len17 = data113.length;if(!(len17 <= 2)){const err271 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {instancePath:instancePath+"/edges/" + i10+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data99.labelDx !== undefined){let data116 = data99.labelDx;if(!((typeof data116 == "number") && (isFinite(data116)))){const err273 = {instancePath:instancePath+"/edges/" + i10+"/labelDx",schemaPath:"#/properties/edges/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}if(data99.labelDy !== undefined){let data117 = data99.labelDy;if(!((typeof data117 == "number") && (isFinite(data117)))){const err274 = {instancePath:instancePath+"/edges/" + i10+"/labelDy",schemaPath:"#/properties/edges/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}}if(data99.labelSegment !== undefined){let data118 = data99.labelSegment;if(!(((typeof data118 == "number") && (!(data118 % 1) && !isNaN(data118))) && (isFinite(data118)))){const err275 = {instancePath:instancePath+"/edges/" + i10+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if((typeof data118 == "number") && (isFinite(data118))){if(data118 < 0 || isNaN(data118)){const err276 = {instancePath:instancePath+"/edges/" + i10+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}if(data99.channelX !== undefined){let data119 = data99.channelX;if(!((typeof data119 == "number") && (isFinite(data119)))){const err277 = {instancePath:instancePath+"/edges/" + i10+"/channelX",schemaPath:"#/properties/edges/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}if(data99.channelY !== undefined){let data120 = data99.channelY;if(!((typeof data120 == "number") && (isFinite(data120)))){const err278 = {instancePath:instancePath+"/edges/" + i10+"/channelY",schemaPath:"#/properties/edges/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data99.bias !== undefined){let data121 = data99.bias;if((typeof data121 == "number") && (isFinite(data121))){if(data121 > 1 || isNaN(data121)){const err279 = {instancePath:instancePath+"/edges/" + i10+"/bias",schemaPath:"#/properties/edges/items/properties/bias/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}if(data121 < 0 || isNaN(data121)){const err280 = {instancePath:instancePath+"/edges/" + i10+"/bias",schemaPath:"#/properties/edges/items/properties/bias/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}else {const err281 = {instancePath:instancePath+"/edges/" + i10+"/bias",schemaPath:"#/properties/edges/items/properties/bias/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data99.width !== undefined){let data122 = data99.width;if((typeof data122 == "number") && (isFinite(data122))){if(data122 < 0.5 || isNaN(data122)){const err282 = {instancePath:instancePath+"/edges/" + i10+"/width",schemaPath:"#/properties/edges/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}else {const err283 = {instancePath:instancePath+"/edges/" + i10+"/width",schemaPath:"#/properties/edges/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}}else {const err284 = {instancePath:instancePath+"/edges/" + i10,schemaPath:"#/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}else {const err285 = {instancePath:instancePath+"/edges",schemaPath:"#/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}if(data.cards !== undefined){let data123 = data.cards;if(Array.isArray(data123)){const len18 = data123.length;for(let i12=0; i12<len18; i12++){let data124 = data123[i12];if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.dot === undefined){const err286 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data124.title === undefined){const err287 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data124.items === undefined){const err288 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}for(const key22 in data124){if(!(((key22 === "dot") || (key22 === "title")) || (key22 === "items"))){const err289 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key22},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}if(data124.dot !== undefined){let data125 = data124.dot;if(!(((((((data125 === "cyan") || (data125 === "emerald")) || (data125 === "violet")) || (data125 === "amber")) || (data125 === "rose")) || (data125 === "orange")) || (data125 === "slate"))){const err290 = {instancePath:instancePath+"/cards/" + i12+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data124.title !== undefined){let data126 = data124.title;if(typeof data126 === "string"){if(func3(data126) < 1){const err291 = {instancePath:instancePath+"/cards/" + i12+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}else {const err292 = {instancePath:instancePath+"/cards/" + i12+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}}if(data124.items !== undefined){let data127 = data124.items;if(Array.isArray(data127)){const len19 = data127.length;for(let i13=0; i13<len19; i13++){if(typeof data127[i13] !== "string"){const err293 = {instancePath:instancePath+"/cards/" + i12+"/items/" + i13,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}}}else {const err294 = {instancePath:instancePath+"/cards/" + i12+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}}else {const err295 = {instancePath:instancePath+"/cards/" + i12,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}else {const err296 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const sequenceSchema = validate27;const schema73 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/sequence.schema.json","title":"Archify Sequence Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","participants","messages"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"sequence"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"column_fit":{"description":"Horizontal participant layout. Omit this field or use fixed for the stable 86px boxes and 108px gap. Use spread when a wide viewBox would leave unused horizontal space or meaningful participant labels do not fit the fixed boxes; spread derives wider boxes and gaps from the viewBox without changing participant order or message semantics.","enum":["fixed","spread"]},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"return":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":480},{"type":"number","minimum":480}],"items":false,"minItems":2,"maxItems":2}}},"participants":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"}}}},"segments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"from":{"type":"number"},"to":{"type":"number"},"label":{"type":"string","minLength":1}}}},"messages":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["from","to","y","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"y":{"type":"number","minimum":160},"label":{"type":"string","minLength":1},"variant":{"enum":["default","emphasis","security","dashed","return"]},"note":{"type":"string"}}}},"activations":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["participant","from","to"],"properties":{"participant":{"$ref":"common.schema.json#/$defs/id"},"from":{"type":"number"},"to":{"type":"number"},"type":{"$ref":"common.schema.json#/$defs/componentType"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const schema77 = {"enum":["trace","none"]};const schema78 = {"enum":["classic","signal-flow","blueprint","editorial"]};const schema79 = {"enum":["standard","showcase"]};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/sequence.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.participants === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "participants"},message:"must have required property '"+"participants"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.messages === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "messages"},message:"must have required property '"+"messages"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "participants")) || (key0 === "segments")) || (key0 === "messages")) || (key0 === "activations")) || (key0 === "cards"))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err6 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.diagram_type !== undefined){if("sequence" !== data.diagram_type){const err7 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "sequence"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data2.output === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema73.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(!pattern4.test(data4)){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err16 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err19 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(func3(data6) < 1){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err23 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err24 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err26 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err28 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err30 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err32 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err34 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err36 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err38 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(!pattern14.test(data8)){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}else {const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err42 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err43 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err44 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.column_fit !== undefined){let data12 = data2.column_fit;if(!((data12 === "fixed") || (data12 === "spread"))){const err45 = {instancePath:instancePath+"/meta/column_fit",schemaPath:"#/properties/meta/properties/column_fit/enum",keyword:"enum",params:{allowedValues: schema73.properties.meta.properties.column_fit.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data13 = data2.repository;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data13.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data13){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data13.url !== undefined){let data14 = data13.url;if(typeof data14 === "string"){if(func3(data14) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data13.provider !== undefined){let data15 = data13.provider;if(!((data15 === "github") || (data15 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data13.link_mode !== undefined){let data16 = data13.link_mode;if(!((data16 === "web") || (data16 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data13.revision !== undefined){let data17 = data13.revision;if(typeof data17 === "string"){if(!pattern15.test(data17)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate28(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data19 = data2.legend;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){for(const key5 in data19){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data19.mode !== undefined){let data20 = data19.mode;if(!(((data20 === "auto") || (data20 === "all")) || (data20 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data19.entries !== undefined){let data21 = data19.entries;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){for(const key6 in data21){if(!(((((key6 === "default") || (key6 === "emphasis")) || (key6 === "security")) || (key6 === "dashed")) || (key6 === "return"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data21.default !== undefined){let data22 = data21.default;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data23) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data21.emphasis !== undefined){let data25 = data21.emphasis;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data26) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data21.security !== undefined){let data28 = data21.security;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data28){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data29) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data21.dashed !== undefined){let data31 = data21.dashed;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data31){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data32) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data21.return !== undefined){let data34 = data21.return;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(Object.keys(data34).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data34){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data34.label !== undefined){let data35 = data34.label;if(typeof data35 === "string"){if(func3(data35) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data35) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data34.visible !== undefined){if(typeof data34.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/return/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}else {const err94 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data2.viewBox !== undefined){let data37 = data2.viewBox;if(Array.isArray(data37)){if(data37.length > 2){const err96 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data37.length < 2){const err97 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const len0 = data37.length;if(len0 > 0){let data38 = data37[0];if((typeof data38 == "number") && (isFinite(data38))){if(data38 < 480 || isNaN(data38)){const err98 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(len0 > 1){let data39 = data37[1];if((typeof data39 == "number") && (isFinite(data39))){if(data39 < 480 || isNaN(data39)){const err100 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}const len1 = data37.length;if(!(len1 <= 2)){const err102 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data.participants !== undefined){let data40 = data.participants;if(Array.isArray(data40)){if(data40.length < 2){const err105 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const len2 = data40.length;for(let i0=0; i0<len2; i0++){let data41 = data40[i0];if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.id === undefined){const err106 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data41.type === undefined){const err107 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if(data41.label === undefined){const err108 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}for(const key12 in data41){if(!(((((((key12 === "id") || (key12 === "type")) || (key12 === "label")) || (key12 === "sublabel")) || (key12 === "icon")) || (key12 === "brand")) || (key12 === "sources"))){const err109 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data41.id !== undefined){let data42 = data41.id;if(typeof data42 === "string"){if(!pattern16.test(data42)){const err110 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data41.type !== undefined){let data43 = data41.type;if(!(((((((data43 === "frontend") || (data43 === "backend")) || (data43 === "database")) || (data43 === "cloud")) || (data43 === "security")) || (data43 === "messagebus")) || (data43 === "external"))){const err112 = {instancePath:instancePath+"/participants/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data41.label !== undefined){let data44 = data41.label;if(typeof data44 === "string"){if(func3(data44) < 1){const err113 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data41.sublabel !== undefined){if(typeof data41.sublabel !== "string"){const err115 = {instancePath:instancePath+"/participants/" + i0+"/sublabel",schemaPath:"#/properties/participants/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data41.icon !== undefined){let data46 = data41.icon;if(!((((((((((((((((((((data46 === "calendar") || (data46 === "clock")) || (data46 === "person")) || (data46 === "briefcase")) || (data46 === "flag")) || (data46 === "moon")) || (data46 === "frontend")) || (data46 === "backend")) || (data46 === "database")) || (data46 === "cloud")) || (data46 === "security")) || (data46 === "messagebus")) || (data46 === "external")) || (data46 === "start")) || (data46 === "active")) || (data46 === "waiting")) || (data46 === "success")) || (data46 === "failure")) || (data46 === "neutral")) || (data46 === "none"))){const err116 = {instancePath:instancePath+"/participants/" + i0+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data41.brand !== undefined){let data47 = data41.brand;const _errs136 = errors;let valid41 = false;let passing0 = null;const _errs137 = errors;const _errs139 = errors;let valid42 = false;const _errs140 = errors;if(typeof data47 === "string"){if(func3(data47) > 80){const err117 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(!pattern29.test(data47)){const err118 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}var _valid1 = _errs140 === errors;valid42 = valid42 || _valid1;const _errs141 = errors;if(typeof data47 === "string"){if(!pattern30.test(data47)){const err119 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}var _valid1 = _errs141 === errors;valid42 = valid42 || _valid1;if(!valid42){const err120 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {errors = _errs139;if(vErrors !== null){if(_errs139){vErrors.length = _errs139;}else {vErrors = null;}}}if(typeof data47 === "string"){if(func3(data47) > 2048){const err121 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(func3(data47) < 1){const err122 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid0 = _errs137 === errors;if(_valid0){valid41 = true;passing0 = 0;}const _errs142 = errors;if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.url === undefined){const err124 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data47.sha256 === undefined){const err125 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}for(const key13 in data47){if(!((key13 === "url") || (key13 === "sha256"))){const err126 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data47.url !== undefined){let data48 = data47.url;if(typeof data48 === "string"){if(func3(data48) > 2048){const err127 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(func3(data48) < 8){const err128 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(!pattern30.test(data48)){const err129 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}else {const err130 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data47.sha256 !== undefined){let data49 = data47.sha256;if(typeof data49 === "string"){if(!pattern32.test(data49)){const err131 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}else {const err132 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}else {const err133 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var _valid0 = _errs142 === errors;if(_valid0 && valid41){valid41 = false;passing0 = [passing0, 1];}else {if(_valid0){valid41 = true;passing0 = 1;}}if(!valid41){const err134 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}}if(data41.sources !== undefined){let data50 = data41.sources;if(Array.isArray(data50)){if(data50.length > 3){const err135 = {instancePath:instancePath+"/participants/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data50.length < 1){const err136 = {instancePath:instancePath+"/participants/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}const len3 = data50.length;for(let i1=0; i1<len3; i1++){let data51 = data50[i1];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.path === undefined){const err137 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}for(const key14 in data51){if(!((((key14 === "path") || (key14 === "line")) || (key14 === "end_line")) || (key14 === "label"))){const err138 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data51.path !== undefined){let data52 = data51.path;if(typeof data52 === "string"){if(func3(data52) > 240){const err139 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(func3(data52) < 1){const err140 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data51.line !== undefined){let data53 = data51.line;if(!(((typeof data53 == "number") && (!(data53 % 1) && !isNaN(data53))) && (isFinite(data53)))){const err142 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if((typeof data53 == "number") && (isFinite(data53))){if(data53 < 1 || isNaN(data53)){const err143 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}if(data51.end_line !== undefined){let data54 = data51.end_line;if(!(((typeof data54 == "number") && (!(data54 % 1) && !isNaN(data54))) && (isFinite(data54)))){const err144 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if((typeof data54 == "number") && (isFinite(data54))){if(data54 < 1 || isNaN(data54)){const err145 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}}if(data51.label !== undefined){let data55 = data51.label;if(typeof data55 === "string"){if(func3(data55) > 48){const err146 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(func3(data55) < 1){const err147 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/participants/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath:instancePath+"/participants/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}else {const err151 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}else {const err152 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data.segments !== undefined){let data56 = data.segments;if(Array.isArray(data56)){const len4 = data56.length;for(let i2=0; i2<len4; i2++){let data57 = data56[i2];if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.from === undefined){const err153 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data57.to === undefined){const err154 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data57.label === undefined){const err155 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}for(const key15 in data57){if(!(((key15 === "from") || (key15 === "to")) || (key15 === "label"))){const err156 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data57.from !== undefined){let data58 = data57.from;if(!((typeof data58 == "number") && (isFinite(data58)))){const err157 = {instancePath:instancePath+"/segments/" + i2+"/from",schemaPath:"#/properties/segments/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data57.to !== undefined){let data59 = data57.to;if(!((typeof data59 == "number") && (isFinite(data59)))){const err158 = {instancePath:instancePath+"/segments/" + i2+"/to",schemaPath:"#/properties/segments/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data57.label !== undefined){let data60 = data57.label;if(typeof data60 === "string"){if(func3(data60) < 1){const err159 = {instancePath:instancePath+"/segments/" + i2+"/label",schemaPath:"#/properties/segments/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/segments/" + i2+"/label",schemaPath:"#/properties/segments/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/segments/" + i2,schemaPath:"#/properties/segments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}else {const err162 = {instancePath:instancePath+"/segments",schemaPath:"#/properties/segments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data.messages !== undefined){let data61 = data.messages;if(Array.isArray(data61)){if(data61.length < 1){const err163 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}const len5 = data61.length;for(let i3=0; i3<len5; i3++){let data62 = data61[i3];if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.from === undefined){const err164 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data62.to === undefined){const err165 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data62.y === undefined){const err166 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "y"},message:"must have required property '"+"y"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data62.label === undefined){const err167 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}for(const key16 in data62){if(!(((((((key16 === "id") || (key16 === "from")) || (key16 === "to")) || (key16 === "y")) || (key16 === "label")) || (key16 === "variant")) || (key16 === "note"))){const err168 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data62.id !== undefined){let data63 = data62.id;if(typeof data63 === "string"){if(!pattern16.test(data63)){const err169 = {instancePath:instancePath+"/messages/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/messages/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data62.from !== undefined){let data64 = data62.from;if(typeof data64 === "string"){if(!pattern16.test(data64)){const err171 = {instancePath:instancePath+"/messages/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {instancePath:instancePath+"/messages/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data62.to !== undefined){let data65 = data62.to;if(typeof data65 === "string"){if(!pattern16.test(data65)){const err173 = {instancePath:instancePath+"/messages/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {instancePath:instancePath+"/messages/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data62.y !== undefined){let data66 = data62.y;if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 160 || isNaN(data66)){const err175 = {instancePath:instancePath+"/messages/" + i3+"/y",schemaPath:"#/properties/messages/items/properties/y/minimum",keyword:"minimum",params:{comparison: ">=", limit: 160},message:"must be >= 160"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/messages/" + i3+"/y",schemaPath:"#/properties/messages/items/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data62.label !== undefined){let data67 = data62.label;if(typeof data67 === "string"){if(func3(data67) < 1){const err177 = {instancePath:instancePath+"/messages/" + i3+"/label",schemaPath:"#/properties/messages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/messages/" + i3+"/label",schemaPath:"#/properties/messages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data62.variant !== undefined){let data68 = data62.variant;if(!(((((data68 === "default") || (data68 === "emphasis")) || (data68 === "security")) || (data68 === "dashed")) || (data68 === "return"))){const err179 = {instancePath:instancePath+"/messages/" + i3+"/variant",schemaPath:"#/properties/messages/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema73.properties.messages.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data62.note !== undefined){if(typeof data62.note !== "string"){const err180 = {instancePath:instancePath+"/messages/" + i3+"/note",schemaPath:"#/properties/messages/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {instancePath:instancePath+"/messages/" + i3,schemaPath:"#/properties/messages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.activations !== undefined){let data70 = data.activations;if(Array.isArray(data70)){const len6 = data70.length;for(let i4=0; i4<len6; i4++){let data71 = data70[i4];if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.participant === undefined){const err183 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "participant"},message:"must have required property '"+"participant"+"'"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data71.from === undefined){const err184 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(data71.to === undefined){const err185 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}for(const key17 in data71){if(!((((key17 === "participant") || (key17 === "from")) || (key17 === "to")) || (key17 === "type"))){const err186 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data71.participant !== undefined){let data72 = data71.participant;if(typeof data72 === "string"){if(!pattern16.test(data72)){const err187 = {instancePath:instancePath+"/activations/" + i4+"/participant",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/activations/" + i4+"/participant",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data71.from !== undefined){let data73 = data71.from;if(!((typeof data73 == "number") && (isFinite(data73)))){const err189 = {instancePath:instancePath+"/activations/" + i4+"/from",schemaPath:"#/properties/activations/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data71.to !== undefined){let data74 = data71.to;if(!((typeof data74 == "number") && (isFinite(data74)))){const err190 = {instancePath:instancePath+"/activations/" + i4+"/to",schemaPath:"#/properties/activations/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data71.type !== undefined){let data75 = data71.type;if(!(((((((data75 === "frontend") || (data75 === "backend")) || (data75 === "database")) || (data75 === "cloud")) || (data75 === "security")) || (data75 === "messagebus")) || (data75 === "external"))){const err191 = {instancePath:instancePath+"/activations/" + i4+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}else {const err192 = {instancePath:instancePath+"/activations/" + i4,schemaPath:"#/properties/activations/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/activations",schemaPath:"#/properties/activations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data.cards !== undefined){let data76 = data.cards;if(Array.isArray(data76)){const len7 = data76.length;for(let i5=0; i5<len7; i5++){let data77 = data76[i5];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.dot === undefined){const err194 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data77.title === undefined){const err195 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data77.items === undefined){const err196 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}for(const key18 in data77){if(!(((key18 === "dot") || (key18 === "title")) || (key18 === "items"))){const err197 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data77.dot !== undefined){let data78 = data77.dot;if(!(((((((data78 === "cyan") || (data78 === "emerald")) || (data78 === "violet")) || (data78 === "amber")) || (data78 === "rose")) || (data78 === "orange")) || (data78 === "slate"))){const err198 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data77.title !== undefined){let data79 = data77.title;if(typeof data79 === "string"){if(func3(data79) < 1){const err199 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data77.items !== undefined){let data80 = data77.items;if(Array.isArray(data80)){const len8 = data80.length;for(let i6=0; i6<len8; i6++){if(typeof data80[i6] !== "string"){const err201 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}else {const err202 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const dataflowSchema = validate30;const schema101 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/dataflow.schema.json","title":"Archify Data Flow Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","stages","nodes","flows"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"dataflow"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":360},{"type":"number","minimum":360}],"items":false,"minItems":2,"maxItems":2}}},"stages":{"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["label"],"properties":{"label":{"type":"string","minLength":1}}}},"nodes":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","stage","row"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"},"stage":{"type":"integer","minimum":0},"row":{"type":"integer","minimum":0},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"flows":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"classification":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","vertical-channel","bottom-channel","top-channel"]},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"channelX":{"type":"number"},"channelY":{"type":"number"},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const schema127 = {"enum":["left","right","top","bottom"]};const schema131 = {"type":"number","minimum":0.5};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate31.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate31.errors = vErrors;return errors === 0;}validate31.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/dataflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.stages === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stages"},message:"must have required property '"+"stages"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.flows === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "flows"},message:"must have required property '"+"flows"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "stages")) || (key0 === "nodes")) || (key0 === "flows")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("dataflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "dataflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.output === undefined){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data2){if(!(func1.call(schema101.properties.meta.properties, key1))){const err11 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern4.test(data4)){const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err19 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(func3(data6) < 1){const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err24 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern14.test(data8)){const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err43 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err44 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err45 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data12 = data2.repository;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data12.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data12){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.url !== undefined){let data13 = data12.url;if(typeof data13 === "string"){if(func3(data13) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data12.provider !== undefined){let data14 = data12.provider;if(!((data14 === "github") || (data14 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data12.link_mode !== undefined){let data15 = data12.link_mode;if(!((data15 === "web") || (data15 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data12.revision !== undefined){let data16 = data12.revision;if(typeof data16 === "string"){if(!pattern15.test(data16)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate31(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data18 = data2.legend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key5 in data18){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data18.mode !== undefined){let data19 = data18.mode;if(!(((data19 === "auto") || (data19 === "all")) || (data19 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data18.entries !== undefined){let data20 = data18.entries;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){for(const key6 in data20){if(!(((((key6 === "default") || (key6 === "emphasis")) || (key6 === "security")) || (key6 === "dashed")) || (key6 === "database"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data20.default !== undefined){let data21 = data20.default;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data21){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data22) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data20.emphasis !== undefined){let data24 = data20.emphasis;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data24){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data25) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data20.security !== undefined){let data27 = data20.security;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data27){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data28) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data20.dashed !== undefined){let data30 = data20.dashed;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data30){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data31) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data20.database !== undefined){let data33 = data20.database;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data33){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data34) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}else {const err94 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data2.viewBox !== undefined){let data36 = data2.viewBox;if(Array.isArray(data36)){if(data36.length > 2){const err96 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data36.length < 2){const err97 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const len0 = data36.length;if(len0 > 0){let data37 = data36[0];if((typeof data37 == "number") && (isFinite(data37))){if(data37 < 360 || isNaN(data37)){const err98 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(len0 > 1){let data38 = data36[1];if((typeof data38 == "number") && (isFinite(data38))){if(data38 < 360 || isNaN(data38)){const err100 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}const len1 = data36.length;if(!(len1 <= 2)){const err102 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data.stages !== undefined){let data39 = data.stages;if(Array.isArray(data39)){if(data39.length > 5){const err105 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data39.length < 2){const err106 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const len2 = data39.length;for(let i0=0; i0<len2; i0++){let data40 = data39[i0];if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.label === undefined){const err107 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}for(const key12 in data40){if(!(key12 === "label")){const err108 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data40.label !== undefined){let data41 = data40.label;if(typeof data41 === "string"){if(func3(data41) < 1){const err109 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}else {const err111 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}else {const err112 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data.nodes !== undefined){let data42 = data.nodes;if(Array.isArray(data42)){if(data42.length < 2){const err113 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const len3 = data42.length;for(let i1=0; i1<len3; i1++){let data43 = data42[i1];if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.id === undefined){const err114 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data43.type === undefined){const err115 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data43.label === undefined){const err116 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if(data43.stage === undefined){const err117 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "stage"},message:"must have required property '"+"stage"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data43.row === undefined){const err118 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}for(const key13 in data43){if(!(func1.call(schema101.properties.nodes.items.properties, key13))){const err119 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data43.id !== undefined){let data44 = data43.id;if(typeof data44 === "string"){if(!pattern16.test(data44)){const err120 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}else {const err121 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data43.type !== undefined){let data45 = data43.type;if(!(((((((data45 === "frontend") || (data45 === "backend")) || (data45 === "database")) || (data45 === "cloud")) || (data45 === "security")) || (data45 === "messagebus")) || (data45 === "external"))){const err122 = {instancePath:instancePath+"/nodes/" + i1+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data43.label !== undefined){let data46 = data43.label;if(typeof data46 === "string"){if(func3(data46) < 1){const err123 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data43.sublabel !== undefined){if(typeof data43.sublabel !== "string"){const err125 = {instancePath:instancePath+"/nodes/" + i1+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data43.tag !== undefined){if(typeof data43.tag !== "string"){const err126 = {instancePath:instancePath+"/nodes/" + i1+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data43.icon !== undefined){let data49 = data43.icon;if(!((((((((((((((((((((data49 === "calendar") || (data49 === "clock")) || (data49 === "person")) || (data49 === "briefcase")) || (data49 === "flag")) || (data49 === "moon")) || (data49 === "frontend")) || (data49 === "backend")) || (data49 === "database")) || (data49 === "cloud")) || (data49 === "security")) || (data49 === "messagebus")) || (data49 === "external")) || (data49 === "start")) || (data49 === "active")) || (data49 === "waiting")) || (data49 === "success")) || (data49 === "failure")) || (data49 === "neutral")) || (data49 === "none"))){const err127 = {instancePath:instancePath+"/nodes/" + i1+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data43.brand !== undefined){let data50 = data43.brand;const _errs144 = errors;let valid44 = false;let passing0 = null;const _errs145 = errors;const _errs147 = errors;let valid45 = false;const _errs148 = errors;if(typeof data50 === "string"){if(func3(data50) > 80){const err128 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(!pattern29.test(data50)){const err129 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid1 = _errs148 === errors;valid45 = valid45 || _valid1;const _errs149 = errors;if(typeof data50 === "string"){if(!pattern30.test(data50)){const err130 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var _valid1 = _errs149 === errors;valid45 = valid45 || _valid1;if(!valid45){const err131 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(typeof data50 === "string"){if(func3(data50) > 2048){const err132 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(func3(data50) < 1){const err133 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var _valid0 = _errs145 === errors;if(_valid0){valid44 = true;passing0 = 0;}const _errs150 = errors;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.url === undefined){const err135 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data50.sha256 === undefined){const err136 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}for(const key14 in data50){if(!((key14 === "url") || (key14 === "sha256"))){const err137 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data50.url !== undefined){let data51 = data50.url;if(typeof data51 === "string"){if(func3(data51) > 2048){const err138 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(func3(data51) < 8){const err139 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(!pattern30.test(data51)){const err140 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data50.sha256 !== undefined){let data52 = data50.sha256;if(typeof data52 === "string"){if(!pattern32.test(data52)){const err142 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}else {const err143 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var _valid0 = _errs150 === errors;if(_valid0 && valid44){valid44 = false;passing0 = [passing0, 1];}else {if(_valid0){valid44 = true;passing0 = 1;}}if(!valid44){const err145 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {errors = _errs144;if(vErrors !== null){if(_errs144){vErrors.length = _errs144;}else {vErrors = null;}}}}if(data43.sources !== undefined){let data53 = data43.sources;if(Array.isArray(data53)){if(data53.length > 3){const err146 = {instancePath:instancePath+"/nodes/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if(data53.length < 1){const err147 = {instancePath:instancePath+"/nodes/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const len4 = data53.length;for(let i2=0; i2<len4; i2++){let data54 = data53[i2];if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.path === undefined){const err148 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}for(const key15 in data54){if(!((((key15 === "path") || (key15 === "line")) || (key15 === "end_line")) || (key15 === "label"))){const err149 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data54.path !== undefined){let data55 = data54.path;if(typeof data55 === "string"){if(func3(data55) > 240){const err150 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(func3(data55) < 1){const err151 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}else {const err152 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data54.line !== undefined){let data56 = data54.line;if(!(((typeof data56 == "number") && (!(data56 % 1) && !isNaN(data56))) && (isFinite(data56)))){const err153 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if((typeof data56 == "number") && (isFinite(data56))){if(data56 < 1 || isNaN(data56)){const err154 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}if(data54.end_line !== undefined){let data57 = data54.end_line;if(!(((typeof data57 == "number") && (!(data57 % 1) && !isNaN(data57))) && (isFinite(data57)))){const err155 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if((typeof data57 == "number") && (isFinite(data57))){if(data57 < 1 || isNaN(data57)){const err156 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}if(data54.label !== undefined){let data58 = data54.label;if(typeof data58 === "string"){if(func3(data58) > 48){const err157 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(func3(data58) < 1){const err158 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}else {const err159 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}}else {const err160 = {instancePath:instancePath+"/nodes/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/nodes/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data43.stage !== undefined){let data59 = data43.stage;if(!(((typeof data59 == "number") && (!(data59 % 1) && !isNaN(data59))) && (isFinite(data59)))){const err162 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if((typeof data59 == "number") && (isFinite(data59))){if(data59 < 0 || isNaN(data59)){const err163 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}if(data43.row !== undefined){let data60 = data43.row;if(!(((typeof data60 == "number") && (!(data60 % 1) && !isNaN(data60))) && (isFinite(data60)))){const err164 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if((typeof data60 == "number") && (isFinite(data60))){if(data60 < 0 || isNaN(data60)){const err165 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}if(data43.width !== undefined){let data61 = data43.width;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 48 || isNaN(data61)){const err166 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data43.height !== undefined){let data62 = data43.height;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 36 || isNaN(data62)){const err168 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data43.yOffset !== undefined){let data63 = data43.yOffset;if(!((typeof data63 == "number") && (isFinite(data63)))){const err170 = {instancePath:instancePath+"/nodes/" + i1+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data.flows !== undefined){let data64 = data.flows;if(Array.isArray(data64)){const len5 = data64.length;for(let i3=0; i3<len5; i3++){let data65 = data64[i3];if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.from === undefined){const err173 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data65.to === undefined){const err174 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(data65.label === undefined){const err175 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}for(const key16 in data65){if(!(func1.call(schema101.properties.flows.items.properties, key16))){const err176 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data65.id !== undefined){let data66 = data65.id;if(typeof data66 === "string"){if(!pattern16.test(data66)){const err177 = {instancePath:instancePath+"/flows/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/flows/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data65.from !== undefined){let data67 = data65.from;if(typeof data67 === "string"){if(!pattern16.test(data67)){const err179 = {instancePath:instancePath+"/flows/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}else {const err180 = {instancePath:instancePath+"/flows/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data65.to !== undefined){let data68 = data65.to;if(typeof data68 === "string"){if(!pattern16.test(data68)){const err181 = {instancePath:instancePath+"/flows/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/flows/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data65.label !== undefined){let data69 = data65.label;if(typeof data69 === "string"){if(func3(data69) < 1){const err183 = {instancePath:instancePath+"/flows/" + i3+"/label",schemaPath:"#/properties/flows/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/flows/" + i3+"/label",schemaPath:"#/properties/flows/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data65.classification !== undefined){if(typeof data65.classification !== "string"){const err185 = {instancePath:instancePath+"/flows/" + i3+"/classification",schemaPath:"#/properties/flows/items/properties/classification/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data65.variant !== undefined){let data71 = data65.variant;if(!((((data71 === "default") || (data71 === "emphasis")) || (data71 === "security")) || (data71 === "dashed"))){const err186 = {instancePath:instancePath+"/flows/" + i3+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data65.route !== undefined){let data72 = data65.route;if(!(((((data72 === "auto") || (data72 === "straight")) || (data72 === "vertical-channel")) || (data72 === "bottom-channel")) || (data72 === "top-channel"))){const err187 = {instancePath:instancePath+"/flows/" + i3+"/route",schemaPath:"#/properties/flows/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema101.properties.flows.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data65.fromSide !== undefined){let data73 = data65.fromSide;if(!((((data73 === "left") || (data73 === "right")) || (data73 === "top")) || (data73 === "bottom"))){const err188 = {instancePath:instancePath+"/flows/" + i3+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data65.toSide !== undefined){let data74 = data65.toSide;if(!((((data74 === "left") || (data74 === "right")) || (data74 === "top")) || (data74 === "bottom"))){const err189 = {instancePath:instancePath+"/flows/" + i3+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data65.channelX !== undefined){let data75 = data65.channelX;if(!((typeof data75 == "number") && (isFinite(data75)))){const err190 = {instancePath:instancePath+"/flows/" + i3+"/channelX",schemaPath:"#/properties/flows/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data65.channelY !== undefined){let data76 = data65.channelY;if(!((typeof data76 == "number") && (isFinite(data76)))){const err191 = {instancePath:instancePath+"/flows/" + i3+"/channelY",schemaPath:"#/properties/flows/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data65.labelAt !== undefined){let data77 = data65.labelAt;if(Array.isArray(data77)){if(data77.length > 2){const err192 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data77.length < 2){const err193 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}const len6 = data77.length;if(len6 > 0){let data78 = data77[0];if(!((typeof data78 == "number") && (isFinite(data78)))){const err194 = {instancePath:instancePath+"/flows/" + i3+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(len6 > 1){let data79 = data77[1];if(!((typeof data79 == "number") && (isFinite(data79)))){const err195 = {instancePath:instancePath+"/flows/" + i3+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}const len7 = data77.length;if(!(len7 <= 2)){const err196 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}else {const err197 = {instancePath:instancePath+"/flows/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data65.labelDx !== undefined){let data80 = data65.labelDx;if(!((typeof data80 == "number") && (isFinite(data80)))){const err198 = {instancePath:instancePath+"/flows/" + i3+"/labelDx",schemaPath:"#/properties/flows/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data65.labelDy !== undefined){let data81 = data65.labelDy;if(!((typeof data81 == "number") && (isFinite(data81)))){const err199 = {instancePath:instancePath+"/flows/" + i3+"/labelDy",schemaPath:"#/properties/flows/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data65.labelSegment !== undefined){let data82 = data65.labelSegment;if(!(((typeof data82 == "number") && (!(data82 % 1) && !isNaN(data82))) && (isFinite(data82)))){const err200 = {instancePath:instancePath+"/flows/" + i3+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err201 = {instancePath:instancePath+"/flows/" + i3+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}if(data65.via !== undefined){let data83 = data65.via;if(Array.isArray(data83)){const len8 = data83.length;for(let i4=0; i4<len8; i4++){let data84 = data83[i4];if(Array.isArray(data84)){if(data84.length > 2){const err202 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(data84.length < 2){const err203 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}const len9 = data84.length;if(len9 > 0){let data85 = data84[0];if(!((typeof data85 == "number") && (isFinite(data85)))){const err204 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(len9 > 1){let data86 = data84[1];if(!((typeof data86 == "number") && (isFinite(data86)))){const err205 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}const len10 = data84.length;if(!(len10 <= 2)){const err206 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}else {const err207 = {instancePath:instancePath+"/flows/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}}else {const err208 = {instancePath:instancePath+"/flows/" + i3+"/via",schemaPath:"#/properties/flows/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data65.width !== undefined){let data87 = data65.width;if((typeof data87 == "number") && (isFinite(data87))){if(data87 < 0.5 || isNaN(data87)){const err209 = {instancePath:instancePath+"/flows/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/flows/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/flows/" + i3,schemaPath:"#/properties/flows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath:instancePath+"/flows",schemaPath:"#/properties/flows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data.cards !== undefined){let data88 = data.cards;if(Array.isArray(data88)){const len11 = data88.length;for(let i5=0; i5<len11; i5++){let data89 = data88[i5];if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.dot === undefined){const err213 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data89.title === undefined){const err214 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data89.items === undefined){const err215 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}for(const key17 in data89){if(!(((key17 === "dot") || (key17 === "title")) || (key17 === "items"))){const err216 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data89.dot !== undefined){let data90 = data89.dot;if(!(((((((data90 === "cyan") || (data90 === "emerald")) || (data90 === "violet")) || (data90 === "amber")) || (data90 === "rose")) || (data90 === "orange")) || (data90 === "slate"))){const err217 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data89.title !== undefined){let data91 = data89.title;if(typeof data91 === "string"){if(func3(data91) < 1){const err218 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data89.items !== undefined){let data92 = data89.items;if(Array.isArray(data92)){const len12 = data92.length;for(let i6=0; i6<len12; i6++){if(typeof data92[i6] !== "string"){const err220 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}}else {const err221 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}}else {const err224 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const lifecycleSchema = validate33;const schema133 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json","title":"Archify Lifecycle Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","lanes","states","transitions"],"properties":{"schema_version":{"enum":[1,2]},"diagram_type":{"const":"lifecycle"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"start":{"$ref":"common.schema.json#/$defs/legendEntry"},"active":{"$ref":"common.schema.json#/$defs/legendEntry"},"waiting":{"$ref":"common.schema.json#/$defs/legendEntry"},"decision":{"$ref":"common.schema.json#/$defs/legendEntry"},"success":{"$ref":"common.schema.json#/$defs/legendEntry"},"failure":{"$ref":"common.schema.json#/$defs/legendEntry"},"neutral":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":420},{"type":"number","minimum":300}],"items":false,"minItems":2,"maxItems":2}}},"lanes":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1}}}},"states":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","lane","col"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"enum":["start","active","waiting","decision","success","failure","neutral","external"]},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"},"step":{"type":"string"},"lane":{"$ref":"common.schema.json#/$defs/id"},"col":{"type":"integer","minimum":0,"maximum":4},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"transitions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"note":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","drop","bottom-channel","top-channel","right-channel","left-channel"]},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"channelX":{"type":"number"},"channelY":{"type":"number"},"cornerRadius":{"type":"number","minimum":0},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate33.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.states === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "states"},message:"must have required property '"+"states"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.transitions === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transitions"},message:"must have required property '"+"transitions"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "lanes")) || (key0 === "states")) || (key0 === "transitions")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){let data0 = data.schema_version;if(!((data0 === 1) || (data0 === 2))){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/enum",keyword:"enum",params:{allowedValues: schema133.properties.schema_version.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("lifecycle" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "lifecycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.output === undefined){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}for(const key1 in data2){if(!(func1.call(schema133.properties.meta.properties, key1))){const err11 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(!pattern4.test(data4)){const err15 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}else {const err16 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err18 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err19 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(func3(data6) < 1){const err21 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}else {const err23 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err24 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(!pattern14.test(data8)){const err41 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}else {const err42 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err43 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err44 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err45 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data2.repository !== undefined){let data12 = data2.repository;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){if(data12.url === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(data12.revision === undefined){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}for(const key4 in data12){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err48 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.url !== undefined){let data13 = data12.url;if(typeof data13 === "string"){if(func3(data13) < 1){const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data12.provider !== undefined){let data14 = data12.provider;if(!((data14 === "github") || (data14 === "gitee"))){const err51 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data12.link_mode !== undefined){let data15 = data12.link_mode;if(!((data15 === "web") || (data15 === "local-only"))){const err52 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data12.revision !== undefined){let data16 = data12.revision;if(typeof data16 === "string"){if(!pattern15.test(data16)){const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data2.views !== undefined){if(!(validate34(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data18 = data2.legend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key5 in data18){if(!((key5 === "mode") || (key5 === "entries"))){const err56 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data18.mode !== undefined){let data19 = data18.mode;if(!(((data19 === "auto") || (data19 === "all")) || (data19 === "hidden"))){const err57 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data18.entries !== undefined){let data20 = data18.entries;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){for(const key6 in data20){if(!((((((((key6 === "start") || (key6 === "active")) || (key6 === "waiting")) || (key6 === "decision")) || (key6 === "success")) || (key6 === "failure")) || (key6 === "neutral")) || (key6 === "external"))){const err58 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data20.start !== undefined){let data21 = data20.start;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}for(const key7 in data21){if(!((key7 === "label") || (key7 === "visible"))){const err60 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err61 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(func3(data22) < 1){const err62 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err64 = {instancePath:instancePath+"/meta/legend/entries/start/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}}else {const err65 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data20.active !== undefined){let data24 = data20.active;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}for(const key8 in data24){if(!((key8 === "label") || (key8 === "visible"))){const err67 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err68 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(func3(data25) < 1){const err69 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err71 = {instancePath:instancePath+"/meta/legend/entries/active/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data20.waiting !== undefined){let data27 = data20.waiting;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}for(const key9 in data27){if(!((key9 === "label") || (key9 === "visible"))){const err74 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err75 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(func3(data28) < 1){const err76 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err78 = {instancePath:instancePath+"/meta/legend/entries/waiting/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data20.decision !== undefined){let data30 = data20.decision;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err80 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data30){if(!((key10 === "label") || (key10 === "visible"))){const err81 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err82 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data31) < 1){const err83 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err85 = {instancePath:instancePath+"/meta/legend/entries/decision/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data20.success !== undefined){let data33 = data20.success;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err87 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key11 in data33){if(!((key11 === "label") || (key11 === "visible"))){const err88 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err89 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data34) < 1){const err90 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err92 = {instancePath:instancePath+"/meta/legend/entries/success/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data20.failure !== undefined){let data36 = data20.failure;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(Object.keys(data36).length < 1){const err94 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}for(const key12 in data36){if(!((key12 === "label") || (key12 === "visible"))){const err95 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data36.label !== undefined){let data37 = data36.label;if(typeof data37 === "string"){if(func3(data37) > 80){const err96 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(func3(data37) < 1){const err97 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}else {const err98 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data36.visible !== undefined){if(typeof data36.visible !== "boolean"){const err99 = {instancePath:instancePath+"/meta/legend/entries/failure/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data20.neutral !== undefined){let data39 = data20.neutral;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(Object.keys(data39).length < 1){const err101 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}for(const key13 in data39){if(!((key13 === "label") || (key13 === "visible"))){const err102 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data39.label !== undefined){let data40 = data39.label;if(typeof data40 === "string"){if(func3(data40) > 80){const err103 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(func3(data40) < 1){const err104 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data39.visible !== undefined){if(typeof data39.visible !== "boolean"){const err106 = {instancePath:instancePath+"/meta/legend/entries/neutral/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data20.external !== undefined){let data42 = data20.external;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(Object.keys(data42).length < 1){const err108 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}for(const key14 in data42){if(!((key14 === "label") || (key14 === "visible"))){const err109 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data42.label !== undefined){let data43 = data42.label;if(typeof data43 === "string"){if(func3(data43) > 80){const err110 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(func3(data43) < 1){const err111 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data42.visible !== undefined){if(typeof data42.visible !== "boolean"){const err113 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}else {const err114 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}else {const err115 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data2.viewBox !== undefined){let data45 = data2.viewBox;if(Array.isArray(data45)){if(data45.length > 2){const err117 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data45.length < 2){const err118 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const len0 = data45.length;if(len0 > 0){let data46 = data45[0];if((typeof data46 == "number") && (isFinite(data46))){if(data46 < 420 || isNaN(data46)){const err119 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 420},message:"must be >= 420"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(len0 > 1){let data47 = data45[1];if((typeof data47 == "number") && (isFinite(data47))){if(data47 < 300 || isNaN(data47)){const err121 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 300},message:"must be >= 300"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}else {const err122 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}const len1 = data45.length;if(!(len1 <= 2)){const err123 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data.lanes !== undefined){let data48 = data.lanes;if(Array.isArray(data48)){if(data48.length > 4){const err126 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/maxItems",keyword:"maxItems",params:{limit: 4},message:"must NOT have more than 4 items"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data48.length < 1){const err127 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const len2 = data48.length;for(let i0=0; i0<len2; i0++){let data49 = data48[i0];if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err128 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data49.label === undefined){const err129 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}for(const key15 in data49){if(!((key15 === "id") || (key15 === "label"))){const err130 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data49.id !== undefined){let data50 = data49.id;if(typeof data50 === "string"){if(!pattern16.test(data50)){const err131 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}else {const err132 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data49.label !== undefined){let data51 = data49.label;if(typeof data51 === "string"){if(func3(data51) < 1){const err133 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}else {const err136 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data.states !== undefined){let data52 = data.states;if(Array.isArray(data52)){if(data52.length < 2){const err137 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}const len3 = data52.length;for(let i1=0; i1<len3; i1++){let data53 = data52[i1];if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.id === undefined){const err138 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data53.type === undefined){const err139 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data53.label === undefined){const err140 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data53.lane === undefined){const err141 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data53.col === undefined){const err142 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key16 in data53){if(!(func1.call(schema133.properties.states.items.properties, key16))){const err143 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data53.id !== undefined){let data54 = data53.id;if(typeof data54 === "string"){if(!pattern16.test(data54)){const err144 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data53.type !== undefined){let data55 = data53.type;if(!((((((((data55 === "start") || (data55 === "active")) || (data55 === "waiting")) || (data55 === "decision")) || (data55 === "success")) || (data55 === "failure")) || (data55 === "neutral")) || (data55 === "external"))){const err146 = {instancePath:instancePath+"/states/" + i1+"/type",schemaPath:"#/properties/states/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema133.properties.states.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data53.label !== undefined){let data56 = data53.label;if(typeof data56 === "string"){if(func3(data56) < 1){const err147 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}if(data53.sublabel !== undefined){if(typeof data53.sublabel !== "string"){const err149 = {instancePath:instancePath+"/states/" + i1+"/sublabel",schemaPath:"#/properties/states/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data53.tag !== undefined){if(typeof data53.tag !== "string"){const err150 = {instancePath:instancePath+"/states/" + i1+"/tag",schemaPath:"#/properties/states/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data53.icon !== undefined){let data59 = data53.icon;if(!((((((((((((((((((((data59 === "calendar") || (data59 === "clock")) || (data59 === "person")) || (data59 === "briefcase")) || (data59 === "flag")) || (data59 === "moon")) || (data59 === "frontend")) || (data59 === "backend")) || (data59 === "database")) || (data59 === "cloud")) || (data59 === "security")) || (data59 === "messagebus")) || (data59 === "external")) || (data59 === "start")) || (data59 === "active")) || (data59 === "waiting")) || (data59 === "success")) || (data59 === "failure")) || (data59 === "neutral")) || (data59 === "none"))){const err151 = {instancePath:instancePath+"/states/" + i1+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data53.brand !== undefined){let data60 = data53.brand;const _errs170 = errors;let valid50 = false;let passing0 = null;const _errs171 = errors;const _errs173 = errors;let valid51 = false;const _errs174 = errors;if(typeof data60 === "string"){if(func3(data60) > 80){const err152 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(!pattern29.test(data60)){const err153 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid1 = _errs174 === errors;valid51 = valid51 || _valid1;const _errs175 = errors;if(typeof data60 === "string"){if(!pattern30.test(data60)){const err154 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid1 = _errs175 === errors;valid51 = valid51 || _valid1;if(!valid51){const err155 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs173;if(vErrors !== null){if(_errs173){vErrors.length = _errs173;}else {vErrors = null;}}}if(typeof data60 === "string"){if(func3(data60) > 2048){const err156 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(func3(data60) < 1){const err157 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}else {const err158 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}var _valid0 = _errs171 === errors;if(_valid0){valid50 = true;passing0 = 0;}const _errs176 = errors;if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.url === undefined){const err159 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data60.sha256 === undefined){const err160 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}for(const key17 in data60){if(!((key17 === "url") || (key17 === "sha256"))){const err161 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data60.url !== undefined){let data61 = data60.url;if(typeof data61 === "string"){if(func3(data61) > 2048){const err162 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(func3(data61) < 8){const err163 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(!pattern30.test(data61)){const err164 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data60.sha256 !== undefined){let data62 = data60.sha256;if(typeof data62 === "string"){if(!pattern32.test(data62)){const err166 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid0 = _errs176 === errors;if(_valid0 && valid50){valid50 = false;passing0 = [passing0, 1];}else {if(_valid0){valid50 = true;passing0 = 1;}}if(!valid50){const err169 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}if(data53.sources !== undefined){let data63 = data53.sources;if(Array.isArray(data63)){if(data63.length > 3){const err170 = {instancePath:instancePath+"/states/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data63.length < 1){const err171 = {instancePath:instancePath+"/states/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const len4 = data63.length;for(let i2=0; i2<len4; i2++){let data64 = data63[i2];if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.path === undefined){const err172 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}for(const key18 in data64){if(!((((key18 === "path") || (key18 === "line")) || (key18 === "end_line")) || (key18 === "label"))){const err173 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data64.path !== undefined){let data65 = data64.path;if(typeof data65 === "string"){if(func3(data65) > 240){const err174 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(func3(data65) < 1){const err175 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data64.line !== undefined){let data66 = data64.line;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err177 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err178 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}if(data64.end_line !== undefined){let data67 = data64.end_line;if(!(((typeof data67 == "number") && (!(data67 % 1) && !isNaN(data67))) && (isFinite(data67)))){const err179 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if((typeof data67 == "number") && (isFinite(data67))){if(data67 < 1 || isNaN(data67)){const err180 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}if(data64.label !== undefined){let data68 = data64.label;if(typeof data68 === "string"){if(func3(data68) > 48){const err181 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(func3(data68) < 1){const err182 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}else {const err183 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/states/" + i1+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath:instancePath+"/states/" + i1+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data53.step !== undefined){if(typeof data53.step !== "string"){const err186 = {instancePath:instancePath+"/states/" + i1+"/step",schemaPath:"#/properties/states/items/properties/step/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data53.lane !== undefined){let data70 = data53.lane;if(typeof data70 === "string"){if(!pattern16.test(data70)){const err187 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data53.col !== undefined){let data71 = data53.col;if(!(((typeof data71 == "number") && (!(data71 % 1) && !isNaN(data71))) && (isFinite(data71)))){const err189 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if((typeof data71 == "number") && (isFinite(data71))){if(data71 > 4 || isNaN(data71)){const err190 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 4},message:"must be <= 4"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data71 < 0 || isNaN(data71)){const err191 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}if(data53.width !== undefined){let data72 = data53.width;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 48 || isNaN(data72)){const err192 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data53.height !== undefined){let data73 = data53.height;if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 36 || isNaN(data73)){const err194 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data53.yOffset !== undefined){let data74 = data53.yOffset;if(!((typeof data74 == "number") && (isFinite(data74)))){const err196 = {instancePath:instancePath+"/states/" + i1+"/yOffset",schemaPath:"#/properties/states/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}}else {const err197 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}}else {const err198 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data.transitions !== undefined){let data75 = data.transitions;if(Array.isArray(data75)){const len5 = data75.length;for(let i3=0; i3<len5; i3++){let data76 = data75[i3];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.from === undefined){const err199 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data76.to === undefined){const err200 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}for(const key19 in data76){if(!(func1.call(schema133.properties.transitions.items.properties, key19))){const err201 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!pattern16.test(data77)){const err202 = {instancePath:instancePath+"/transitions/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {instancePath:instancePath+"/transitions/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data76.from !== undefined){let data78 = data76.from;if(typeof data78 === "string"){if(!pattern16.test(data78)){const err204 = {instancePath:instancePath+"/transitions/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}else {const err205 = {instancePath:instancePath+"/transitions/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data76.to !== undefined){let data79 = data76.to;if(typeof data79 === "string"){if(!pattern16.test(data79)){const err206 = {instancePath:instancePath+"/transitions/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}else {const err207 = {instancePath:instancePath+"/transitions/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(data76.label !== undefined){if(typeof data76.label !== "string"){const err208 = {instancePath:instancePath+"/transitions/" + i3+"/label",schemaPath:"#/properties/transitions/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data76.note !== undefined){if(typeof data76.note !== "string"){const err209 = {instancePath:instancePath+"/transitions/" + i3+"/note",schemaPath:"#/properties/transitions/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data76.variant !== undefined){let data82 = data76.variant;if(!((((data82 === "default") || (data82 === "emphasis")) || (data82 === "security")) || (data82 === "dashed"))){const err210 = {instancePath:instancePath+"/transitions/" + i3+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data76.route !== undefined){let data83 = data76.route;if(!(((((((data83 === "auto") || (data83 === "straight")) || (data83 === "drop")) || (data83 === "bottom-channel")) || (data83 === "top-channel")) || (data83 === "right-channel")) || (data83 === "left-channel"))){const err211 = {instancePath:instancePath+"/transitions/" + i3+"/route",schemaPath:"#/properties/transitions/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema133.properties.transitions.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data76.fromSide !== undefined){let data84 = data76.fromSide;if(!((((data84 === "left") || (data84 === "right")) || (data84 === "top")) || (data84 === "bottom"))){const err212 = {instancePath:instancePath+"/transitions/" + i3+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data76.toSide !== undefined){let data85 = data76.toSide;if(!((((data85 === "left") || (data85 === "right")) || (data85 === "top")) || (data85 === "bottom"))){const err213 = {instancePath:instancePath+"/transitions/" + i3+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data76.channelX !== undefined){let data86 = data76.channelX;if(!((typeof data86 == "number") && (isFinite(data86)))){const err214 = {instancePath:instancePath+"/transitions/" + i3+"/channelX",schemaPath:"#/properties/transitions/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(data76.channelY !== undefined){let data87 = data76.channelY;if(!((typeof data87 == "number") && (isFinite(data87)))){const err215 = {instancePath:instancePath+"/transitions/" + i3+"/channelY",schemaPath:"#/properties/transitions/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data76.cornerRadius !== undefined){let data88 = data76.cornerRadius;if((typeof data88 == "number") && (isFinite(data88))){if(data88 < 0 || isNaN(data88)){const err216 = {instancePath:instancePath+"/transitions/" + i3+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/transitions/" + i3+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data76.labelAt !== undefined){let data89 = data76.labelAt;if(Array.isArray(data89)){if(data89.length > 2){const err218 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}if(data89.length < 2){const err219 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}const len6 = data89.length;if(len6 > 0){let data90 = data89[0];if(!((typeof data90 == "number") && (isFinite(data90)))){const err220 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(len6 > 1){let data91 = data89[1];if(!((typeof data91 == "number") && (isFinite(data91)))){const err221 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}const len7 = data89.length;if(!(len7 <= 2)){const err222 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}else {const err223 = {instancePath:instancePath+"/transitions/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data76.labelDx !== undefined){let data92 = data76.labelDx;if(!((typeof data92 == "number") && (isFinite(data92)))){const err224 = {instancePath:instancePath+"/transitions/" + i3+"/labelDx",schemaPath:"#/properties/transitions/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data76.labelDy !== undefined){let data93 = data76.labelDy;if(!((typeof data93 == "number") && (isFinite(data93)))){const err225 = {instancePath:instancePath+"/transitions/" + i3+"/labelDy",schemaPath:"#/properties/transitions/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data76.labelSegment !== undefined){let data94 = data76.labelSegment;if(!(((typeof data94 == "number") && (!(data94 % 1) && !isNaN(data94))) && (isFinite(data94)))){const err226 = {instancePath:instancePath+"/transitions/" + i3+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if((typeof data94 == "number") && (isFinite(data94))){if(data94 < 0 || isNaN(data94)){const err227 = {instancePath:instancePath+"/transitions/" + i3+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}if(data76.via !== undefined){let data95 = data76.via;if(Array.isArray(data95)){const len8 = data95.length;for(let i4=0; i4<len8; i4++){let data96 = data95[i4];if(Array.isArray(data96)){if(data96.length > 2){const err228 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data96.length < 2){const err229 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}const len9 = data96.length;if(len9 > 0){let data97 = data96[0];if(!((typeof data97 == "number") && (isFinite(data97)))){const err230 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(len9 > 1){let data98 = data96[1];if(!((typeof data98 == "number") && (isFinite(data98)))){const err231 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}const len10 = data96.length;if(!(len10 <= 2)){const err232 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}else {const err233 = {instancePath:instancePath+"/transitions/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/transitions/" + i3+"/via",schemaPath:"#/properties/transitions/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}if(data76.width !== undefined){let data99 = data76.width;if((typeof data99 == "number") && (isFinite(data99))){if(data99 < 0.5 || isNaN(data99)){const err235 = {instancePath:instancePath+"/transitions/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}else {const err236 = {instancePath:instancePath+"/transitions/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/transitions/" + i3,schemaPath:"#/properties/transitions/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/transitions",schemaPath:"#/properties/transitions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data.cards !== undefined){let data100 = data.cards;if(Array.isArray(data100)){const len11 = data100.length;for(let i5=0; i5<len11; i5++){let data101 = data100[i5];if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.dot === undefined){const err239 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data101.title === undefined){const err240 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if(data101.items === undefined){const err241 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}for(const key20 in data101){if(!(((key20 === "dot") || (key20 === "title")) || (key20 === "items"))){const err242 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}if(data101.dot !== undefined){let data102 = data101.dot;if(!(((((((data102 === "cyan") || (data102 === "emerald")) || (data102 === "violet")) || (data102 === "amber")) || (data102 === "rose")) || (data102 === "orange")) || (data102 === "slate"))){const err243 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}if(data101.title !== undefined){let data103 = data101.title;if(typeof data103 === "string"){if(func3(data103) < 1){const err244 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}else {const err245 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data101.items !== undefined){let data104 = data101.items;if(Array.isArray(data104)){const len12 = data104.length;for(let i6=0; i6<len12; i6++){if(typeof data104[i6] !== "string"){const err246 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}else {const err249 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}}else {const err250 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const architectureSchema = validate36;const schema169 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/architecture.schema.json","title":"Archify Architecture Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","components"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"architecture"},"meta":{"type":"object","additionalProperties":false,"required":["title","output"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"translations":{"$ref":"common.schema.json#/$defs/translations"},"subtitle":{"type":"string"},"output":{"$ref":"common.schema.json#/$defs/portableOutputPath"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"engineering_profile":{"enum":["deployment-ownership"]},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"frontend":{"$ref":"common.schema.json#/$defs/legendEntry"},"backend":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"},"cloud":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"messagebus":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":320},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"layout":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["grid"]},"origin":{"$ref":"common.schema.json#/$defs/point"},"cols":{"type":"integer","minimum":1,"maximum":12},"gapX":{"type":"number","minimum":0},"gapY":{"type":"number","minimum":0},"cellW":{"type":"number","minimum":40},"cellH":{"type":"number","minimum":24}}},"components":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"icon":{"$ref":"common.schema.json#/$defs/nodeIcon"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"},"row":{"type":"integer","minimum":0},"col":{"type":"integer","minimum":0},"pos":{"$ref":"common.schema.json#/$defs/point"},"size":{"type":"array","prefixItems":[{"type":"number","exclusiveMinimum":0},{"type":"number","exclusiveMinimum":0}],"items":false,"minItems":2,"maxItems":2}}}},"boundaries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["kind","label","wraps"],"properties":{"kind":{"enum":["region","security-group"]},"label":{"type":"string","minLength":1},"wraps":{"type":"array","minItems":1,"items":{"$ref":"common.schema.json#/$defs/id"}},"pad":{"type":"number","minimum":0}}}},"connections":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"route":{"enum":["auto","straight","orthogonal-h","orthogonal-v"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate37.errors = vErrors;return errors === 0;}validate37.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/architecture.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.components === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "components"},message:"must have required property '"+"components"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "layout")) || (key0 === "components")) || (key0 === "boundaries")) || (key0 === "connections")) || (key0 === "cards"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err5 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.diagram_type !== undefined){if("architecture" !== data.diagram_type){const err6 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "architecture"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data2.output === undefined){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "output"},message:"must have required property '"+"output"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key1 in data2){if(!(func1.call(schema169.properties.meta.properties, key1))){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err12 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(!pattern4.test(data4)){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.translations !== undefined){let data5 = data2.translations;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(Object.keys(data5).length > 600){const err15 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/maxProperties",keyword:"maxProperties",params:{limit: 600},message:"must NOT have more than 600 properties"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}for(const key2 in data5){const _errs15 = errors;if(typeof key2 === "string"){if(!pattern5.test(key2)){const err16 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames/pattern",keyword:"pattern",params:{pattern: "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"},message:"must match pattern \""+"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"+"\"",propertyName:key2};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}var valid4 = _errs15 === errors;if(!valid4){const err17 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}for(const key3 in data5){let data6 = data5[key3];if(typeof data6 === "string"){if(func3(data6) > 400){const err18 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/maxLength",keyword:"maxLength",params:{limit: 400},message:"must NOT have more than 400 characters"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(func3(data6) < 1){const err19 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}else {const err20 = {instancePath:instancePath+"/meta/translations/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"common.schema.json#/$defs/translations/additionalProperties/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}}else {const err21 = {instancePath:instancePath+"/meta/translations",schemaPath:"common.schema.json#/$defs/translations/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err22 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data2.output !== undefined){let data8 = data2.output;if(typeof data8 === "string"){if(!pattern6.test(data8)){const err23 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/0/pattern",keyword:"pattern",params:{pattern: "(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"},message:"must match pattern \""+"(?:^|/)[^/]+[.][Hh][Tt][Mm][Ll]$"+"\""};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}const _errs26 = errors;const _errs27 = errors;if(typeof data8 === "string"){if(!pattern7.test(data8)){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}var valid8 = _errs27 === errors;if(valid8){const err25 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}const _errs29 = errors;const _errs30 = errors;if(typeof data8 === "string"){if(!pattern8.test(data8)){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}var valid9 = _errs30 === errors;if(valid9){const err27 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}const _errs32 = errors;const _errs33 = errors;if(typeof data8 === "string"){if(!pattern9.test(data8)){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var valid10 = _errs33 === errors;if(valid10){const err29 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs32;if(vErrors !== null){if(_errs32){vErrors.length = _errs32;}else {vErrors = null;}}}const _errs35 = errors;const _errs36 = errors;if(typeof data8 === "string"){if(!pattern10.test(data8)){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}var valid11 = _errs36 === errors;if(valid11){const err31 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs35;if(vErrors !== null){if(_errs35){vErrors.length = _errs35;}else {vErrors = null;}}}const _errs38 = errors;const _errs39 = errors;if(typeof data8 === "string"){if(!pattern11.test(data8)){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var valid12 = _errs39 === errors;if(valid12){const err33 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/5/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}const _errs41 = errors;const _errs42 = errors;if(typeof data8 === "string"){if(!pattern12.test(data8)){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}var valid13 = _errs42 === errors;if(valid13){const err35 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/6/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}else {errors = _errs41;if(vErrors !== null){if(_errs41){vErrors.length = _errs41;}else {vErrors = null;}}}const _errs44 = errors;const _errs45 = errors;if(typeof data8 === "string"){if(!pattern13.test(data8)){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}var valid14 = _errs45 === errors;if(valid14){const err37 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/allOf/7/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}if(typeof data8 === "string"){if(func3(data8) < 1){const err38 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(!pattern14.test(data8)){const err39 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/pattern",keyword:"pattern",params:{pattern: "^[^/]+(?:/[^/]+)*$"},message:"must match pattern \""+"^[^/]+(?:/[^/]+)*$"+"\""};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/output",schemaPath:"common.schema.json#/$defs/portableOutputPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data2.animation !== undefined){let data9 = data2.animation;if(!((data9 === "trace") || (data9 === "none"))){const err41 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data2.visual_preset !== undefined){let data10 = data2.visual_preset;if(!((((data10 === "classic") || (data10 === "signal-flow")) || (data10 === "blueprint")) || (data10 === "editorial"))){const err42 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data2.quality_profile !== undefined){let data11 = data2.quality_profile;if(!((data11 === "standard") || (data11 === "showcase"))){const err43 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data2.engineering_profile !== undefined){if(!(data2.engineering_profile === "deployment-ownership")){const err44 = {instancePath:instancePath+"/meta/engineering_profile",schemaPath:"#/properties/meta/properties/engineering_profile/enum",keyword:"enum",params:{allowedValues: schema169.properties.meta.properties.engineering_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data2.repository !== undefined){let data13 = data2.repository;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.url === undefined){const err45 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(data13.revision === undefined){const err46 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}for(const key4 in data13){if(!((((key4 === "url") || (key4 === "provider")) || (key4 === "link_mode")) || (key4 === "revision"))){const err47 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data13.url !== undefined){let data14 = data13.url;if(typeof data14 === "string"){if(func3(data14) < 1){const err48 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}else {const err49 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data13.provider !== undefined){let data15 = data13.provider;if(!((data15 === "github") || (data15 === "gitee"))){const err50 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data13.link_mode !== undefined){let data16 = data13.link_mode;if(!((data16 === "web") || (data16 === "local-only"))){const err51 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data13.revision !== undefined){let data17 = data13.revision;if(typeof data17 === "string"){if(!pattern15.test(data17)){const err52 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}else {const err54 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data2.views !== undefined){if(!(validate37(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data19 = data2.legend;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){for(const key5 in data19){if(!((key5 === "mode") || (key5 === "entries"))){const err55 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data19.mode !== undefined){let data20 = data19.mode;if(!(((data20 === "auto") || (data20 === "all")) || (data20 === "hidden"))){const err56 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data19.entries !== undefined){let data21 = data19.entries;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){for(const key6 in data21){if(!(((((((key6 === "frontend") || (key6 === "backend")) || (key6 === "database")) || (key6 === "cloud")) || (key6 === "security")) || (key6 === "messagebus")) || (key6 === "external"))){const err57 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data21.frontend !== undefined){let data22 = data21.frontend;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err58 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err59 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err60 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(func3(data23) < 1){const err61 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err63 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}}else {const err64 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data21.backend !== undefined){let data25 = data21.backend;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err65 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err66 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err67 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(func3(data26) < 1){const err68 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}else {const err69 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err70 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data21.database !== undefined){let data28 = data21.database;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err72 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}for(const key9 in data28){if(!((key9 === "label") || (key9 === "visible"))){const err73 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err74 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(func3(data29) < 1){const err75 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err77 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data21.cloud !== undefined){let data31 = data21.cloud;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err79 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}for(const key10 in data31){if(!((key10 === "label") || (key10 === "visible"))){const err80 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err81 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if(func3(data32) < 1){const err82 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err84 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data21.security !== undefined){let data34 = data21.security;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(Object.keys(data34).length < 1){const err86 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}for(const key11 in data34){if(!((key11 === "label") || (key11 === "visible"))){const err87 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data34.label !== undefined){let data35 = data34.label;if(typeof data35 === "string"){if(func3(data35) > 80){const err88 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(func3(data35) < 1){const err89 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}else {const err90 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(data34.visible !== undefined){if(typeof data34.visible !== "boolean"){const err91 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}else {const err92 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data21.messagebus !== undefined){let data37 = data21.messagebus;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(Object.keys(data37).length < 1){const err93 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}for(const key12 in data37){if(!((key12 === "label") || (key12 === "visible"))){const err94 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data37.label !== undefined){let data38 = data37.label;if(typeof data38 === "string"){if(func3(data38) > 80){const err95 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(func3(data38) < 1){const err96 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data37.visible !== undefined){if(typeof data37.visible !== "boolean"){const err98 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data21.external !== undefined){let data40 = data21.external;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(Object.keys(data40).length < 1){const err100 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}for(const key13 in data40){if(!((key13 === "label") || (key13 === "visible"))){const err101 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data40.label !== undefined){let data41 = data40.label;if(typeof data41 === "string"){if(func3(data41) > 80){const err102 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(func3(data41) < 1){const err103 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data40.visible !== undefined){if(typeof data40.visible !== "boolean"){const err105 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}else {const err106 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data2.viewBox !== undefined){let data43 = data2.viewBox;if(Array.isArray(data43)){if(data43.length > 2){const err109 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data43.length < 2){const err110 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const len0 = data43.length;if(len0 > 0){let data44 = data43[0];if((typeof data44 == "number") && (isFinite(data44))){if(data44 < 320 || isNaN(data44)){const err111 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 320},message:"must be >= 320"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(len0 > 1){let data45 = data43[1];if((typeof data45 == "number") && (isFinite(data45))){if(data45 < 240 || isNaN(data45)){const err113 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}const len1 = data43.length;if(!(len1 <= 2)){const err115 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}else {const err117 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data.layout !== undefined){let data46 = data.layout;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.mode === undefined){const err118 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}for(const key14 in data46){if(!(((((((key14 === "mode") || (key14 === "origin")) || (key14 === "cols")) || (key14 === "gapX")) || (key14 === "gapY")) || (key14 === "cellW")) || (key14 === "cellH"))){const err119 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data46.mode !== undefined){if(!(data46.mode === "grid")){const err120 = {instancePath:instancePath+"/layout/mode",schemaPath:"#/properties/layout/properties/mode/enum",keyword:"enum",params:{allowedValues: schema169.properties.layout.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data46.origin !== undefined){let data48 = data46.origin;if(Array.isArray(data48)){if(data48.length > 2){const err121 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data48.length < 2){const err122 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const len2 = data48.length;if(len2 > 0){let data49 = data48[0];if(!((typeof data49 == "number") && (isFinite(data49)))){const err123 = {instancePath:instancePath+"/layout/origin/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(len2 > 1){let data50 = data48[1];if(!((typeof data50 == "number") && (isFinite(data50)))){const err124 = {instancePath:instancePath+"/layout/origin/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}const len3 = data48.length;if(!(len3 <= 2)){const err125 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data46.cols !== undefined){let data51 = data46.cols;if(!(((typeof data51 == "number") && (!(data51 % 1) && !isNaN(data51))) && (isFinite(data51)))){const err127 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if((typeof data51 == "number") && (isFinite(data51))){if(data51 > 12 || isNaN(data51)){const err128 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data51 < 1 || isNaN(data51)){const err129 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}if(data46.gapX !== undefined){let data52 = data46.gapX;if((typeof data52 == "number") && (isFinite(data52))){if(data52 < 0 || isNaN(data52)){const err130 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}else {const err131 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data46.gapY !== undefined){let data53 = data46.gapY;if((typeof data53 == "number") && (isFinite(data53))){if(data53 < 0 || isNaN(data53)){const err132 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}else {const err133 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(data46.cellW !== undefined){let data54 = data46.cellW;if((typeof data54 == "number") && (isFinite(data54))){if(data54 < 40 || isNaN(data54)){const err134 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/minimum",keyword:"minimum",params:{comparison: ">=", limit: 40},message:"must be >= 40"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}else {const err135 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data46.cellH !== undefined){let data55 = data46.cellH;if((typeof data55 == "number") && (isFinite(data55))){if(data55 < 24 || isNaN(data55)){const err136 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/minimum",keyword:"minimum",params:{comparison: ">=", limit: 24},message:"must be >= 24"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}else {const err138 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data.components !== undefined){let data56 = data.components;if(Array.isArray(data56)){if(data56.length < 1){const err139 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const len4 = data56.length;for(let i0=0; i0<len4; i0++){let data57 = data56[i0];if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.id === undefined){const err140 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data57.type === undefined){const err141 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data57.label === undefined){const err142 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key15 in data57){if(!(func1.call(schema169.properties.components.items.properties, key15))){const err143 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data57.id !== undefined){let data58 = data57.id;if(typeof data58 === "string"){if(!pattern16.test(data58)){const err144 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data57.type !== undefined){let data59 = data57.type;if(!(((((((data59 === "frontend") || (data59 === "backend")) || (data59 === "database")) || (data59 === "cloud")) || (data59 === "security")) || (data59 === "messagebus")) || (data59 === "external"))){const err146 = {instancePath:instancePath+"/components/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema60.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data57.label !== undefined){let data60 = data57.label;if(typeof data60 === "string"){if(func3(data60) < 1){const err147 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}if(data57.sublabel !== undefined){if(typeof data57.sublabel !== "string"){const err149 = {instancePath:instancePath+"/components/" + i0+"/sublabel",schemaPath:"#/properties/components/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data57.tag !== undefined){if(typeof data57.tag !== "string"){const err150 = {instancePath:instancePath+"/components/" + i0+"/tag",schemaPath:"#/properties/components/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data57.icon !== undefined){let data63 = data57.icon;if(!((((((((((((((((((((data63 === "calendar") || (data63 === "clock")) || (data63 === "person")) || (data63 === "briefcase")) || (data63 === "flag")) || (data63 === "moon")) || (data63 === "frontend")) || (data63 === "backend")) || (data63 === "database")) || (data63 === "cloud")) || (data63 === "security")) || (data63 === "messagebus")) || (data63 === "external")) || (data63 === "start")) || (data63 === "active")) || (data63 === "waiting")) || (data63 === "success")) || (data63 === "failure")) || (data63 === "neutral")) || (data63 === "none"))){const err151 = {instancePath:instancePath+"/components/" + i0+"/icon",schemaPath:"common.schema.json#/$defs/nodeIcon/enum",keyword:"enum",params:{allowedValues: schema61.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data57.brand !== undefined){let data64 = data57.brand;const _errs175 = errors;let valid48 = false;let passing0 = null;const _errs176 = errors;const _errs178 = errors;let valid49 = false;const _errs179 = errors;if(typeof data64 === "string"){if(func3(data64) > 80){const err152 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(!pattern29.test(data64)){const err153 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid1 = _errs179 === errors;valid49 = valid49 || _valid1;const _errs180 = errors;if(typeof data64 === "string"){if(!pattern30.test(data64)){const err154 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid1 = _errs180 === errors;valid49 = valid49 || _valid1;if(!valid49){const err155 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}}if(typeof data64 === "string"){if(func3(data64) > 2048){const err156 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(func3(data64) < 1){const err157 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}else {const err158 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}var _valid0 = _errs176 === errors;if(_valid0){valid48 = true;passing0 = 0;}const _errs181 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.url === undefined){const err159 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data64.sha256 === undefined){const err160 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}for(const key16 in data64){if(!((key16 === "url") || (key16 === "sha256"))){const err161 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data64.url !== undefined){let data65 = data64.url;if(typeof data65 === "string"){if(func3(data65) > 2048){const err162 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(func3(data65) < 8){const err163 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(!pattern30.test(data65)){const err164 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data64.sha256 !== undefined){let data66 = data64.sha256;if(typeof data66 === "string"){if(!pattern32.test(data66)){const err166 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid0 = _errs181 === errors;if(_valid0 && valid48){valid48 = false;passing0 = [passing0, 1];}else {if(_valid0){valid48 = true;passing0 = 1;}}if(!valid48){const err169 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}}}if(data57.sources !== undefined){let data67 = data57.sources;if(Array.isArray(data67)){if(data67.length > 3){const err170 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data67.length < 1){const err171 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const len5 = data67.length;for(let i1=0; i1<len5; i1++){let data68 = data67[i1];if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.path === undefined){const err172 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}for(const key17 in data68){if(!((((key17 === "path") || (key17 === "line")) || (key17 === "end_line")) || (key17 === "label"))){const err173 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data68.path !== undefined){let data69 = data68.path;if(typeof data69 === "string"){if(func3(data69) > 240){const err174 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(func3(data69) < 1){const err175 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data68.line !== undefined){let data70 = data68.line;if(!(((typeof data70 == "number") && (!(data70 % 1) && !isNaN(data70))) && (isFinite(data70)))){const err177 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if((typeof data70 == "number") && (isFinite(data70))){if(data70 < 1 || isNaN(data70)){const err178 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}if(data68.end_line !== undefined){let data71 = data68.end_line;if(!(((typeof data71 == "number") && (!(data71 % 1) && !isNaN(data71))) && (isFinite(data71)))){const err179 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if((typeof data71 == "number") && (isFinite(data71))){if(data71 < 1 || isNaN(data71)){const err180 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}if(data68.label !== undefined){let data72 = data68.label;if(typeof data72 === "string"){if(func3(data72) > 48){const err181 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if(func3(data72) < 1){const err182 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}else {const err183 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data57.row !== undefined){let data73 = data57.row;if(!(((typeof data73 == "number") && (!(data73 % 1) && !isNaN(data73))) && (isFinite(data73)))){const err186 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 0 || isNaN(data73)){const err187 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}}if(data57.col !== undefined){let data74 = data57.col;if(!(((typeof data74 == "number") && (!(data74 % 1) && !isNaN(data74))) && (isFinite(data74)))){const err188 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err189 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}}if(data57.pos !== undefined){let data75 = data57.pos;if(Array.isArray(data75)){if(data75.length > 2){const err190 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data75.length < 2){const err191 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}const len6 = data75.length;if(len6 > 0){let data76 = data75[0];if(!((typeof data76 == "number") && (isFinite(data76)))){const err192 = {instancePath:instancePath+"/components/" + i0+"/pos/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(len6 > 1){let data77 = data75[1];if(!((typeof data77 == "number") && (isFinite(data77)))){const err193 = {instancePath:instancePath+"/components/" + i0+"/pos/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}const len7 = data75.length;if(!(len7 <= 2)){const err194 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data57.size !== undefined){let data78 = data57.size;if(Array.isArray(data78)){if(data78.length > 2){const err196 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data78.length < 2){const err197 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}const len8 = data78.length;if(len8 > 0){let data79 = data78[0];if((typeof data79 == "number") && (isFinite(data79))){if(data79 <= 0 || isNaN(data79)){const err198 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}else {const err199 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(len8 > 1){let data80 = data78[1];if((typeof data80 == "number") && (isFinite(data80))){if(data80 <= 0 || isNaN(data80)){const err200 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}else {const err201 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}const len9 = data78.length;if(!(len9 <= 2)){const err202 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data.boundaries !== undefined){let data81 = data.boundaries;if(Array.isArray(data81)){const len10 = data81.length;for(let i2=0; i2<len10; i2++){let data82 = data81[i2];if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(data82.kind === undefined){const err206 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data82.label === undefined){const err207 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data82.wraps === undefined){const err208 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "wraps"},message:"must have required property '"+"wraps"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}for(const key18 in data82){if(!((((key18 === "kind") || (key18 === "label")) || (key18 === "wraps")) || (key18 === "pad"))){const err209 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data82.kind !== undefined){let data83 = data82.kind;if(!((data83 === "region") || (data83 === "security-group"))){const err210 = {instancePath:instancePath+"/boundaries/" + i2+"/kind",schemaPath:"#/properties/boundaries/items/properties/kind/enum",keyword:"enum",params:{allowedValues: schema169.properties.boundaries.items.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data82.label !== undefined){let data84 = data82.label;if(typeof data84 === "string"){if(func3(data84) < 1){const err211 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}else {const err212 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data82.wraps !== undefined){let data85 = data82.wraps;if(Array.isArray(data85)){if(data85.length < 1){const err213 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}const len11 = data85.length;for(let i3=0; i3<len11; i3++){let data86 = data85[i3];if(typeof data86 === "string"){if(!pattern16.test(data86)){const err214 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}else {const err215 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}}else {const err216 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data82.pad !== undefined){let data87 = data82.pad;if((typeof data87 == "number") && (isFinite(data87))){if(data87 < 0 || isNaN(data87)){const err217 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}else {const err218 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}}else {const err220 = {instancePath:instancePath+"/boundaries",schemaPath:"#/properties/boundaries/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data.connections !== undefined){let data88 = data.connections;if(Array.isArray(data88)){const len12 = data88.length;for(let i4=0; i4<len12; i4++){let data89 = data88[i4];if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.from === undefined){const err221 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(data89.to === undefined){const err222 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}for(const key19 in data89){if(!(func1.call(schema169.properties.connections.items.properties, key19))){const err223 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key19},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data89.id !== undefined){let data90 = data89.id;if(typeof data90 === "string"){if(!pattern16.test(data90)){const err224 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}else {const err225 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data89.from !== undefined){let data91 = data89.from;if(typeof data91 === "string"){if(!pattern16.test(data91)){const err226 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}else {const err227 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data89.to !== undefined){let data92 = data89.to;if(typeof data92 === "string"){if(!pattern16.test(data92)){const err228 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data89.label !== undefined){if(typeof data89.label !== "string"){const err230 = {instancePath:instancePath+"/connections/" + i4+"/label",schemaPath:"#/properties/connections/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data89.variant !== undefined){let data94 = data89.variant;if(!((((data94 === "default") || (data94 === "emphasis")) || (data94 === "security")) || (data94 === "dashed"))){const err231 = {instancePath:instancePath+"/connections/" + i4+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data89.fromSide !== undefined){let data95 = data89.fromSide;if(!((((data95 === "left") || (data95 === "right")) || (data95 === "top")) || (data95 === "bottom"))){const err232 = {instancePath:instancePath+"/connections/" + i4+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}if(data89.toSide !== undefined){let data96 = data89.toSide;if(!((((data96 === "left") || (data96 === "right")) || (data96 === "top")) || (data96 === "bottom"))){const err233 = {instancePath:instancePath+"/connections/" + i4+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}if(data89.route !== undefined){let data97 = data89.route;if(!((((data97 === "auto") || (data97 === "straight")) || (data97 === "orthogonal-h")) || (data97 === "orthogonal-v"))){const err234 = {instancePath:instancePath+"/connections/" + i4+"/route",schemaPath:"#/properties/connections/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema169.properties.connections.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}if(data89.via !== undefined){let data98 = data89.via;if(Array.isArray(data98)){const len13 = data98.length;for(let i5=0; i5<len13; i5++){let data99 = data98[i5];if(Array.isArray(data99)){if(data99.length > 2){const err235 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data99.length < 2){const err236 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const len14 = data99.length;if(len14 > 0){let data100 = data99[0];if(!((typeof data100 == "number") && (isFinite(data100)))){const err237 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}if(len14 > 1){let data101 = data99[1];if(!((typeof data101 == "number") && (isFinite(data101)))){const err238 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}const len15 = data99.length;if(!(len15 <= 2)){const err239 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}else {const err240 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}}}else {const err241 = {instancePath:instancePath+"/connections/" + i4+"/via",schemaPath:"#/properties/connections/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data89.labelAt !== undefined){let data102 = data89.labelAt;if(Array.isArray(data102)){if(data102.length > 2){const err242 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if(data102.length < 2){const err243 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}const len16 = data102.length;if(len16 > 0){let data103 = data102[0];if(!((typeof data103 == "number") && (isFinite(data103)))){const err244 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(len16 > 1){let data104 = data102[1];if(!((typeof data104 == "number") && (isFinite(data104)))){const err245 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}const len17 = data102.length;if(!(len17 <= 2)){const err246 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}else {const err247 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}if(data89.labelDx !== undefined){let data105 = data89.labelDx;if(!((typeof data105 == "number") && (isFinite(data105)))){const err248 = {instancePath:instancePath+"/connections/" + i4+"/labelDx",schemaPath:"#/properties/connections/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}if(data89.labelDy !== undefined){let data106 = data89.labelDy;if(!((typeof data106 == "number") && (isFinite(data106)))){const err249 = {instancePath:instancePath+"/connections/" + i4+"/labelDy",schemaPath:"#/properties/connections/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}if(data89.labelSegment !== undefined){let data107 = data89.labelSegment;if(!(((typeof data107 == "number") && (!(data107 % 1) && !isNaN(data107))) && (isFinite(data107)))){const err250 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if((typeof data107 == "number") && (isFinite(data107))){if(data107 < 0 || isNaN(data107)){const err251 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}if(data89.width !== undefined){let data108 = data89.width;if((typeof data108 == "number") && (isFinite(data108))){if(data108 < 0.5 || isNaN(data108)){const err252 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}}else {const err255 = {instancePath:instancePath+"/connections",schemaPath:"#/properties/connections/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}if(data.cards !== undefined){let data109 = data.cards;if(Array.isArray(data109)){const len18 = data109.length;for(let i6=0; i6<len18; i6++){let data110 = data109[i6];if(data110 && typeof data110 == "object" && !Array.isArray(data110)){if(data110.dot === undefined){const err256 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}if(data110.title === undefined){const err257 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(data110.items === undefined){const err258 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}for(const key20 in data110){if(!(((key20 === "dot") || (key20 === "title")) || (key20 === "items"))){const err259 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key20},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data110.dot !== undefined){let data111 = data110.dot;if(!(((((((data111 === "cyan") || (data111 === "emerald")) || (data111 === "violet")) || (data111 === "amber")) || (data111 === "rose")) || (data111 === "orange")) || (data111 === "slate"))){const err260 = {instancePath:instancePath+"/cards/" + i6+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data110.title !== undefined){let data112 = data110.title;if(typeof data112 === "string"){if(func3(data112) < 1){const err261 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}else {const err262 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}if(data110.items !== undefined){let data113 = data110.items;if(Array.isArray(data113)){const len19 = data113.length;for(let i7=0; i7<len19; i7++){if(typeof data113[i7] !== "string"){const err263 = {instancePath:instancePath+"/cards/" + i6+"/items/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}else {const err264 = {instancePath:instancePath+"/cards/" + i6+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}}else {const err265 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}else {const err266 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}else {const err267 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};const erdSchema = validate39;const schema206 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/erd.schema.json","title":"Archify Entity-Relationship Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","entities"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"erd"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"$ref":"common.schema.json#/$defs/animation"},"visual_preset":{"$ref":"common.schema.json#/$defs/visualPreset"},"quality_profile":{"$ref":"common.schema.json#/$defs/qualityProfile"},"repository":{"$ref":"common.schema.json#/$defs/repository"},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"pk":{"$ref":"common.schema.json#/$defs/legendEntry"},"fk":{"$ref":"common.schema.json#/$defs/legendEntry"},"uk":{"$ref":"common.schema.json#/$defs/legendEntry"},"one":{"$ref":"common.schema.json#/$defs/legendEntry"},"many":{"$ref":"common.schema.json#/$defs/legendEntry"},"optional":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":320},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"layout":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["grid"]},"origin":{"$ref":"common.schema.json#/$defs/point"},"gapX":{"type":"number","minimum":0},"gapY":{"type":"number","minimum":0},"entityW":{"type":"number","minimum":80},"headerH":{"type":"number","minimum":16},"rowH":{"type":"number","minimum":10}}},"entities":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"row":{"type":"integer","minimum":0,"maximum":12},"col":{"type":"integer","minimum":0,"maximum":12},"pos":{"$ref":"common.schema.json#/$defs/point"},"width":{"type":"number","minimum":80},"attributes":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","minLength":1},"type":{"type":"string"},"key":{"enum":["pk","fk","uk"]},"references":{"type":"string","minLength":3,"pattern":"^[^.]+\\.[^.]+$"}},"if":{"properties":{"key":{"const":"fk"}},"required":["key"]},"then":{"required":["references"],"properties":{"references":{}}}}},"sources":{"$ref":"common.schema.json#/$defs/sourceReferences"}}}},"relationships":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","fromCardinality","toCardinality"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"fromCardinality":{"enum":["one","many"]},"toCardinality":{"enum":["one","many"]},"fromOptional":{"type":"boolean"},"toOptional":{"type":"boolean"},"identifying":{"type":"boolean"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"fromSide":{"$ref":"common.schema.json#/$defs/side"},"toSide":{"$ref":"common.schema.json#/$defs/side"},"route":{"enum":["auto","straight","orthogonal-h","orthogonal-v"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"width":{"$ref":"common.schema.json#/$defs/relationshipWidth"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const pattern133 = new RegExp("^[^.]+\\.[^.]+$", "u");function validate40(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate40.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern16.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern16.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate40.errors = vErrors;return errors === 0;}validate40.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate39(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/erd.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate39.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.entities === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "entities"},message:"must have required property '"+"entities"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "layout")) || (key0 === "entities")) || (key0 === "relationships")) || (key0 === "cards"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err5 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.diagram_type !== undefined){if("erd" !== data.diagram_type){const err6 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "erd"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data2){if(!(func1.call(schema206.properties.meta.properties, key1))){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err9 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(typeof data4 === "string"){if(func3(data4) > 35){const err11 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/maxLength",keyword:"maxLength",params:{limit: 35},message:"must NOT have more than 35 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(!pattern4.test(data4)){const err12 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/pattern",keyword:"pattern",params:{pattern: "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"},message:"must match pattern \""+"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err14 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err15 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.animation !== undefined){let data7 = data2.animation;if(!((data7 === "trace") || (data7 === "none"))){const err16 = {instancePath:instancePath+"/meta/animation",schemaPath:"common.schema.json#/$defs/animation/enum",keyword:"enum",params:{allowedValues: schema77.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.visual_preset !== undefined){let data8 = data2.visual_preset;if(!((((data8 === "classic") || (data8 === "signal-flow")) || (data8 === "blueprint")) || (data8 === "editorial"))){const err17 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"common.schema.json#/$defs/visualPreset/enum",keyword:"enum",params:{allowedValues: schema78.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.quality_profile !== undefined){let data9 = data2.quality_profile;if(!((data9 === "standard") || (data9 === "showcase"))){const err18 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"common.schema.json#/$defs/qualityProfile/enum",keyword:"enum",params:{allowedValues: schema79.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data2.repository !== undefined){let data10 = data2.repository;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.url === undefined){const err19 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.revision === undefined){const err20 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}for(const key2 in data10){if(!((((key2 === "url") || (key2 === "provider")) || (key2 === "link_mode")) || (key2 === "revision"))){const err21 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data10.url !== undefined){let data11 = data10.url;if(typeof data11 === "string"){if(func3(data11) < 1){const err22 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"common.schema.json#/$defs/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data10.provider !== undefined){let data12 = data10.provider;if(!((data12 === "github") || (data12 === "gitee"))){const err24 = {instancePath:instancePath+"/meta/repository/provider",schemaPath:"common.schema.json#/$defs/repository/properties/provider/enum",keyword:"enum",params:{allowedValues: schema36.properties.provider.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data10.link_mode !== undefined){let data13 = data10.link_mode;if(!((data13 === "web") || (data13 === "local-only"))){const err25 = {instancePath:instancePath+"/meta/repository/link_mode",schemaPath:"common.schema.json#/$defs/repository/properties/link_mode/enum",keyword:"enum",params:{allowedValues: schema36.properties.link_mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data10.revision !== undefined){let data14 = data10.revision;if(typeof data14 === "string"){if(!pattern15.test(data14)){const err26 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}else {const err27 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"common.schema.json#/$defs/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath:instancePath+"/meta/repository",schemaPath:"common.schema.json#/$defs/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data2.views !== undefined){if(!(validate40(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate40.errors : vErrors.concat(validate40.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data16 = data2.legend;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){for(const key3 in data16){if(!((key3 === "mode") || (key3 === "entries"))){const err29 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data16.mode !== undefined){let data17 = data16.mode;if(!(((data17 === "auto") || (data17 === "all")) || (data17 === "hidden"))){const err30 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema40.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data16.entries !== undefined){let data18 = data16.entries;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){for(const key4 in data18){if(!((((((key4 === "pk") || (key4 === "fk")) || (key4 === "uk")) || (key4 === "one")) || (key4 === "many")) || (key4 === "optional"))){const err31 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data18.pk !== undefined){let data19 = data18.pk;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(Object.keys(data19).length < 1){const err32 = {instancePath:instancePath+"/meta/legend/entries/pk",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}for(const key5 in data19){if(!((key5 === "label") || (key5 === "visible"))){const err33 = {instancePath:instancePath+"/meta/legend/entries/pk",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data19.label !== undefined){let data20 = data19.label;if(typeof data20 === "string"){if(func3(data20) > 80){const err34 = {instancePath:instancePath+"/meta/legend/entries/pk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(func3(data20) < 1){const err35 = {instancePath:instancePath+"/meta/legend/entries/pk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}else {const err36 = {instancePath:instancePath+"/meta/legend/entries/pk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data19.visible !== undefined){if(typeof data19.visible !== "boolean"){const err37 = {instancePath:instancePath+"/meta/legend/entries/pk/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath:instancePath+"/meta/legend/entries/pk",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}if(data18.fk !== undefined){let data22 = data18.fk;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err39 = {instancePath:instancePath+"/meta/legend/entries/fk",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}for(const key6 in data22){if(!((key6 === "label") || (key6 === "visible"))){const err40 = {instancePath:instancePath+"/meta/legend/entries/fk",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err41 = {instancePath:instancePath+"/meta/legend/entries/fk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(func3(data23) < 1){const err42 = {instancePath:instancePath+"/meta/legend/entries/fk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/meta/legend/entries/fk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err44 = {instancePath:instancePath+"/meta/legend/entries/fk/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}}else {const err45 = {instancePath:instancePath+"/meta/legend/entries/fk",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data18.uk !== undefined){let data25 = data18.uk;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err46 = {instancePath:instancePath+"/meta/legend/entries/uk",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}for(const key7 in data25){if(!((key7 === "label") || (key7 === "visible"))){const err47 = {instancePath:instancePath+"/meta/legend/entries/uk",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err48 = {instancePath:instancePath+"/meta/legend/entries/uk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if(func3(data26) < 1){const err49 = {instancePath:instancePath+"/meta/legend/entries/uk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/meta/legend/entries/uk/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err51 = {instancePath:instancePath+"/meta/legend/entries/uk/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {instancePath:instancePath+"/meta/legend/entries/uk",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data18.one !== undefined){let data28 = data18.one;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err53 = {instancePath:instancePath+"/meta/legend/entries/one",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}for(const key8 in data28){if(!((key8 === "label") || (key8 === "visible"))){const err54 = {instancePath:instancePath+"/meta/legend/entries/one",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err55 = {instancePath:instancePath+"/meta/legend/entries/one/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(func3(data29) < 1){const err56 = {instancePath:instancePath+"/meta/legend/entries/one/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/meta/legend/entries/one/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err58 = {instancePath:instancePath+"/meta/legend/entries/one/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}else {const err59 = {instancePath:instancePath+"/meta/legend/entries/one",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}if(data18.many !== undefined){let data31 = data18.many;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err60 = {instancePath:instancePath+"/meta/legend/entries/many",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}for(const key9 in data31){if(!((key9 === "label") || (key9 === "visible"))){const err61 = {instancePath:instancePath+"/meta/legend/entries/many",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err62 = {instancePath:instancePath+"/meta/legend/entries/many/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(func3(data32) < 1){const err63 = {instancePath:instancePath+"/meta/legend/entries/many/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/meta/legend/entries/many/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err65 = {instancePath:instancePath+"/meta/legend/entries/many/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {instancePath:instancePath+"/meta/legend/entries/many",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data18.optional !== undefined){let data34 = data18.optional;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(Object.keys(data34).length < 1){const err67 = {instancePath:instancePath+"/meta/legend/entries/optional",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}for(const key10 in data34){if(!((key10 === "label") || (key10 === "visible"))){const err68 = {instancePath:instancePath+"/meta/legend/entries/optional",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data34.label !== undefined){let data35 = data34.label;if(typeof data35 === "string"){if(func3(data35) > 80){const err69 = {instancePath:instancePath+"/meta/legend/entries/optional/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(func3(data35) < 1){const err70 = {instancePath:instancePath+"/meta/legend/entries/optional/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}else {const err71 = {instancePath:instancePath+"/meta/legend/entries/optional/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data34.visible !== undefined){if(typeof data34.visible !== "boolean"){const err72 = {instancePath:instancePath+"/meta/legend/entries/optional/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath:instancePath+"/meta/legend/entries/optional",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}else {const err74 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data2.viewBox !== undefined){let data37 = data2.viewBox;if(Array.isArray(data37)){if(data37.length > 2){const err76 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data37.length < 2){const err77 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const len0 = data37.length;if(len0 > 0){let data38 = data37[0];if((typeof data38 == "number") && (isFinite(data38))){if(data38 < 320 || isNaN(data38)){const err78 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 320},message:"must be >= 320"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(len0 > 1){let data39 = data37[1];if((typeof data39 == "number") && (isFinite(data39))){if(data39 < 240 || isNaN(data39)){const err80 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}else {const err81 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}const len1 = data37.length;if(!(len1 <= 2)){const err82 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}else {const err84 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data.layout !== undefined){let data40 = data.layout;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.mode === undefined){const err85 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}for(const key11 in data40){if(!(((((((key11 === "mode") || (key11 === "origin")) || (key11 === "gapX")) || (key11 === "gapY")) || (key11 === "entityW")) || (key11 === "headerH")) || (key11 === "rowH"))){const err86 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data40.mode !== undefined){if(!(data40.mode === "grid")){const err87 = {instancePath:instancePath+"/layout/mode",schemaPath:"#/properties/layout/properties/mode/enum",keyword:"enum",params:{allowedValues: schema206.properties.layout.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data40.origin !== undefined){let data42 = data40.origin;if(Array.isArray(data42)){if(data42.length > 2){const err88 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data42.length < 2){const err89 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const len2 = data42.length;if(len2 > 0){let data43 = data42[0];if(!((typeof data43 == "number") && (isFinite(data43)))){const err90 = {instancePath:instancePath+"/layout/origin/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(len2 > 1){let data44 = data42[1];if(!((typeof data44 == "number") && (isFinite(data44)))){const err91 = {instancePath:instancePath+"/layout/origin/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}const len3 = data42.length;if(!(len3 <= 2)){const err92 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}else {const err93 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data40.gapX !== undefined){let data45 = data40.gapX;if((typeof data45 == "number") && (isFinite(data45))){if(data45 < 0 || isNaN(data45)){const err94 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}else {const err95 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data40.gapY !== undefined){let data46 = data40.gapY;if((typeof data46 == "number") && (isFinite(data46))){if(data46 < 0 || isNaN(data46)){const err96 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data40.entityW !== undefined){let data47 = data40.entityW;if((typeof data47 == "number") && (isFinite(data47))){if(data47 < 80 || isNaN(data47)){const err98 = {instancePath:instancePath+"/layout/entityW",schemaPath:"#/properties/layout/properties/entityW/minimum",keyword:"minimum",params:{comparison: ">=", limit: 80},message:"must be >= 80"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/layout/entityW",schemaPath:"#/properties/layout/properties/entityW/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data40.headerH !== undefined){let data48 = data40.headerH;if((typeof data48 == "number") && (isFinite(data48))){if(data48 < 16 || isNaN(data48)){const err100 = {instancePath:instancePath+"/layout/headerH",schemaPath:"#/properties/layout/properties/headerH/minimum",keyword:"minimum",params:{comparison: ">=", limit: 16},message:"must be >= 16"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/layout/headerH",schemaPath:"#/properties/layout/properties/headerH/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data40.rowH !== undefined){let data49 = data40.rowH;if((typeof data49 == "number") && (isFinite(data49))){if(data49 < 10 || isNaN(data49)){const err102 = {instancePath:instancePath+"/layout/rowH",schemaPath:"#/properties/layout/properties/rowH/minimum",keyword:"minimum",params:{comparison: ">=", limit: 10},message:"must be >= 10"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/layout/rowH",schemaPath:"#/properties/layout/properties/rowH/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}else {const err104 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data.entities !== undefined){let data50 = data.entities;if(Array.isArray(data50)){if(data50.length < 1){const err105 = {instancePath:instancePath+"/entities",schemaPath:"#/properties/entities/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const len4 = data50.length;for(let i0=0; i0<len4; i0++){let data51 = data50[i0];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.id === undefined){const err106 = {instancePath:instancePath+"/entities/" + i0,schemaPath:"#/properties/entities/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data51.label === undefined){const err107 = {instancePath:instancePath+"/entities/" + i0,schemaPath:"#/properties/entities/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}for(const key12 in data51){if(!(func1.call(schema206.properties.entities.items.properties, key12))){const err108 = {instancePath:instancePath+"/entities/" + i0,schemaPath:"#/properties/entities/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data51.id !== undefined){let data52 = data51.id;if(typeof data52 === "string"){if(!pattern16.test(data52)){const err109 = {instancePath:instancePath+"/entities/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {instancePath:instancePath+"/entities/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data51.label !== undefined){let data53 = data51.label;if(typeof data53 === "string"){if(func3(data53) < 1){const err111 = {instancePath:instancePath+"/entities/" + i0+"/label",schemaPath:"#/properties/entities/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/entities/" + i0+"/label",schemaPath:"#/properties/entities/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data51.sublabel !== undefined){if(typeof data51.sublabel !== "string"){const err113 = {instancePath:instancePath+"/entities/" + i0+"/sublabel",schemaPath:"#/properties/entities/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data51.tag !== undefined){if(typeof data51.tag !== "string"){const err114 = {instancePath:instancePath+"/entities/" + i0+"/tag",schemaPath:"#/properties/entities/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data51.row !== undefined){let data56 = data51.row;if(!(((typeof data56 == "number") && (!(data56 % 1) && !isNaN(data56))) && (isFinite(data56)))){const err115 = {instancePath:instancePath+"/entities/" + i0+"/row",schemaPath:"#/properties/entities/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if((typeof data56 == "number") && (isFinite(data56))){if(data56 > 12 || isNaN(data56)){const err116 = {instancePath:instancePath+"/entities/" + i0+"/row",schemaPath:"#/properties/entities/items/properties/row/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if(data56 < 0 || isNaN(data56)){const err117 = {instancePath:instancePath+"/entities/" + i0+"/row",schemaPath:"#/properties/entities/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}if(data51.col !== undefined){let data57 = data51.col;if(!(((typeof data57 == "number") && (!(data57 % 1) && !isNaN(data57))) && (isFinite(data57)))){const err118 = {instancePath:instancePath+"/entities/" + i0+"/col",schemaPath:"#/properties/entities/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if((typeof data57 == "number") && (isFinite(data57))){if(data57 > 12 || isNaN(data57)){const err119 = {instancePath:instancePath+"/entities/" + i0+"/col",schemaPath:"#/properties/entities/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(data57 < 0 || isNaN(data57)){const err120 = {instancePath:instancePath+"/entities/" + i0+"/col",schemaPath:"#/properties/entities/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}}if(data51.pos !== undefined){let data58 = data51.pos;if(Array.isArray(data58)){if(data58.length > 2){const err121 = {instancePath:instancePath+"/entities/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data58.length < 2){const err122 = {instancePath:instancePath+"/entities/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const len5 = data58.length;if(len5 > 0){let data59 = data58[0];if(!((typeof data59 == "number") && (isFinite(data59)))){const err123 = {instancePath:instancePath+"/entities/" + i0+"/pos/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(len5 > 1){let data60 = data58[1];if(!((typeof data60 == "number") && (isFinite(data60)))){const err124 = {instancePath:instancePath+"/entities/" + i0+"/pos/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}const len6 = data58.length;if(!(len6 <= 2)){const err125 = {instancePath:instancePath+"/entities/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/entities/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data51.width !== undefined){let data61 = data51.width;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 80 || isNaN(data61)){const err127 = {instancePath:instancePath+"/entities/" + i0+"/width",schemaPath:"#/properties/entities/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 80},message:"must be >= 80"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}else {const err128 = {instancePath:instancePath+"/entities/" + i0+"/width",schemaPath:"#/properties/entities/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data51.attributes !== undefined){let data62 = data51.attributes;if(Array.isArray(data62)){const len7 = data62.length;for(let i1=0; i1<len7; i1++){let data63 = data62[i1];const _errs147 = errors;let valid35 = true;const _errs148 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){let missing0;if((data63.key === undefined) && (missing0 = "key")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data63.key !== undefined){if("fk" !== data63.key){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid0 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid0){const _errs150 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.references === undefined){const err131 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1,schemaPath:"#/properties/entities/items/properties/attributes/items/then/required",keyword:"required",params:{missingProperty: "references"},message:"must have required property '"+"references"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid0 = _errs150 === errors;valid35 = _valid0;if(valid35){var props0 = {};props0.references = true;props0.key = true;}}if(!valid35){const err132 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1,schemaPath:"#/properties/entities/items/properties/attributes/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.name === undefined){const err133 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1,schemaPath:"#/properties/entities/items/properties/attributes/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}for(const key13 in data63){if(!((((key13 === "name") || (key13 === "type")) || (key13 === "key")) || (key13 === "references"))){const err134 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1,schemaPath:"#/properties/entities/items/properties/attributes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data63.name !== undefined){let data65 = data63.name;if(typeof data65 === "string"){if(func3(data65) < 1){const err135 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/name",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/name",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data63.type !== undefined){if(typeof data63.type !== "string"){const err137 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/type",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data63.key !== undefined){let data67 = data63.key;if(!(((data67 === "pk") || (data67 === "fk")) || (data67 === "uk"))){const err138 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/key",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/key/enum",keyword:"enum",params:{allowedValues: schema206.properties.entities.items.properties.attributes.items.properties.key.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data63.references !== undefined){let data68 = data63.references;if(typeof data68 === "string"){if(func3(data68) < 3){const err139 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/references",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/references/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(!pattern133.test(data68)){const err140 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/references",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/references/pattern",keyword:"pattern",params:{pattern: "^[^.]+\\.[^.]+$"},message:"must match pattern \""+"^[^.]+\\.[^.]+$"+"\""};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1+"/references",schemaPath:"#/properties/entities/items/properties/attributes/items/properties/references/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}else {const err142 = {instancePath:instancePath+"/entities/" + i0+"/attributes/" + i1,schemaPath:"#/properties/entities/items/properties/attributes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}else {const err143 = {instancePath:instancePath+"/entities/" + i0+"/attributes",schemaPath:"#/properties/entities/items/properties/attributes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.sources !== undefined){let data69 = data51.sources;if(Array.isArray(data69)){if(data69.length > 3){const err144 = {instancePath:instancePath+"/entities/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data69.length < 1){const err145 = {instancePath:instancePath+"/entities/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const len8 = data69.length;for(let i2=0; i2<len8; i2++){let data70 = data69[i2];if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.path === undefined){const err146 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}for(const key14 in data70){if(!((((key14 === "path") || (key14 === "line")) || (key14 === "end_line")) || (key14 === "label"))){const err147 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data70.path !== undefined){let data71 = data70.path;if(typeof data71 === "string"){if(func3(data71) > 240){const err148 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(func3(data71) < 1){const err149 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}else {const err150 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/path",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data70.line !== undefined){let data72 = data70.line;if(!(((typeof data72 == "number") && (!(data72 % 1) && !isNaN(data72))) && (isFinite(data72)))){const err151 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 1 || isNaN(data72)){const err152 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}if(data70.end_line !== undefined){let data73 = data70.end_line;if(!(((typeof data73 == "number") && (!(data73 % 1) && !isNaN(data73))) && (isFinite(data73)))){const err153 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 1 || isNaN(data73)){const err154 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/end_line",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}if(data70.label !== undefined){let data74 = data70.label;if(typeof data74 === "string"){if(func3(data74) > 48){const err155 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(func3(data74) < 1){const err156 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}else {const err157 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2+"/label",schemaPath:"common.schema.json#/$defs/sourceReferences/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}else {const err158 = {instancePath:instancePath+"/entities/" + i0+"/sources/" + i2,schemaPath:"common.schema.json#/$defs/sourceReferences/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}else {const err159 = {instancePath:instancePath+"/entities/" + i0+"/sources",schemaPath:"common.schema.json#/$defs/sourceReferences/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}}else {const err160 = {instancePath:instancePath+"/entities/" + i0,schemaPath:"#/properties/entities/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/entities",schemaPath:"#/properties/entities/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data.relationships !== undefined){let data75 = data.relationships;if(Array.isArray(data75)){const len9 = data75.length;for(let i3=0; i3<len9; i3++){let data76 = data75[i3];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.from === undefined){const err162 = {instancePath:instancePath+"/relationships/" + i3,schemaPath:"#/properties/relationships/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data76.to === undefined){const err163 = {instancePath:instancePath+"/relationships/" + i3,schemaPath:"#/properties/relationships/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(data76.fromCardinality === undefined){const err164 = {instancePath:instancePath+"/relationships/" + i3,schemaPath:"#/properties/relationships/items/required",keyword:"required",params:{missingProperty: "fromCardinality"},message:"must have required property '"+"fromCardinality"+"'"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data76.toCardinality === undefined){const err165 = {instancePath:instancePath+"/relationships/" + i3,schemaPath:"#/properties/relationships/items/required",keyword:"required",params:{missingProperty: "toCardinality"},message:"must have required property '"+"toCardinality"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}for(const key15 in data76){if(!(func1.call(schema206.properties.relationships.items.properties, key15))){const err166 = {instancePath:instancePath+"/relationships/" + i3,schemaPath:"#/properties/relationships/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!pattern16.test(data77)){const err167 = {instancePath:instancePath+"/relationships/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/relationships/" + i3+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data76.from !== undefined){let data78 = data76.from;if(typeof data78 === "string"){if(!pattern16.test(data78)){const err169 = {instancePath:instancePath+"/relationships/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/relationships/" + i3+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data76.to !== undefined){let data79 = data76.to;if(typeof data79 === "string"){if(!pattern16.test(data79)){const err171 = {instancePath:instancePath+"/relationships/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {instancePath:instancePath+"/relationships/" + i3+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data76.label !== undefined){if(typeof data76.label !== "string"){const err173 = {instancePath:instancePath+"/relationships/" + i3+"/label",schemaPath:"#/properties/relationships/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data76.fromCardinality !== undefined){let data81 = data76.fromCardinality;if(!((data81 === "one") || (data81 === "many"))){const err174 = {instancePath:instancePath+"/relationships/" + i3+"/fromCardinality",schemaPath:"#/properties/relationships/items/properties/fromCardinality/enum",keyword:"enum",params:{allowedValues: schema206.properties.relationships.items.properties.fromCardinality.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data76.toCardinality !== undefined){let data82 = data76.toCardinality;if(!((data82 === "one") || (data82 === "many"))){const err175 = {instancePath:instancePath+"/relationships/" + i3+"/toCardinality",schemaPath:"#/properties/relationships/items/properties/toCardinality/enum",keyword:"enum",params:{allowedValues: schema206.properties.relationships.items.properties.toCardinality.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data76.fromOptional !== undefined){if(typeof data76.fromOptional !== "boolean"){const err176 = {instancePath:instancePath+"/relationships/" + i3+"/fromOptional",schemaPath:"#/properties/relationships/items/properties/fromOptional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data76.toOptional !== undefined){if(typeof data76.toOptional !== "boolean"){const err177 = {instancePath:instancePath+"/relationships/" + i3+"/toOptional",schemaPath:"#/properties/relationships/items/properties/toOptional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data76.identifying !== undefined){if(typeof data76.identifying !== "boolean"){const err178 = {instancePath:instancePath+"/relationships/" + i3+"/identifying",schemaPath:"#/properties/relationships/items/properties/identifying/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data76.variant !== undefined){let data86 = data76.variant;if(!((((data86 === "default") || (data86 === "emphasis")) || (data86 === "security")) || (data86 === "dashed"))){const err179 = {instancePath:instancePath+"/relationships/" + i3+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema67.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data76.fromSide !== undefined){let data87 = data76.fromSide;if(!((((data87 === "left") || (data87 === "right")) || (data87 === "top")) || (data87 === "bottom"))){const err180 = {instancePath:instancePath+"/relationships/" + i3+"/fromSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data76.toSide !== undefined){let data88 = data76.toSide;if(!((((data88 === "left") || (data88 === "right")) || (data88 === "top")) || (data88 === "bottom"))){const err181 = {instancePath:instancePath+"/relationships/" + i3+"/toSide",schemaPath:"common.schema.json#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema127.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data76.route !== undefined){let data89 = data76.route;if(!((((data89 === "auto") || (data89 === "straight")) || (data89 === "orthogonal-h")) || (data89 === "orthogonal-v"))){const err182 = {instancePath:instancePath+"/relationships/" + i3+"/route",schemaPath:"#/properties/relationships/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema206.properties.relationships.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data76.via !== undefined){let data90 = data76.via;if(Array.isArray(data90)){const len10 = data90.length;for(let i4=0; i4<len10; i4++){let data91 = data90[i4];if(Array.isArray(data91)){if(data91.length > 2){const err183 = {instancePath:instancePath+"/relationships/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(data91.length < 2){const err184 = {instancePath:instancePath+"/relationships/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const len11 = data91.length;if(len11 > 0){let data92 = data91[0];if(!((typeof data92 == "number") && (isFinite(data92)))){const err185 = {instancePath:instancePath+"/relationships/" + i3+"/via/" + i4+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(len11 > 1){let data93 = data91[1];if(!((typeof data93 == "number") && (isFinite(data93)))){const err186 = {instancePath:instancePath+"/relationships/" + i3+"/via/" + i4+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}const len12 = data91.length;if(!(len12 <= 2)){const err187 = {instancePath:instancePath+"/relationships/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/relationships/" + i3+"/via/" + i4,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/relationships/" + i3+"/via",schemaPath:"#/properties/relationships/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data76.labelAt !== undefined){let data94 = data76.labelAt;if(Array.isArray(data94)){if(data94.length > 2){const err190 = {instancePath:instancePath+"/relationships/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data94.length < 2){const err191 = {instancePath:instancePath+"/relationships/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}const len13 = data94.length;if(len13 > 0){let data95 = data94[0];if(!((typeof data95 == "number") && (isFinite(data95)))){const err192 = {instancePath:instancePath+"/relationships/" + i3+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(len13 > 1){let data96 = data94[1];if(!((typeof data96 == "number") && (isFinite(data96)))){const err193 = {instancePath:instancePath+"/relationships/" + i3+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}const len14 = data94.length;if(!(len14 <= 2)){const err194 = {instancePath:instancePath+"/relationships/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/relationships/" + i3+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data76.labelDx !== undefined){let data97 = data76.labelDx;if(!((typeof data97 == "number") && (isFinite(data97)))){const err196 = {instancePath:instancePath+"/relationships/" + i3+"/labelDx",schemaPath:"#/properties/relationships/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data76.labelDy !== undefined){let data98 = data76.labelDy;if(!((typeof data98 == "number") && (isFinite(data98)))){const err197 = {instancePath:instancePath+"/relationships/" + i3+"/labelDy",schemaPath:"#/properties/relationships/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data76.labelSegment !== undefined){let data99 = data76.labelSegment;if(!(((typeof data99 == "number") && (!(data99 % 1) && !isNaN(data99))) && (isFinite(data99)))){const err198 = {instancePath:instancePath+"/relationships/" + i3+"/labelSegment",schemaPath:"#/properties/relationships/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if((typeof data99 == "number") && (isFinite(data99))){if(data99 < 0 || isNaN(data99)){const err199 = {instancePath:instancePath+"/relationships/" + i3+"/labelSegment",schemaPath:"#/properties/relationships/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}if(data76.width !== undefined){let data100 = data76.width;if((typeof data100 == "number") && (isFinite(data100))){if(data100 < 0.5 || isNaN(data100)){const err200 = {instancePath:instancePath+"/relationships/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}else {const err201 = {instancePath:instancePath+"/relationships/" + i3+"/width",schemaPath:"common.schema.json#/$defs/relationshipWidth/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}}else {const err202 = {instancePath:instancePath+"/relationships/" + i3,schemaPath:"#/properties/relationships/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/relationships",schemaPath:"#/properties/relationships/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data.cards !== undefined){let data101 = data.cards;if(Array.isArray(data101)){const len15 = data101.length;for(let i5=0; i5<len15; i5++){let data102 = data101[i5];if(data102 && typeof data102 == "object" && !Array.isArray(data102)){if(data102.dot === undefined){const err204 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if(data102.title === undefined){const err205 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data102.items === undefined){const err206 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}for(const key16 in data102){if(!(((key16 === "dot") || (key16 === "title")) || (key16 === "items"))){const err207 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(data102.dot !== undefined){let data103 = data102.dot;if(!(((((((data103 === "cyan") || (data103 === "emerald")) || (data103 === "violet")) || (data103 === "amber")) || (data103 === "rose")) || (data103 === "orange")) || (data103 === "slate"))){const err208 = {instancePath:instancePath+"/cards/" + i5+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema72.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data102.title !== undefined){let data104 = data102.title;if(typeof data104 === "string"){if(func3(data104) < 1){const err209 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/cards/" + i5+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data102.items !== undefined){let data105 = data102.items;if(Array.isArray(data105)){const len16 = data105.length;for(let i6=0; i6<len16; i6++){if(typeof data105[i6] !== "string"){const err211 = {instancePath:instancePath+"/cards/" + i5+"/items/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath:instancePath+"/cards/" + i5+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/cards/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}}else {const err214 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}}else {const err215 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}validate39.errors = vErrors;return errors === 0;}validate39.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export function workflow(data, context = undefined) {if (!workflowSchema(data, context)) {workflow.errors = workflowSchema.errors;@@ -132,3 +132,27 @@ export function architecture(data, context = undefined) {return true;}architecture.evaluated = architectureSchema.evaluated;+export function erd(data, context = undefined) {+ if (!erdSchema(data, context)) {+ erd.errors = erdSchema.errors;+ return false;+ }+ const output = data?.meta?.output;+ if (typeof output === 'string') {+ try {+ validatePortablePath(output, { profile: 'output' });+ } catch (error) {+ erd.errors = [{+ instancePath: `${context?.instancePath || ''}/meta/output`,+ schemaPath: 'common.schema.json#/$defs/portableOutputPath',+ keyword: 'portablePath',+ params: { reason: error?.reason || 'invalid' },+ message: 'must satisfy the portable output path contract',+ }];+ return false;+ }+ }+ erd.errors = null;+ return true;+}+erd.evaluated = erdSchema.evaluated;diff --git a/archify/renderers/shared/i18n.mjs b/archify/renderers/shared/i18n.mjsindex 09f3879a..98b3aebf 100644--- a/archify/renderers/shared/i18n.mjs+++ b/archify/renderers/shared/i18n.mjs@@ -18,6 +18,7 @@ const MESSAGE_PAIRS = {'diagram.description.sequence': ['A sequence diagram generated by Archify.', '由 Archify 生成的时序图。'],'diagram.description.dataflow': ['A data-flow diagram generated by Archify.', '由 Archify 生成的数据流图。'],'diagram.description.lifecycle': ['A lifecycle diagram generated by Archify.', '由 Archify 生成的生命周期图。'],+ 'diagram.description.erd': ['An entity-relationship diagram generated by Archify.', '由 Archify 生成的实体关系图。'],'node.focus': ['Focus {label}', '聚焦{label}'],'node.focus.detail': ['Focus {label}, {detail}', '聚焦{label},{detail}'],'node.context.architecture': ['Architecture component', '架构组件'],@@ -25,6 +26,7 @@ const MESSAGE_PAIRS = {'node.context.sequence': ['Sequence participant', '时序参与者'],'node.context.dataflow': ['Data-flow node', '数据流节点'],'node.context.lifecycle': ['Lifecycle state', '生命周期状态'],+ 'node.context.erd': ['Entity', '实体'],'legend.title': ['Legend', '图例'],'legend.architecture.frontend': ['Frontend', '前端'],@@ -60,6 +62,12 @@ const MESSAGE_PAIRS = {'legend.lifecycle.neutral': ['neutral', '中性状态'],'legend.lifecycle.external': ['external', '外部状态'],'legend.lifecycle.final': ['final state', '终态'],+ 'legend.erd.pk': ['Primary key', '主键'],+ 'legend.erd.fk': ['Foreign key', '外键'],+ 'legend.erd.uk': ['Unique key', '唯一键'],+ 'legend.erd.one': ['One', '一'],+ 'legend.erd.many': ['Many', '多'],+ 'legend.erd.optional': ['Optional', '可选'],'viewer.kind.frontend': ['Frontend', '前端'],'viewer.kind.backend': ['Backend', '后端'],diff --git a/archify/renderers/shared/layout-report.mjs b/archify/renderers/shared/layout-report.mjsindex 09932724..6043316d 100644--- a/archify/renderers/shared/layout-report.mjs+++ b/archify/renderers/shared/layout-report.mjs@@ -15,6 +15,21 @@ export function componentBox(c) {};}+export function entityBox(e) {+ return {+ id: e.id,+ label: e.label,+ x: Math.round(e.x),+ y: Math.round(e.y),+ width: e.width,+ height: e.height,+ attributes: (Array.isArray(e.attributes) ? e.attributes : []).map((attribute) => attribute.name),+ ...(Number.isInteger(e.row) ? { row: e.row } : {}),+ ...(Number.isInteger(e.col) ? { col: e.col } : {}),+ ...(Array.isArray(e.pos) ? { pos: e.pos.map(Math.round) } : {}),+ };+}+export function boundaryBox(b) {return {kind: b.kind,diff --git a/archify/renderers/shared/legend.mjs b/archify/renderers/shared/legend.mjsindex 5879de54..0517a53f 100644--- a/archify/renderers/shared/legend.mjs+++ b/archify/renderers/shared/legend.mjs@@ -191,7 +191,10 @@ export function measureLegend(entries, {};}-export function renderLegend({ entries, layout, renderSwatch, locale }) {+// `labelClass`/`labelWeight` let a renderer state that its legend labels are+// the same ink and weight as the value they describe; both default to the+// shared presentation, so callers that pass nothing keep their exact bytes.+export function renderLegend({ entries, layout, renderSwatch, locale, labelClass = 't-muted', labelWeight = 500 }) {if (!entries.length) return '';const measured = measureLegend(entries, layout);if (!measured) return '';@@ -209,7 +212,7 @@ export function renderLegend({ entries, layout, renderSwatch, locale }) {: '';parts.push(` <g data-legend-semantic-kind="${esc(entry.kind)}"${interactive} data-legend-x="${entry.x}" data-legend-baseline="${entry.baseline}" data-legend-width="${entry.width}">`);parts.push(` ${renderSwatch(entry)}`);- parts.push(` <text x="${entry.x + (entry.swatchWidth ?? 14) + (entry.swatchGap ?? DEFAULT_SWATCH_GAP)}" y="${entry.baseline}" class="t-muted" font-size="${renderedFontSize}" font-weight="500">${esc(entry.label)}</text>`);+ parts.push(` <text x="${entry.x + (entry.swatchWidth ?? 14) + (entry.swatchGap ?? DEFAULT_SWATCH_GAP)}" y="${entry.baseline}" class="${labelClass}" font-size="${renderedFontSize}" font-weight="${labelWeight}">${esc(entry.label)}</text>`);parts.push(' </g>');}parts.push(' </g>');diff --git a/archify/renderers/shared/repository-evidence.mjs b/archify/renderers/shared/repository-evidence.mjsindex 33898c0c..dcf370c0 100644--- a/archify/renderers/shared/repository-evidence.mjs+++ b/archify/renderers/shared/repository-evidence.mjs@@ -129,6 +129,7 @@ const EVIDENCE_NODE_COLLECTIONS = {sequence: 'participants',dataflow: 'nodes',lifecycle: 'states',+ erd: 'entities',};function evidenceNodes(diagramType, diagram) {diff --git a/archify/renderers/shared/utils.mjs b/archify/renderers/shared/utils.mjsindex 46e78cbf..5e7b2141 100644--- a/archify/renderers/shared/utils.mjs+++ b/archify/renderers/shared/utils.mjs@@ -8,7 +8,10 @@ import {export { esc };-export function renderDefinitions() {+// `extra` appends type-owned definitions (the entity renderer's cardinality+// markers) inside the same <defs>. Callers that pass nothing keep the exact+// bytes the five longer-standing renderers already emit.+export function renderDefinitions(extra = '') {return ` <!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -25,7 +28,7 @@ export function renderDefinitions() {</marker><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" class="c-grid" stroke-width="0.5"/>- </pattern>+ </pattern>${extra}</defs>`;}diff --git a/archify/schemas/README.md b/archify/schemas/README.mdindex f1a2763f..d7200f43 100644--- a/archify/schemas/README.md+++ b/archify/schemas/README.md@@ -12,11 +12,12 @@ against one of the schemas in this folder before any layout work happens.| `dataflow.schema.json` | `diagram_type: "dataflow"` | `stages`, `nodes`, `flows` || `lifecycle.schema.json` | `diagram_type: "lifecycle"` | `lanes`, `states`, `transitions` || `architecture.schema.json` | `diagram_type: "architecture"` | `components`, `boundaries`, `connections` |+| `erd.schema.json` | `diagram_type: "erd"` | `entities`, `relationships` || `common.schema.json` | shared `$defs` only (no top-level document) | — |Every diagram schema requires `schema_version`, `diagram_type`, `meta` (with-`title` and a durable portable `output`), and its structural arrays — except `segments`, `activations`, and-`cards`, which are optional — and sets `additionalProperties: false` at every+`title` and a durable portable `output`), and its structural arrays — except `segments`, `activations`, ERD+`relationships`, and `cards`, which are optional — and sets `additionalProperties: false` at everylevel, so unknown fields are rejected rather than silently ignored.Every `meta` object also accepts `animation: "trace"` for opt-in SVG/CSS motion@@ -94,6 +95,7 @@ Supported keys are renderer-owned:| Sequence | `emphasis`, `return`, `security`, `dashed`, `default` || Dataflow | `emphasis`, `security`, `dashed`, `database`, `default` || Lifecycle | `start`, `active`, `waiting`, `decision`, `success`, `failure`, `neutral`, `external` |+| ERD | `pk`, `fk`, `uk`, `one`, `many`, `optional` |Labels are presentation only: they do not rename the stable kind, changenodes/relationships, or create Semantic Lens edge facts. Sequence message anddiff --git a/archify/schemas/erd.schema.json b/archify/schemas/erd.schema.jsonnew file mode 100644index 00000000..9e19a952--- /dev/null+++ b/archify/schemas/erd.schema.json@@ -0,0 +1,330 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "https://github.com/tt-a1i/archify/schemas/erd.schema.json",+ "title": "Archify Entity-Relationship Diagram",+ "type": "object",+ "additionalProperties": false,+ "required": [+ "schema_version",+ "diagram_type",+ "meta",+ "entities"+ ],+ "properties": {+ "schema_version": {+ "const": 1+ },+ "diagram_type": {+ "const": "erd"+ },+ "meta": {+ "type": "object",+ "additionalProperties": false,+ "required": [+ "title"+ ],+ "properties": {+ "title": {+ "type": "string",+ "minLength": 1+ },+ "locale": {+ "$ref": "common.schema.json#/$defs/locale"+ },+ "subtitle": {+ "type": "string"+ },+ "output": {+ "type": "string"+ },+ "animation": {+ "$ref": "common.schema.json#/$defs/animation"+ },+ "visual_preset": {+ "$ref": "common.schema.json#/$defs/visualPreset"+ },+ "quality_profile": {+ "$ref": "common.schema.json#/$defs/qualityProfile"+ },+ "repository": {+ "$ref": "common.schema.json#/$defs/repository"+ },+ "views": {+ "$ref": "common.schema.json#/$defs/guidedViews"+ },+ "legend": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "mode": {+ "$ref": "common.schema.json#/$defs/legendMode"+ },+ "entries": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "pk": {+ "$ref": "common.schema.json#/$defs/legendEntry"+ },+ "fk": {+ "$ref": "common.schema.json#/$defs/legendEntry"+ },+ "uk": {+ "$ref": "common.schema.json#/$defs/legendEntry"+ },+ "one": {+ "$ref": "common.schema.json#/$defs/legendEntry"+ },+ "many": {+ "$ref": "common.schema.json#/$defs/legendEntry"+ },+ "optional": {+ "$ref": "common.schema.json#/$defs/legendEntry"+ }+ }+ }+ }+ },+ "viewBox": {+ "type": "array",+ "prefixItems": [+ {+ "type": "number",+ "minimum": 320+ },+ {+ "type": "number",+ "minimum": 240+ }+ ],+ "items": false,+ "minItems": 2,+ "maxItems": 2+ }+ }+ },+ "layout": {+ "type": "object",+ "additionalProperties": false,+ "required": [+ "mode"+ ],+ "properties": {+ "mode": {+ "enum": [+ "grid"+ ]+ },+ "origin": {+ "$ref": "common.schema.json#/$defs/point"+ },+ "gapX": {+ "type": "number",+ "minimum": 0+ },+ "gapY": {+ "type": "number",+ "minimum": 0+ },+ "entityW": {+ "type": "number",+ "minimum": 80+ },+ "headerH": {+ "type": "number",+ "minimum": 16+ },+ "rowH": {+ "type": "number",+ "minimum": 10+ }+ }+ },+ "entities": {+ "type": "array",+ "minItems": 1,+ "items": {+ "type": "object",+ "additionalProperties": false,+ "required": [+ "id",+ "label"+ ],+ "properties": {+ "id": {+ "$ref": "common.schema.json#/$defs/id"+ },+ "label": {+ "type": "string",+ "minLength": 1+ },+ "sublabel": {+ "type": "string"+ },+ "tag": {+ "type": "string"+ },+ "row": {+ "type": "integer",+ "minimum": 0,+ "maximum": 12+ },+ "col": {+ "type": "integer",+ "minimum": 0,+ "maximum": 12+ },+ "pos": {+ "$ref": "common.schema.json#/$defs/point"+ },+ "width": {+ "type": "number",+ "minimum": 80+ },+ "attributes": {+ "type": "array",+ "items": {+ "type": "object",+ "additionalProperties": false,+ "required": [+ "name"+ ],+ "properties": {+ "name": {+ "type": "string",+ "minLength": 1+ },+ "type": {+ "type": "string"+ },+ "key": {+ "enum": [+ "pk",+ "fk",+ "uk"+ ]+ },+ "references": {+ "type": "string",+ "minLength": 3,+ "pattern": "^[^.]+\\.[^.]+$"+ }+ },+ "if": {+ "properties": {+ "key": {+ "const": "fk"+ }+ },+ "required": [+ "key"+ ]+ },+ "then": {+ "required": [+ "references"+ ],+ "properties": {+ "references": {}+ }+ }+ }+ },+ "sources": {+ "$ref": "common.schema.json#/$defs/sourceReferences"+ }+ }+ }+ },+ "relationships": {+ "type": "array",+ "items": {+ "type": "object",+ "additionalProperties": false,+ "required": [+ "from",+ "to",+ "fromCardinality",+ "toCardinality"+ ],+ "properties": {+ "id": {+ "$ref": "common.schema.json#/$defs/id"+ },+ "from": {+ "$ref": "common.schema.json#/$defs/id"+ },+ "to": {+ "$ref": "common.schema.json#/$defs/id"+ },+ "label": {+ "type": "string"+ },+ "fromCardinality": {+ "enum": [+ "one",+ "many"+ ]+ },+ "toCardinality": {+ "enum": [+ "one",+ "many"+ ]+ },+ "fromOptional": {+ "type": "boolean"+ },+ "toOptional": {+ "type": "boolean"+ },+ "identifying": {+ "type": "boolean"+ },+ "variant": {+ "$ref": "common.schema.json#/$defs/variant"+ },+ "fromSide": {+ "$ref": "common.schema.json#/$defs/side"+ },+ "toSide": {+ "$ref": "common.schema.json#/$defs/side"+ },+ "route": {+ "enum": [+ "auto",+ "straight",+ "orthogonal-h",+ "orthogonal-v"+ ]+ },+ "via": {+ "type": "array",+ "items": {+ "$ref": "common.schema.json#/$defs/point"+ }+ },+ "labelAt": {+ "$ref": "common.schema.json#/$defs/point"+ },+ "labelDx": {+ "type": "number"+ },+ "labelDy": {+ "type": "number"+ },+ "labelSegment": {+ "type": "integer",+ "minimum": 0+ },+ "width": {+ "$ref": "common.schema.json#/$defs/relationshipWidth"+ }+ }+ }+ },+ "cards": {+ "$ref": "common.schema.json#/$defs/cards"+ }+ }+}diff --git a/archify/scripts/generate-validators.mjs b/archify/scripts/generate-validators.mjsindex 5d1672ab..2ca65afa 100644--- a/archify/scripts/generate-validators.mjs+++ b/archify/scripts/generate-validators.mjs@@ -10,7 +10,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));const root = path.resolve(__dirname, '..');const schemasDir = path.join(root, 'schemas');const output = path.join(root, 'renderers/shared/generated-validators.mjs');-const diagramTypes = ['workflow', 'sequence', 'dataflow', 'lifecycle', 'architecture'];+const diagramTypes = ['workflow', 'sequence', 'dataflow', 'lifecycle', 'architecture', 'erd'];const ajv = new Ajv2020({allErrors: true,diff --git a/archify/scripts/render-examples.mjs b/archify/scripts/render-examples.mjsindex 9889a2f7..80937e51 100644--- a/archify/scripts/render-examples.mjs+++ b/archify/scripts/render-examples.mjs@@ -15,6 +15,8 @@ const TARGETS = [['dataflow', 'product-analytics.dataflow.json', 'dataflow-product-analytics.html'],['lifecycle', 'agent-run.lifecycle.json', 'lifecycle-agent-run.html'],['architecture', 'web-app.architecture.json', 'web-app-rendered.html'],+ ['erd', 'orders.erd.json', 'erd-orders-rendered.html'],+ ['erd', 'subscription-billing.erd.json', 'subscription-billing-rendered.html'],];for (const [mode, input, output] of TARGETS) {diff --git a/archify/test/cli.test.mjs b/archify/test/cli.test.mjsindex ec066a2a..e0abbb54 100644--- a/archify/test/cli.test.mjs+++ b/archify/test/cli.test.mjs@@ -278,8 +278,8 @@ test('cli: guide lists all scenario recipes by diagram type', () => {const result = run(['guide']);assert.equal(result.status, 0, result.stderr);- assert.match(result.stdout, /Archify scenario recipes \(12\)/);- for (const type of ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']) {+ assert.match(result.stdout, /Archify scenario recipes \(13\)/);+ for (const type of ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']) {assert.match(result.stdout, new RegExp(`\\[${type}\\]`));}});diff --git a/archify/test/erd-rendering.test.mjs b/archify/test/erd-rendering.test.mjsnew file mode 100644index 00000000..d368c7c1--- /dev/null+++ b/archify/test/erd-rendering.test.mjs@@ -0,0 +1,810 @@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { spawnSync } from 'node:child_process';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import { fileURLToPath } from 'node:url';++import { segmentIntersectsRect } from '../renderers/shared/geometry.mjs';++const __dirname = path.dirname(fileURLToPath(import.meta.url));+const skillRoot = path.resolve(__dirname, '..');+const renderer = path.join(skillRoot, 'renderers', 'erd', 'render-erd.mjs');+const checker = path.join(skillRoot, 'scripts', 'check-render-output.mjs');+const examplePath = path.join(skillRoot, 'examples', 'orders.erd.json');+// One legend band plus the title gap a band has to clear below the content.+const MARKER_FREE_BAND = 30;+const example = JSON.parse(fs.readFileSync(examplePath, 'utf8'));++function clone(value) {+ return JSON.parse(JSON.stringify(value));+}++// The example carries guided reader views. A case that replaces the entity set+// must drop them, or validation fails on unknown focus ids instead of the rule+// under test.+function cloneWithoutViews(value) {+ const copy = clone(value);+ if (copy.meta) delete copy.meta.views;+ return copy;+}++function render(diagram, directory) {+ const input = path.join(directory, 'candidate.er.json');+ const output = path.join(directory, 'candidate.html');+ fs.writeFileSync(input, JSON.stringify(diagram));+ const result = spawnSync(process.execPath, [renderer, input, output], {+ cwd: directory,+ encoding: 'utf8',+ });+ return { ...result, output, input };+}++function artifactReceipt(htmlPath) {+ const result = spawnSync(process.execPath, [checker, htmlPath], { encoding: 'utf8' });+ return { status: result.status, receipt: JSON.parse(result.stdout) };+}++function attrs(tag) {+ return Object.fromEntries([...tag.matchAll(/([a-zA-Z-]+)="([^"]*)"/g)].map((match) => [match[1], match[2]]));+}++function entityBoxes(html) {+ const svg = html.match(/<svg\b[\s\S]*?<\/svg>/gi)[0];+ const boxes = new Map();+ for (const match of svg.matchAll(/data-node-id="([a-z_]+)"[\s\S]{0,500}?<rect x="([\d.]+)" y="([\d.]+)" width="([\d.]+)" height="([\d.]+)" rx="5" class="c-database"/g)) {+ boxes.set(match[1], { x: +match[2], y: +match[3], width: +match[4], height: +match[5] });+ }+ return boxes;+}++// Every relationship route, as the checker and the Clean Flow gate see it.+function relationshipRoutes(html) {+ const svg = html.match(/<svg\b[\s\S]*?<\/svg>/gi)[0];+ const routes = [];+ for (const match of svg.matchAll(/<path\b[^>]*marker-end[^>]*>/g)) {+ const attributes = attrs(match[0]);+ if (!attributes['data-edge-from'] || !attributes['data-composition-points']) continue;+ routes.push({+ from: attributes['data-edge-from'],+ to: attributes['data-edge-to'],+ points: attributes['data-composition-points'].split(';').map((pair) => pair.split(',').map(Number)),+ raw: match[0],+ });+ }+ return routes;+}++function crossingsOfUnrelatedEntities(html) {+ const boxes = entityBoxes(html);+ const crossings = [];+ for (const route of relationshipRoutes(html)) {+ for (const [id, box] of boxes) {+ if (id === route.from || id === route.to) continue;+ for (let index = 0; index < route.points.length - 1; index += 1) {+ if (segmentIntersectsRect({ start: route.points[index], end: route.points[index + 1] }, box, 0)) {+ crossings.push(`${route.from}->${route.to} crosses ${id}`);+ }+ }+ }+ }+ return crossings;+}++test('the example renders with every artifact check passing', () => {+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-'));+ const { status, output } = render(example, directory);+ assert.equal(status, 0, 'renderer should exit cleanly');+ assert.equal(crossingsOfUnrelatedEntities(fs.readFileSync(output, 'utf8')).length, 0);+ const { status: checkStatus, receipt } = artifactReceipt(output);+ assert.equal(checkStatus, 0, JSON.stringify(receipt.checks.filter((check) => !check.ok), null, 2));+ assert.equal(receipt.checks.length, 9);+ assert.equal(receipt.composition.status, 'pass');+ assert.equal(receipt.composition.summary.errors, 0);+ assert.equal(receipt.composition.summary.warnings, 0);+});++test('ERD fields are visible at the default read level', () => {+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-fields-'));+ const { status, output } = render(example, directory);+ assert.equal(status, 0, 'renderer should exit cleanly');+ const html = fs.readFileSync(output, 'utf8');+ assert.match(html, /<div class="diagram-container" data-detail-level="read"/);+ assert.match(html, /<g data-detail="context" data-er-row="0">/);+ assert.doesNotMatch(html, /<g data-detail="fine" data-er-row=/);+});++test('an entity between two aligned anchors is routed around, never through', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Blocked corridor', locale: 'en', quality_profile: 'showcase' },+ layout: { mode: 'grid', origin: [40, 80], gapX: 56, gapY: 72, entityW: 200 },+ entities: [+ { id: 'alpha', label: 'alpha', row: 0, col: 0, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'blocker', label: 'blocker', row: 0, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'omega', label: 'omega', row: 0, col: 2, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [+ { id: 'alpha_omega', from: 'omega', to: 'alpha', fromCardinality: 'many', toCardinality: 'one' },+ { id: 'blocker_alpha', from: 'blocker', to: 'alpha', fromCardinality: 'many', toCardinality: 'one' },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-blocked-'));+ const { status, output } = render(diagram, directory);+ assert.equal(status, 0, 'a blocked corridor should still route');+ const html = fs.readFileSync(output, 'utf8');+ assert.deepEqual(crossingsOfUnrelatedEntities(html), []);++ const spanning = relationshipRoutes(html).find((route) => route.from === 'omega');+ assert.ok(spanning.points.length > 2, 'the blocked relationship needs a detour, not a straight line');+ const { status: checkStatus } = artifactReceipt(output);+ assert.equal(checkStatus, 0, 'the detour must still satisfy every artifact check');+});++test('an author-forced through-box route fails with the clean-flow diagnostic', () => {+ // Automatic routing detours around a blocking entity (the previous test), so+ // the deterministic way to reach the fail-closed gate is an authored `via`+ // straight through an unrelated entity. The boxes themselves must not+ // overlap, or the test would exercise the overlap validator instead.+ const diagram = cloneWithoutViews(example);+ diagram.entities = [+ { id: 'left', label: 'left', pos: [40, 80], width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'wall', label: 'wall', pos: [280, 60], width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'right', label: 'right', pos: [520, 80], width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ];+ diagram.relationships = [+ {+ id: 'left_right',+ from: 'right',+ to: 'left',+ fromCardinality: 'many',+ toCardinality: 'one',+ via: [[380, 104]],+ },+ ];+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-wall-'));+ const { status, stdout, stderr } = render(diagram, directory);+ assert.notEqual(status, 0, 'a through-box route must fail');+ const output = `${stdout}${stderr}`;+ assert.match(output, /clean-flow\/edge-through-node/);+ assert.doesNotMatch(output, /overlaps entity/, 'the fixture must reach the routing gate, not the overlap validator');+ assert.equal(fs.existsSync(path.join(directory, 'candidate.html')), false, 'no artifact may be written');+});++test('relationships sharing one target side bundle into a trunk with short branches', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Bundled fan-in', locale: 'en' },+ layout: { mode: 'grid', origin: [40, 80], gapX: 56, gapY: 72, entityW: 200 },+ entities: [+ {+ id: 'hub', label: 'hub', row: 0, col: 0, width: 200,+ attributes: [+ { name: 'id', type: 'bigint', key: 'pk' },+ { name: 'a', type: 'bigint' },+ { name: 'b', type: 'bigint' },+ { name: 'c', type: 'bigint' },+ ],+ },+ { id: 'east_a', label: 'east_a', row: 0, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'east_b', label: 'east_b', row: 1, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [+ { id: 'a_hub', from: 'east_a', to: 'hub', fromCardinality: 'many', toCardinality: 'one' },+ { id: 'b_hub', from: 'east_b', to: 'hub', fromCardinality: 'many', toCardinality: 'one' },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-trunk-'));+ const { status, output } = render(diagram, directory);+ assert.equal(status, 0, 'a bundled fan-in should render');+ const html = fs.readFileSync(output, 'utf8');++ // The trunk sits one offset right of the hub's right edge and carries both+ // branches; the port-band gap between their branch points is bridged so the+ // bus reads as one line.+ const trunks = [...html.matchAll(/<path data-er-trunk=""[^>]*>/g)].map((match) => attrs(match[0]));+ assert.equal(trunks.length, 1);+ // The bus sits one offset outside the hub's right edge and spans both branch+ // points; the exact coordinate follows the port spread, so the contract is+ // the offset and the span, not a literal line.+ const hubRight = entityBoxes(html).get('hub').x + entityBoxes(html).get('hub').width;+ const [trunkStart, trunkEnd] = trunks[0]['data-composition-points'].split(';').map((pair) => pair.split(',').map(Number));+ // The contract is a bus just outside the shared side, not a literal offset:+ // TRUNK_OFFSETS may be retuned without changing what bundling means.+ assert.ok(trunkStart[0] > hubRight && trunkStart[0] <= hubRight + 32, 'the trunk sits just outside the shared side');+ assert.equal(trunkEnd[0], trunkStart[0], 'the trunk is one straight bus');+ const branchPorts = relationshipRoutes(html).map((route) => route.points.at(-1)[1]).sort((a, b) => a - b);+ assert.ok(trunkStart[1] <= branchPorts[0] && trunkEnd[1] >= branchPorts[branchPorts.length - 1], 'the bus spans both branch points');++ // Every branch keeps its cardinality markers and its full logical route, but+ // the rendered d skips the stretch the trunk path now carries.+ const routes = relationshipRoutes(html);+ assert.equal(routes.length, 2, 'both branches should render as relationship paths');+ for (const route of routes) {+ assert.match(route.raw, /marker-start="url\(#er-many-start\)"/);+ assert.match(route.raw, /marker-end="url\(#er-one-end\)"/);+ assert.match(route.raw, /d="M [^"]+ M /, 'the branch path leaves the trunk stretch to the trunk path');+ assert.ok(route.points.some(([x]) => x === trunkStart[0]), 'logical points still traverse the trunk');+ }+ const { status: checkStatus, receipt } = artifactReceipt(output);+ assert.equal(checkStatus, 0, JSON.stringify(receipt.checks.filter((check) => !check.ok), null, 2));++ // Bundling needs one dash language: mixing a dashed relationship into the+ // group dissolves it instead of drawing a trunk with a borrowed style.+ const mixed = clone(diagram);+ mixed.relationships[1].identifying = false;+ const mixedDirectory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-trunk-mixed-'));+ const mixedResult = render(mixed, mixedDirectory);+ assert.equal(mixedResult.status, 0);+ assert.doesNotMatch(fs.readFileSync(mixedResult.output, 'utf8'), /data-er-trunk/);+});++test('differently styled fan-in groups never share one trunk coordinate', () => {+ // Two same-style pairs would naturally snap onto one bus line; a dashed+ // trunk must not render in the solid group's dash language, so the dashed+ // group takes the next offset a lane apart instead.+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Styled trunk lanes', locale: 'en' },+ layout: { mode: 'grid', origin: [40, 80], gapX: 56, gapY: 72, entityW: 200 },+ entities: [+ {+ id: 'hub_a', label: 'hub_a', row: 0, col: 0, width: 200,+ attributes: [+ { name: 'id', type: 'bigint', key: 'pk' },+ { name: 'a', type: 'bigint' },+ { name: 'b', type: 'bigint' },+ { name: 'c', type: 'bigint' },+ ],+ },+ {+ id: 'hub_b', label: 'hub_b', row: 1, col: 0, width: 200,+ attributes: [+ { name: 'id', type: 'bigint', key: 'pk' },+ { name: 'a', type: 'bigint' },+ { name: 'b', type: 'bigint' },+ { name: 'c', type: 'bigint' },+ ],+ },+ { id: 'east_a1', label: 'east_a1', row: 0, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'east_a2', label: 'east_a2', row: 1, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'east_b1', label: 'east_b1', row: 2, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'east_b2', label: 'east_b2', row: 3, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [+ { id: 'a1_hub', from: 'east_a1', to: 'hub_a', fromCardinality: 'many', toCardinality: 'one' },+ { id: 'a2_hub', from: 'east_a2', to: 'hub_a', fromCardinality: 'many', toCardinality: 'one' },+ { id: 'b1_hub', from: 'east_b1', to: 'hub_b', fromCardinality: 'many', toCardinality: 'one', identifying: false },+ { id: 'b2_hub', from: 'east_b2', to: 'hub_b', fromCardinality: 'many', toCardinality: 'one', identifying: false },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-trunk-styles-'));+ const { status, output } = render(diagram, directory);+ assert.equal(status, 0, 'two styled trunk lanes should render');+ const html = fs.readFileSync(output, 'utf8');++ const trunks = [...html.matchAll(/<path data-er-trunk=""[^>]*>/g)].map((match) => attrs(match[0]));+ assert.equal(trunks.length, 2, 'each style renders its own trunk');+ const solid = trunks.find((trunk) => trunk.class === 'a-default');+ const dashed = trunks.find((trunk) => trunk.class === 'a-dashed');+ assert.ok(solid, 'the solid group renders a solid trunk');+ assert.ok(dashed, 'the dashed group moves a lane apart instead of sharing the line');+ // The styles must not share a bus line: the dashed trunk takes the next+ // offset, one lane away from the solid one. The absolute coordinate follows+ // the port spread, so only the separation and the ordering are contracts.+ const coordinateOf = (trunk) => Number(trunk['data-composition-points'].split(';')[0].split(',')[0]);+ const solidX = coordinateOf(solid);+ const dashedX = coordinateOf(dashed);+ assert.ok(dashedX > solidX, 'the dashed group takes the next offset outward');+ assert.ok(dashedX - solidX >= 12, 'the two styles stay a lane apart instead of sharing a coordinate');+ const hubRight = entityBoxes(html).get('hub_a').x + entityBoxes(html).get('hub_a').width;+ assert.ok(solidX > hubRight && solidX <= hubRight + 32, 'the first group keeps the nearest offset');+ const { status: checkStatus, receipt } = artifactReceipt(output);+ assert.equal(checkStatus, 0, JSON.stringify(receipt.checks.filter((check) => !check.ok), null, 2));+});++test('schema and reference mistakes fail with an addressed diagnostic', () => {+ const unknownEntity = cloneWithoutViews(example);+ unknownEntity.relationships[0].to = 'ghost';+ unknownEntity.relationships[0].id = 'ghost_link';+ let result = render(unknownEntity, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-bad-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /unknown target entity "ghost"/);++ const unknownColumn = cloneWithoutViews(example);+ unknownColumn.entities[1].attributes[1].references = 'customer.nope';+ result = render(unknownColumn, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-bad-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /references unknown attribute "customer\.nope"/);++ const duplicateColumn = cloneWithoutViews(example);+ duplicateColumn.entities[0].attributes.push({ name: 'id', type: 'bigint' });+ result = render(duplicateColumn, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-bad-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /declares attribute "id" twice/);++ const tooNarrow = cloneWithoutViews(example);+ tooNarrow.entities[0].width = 90;+ result = render(tooNarrow, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-bad-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /of text but only|too short|is too short/);++ // A default width is a width: when `width` is omitted the resolved entity+ // width must still feed the overflow check, instead of turning the available+ // space into NaN and silently skipping the diagnostic.+ const defaultWidthOverflow = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Default width overflow', locale: 'en' },+ entities: [+ { id: 'a', label: 'a', pos: [40, 80], attributes: [{ name: 'extremely_long_attribute_name_here', type: 'varchar(255)' }] },+ { id: 'b', label: 'b', pos: [400, 80], attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [],+ };+ result = render(defaultWidthOverflow, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-bad-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /attribute 0 "extremely_long_attribute_name_here" needs \d+px of text but only \d+px/);+});++test('declared cardinality is drawn at both ends', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Cardinality', locale: 'en' },+ layout: { mode: 'grid', origin: [40, 80], gapX: 56, gapY: 72, entityW: 200 },+ entities: [+ { id: 'parent', label: 'parent', row: 0, col: 0, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'child', label: 'child', row: 0, col: 1, width: 200, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [{ id: 'child_parent', from: 'child', to: 'parent', fromCardinality: 'many', toCardinality: 'one' }],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-cardinality-'));+ const { status, output } = render(diagram, directory);+ assert.equal(status, 0);+ const html = fs.readFileSync(output, 'utf8');+ const [route] = relationshipRoutes(html);+ assert.match(route.raw, /marker-start="url\(#er-many-start\)"/, 'the from end carries its declared many');+ assert.match(route.raw, /marker-end="url\(#er-one-end\)"/, 'the to end carries its declared one');+ assert.match(html, /id="er-many-start"/);+ assert.match(html, /id="er-one-end"/);+});++// A maximum the author never stated is a fact the diagram would be inventing,+// so dropping it fails closed instead of reading as the ordinary foreign-key+// many-to-one shape.+test('a relationship that drops its declared cardinality is rejected', () => {+ const diagram = cloneWithoutViews(example);+ for (const relationship of diagram.relationships) {+ delete relationship.fromCardinality;+ delete relationship.toCardinality;+ }+ const result = render(diagram, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-unstated-cardinality-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /must have required property 'fromCardinality'/);+});++// An `fk` marker claims a real foreign key. Without a named target the claim+// cannot be checked at all, so it fails closed instead of passing as a column.+test('an fk attribute that drops its references target is rejected', () => {+ const diagram = cloneWithoutViews(example);+ for (const entity of diagram.entities) {+ for (const attribute of entity.attributes) {+ if (attribute.key === 'fk') delete attribute.references;+ }+ }+ const result = render(diagram, fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-unresolved-fk-')));+ assert.notEqual(result.status, 0);+ assert.match(`${result.stdout}${result.stderr}`, /must have required property 'references'/);+});++test('optionality adds the zero marker and identifying false draws the dashed variant', () => {+ const diagram = cloneWithoutViews(example);+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-optional-'));+ const { status, output } = render(diagram, directory);+ assert.equal(status, 0);+ const html = fs.readFileSync(output, 'utf8');+ assert.match(html, /id="er-many-optional-start"/, 'payment is zero-or-many, so its marker carries the circle');+ const [payment] = relationshipRoutes(html).filter((route) => route.from === 'payment');+ assert.match(payment.raw, /class="a-dashed"/, 'a non-identifying relationship is drawn dashed');+});++test('the layout report exposes entity boxes and relationship points', () => {+ const result = spawnSync(process.execPath, [renderer, examplePath, '--layout-json'], {+ cwd: skillRoot,+ encoding: 'utf8',+ });+ assert.equal(result.status, 0, result.stderr);+ const report = JSON.parse(result.stdout);+ assert.equal(report.diagram_type, 'erd');+ assert.equal(report.entities.length, example.entities.length);+ assert.equal(report.relationships.length, example.relationships.length);+ for (const entity of report.entities) {+ assert.ok(Number.isFinite(entity.x) && Number.isFinite(entity.y), `${entity.id} needs finite coordinates`);+ assert.ok(Number.isFinite(entity.width) && Number.isFinite(entity.height));+ }+ for (const relationship of report.relationships) {+ assert.ok(relationship.points.length >= 2);+ }+});++// An omitted `width` is a documented default (`layout.entityW`), not an error:+// resolving it in measurement but reading the raw field in placement turned the+// default into a NaN column and reported a placement failure for a valid box.+test('an entity that omits its width is placed at the grid default', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Default width', locale: 'en' },+ layout: { mode: 'grid', entityW: 240 },+ entities: [+ { id: 'parent', label: 'parent', row: 0, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'child', label: 'child', row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [{ id: 'child_parent', from: 'child', to: 'parent', fromCardinality: 'many', toCardinality: 'one' }],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-default-width-'));+ const { status, stdout, stderr, output } = render(diagram, directory);+ assert.equal(status, 0, stdout + stderr);+ const boxes = entityBoxes(fs.readFileSync(output, 'utf8'));+ assert.equal(boxes.size, 2, 'both boxes are placed');+ for (const [id, box] of boxes) {+ assert.equal(box.width, 240, `${id} uses the grid default width`);+ }+});++// A vertical run of same-tag tables is a domain, and the band is what makes the+// grouping visible; a tag whose members are scattered is a grouping the author+// did not make, so no band claims it.+test('a contiguous domain draws a band and a scattered tag does not', () => {+ const band = (entities, relationships) => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Domains', locale: 'en' },+ layout: { mode: 'grid' },+ entities,+ relationships,+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-band-'));+ const { status, stdout, stderr, output } = render(diagram, directory);+ assert.equal(status, 0, stdout + stderr);+ return fs.readFileSync(output, 'utf8');+ };+ const nodes = (tagFor) => [+ { id: 'alpha', label: 'alpha', tag: tagFor('alpha'), row: 0, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'beta', label: 'beta', tag: tagFor('beta'), row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'gamma', label: 'gamma', tag: tagFor('gamma'), row: 1, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'delta', label: 'delta', tag: tagFor('delta'), row: 1, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ];+ const links = [{ id: 'beta_alpha', from: 'beta', to: 'alpha', fromCardinality: 'many', toCardinality: 'one' }];++ const contiguous = band(nodes((id) => (id === 'alpha' || id === 'beta' ? 'checkout' : 'catalog')), links);+ assert.match(contiguous, /data-domain-band="checkout"/, 'a row of same-tag tables earns a band');+ assert.match(contiguous, /data-domain-band="catalog"/, 'a second contiguous domain earns its own band');++ // Two members on a diagonal: their columns and their rows are both spread, so+ // the run is not contiguous and the tag must draw no box across the gap.+ const scattered = band(nodes((id) => (id === 'alpha' || id === 'delta' ? 'checkout' : 'other')), links);+ assert.doesNotMatch(scattered, /data-domain-band="checkout"/, 'a tag split across the canvas draws no band');+});++// Port spacing and glyph ink are what make both ends readable: the shared 14px+// spread put two 14-unit crow's feet close enough to read as one shape, and the+// shared arrow colour sits near 2:1 against a table fill in the light theme.+test('same-side ports clear the marker glyph and the markers carry the stronger ink', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Crowded side', locale: 'en' },+ layout: { mode: 'grid' },+ entities: [+ { id: 'hub', label: 'hub', row: 0, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'left_a', label: 'left_a', row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'left_b', label: 'left_b', row: 1, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [+ { id: 'a_hub', from: 'left_a', to: 'hub', fromCardinality: 'many', toCardinality: 'one' },+ { id: 'b_hub', from: 'left_b', to: 'hub', fromCardinality: 'many', toCardinality: 'one' },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-ports-'));+ const { status, stdout, stderr, output } = render(diagram, directory);+ assert.equal(status, 0, stdout + stderr);+ const html = fs.readFileSync(output, 'utf8');+ const hub = entityBoxes(html).get('hub');+ const arrivals = relationshipRoutes(html)+ .map((route) => route.points.at(-1))+ .filter((point) => point[0] === hub.x + hub.width);+ assert.equal(arrivals.length, 2, 'both relationships arrive on the hub side');+ const [first, second] = arrivals.map((point) => point[1]).sort((a, b) => a - b);+ assert.ok(second - first >= 20, `ports clear the 14-unit glyph, got ${second - first}px apart`);+ assert.match(html, /<marker id="er-many-start"[^>]*style="stroke: var\(--text-muted\)"/, 'the crow\u2019s foot is drawn in the stronger ink');+});++// The mask the renderer draws, the rect the layout checks measure, and the+// obstacle the legend measures are one rectangle. When the checks measured a+// narrower box than the ink, a label could sit on a table edge with nothing+// reported: this corridor is 60 units wide and the label's drawn mask is 65.8,+// an overlap the old 8-unit measurement (58.0) did not see.+test('relationship labels are drawn and checked with one measured box', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Label corridor', locale: 'en' },+ layout: { mode: 'grid', gapX: 60, gapY: 44 },+ entities: [+ { id: 'left', label: 'left', row: 0, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'right', label: 'right', row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }, { name: 'left_id', type: 'bigint', key: 'fk', references: 'left.id' }] },+ ],+ relationships: [+ { id: 'right_left', from: 'right', to: 'left', fromCardinality: 'many', toCardinality: 'one', label: 'settles by' },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-label-box-'));+ const { status, stdout, stderr } = render(diagram, directory);+ assert.notEqual(status, 0, 'a label that sits on a table edge is not a pass');+ const message = stdout + stderr;+ assert.match(message, /Label "settles by" overlaps entity "(left|right)"/);++ // The same corridor with room for the drawn mask is accepted, and the mask the+ // renderer writes is the measured box.+ const roomy = clone(diagram);+ roomy.layout.gapX = 88;+ const accepted = render(roomy, directory);+ assert.equal(accepted.status, 0, accepted.stdout + accepted.stderr);+ const html = fs.readFileSync(accepted.output, 'utf8');+ // Anchor on the label element itself: a span that starts at a table row would+ // let the first key glyph's font-size answer for the label.+ const label = html.match(/<g data-detail="context"[^>]*data-edge-id="right_left"[^>]*>[\s\S]*?<\/g>/);+ assert.ok(label, 'the label is drawn');+ const mask = label[0].match(/<rect x="([\d.-]+)" y="([\d.-]+)" width="([\d.]+)" height="([\d.]+)" rx="3" class="c-mask"/);+ const text = label[0].match(/<text(?=[^>]*text-anchor="middle")(?=[^>]*font-size="([\d.]+)")[^>]*>settles by<\/text>/);+ assert.ok(text, 'the label text carries the label wording');+ assert.equal(Number(text[1]), 9, 'relationship labels are set at the declared size');+ // 10 text units at 9 units of type with the label's own advance, plus padding.+ assert.equal(Number(mask[3]), Math.max(30, 10 * 9 * 0.62 + 10), 'the drawn mask is the measured box');+});++// The marker spread is a cap, not a floor: a short table with a busy side+// spaces its ports below the height of the glyph they carry, and the drawn feet+// and bars overlap. The routes stay legal, so nothing else reports it; the+// renderer names the table, the side, and the arithmetic.+test('a side that cannot space its cardinality glyphs is a layout diagnostic', () => {+ const hub = {+ id: 'hub', label: 'hub', row: 2, col: 1,+ attributes: [{ name: 'id', type: 'bigint', key: 'pk' }, { name: 'name', type: 'text' }],+ };+ const spokes = [];+ const relationships = [];+ for (let index = 0; index < 5; index += 1) {+ const id = `spoke_${index}`;+ spokes.push({+ id, label: id, row: index, col: 2,+ attributes: [{ name: 'id', type: 'bigint', key: 'pk' }, { name: 'hub_id', type: 'bigint', key: 'fk', references: 'hub.id' }],+ });+ relationships.push({ id: `r${index}`, from: id, to: 'hub', fromCardinality: 'many', toCardinality: 'one' });+ }+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Crowded side', locale: 'en' },+ layout: { mode: 'grid' },+ entities: [hub, ...spokes],+ relationships,+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-side-capacity-'));+ const { status, stdout, stderr } = render(diagram, directory);+ assert.notEqual(status, 0, 'overlapping glyphs are not a pass');+ const message = stdout + stderr;+ assert.match(message, /layout\/marker-capacity/);+ assert.match(message, /"hub" shares its right side with 5 relationship ends/);+ assert.match(message, /under the 14px a cardinality glyph is tall/);+ assert.match(message, /add fields to "hub"/);+});++// The reader's review asked for the default legend to stay in the generated+// content: an automatic canvas is sized to hold it, so a reserved strip that is+// a few units short must grow the drawing area instead of dropping the key. A+// narrow schema wraps the entries into several rows, which is the case where+// that strip is under the most pressure.+test('an automatic canvas is sized so the default legend is always in the content', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Narrow schema', locale: 'en' },+ layout: { mode: 'grid', gapX: 56, gapY: 44 },+ entities: [+ { id: 'a', label: 'a', row: 0, col: 0, attributes: [+ { name: 'id', type: 'bigint', key: 'pk' },+ { name: 'b_id', type: 'bigint', key: 'fk', references: 'b.id' },+ { name: 'sku', type: 'text', key: 'uk' },+ ] },+ { id: 'b', label: 'b', row: 1, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [{ id: 'a_b', from: 'a', to: 'b', fromCardinality: 'many', toCardinality: 'one', fromOptional: true }],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-legend-'));+ const { status, stdout, stderr, output } = render(diagram, directory);+ assert.equal(status, 0, stdout + stderr);+ const html = fs.readFileSync(output, 'utf8');++ const root = html.match(/<svg\b[^>]*>/)[0];+ assert.match(root, /data-reader-fit="intrinsic-height"/, 'an automatic canvas declares its fit contract');+ const viewBoxHeight = Number(root.match(/viewBox="0 0 [\d.]+ ([\d.]+)"/)[1]);+ assert.ok(Number.isFinite(viewBoxHeight) && viewBoxHeight > 0, 'the canvas has a measured height');++ const kinds = [...html.matchAll(/data-legend-semantic-kind="([a-z]+)"/g)].map((match) => match[1]);+ assert.deepEqual(kinds.sort(), ['fk', 'many', 'one', 'optional', 'pk', 'uk'], 'every declared kind keeps its entry');+ const boxes = [...html.matchAll(/<rect x="[\d.]+" y="([\d.]+)" width="[\d.]+" height="([\d.]+)" rx="5" class="c-database"/g)];+ assert.ok(boxes.length >= 2, 'both tables are drawn');+ const contentBottom = Math.max(...boxes.map((match) => Number(match[1]) + Number(match[2])));+ const baselines = [...html.matchAll(/data-legend-baseline="([\d.]+)"/g)].map((match) => Number(match[1]));+ assert.equal(baselines.length, 6, 'every declared kind keeps its entry in the band');+ assert.ok(Math.min(...baselines) > contentBottom, 'the legend band sits below the tables it describes');+ assert.ok(viewBoxHeight >= contentBottom + MARKER_FREE_BAND, 'the drawing area reserves the band below the content');++ // The legend teaches the glyph and the ink the diagram draws, so its labels+ // carry the primary ink and weight the field names carry. The shared legend+ // exposes those as options; a renderer that passes them must be+ // distinguishable from one that keeps the shared muted presentation.+ const legendLabels = [...html.matchAll(/<text x="[\d.]+" y="[\d.]+" class="([a-z-]+)" font-size="([\d.]+)" font-weight="(\d+)">([^<]*)<\/text>/g)]+ .filter((match) => ['Primary key', 'Foreign key', 'Unique key', 'One', 'Many', 'Optional'].includes(match[4]));+ assert.equal(legendLabels.length, 6, 'the legend renders a label for every kind');+ for (const [, labelClass, , weight] of legendLabels) {+ assert.equal(labelClass, 't-primary', 'the legend label uses the primary ink, not the shared muted one');+ assert.equal(weight, '600', 'the legend label keeps the ERD weight');+ }+});++// An authored meta.viewBox is a fixed drawing area. There the same measurement+// is a capacity diagnostic that names what does not fit, rather than a silently+// dropped key.+test('an authored viewBox that cannot hold the legend fails with a capacity diagnostic', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Fixed area', locale: 'en', viewBox: [560, 240] },+ layout: { mode: 'grid' },+ entities: [+ // Tall enough that the fixed area cannot also hold the band below it.+ { id: 'a', label: 'a', row: 0, col: 0, attributes: [+ { name: 'id', type: 'bigint', key: 'pk' },+ { name: 'b_id', type: 'bigint', key: 'fk', references: 'b.id' },+ { name: 'sku', type: 'text', key: 'uk' },+ { name: 'status', type: 'varchar(16)' },+ { name: 'quantity', type: 'int' },+ { name: 'unit_amount', type: 'numeric(12,2)' },+ { name: 'created_at', type: 'timestamptz' },+ { name: 'updated_at', type: 'timestamptz' },+ ] },+ { id: 'b', label: 'b', row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [{ id: 'a_b', from: 'a', to: 'b', fromCardinality: 'many', toCardinality: 'one' }],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-legend-fixed-'));+ const { status, stdout, stderr } = render(diagram, directory);+ assert.notEqual(status, 0, 'a fixed area that cannot hold the legend is not a pass');+ const message = stdout + stderr;+ assert.match(message, /legend\/(vertical-overflow|label-too-wide|content-overlap)/);+ assert.match(message, /Supported fixes|supportedFixes|shorten legend labels|wider viewBox/);+});++// An automatic ERD canvas is taller than one screen for a real schema, and the+// reader's own review said that is fine. Declaring the height as intrinsic is+// what lets the Viewer scroll instead of shrinking the tables.+test('an automatic canvas declares its height as intrinsic for the reader', () => {+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-reader-fit-'));+ const automatic = render(cloneWithoutViews(example), directory);+ assert.equal(automatic.status, 0, automatic.stdout + automatic.stderr);+ const automaticHtml = fs.readFileSync(automatic.output, 'utf8');+ assert.match(automaticHtml, /<svg[^>]*data-reader-fit="intrinsic-height"/);+ assert.match(automaticHtml, /data-reader-min-text="7\.5"/);+ for (const row of automaticHtml.matchAll(/<g data-detail="context" data-er-row="\d+">([\s\S]*?)<\/g>/g)) {+ const texts = [...row[1].matchAll(/<text ([^>]*)>/g)].map((match) => match[1]);+ assert.ok(texts.length >= 2, 'a field row draws its name and its type');+ for (const attributes of texts) {+ assert.match(attributes, /data-detail="context"/, 'every row text declares the level the reader measures');+ }+ }++ const authored = cloneWithoutViews(example);+ authored.meta.viewBox = [960, 620];+ const fixed = render(authored, directory);+ assert.equal(fixed.status, 0, fixed.stdout + fixed.stderr);+ const fixedRoot = fs.readFileSync(fixed.output, 'utf8').match(/<svg\b[^>]*>/)[0];+ assert.doesNotMatch(fixedRoot, /data-reader-fit/, 'an authored viewBox keeps the authored fit contract');+});++// Crow's foot notation is only notation if the foot reads as a foot. Drawn with+// its toes away from the table it looks like an arrowhead pointing at the table+// it describes; the reader's review asked for the foot to open toward the+// entity. Both ends are mirrored copies of one glyph, so both are asserted, and+// the optional circle must stay past the apex rather than inside the toes.+test('the crow\u2019s foot opens toward the entity at both ends', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Foot direction', locale: 'en' },+ layout: { mode: 'grid' },+ entities: [+ { id: 'parent', label: 'parent', row: 0, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'child', label: 'child', row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }, { name: 'parent_id', type: 'bigint', key: 'fk', references: 'parent.id' }] },+ { id: 'ticket', label: 'ticket', row: 1, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'note', label: 'note', row: 1, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }, { name: 'ticket_id', type: 'bigint', key: 'fk', references: 'ticket.id' }] },+ ],+ relationships: [+ // One of each direction, so the mirrored and non-mirrored copies of the+ // glyph are both drawn and both asserted.+ { id: 'child_parent', from: 'child', to: 'parent', fromCardinality: 'many', toCardinality: 'one' },+ { id: 'ticket_note', from: 'ticket', to: 'note', fromCardinality: 'one', toCardinality: 'many', toOptional: true },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-foot-'));+ const { status, stdout, stderr, output } = render(diagram, directory);+ assert.equal(status, 0, stdout + stderr);+ const html = fs.readFileSync(output, 'utf8');++ for (const [id, endpoint] of [['er-many-start', 'source'], ['er-many-optional-end', 'target']]) {+ const marker = html.match(new RegExp(`<marker id="${id}"[\\s\\S]*?</marker>`))[0];+ const refX = Number(attrs(marker)['refX']);+ const toes = [...marker.matchAll(/M ([\d.]+) 8 L ([\d.]+) (\d+)/g)].map((match) => ({ apex: Number(match[1]), toe: Number(match[2]), y: Number(match[3]) }));+ assert.equal(toes.length, 3, `${id} draws three toes`);+ for (const toe of toes) {+ assert.equal(toe.toe, refX, `${id}: every toe meets the entity at the marker reference point (${endpoint} end)`);+ assert.ok(toe.apex !== refX, `${id}: the apex sits back from the entity`);+ assert.equal(Math.abs(toe.apex - toe.toe), 14, `${id}: the foot is one glyph deep`);+ }+ assert.deepEqual(toes.map((toe) => toe.y).sort((a, b) => a - b), [1, 8, 15], `${id}: the toes spread across the glyph`);+ }++ const optional = html.match(/<marker id="er-many-optional-end"[\s\S]*?<\/marker>/)[0];+ const optionalRefX = Number(attrs(optional)['refX']);+ const ring = optional.match(/<circle cx="([\d.]+)"/);+ assert.equal(optionalRefX, 22, 'the non-mirrored glyph references the entity end');+ assert.ok(+ Math.abs(Number(ring[1]) - optionalRefX) > 14,+ 'the optional circle sits past the apex, not inside the toes',+ );+});++// The bus runs close to the shared side, inside the band a cardinality glyph+// occupies, so it has to be painted under the branches: over them, it drew+// straight through the optionality ring's mask and left a circled slash where+// the reader should see "zero or one".+test('a bundled trunk is painted under the markers it passes', () => {+ const diagram = {+ schema_version: 1,+ diagram_type: 'erd',+ meta: { title: 'Ring over bus', locale: 'en' },+ layout: { mode: 'grid' },+ entities: [+ { id: 'hub', label: 'hub', row: 0, col: 0, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'child_a', label: 'child_a', row: 0, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ { id: 'child_b', label: 'child_b', row: 1, col: 1, attributes: [{ name: 'id', type: 'bigint', key: 'pk' }] },+ ],+ relationships: [+ { id: 'a_hub', from: 'child_a', to: 'hub', fromCardinality: 'many', toCardinality: 'many', toOptional: true },+ { id: 'b_hub', from: 'child_b', to: 'hub', fromCardinality: 'many', toCardinality: 'many', toOptional: true },+ ],+ };+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-er-trunk-order-'));+ const { status, stdout, stderr, output } = render(diagram, directory);+ assert.equal(status, 0, stdout + stderr);+ const html = fs.readFileSync(output, 'utf8');+ const svg = html.slice(html.indexOf('<svg'));+ assert.ok(/<path data-er-trunk=""/.test(svg), 'the fan-in bundles onto a trunk');+ assert.ok(+ svg.indexOf('data-er-trunk') < svg.indexOf('<!-- Relationship paths'),+ 'the bus is painted under the branches that carry the markers',+ );+ assert.match(+ html,+ /<circle[^>]*class="c-mask"\/>\s*<circle[^>]*\/>/,+ 'the optionality ring masks the relationship line it sits on',+ );+});diff --git a/archify/test/gallery.test.mjs b/archify/test/gallery.test.mjsindex 646f37ca..8ecbb16c 100644--- a/archify/test/gallery.test.mjs+++ b/archify/test/gallery.test.mjs@@ -27,23 +27,23 @@ test('generated proof gallery matches its sources, receipts, and checked-in artipath.join(repoRoot, 'scripts', 'build-gallery.mjs'),generatedRoot,], { encoding: 'utf8' });- assert.match(output, /gallery 11 artifacts \/ 99 checks/);+ assert.match(output, /gallery 12 artifacts \/ 108 checks/);const manifestPath = path.join(generatedRoot, 'gallery', 'manifest.json');const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));assert.equal(manifest.schemaVersion, 1);assert.equal(manifest.archifyVersion, JSON.parse(fs.readFileSync(path.join(skillRoot, 'package.json'))).version);- assert.equal(manifest.entryCount, 11);- assert.equal(manifest.checkCount, 99);+ assert.equal(manifest.entryCount, 12);+ assert.equal(manifest.checkCount, 108);assert.deepEqual(new Set(manifest.entries.map((entry) => entry.type)), new Set([- 'architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle',+ 'architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd',]));assert.deepEqual(- Object.fromEntries(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle'].map((type) => [+ Object.fromEntries(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd'].map((type) => [type,manifest.entries.filter((entry) => entry.type === type).length,])),- { architecture: 2, workflow: 3, sequence: 2, dataflow: 2, lifecycle: 2 },+ { architecture: 2, workflow: 3, sequence: 2, dataflow: 2, lifecycle: 2, erd: 1 },);assert.deepEqual(new Set(manifest.entries.map((entry) => entry.id)),@@ -79,7 +79,7 @@ test('generated proof gallery matches its sources, receipts, and checked-in arti}const html = fs.readFileSync(path.join(generatedRoot, 'gallery.html'), 'utf8');- assert.equal((html.match(/class="showcase-card/g) || []).length, 11);+ assert.equal((html.match(/class="showcase-card/g) || []).length, 12);assert.match(html, /id="gallery-manifest" type="application\/json"/);assert.match(html, /data-src-base="gallery\/artifacts\/agent-tool-call\.workflow\.html"/);assert.match(html, /agent-tool-call\.workflow\.html#focus=planner/);@@ -87,7 +87,7 @@ test('generated proof gallery matches its sources, receipts, and checked-in artiassert.match(html, /id="proof-deployment-lifecycle"/);assert.match(html, /Explore focus/);assert.match(html, /Proof,<br><em>not promises\.<\/em>/);- assert.match(html, /Five lenses\. Eleven real stories\./);+ assert.match(html, /Six lenses\. Twelve real stories\./);assert.match(html, /Composition<\/span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS/);assert.match(html, /Engineering profile/);assert.match(html, /DEPLOYMENT OWNERSHIP · PASS/);@@ -98,8 +98,8 @@ test('generated proof gallery matches its sources, receipts, and checked-in arti);assert.match(html, /\.filter-button \{\s+min-height: 44px;/);assert.match(html, /\.card-link \{ min-height: 44px;/);- assert.equal((html.match(/class="card-link create-link"/g) || []).length, 11);- for (const type of ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']) {+ assert.equal((html.match(/class="card-link create-link"/g) || []).length, 12);+ for (const type of ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']) {assert.match(html, new RegExp(`start\\.html\\?type=${type}&source=gallery`), `${type}: gallery-to-start link missing`);}assert.match(html, /class="community-callout"/);diff --git a/archify/test/golden.mjs b/archify/test/golden.mjsindex b89268af..6ab5d208 100644--- a/archify/test/golden.mjs+++ b/archify/test/golden.mjs@@ -79,6 +79,8 @@ const GOLDEN = [['dataflow', 'product-analytics.dataflow.json', 'dataflow-product-analytics.html'],['lifecycle', 'agent-run.lifecycle.json', 'lifecycle-agent-run.html'],['architecture', 'web-app.architecture.json', 'web-app-rendered.html'],+ ['erd', 'orders.erd.json', 'erd-orders-rendered.html'],+ ['erd', 'subscription-billing.erd.json', 'subscription-billing-rendered.html'],];for (const [mode, input, golden] of GOLDEN) {@@ -151,6 +153,24 @@ expectFailure('zero component height rejected by schema', 'architecture',(d) => { d.components[0].size = [120, 0]; }, '/components/0/size/1');expectFailure('negative component width rejected by schema', 'architecture',(d) => { d.components[0].size = [-1, 60]; }, '/components/0/size/0');+expectFailure('unknown attribute key rejected by schema', 'erd',+ (d) => { d.entities[0].attributes[0].key = 'super'; }, '/entities/0/attributes/0/key');+expectFailure('entity without a label rejected by schema', 'erd',+ (d) => { delete d.entities[0].label; }, '/entities/0');+expectFailure('unknown relationship cardinality rejected by schema', 'erd',+ (d) => { d.relationships[0].toCardinality = 'several'; }, '/relationships/0/toCardinality');+expectFailure('unstated relationship cardinality rejected by schema', 'erd',+ (d) => { delete d.relationships[0].fromCardinality; }, '/relationships/0');+expectFailure('fk attribute without a target rejected by schema', 'erd',+ (d) => {+ const fk = d.entities.flatMap((entity) => entity.attributes).find((attribute) => attribute.key === 'fk');+ delete fk.references;+ }, "must have required property 'references'");+expectFailure('references outside entity.attribute rejected by schema', 'erd',+ (d) => {+ const fk = d.entities.flatMap((entity) => entity.attributes).find((attribute) => attribute.key === 'fk');+ fk.references = 'product';+ }, 'pattern');// ---------------------------------------------------------------------------console.log('template freshness (architecture example must carry the current template)');diff --git a/archify/test/guide-page.test.mjs b/archify/test/guide-page.test.mjsindex 24ac9d71..b5ba6df4 100644--- a/archify/test/guide-page.test.mjs+++ b/archify/test/guide-page.test.mjs@@ -46,12 +46,12 @@ test('guide page: ships bilingual recipes and syntactically valid interaction coconst dataMatch = html.match(/<script id="guide-data" type="application\/json">([\s\S]*?)<\/script>/);assert.ok(dataMatch);const data = JSON.parse(dataMatch[1]);- assert.equal(data.length, 12);+ assert.equal(data.length, 13);assert.equal(data.filter((recipe) => recipe.type === 'workflow').length, 3);assert.ok(data.every((recipe) => recipe.en.prompt && recipe.zh.prompt && recipe.proof));assert.ok(data.some((recipe) => recipe.id === 'layout-repair'));- assert.match(html, /12 small, opinionated starting points\./);- assert.match(html, /12 个小而专的起点。/);+ assert.match(html, /13 small, opinionated starting points\./);+ assert.match(html, /13 个小而专的起点。/);assert.match(html, /gallery\.html#proof-/);assert.match(html, /Open verified example/);assert.match(html, /打开验证成品/);diff --git a/archify/test/guide.test.mjs b/archify/test/guide.test.mjsindex 3c990e47..ebe35d13 100644--- a/archify/test/guide.test.mjs+++ b/archify/test/guide.test.mjs@@ -8,15 +8,15 @@ import {recommendScenario,} from '../recipes/scenarios.mjs';-test('guide: exposes 12 unique recipes across every diagram type, including repair', () => {- assert.equal(SCENARIO_RECIPES.length, 12);- assert.equal(new Set(SCENARIO_RECIPES.map((recipe) => recipe.id)).size, 12);+test('guide: exposes 13 unique recipes across every diagram type, including repair', () => {+ assert.equal(SCENARIO_RECIPES.length, 13);+ assert.equal(new Set(SCENARIO_RECIPES.map((recipe) => recipe.id)).size, 13);assert.deepEqual(- Object.fromEntries(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle'].map((type) => [+ Object.fromEntries(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd'].map((type) => [type,SCENARIO_RECIPES.filter((recipe) => recipe.type === type).length,])),- { architecture: 3, workflow: 3, sequence: 2, dataflow: 2, lifecycle: 2 },+ { architecture: 3, workflow: 3, sequence: 2, dataflow: 2, lifecycle: 2, erd: 1 },);});@@ -103,7 +103,7 @@ test('guide: exact ids win and unknown questions fall back honestly', () => {test('guide: public data includes both languages and weighted signals', () => {const data = publicGuideData();- assert.equal(data.length, 12);+ assert.equal(data.length, 13);for (const recipe of data) {assert.ok(recipe.en.title);assert.ok(recipe.zh.title);diff --git a/archify/test/repository-evidence-types-browser.test.mjs b/archify/test/repository-evidence-types-browser.test.mjsindex 32e1b2df..f1eafbb7 100644--- a/archify/test/repository-evidence-types-browser.test.mjs+++ b/archify/test/repository-evidence-types-browser.test.mjs@@ -47,6 +47,7 @@ test('non-architecture sources reach real Viewer beacons, Focus and Finder', {['lifecycle', 'states', 'deployment-release.lifecycle.json', false, 'light', {label: '等待人工审批确认', sublabel: '来源已核验', tag: '等待中', step: '02',}],+ ['erd', 'entities', 'orders.erd.json', true, 'light'],];for (const [type, collection, example, local, theme, extra = {}, nodeId] of cases) {const url = local ? 'http://git.internal/Team/repo' : 'https://github.com/example/evidence-repo';diff --git a/archify/test/repository-evidence-types.test.mjs b/archify/test/repository-evidence-types.test.mjsindex 6b3287fd..b6361165 100644--- a/archify/test/repository-evidence-types.test.mjs+++ b/archify/test/repository-evidence-types.test.mjs@@ -21,6 +21,7 @@ const TYPES = [{ type: 'sequence', collection: 'participants', example: 'cache-miss-request.sequence.json', first: 'user' },{ type: 'dataflow', collection: 'nodes', example: 'product-analytics.dataflow.json', first: 'web' },{ type: 'lifecycle', collection: 'states', example: 'agent-run.lifecycle.json', first: 'queued' },+ { type: 'erd', collection: 'entities', example: 'orders.erd.json', first: 'customer' },];function git(repo, ...args) {diff --git a/archify/test/site-language-continuity.test.mjs b/archify/test/site-language-continuity.test.mjsindex d659209a..79e26ab4 100644--- a/archify/test/site-language-continuity.test.mjs+++ b/archify/test/site-language-continuity.test.mjs@@ -429,7 +429,7 @@ test('real Chrome preserves language through entry, navigation, selection, refreassert.equal(await evaluate(browser, sessionId, 'document.querySelector(".nav-logo-path").textContent'), '/ 验证作品集');assert.deepEqual(await evaluate(browser, sessionId, `Array.from(document.querySelectorAll('[data-filter]')).map(function (button) {return button.textContent;- })`), ['全部配方 / 11', '架构图', '工作流', '时序图', '数据流', '生命周期']);+ })`), ['全部配方 / 12', '架构图', '工作流', '时序图', '数据流', '生命周期', '实体关系图']);await evaluate(browser, sessionId, 'document.querySelector(\'[data-filter="architecture"]\').click()');state = await evaluate(browser, sessionId, `({@@ -459,7 +459,7 @@ test('real Chrome preserves language through entry, navigation, selection, refreassert.equal(await evaluate(browser, sessionId, 'document.querySelector(".nav-logo-path").textContent'), '/ proof lab');assert.deepEqual(await evaluate(browser, sessionId, `Array.from(document.querySelectorAll('[data-filter]')).map(function (button) {return button.textContent;- })`), ['All / 11', 'Architecture', 'Workflow', 'Sequence', 'Data flow', 'Lifecycle']);+ })`), ['All / 12', 'Architecture', 'Workflow', 'Sequence', 'Data flow', 'Lifecycle', 'Entity-relationship']);loaded = browser.cdp.waitFor('Page.loadEventFired', sessionId);await browser.cdp.send('Page.reload', {}, sessionId);@@ -479,7 +479,7 @@ test('real Chrome preserves language through entry, navigation, selection, refreassert.equal(await evaluate(browser, sessionId, 'document.querySelector(".nav-logo-path").textContent'), '/ 场景指南');assert.deepEqual(await evaluate(browser, sessionId, `Array.from(document.querySelectorAll('#filters [data-filter]')).map(function (button) {return button.textContent;- })`), ['全部配方', '架构图', '工作流', '时序图', '数据流', '生命周期']);+ })`), ['全部配方', '架构图', '工作流', '时序图', '数据流', '生命周期', '实体关系图']);await evaluate(browser, sessionId, 'document.querySelector(\'#filters [data-filter="sequence"]\').click()');state = await evaluate(browser, sessionId, `({@@ -498,7 +498,7 @@ test('real Chrome preserves language through entry, navigation, selection, refreselected: true,visibleCount: 2,onlySequence: true,- labels: ['全部配方', '架构图', '工作流', '时序图', '数据流', '生命周期'],+ labels: ['全部配方', '架构图', '工作流', '时序图', '数据流', '生命周期', '实体关系图'],});await clickAndNavigate(browser, sessionId, '.site-nav a[href="start.html"]');diff --git a/archify/test/start-page.test.mjs b/archify/test/start-page.test.mjsindex 72e84bb7..123e9209 100644--- a/archify/test/start-page.test.mjs+++ b/archify/test/start-page.test.mjs@@ -48,7 +48,7 @@ function executeStartPage(html) {].map((id) => [id, new FakeElement({ id })]));ids['start-data'] = new FakeElement({ id: 'start-data', textContent: dataMatch[1] });- const types = ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']+ const types = ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd'].map((type) => new FakeElement({ dataset: { type } }));const agents = ['cursor', 'codex', 'claude-code', 'opencode', 'github-copilot'].map((agent) => new FakeElement({ textContent: agent === 'codex' ? 'Codex' : agent, dataset: { agent } }));@@ -124,7 +124,38 @@ test('start page: checked-in HTML is reproducible from canonical scenario recipe}});-test('start page: offers five bounded bilingual starts without ingesting source content', () => {+// A gallery card links to start.html?type=<case type>, and the page silently+// falls back to architecture when its allow-list or its start data does not know+// the type. Both halves are asserted here so adding a case cannot ship a link+// that lands on the wrong recipe or on an empty page.+test('start page: every gallery case type resolves to a start entry', () => {+ const html = fs.readFileSync(path.join(repoRoot, 'docs/start.html'), 'utf8');+ const manifest = JSON.parse(fs.readFileSync(path.join(repoRoot, 'docs/gallery/manifest.json'), 'utf8'));+ const dataMatch = html.match(/<script id="start-data" type="application\/json">([\s\S]*?)<\/script>/);+ assert.ok(dataMatch);+ const starts = JSON.parse(dataMatch[1]);+ const allowList = html.match(/var KNOWN_TYPES = new Set\(\[([^\]]*)\]\)/);+ assert.ok(allowList, 'the start page declares its known types');+ const known = new Set(allowList[1].split(',').map((value) => value.trim().replace(/^.|.$/g, '')));+ const galleryTypes = [...new Set(manifest.entries.map((entry) => entry.type))];+ for (const type of galleryTypes) {+ assert.ok(known.has(type), `gallery type "${type}" is not in the start page allow-list`);+ assert.ok(starts[type], `gallery type "${type}" has no start entry`);+ assert.ok(starts[type].en.descriptionPrompt && starts[type].zh.descriptionPrompt, `${type}: start prompts are bilingual`);+ // The chooser is the reader's way in: a type the page can render but the+ // buttons cannot reach is unreachable by click and skipped by keyboard walk.+ assert.match(html, new RegExp(`data-type="${type}"`), `gallery type "${type}" has no chooser button`);+ }++ // The label counts the renderers next to the buttons, so it drifts silently.+ const buttons = [...html.matchAll(/class="type-tab"[^>]*data-type="/g)].length;+ const label = html.match(/<strong data-en="(\d+) typed renderers"/);+ assert.ok(label, 'the chooser states how many typed renderers it offers');+ assert.equal(Number(label[1]), buttons, 'the stated renderer count matches the chooser buttons');+ assert.equal(buttons, Object.keys(starts).length, 'every start entry has a chooser button');+});++test('start page: offers six bounded bilingual starts without ingesting source content', () => {const html = fs.readFileSync(path.join(repoRoot, 'docs/start.html'), 'utf8');assert.doesNotMatch(html, /\[\[[A-Z0-9_]+\]\]/);assert.match(html, /npx -y skills add tt-a1i\/archify --skill archify --agent codex --global --copy --yes/);@@ -147,7 +178,7 @@ test('start page: offers five bounded bilingual starts without ingesting sourceconst dataMatch = html.match(/<script id="start-data" type="application\/json">([\s\S]*?)<\/script>/);assert.ok(dataMatch);const data = JSON.parse(dataMatch[1]);- assert.deepEqual(Object.keys(data), ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);+ assert.deepEqual(Object.keys(data), ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']);assert.ok(Object.values(data).every((entry) => entry.en.prompt && entry.zh.prompt && entry.en.descriptionPrompt && entry.zh.descriptionPrompt && entry.en.repositoryPrompt && entry.zh.repositoryPrompt && entry.proof));const scriptMatch = html.match(/<script>\n([\s\S]*?)\n <\/script>\n<\/body>/);diff --git a/docs/gallery/artifacts/orders.erd.html b/docs/gallery/artifacts/orders.erd.htmlnew file mode 100644index 00000000..0cd65df9--- /dev/null+++ b/docs/gallery/artifacts/orders.erd.html@@ -0,0 +1,13942 @@+<!DOCTYPE html>+<html lang="en" data-theme="dark" data-preset="classic">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta name="generator" content="archify 3.0.2-dev.1">+ <meta name="archify-reader-contract" content="declared-wide-v1">+ <title>Order management schema Diagram</title>+ <script>+ // Resolve the theme before first paint so light-preference users don't+ // see a dark flash. The toolbar script below re-applies with UI state.+ (function () {+ try {+ var theme = null;+ try {+ var param = new URLSearchParams(window.location.search).get('theme');+ if (param === 'light' || param === 'dark') theme = param;+ if (new URLSearchParams(window.location.search).get('embed') === '1') {+ document.documentElement.setAttribute('data-embed', 'true');+ }+ if (new URLSearchParams(window.location.search).get('present') === '1') {+ document.documentElement.setAttribute('data-present', 'true');+ }+ } catch (_) {}+ if (!theme) {+ try { theme = localStorage.getItem('archify-theme'); } catch (_) {}+ }+ if (theme !== 'light' && theme !== 'dark') {+ theme = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';+ }+ document.documentElement.setAttribute('data-theme', theme);+ } catch (_) {}+ })();+ </script>+ <style id="archify-fonts">+/*+JetBrains Mono variable WOFF2 subsets from Google Fonts service revision v24.+These fixed bytes are shared by the viewer and its SVG/raster exports.+No local() source: an installed copy must not override the bundled font.+Uncovered characters (including CJK) still use the system fallback stack.+Upstream: https://github.com/JetBrains/JetBrainsMono++cyrillic-ext 1664 bytes sha256 9343de2ca5d9549f792e7962375af8efb0f320c7643bfd36c884b5a30e5c396f+cyrillic 8892 bytes sha256 4995a9a43ac659ec32fcd8b463755cd6a07b31a6e6b3894a6a153b661cf490e2+greek 6800 bytes sha256 49c3da6c9a2b279b0f1f860f5cfb1f5dc38d88a5c7be9c9b1837bbc4e3db6111+vietnamese 5872 bytes sha256 d44eb1936043a56038eb02dd70b243f379bef65783f94ec12f277550720411f1+latin-ext 11596 bytes sha256 9c38cb2d0d2d93c1ee6e21fa78db76f13ea7e15e15cc64214c7ca89b6aaa35c4+latin 31340 bytes sha256 2c32b9b3ee358c119e210f6f5195f9bd34894d78a785ff2e95d60e718e400af4++Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+https://openfontlicense.org+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.+*/+ /* cyrillic-ext */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAAaAABIAAAAADMwAAAYdAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVIEgJx4AdC9MEQgKhGSEAAsgADCDOgE2AiQDOgQgBYdGB4EUGw8LIxEmZHIexT8PYyJTH6s540K0vrtCWaIRpUzRCqKVgSh/33L3iSgiBkN7EeGRTTw85UW9X5WkwZF7tJBx0g3Cac+S8lfO/UPNN4h5WrZiW1TT4nbixDB3vt1UJciEG0hoUc5XuE5OKAqYvtaSRANO3rv/tVb/oBJpOuAlQEikTDqxv3uuFVOLvC6aVeM2NBS8cplGyFpZ1RkosWs55KTlc8eza3siAl1ACKUQAiHQNt10sd4GuaWgrYCaBYG2BSwg+XhrehjdJgND8D69SDvFvJJ0SaoENkV7xx5CYy2QaJlypoYnsMkAPC/FV/nf/18l/xv+I3HLBzdAWiC9jZFSCE0J41WYJ514oKBNBfgC5g2oGAkHKYX4m64rCymGIJCRooirSE8jQTTyiPQ9eWRhKi992skqVhXL+JV4UY6QEupjD/kvCxDK5z0YGrfsUuYfjQABEjLGywLjFfYCxhrKkp6RtW15IVJxX/GqZtFR9xYv+VOTr9mDrLim6l1byfqVJkoNXD8wlMSObPvNzPMA8Z3L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7VojxmYJuNLHQj9+x1PUvVpp+xYaxPsaO5dyLXcs4DXuWsAX2rWQiDnS1/+ZQG9sgpGgyWdrQJIS4smFtkrWgCcm0ykPIEFb5AOvr0ua5EZIREk3sruRYNoeLhRBqJ+XBNpRfUAk5TouzilHr9FBRXohPoA3witRyrWIt+TU8FlcLIbk2rQIdS0gi0JFa8AXZUrrcE7Z9rvxyWEuqjyJknC1jCctY2tKFyllm49ySS1ct2WTYJedoTXV87+YpCLluLW8kODW7FLCMbEcD7sTpLVtpQfkiGDeJbW3tb20lWvzntJB3tx1I6Gdpx+lWty9CKmivAQbdPJ+PZMptjYUi3PMA87wcyWqRo4gyqmjI0YxWtKNTrb1PC+7AWu1HCIOXWzsNhawfzSf908vHlAfuLZXShddLrR2c1t3GkN63vQ3/MIvgz1kYfbtt2aVWaAAAAAA=) format('woff2');+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }+ /* cyrillic */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAACK8ABIAAAAARmAAACJTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoE1G4JgHIFaBmA/U1RBVIEgJx4AgkwvTBEICrporgMLggoAMKw6ATYCJAOEBAQgBYdGB4kHG7Q9RQdy2DiAAS7vZkS1alhU/18T1IqxA6flgFcrUbKj5VbNnlXLwaeDwbp1QnuC56gjzYrVYUfM09q5suLaHUkQV50dVYOIj26jU47IlZS6HX26O7S6VQJNqV6RcRcvsUAQII6oCK8Iu2mJiGj0lbNNfv915sno33zICElmoYK1snoO9x4ZgoQycWQEkjCsiF3igH/+3aw/UUIgZoRc8CIaKNsy7I6Id8U6+0QMmicmH98m2lGjQsWg7fC4rX/GRXlV6hVOVBAYeQzG3oA5QhhREzZSDsy8ai/KX1lexQ/5fdfe77h/t2zmAwnMQNS8XJNTe71y53BmES9PtGhcdjdd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ljcVhtWM0WFAvBFjmh0ZY5yNWdasOWhJtogmhmZJ2ZtFqHbRRaEuNpjcvpxPFjmzReKg/p+0iZKpLoaqdynQxGtqWTrZh6cIqFItnFgkzHywvuUlq9EKrvg3DNgQtk9LCUt4SUkuBusBon2i2gSWUi1CXjbXfHpE7dKG9i2kZcaFL/MQSjj0siYnDK2lwV4V8iv37vwcFEPzXQUC2wzJACkL4g3mn6k+UnIoaFl8ptI9lxNPD7xVT/D8HUZIVVdMN07IdSVZUTTdMK2SHHRSJxuKJZCo9lMnm8oViqVypurX6cOORkdHmltajj23dhsZgcXgCkUSmUGl0BpPF5nB5fIFQJJZIZXKFUqUO+6fV6Q1Gk9liTfR77YU3XvBd/pdUIMHOyoShBK2SomWLlHhrlSpH2mjjerUbxDA0ugkDygRPQkrJGqd6kVSjjgHNBS6krjewhS3EMJSwVULKmvIESVKVI220cb3arUQwNLoJQ5UJnoSUkjVOWthSjbob20ZyKRdSN7osOfBGp/zbeWfb5Sv2IZTse/ye/d7w+gv/rv08vPufXPP/uL/xRy/vzPXhAAAA) format('woff2');+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }+ /* greek */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAABqQABIAAAAANggAABopAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnwbHhyBWgZgP1NUQVSBICceAIFiL0wRCAqrfKMTC4FmADCgXAE2AiQDg0QEIAWHRgeHQRt7L1UHctg4AONHDw/J/98StCEx8OvQuaoS6nSKOb1TAFiw0Fg4OrHmUFx9lE0RHuCAwNZTYLzu0qIYrA2BIRRRhOaLtZ08a/sp9zYCdQA8KAuMM8JgShJLBIph0a9CVKNU5Kz3C6kz9f9u+04Z3maEJLM+PW3a+3+XBRaLKxEnQkSEEoEu1rSppBKruKauuYp7ciJWOcmUo7nhJS8iHiFtjmq7+WH3ih3OVZkJbJviPSALI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T5Ur/3XvXTqIvrf733vVumw7TrFoj1RDrZ1tGQAAAAA=) format('woff2');+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }+ /* vietnamese */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAABbwABIAAAAAP8wAABaJAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoEYG4YcHIIWBmA/U1RBVIEgJx4AgwQvTBEICrBAp3ILgjgAMKEmATYCJAOEKAQgBYdGB4xOGw05JeOYFbBxAJizfwap/v9LAidj5+rgVi2AmnKs4xCdVNzZFtedQQYTHrvu9fJjcffSRGkQNsblzkX3scG0IVTkKwtieRAjQYIYSTEMHWyen+61Gx9Jw60vaxE6DsqpIySZ9eH5bf657z2M9+hFIWIMA5WBjUx4aGPSw8RGG91QWchkJcv4GeEvf3Tx8P1+7dy/5kDURCg2nSEy5E24JCqZUkjFJBE1S7W0jXlX6ayeGY3CSEgkB4GRCRdj/t/jhxD23f9+V/97pRgxZLFewVpgBoEIUPGH787svV+Szt0o4q0YhCDIhSzmNsrTVAyxi1iFhaS8ob3ndnUNSK+n8wPYtvFX7IFjYJvXAM9YQnjiuRrX0ynt3jl65pMQAQ7OC3XgBYde/n82zXb+zn6z7rxBuQvte3II+rEOy3Obl6JMddV6tLsjuJHpQDJKDtmH8hFLJpIdItIFraACWKWiLq8HhgqwaVKm6NKmS7o0fV66gCo45XaAf8bky97UPvDRbT1uNyGEEE2WiYYZOdvv9Ws9LxA0uYdFt6BIEYTl1sTaOglaIo2WLV8rZNCMqjUrm+bg0jx6tD6j2rjJXU6bRpsV0raLaHssbE0AqzUh5tEm8M13j4IgYGYGAmCl0qNm7uocEO/eT41CjAHgcsX/0EUQByCQjNCnoTgke8R4qKw9Qv3ZaS/A3hxQyF+n4CDwFTpd1SnKJ+yg0pdpL3Re4HPaT+r7AQgcOTcAMzoswH0EHZoAL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Hz2JSHV4tWbdp1EEIwUiuK4US0LUnRDMvxgijJiqrphmnZjuvx+vzCdpoXsctue+y1z4Ko/YP/Ar1bemPb7+eIwYTBYQUCEpVlGXQoUKFBWIPk/PJxnb9GUcMMJ4CARGUOq9CozuHMkirXfu1PK+0zPAAVEmT2ZOiWDNnO7vq4xFQTDBx0MgQlDMgOI7IjrgwJg5GCxpIwlJwb7ejxI8vN/nNue0WK4XAqN/9rYESJiBS5DfQoUaNFtNlqnOEkEJGq3GE1WtU7nD2czu2rgIgaKXKU6KeM2StapOgxIiKfUmbfqBHRoi8Vc+9SPPdH6ZG4XgADKdfPrK6XrVdPQdlqWeTEfwfvOcX58v26tSKS2CpRnCYuvDqr7q7X43xx5e1TWV1fX/DzLFvj8+/2XV67NlfMCWzISpK4GyrKa+niIpSVtxKLaLA5vfBlWaqs6Y4OC6xGCoRFFlidTBvinumYRq+w6laz1LxPCLfgVlMKAA==) format('woff2');+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }+ /* latin-ext */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAC1MABIAAAAAdAQAACzjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoJLG4ouHIM+BmA/U1RBVIEgJx4AhTovTBEICuBkzjkLhAwAMMVKATYCJAOIEgQgBYdGB5FVG4xnNXjTMeV2EEi463Muilo1Semz//9z0jFkDP0YgPnK6IQkTGZVRXZVMlEhJrRAsqq2tIQeZfVhf0qr17jt0HuNqAthhO/aPDdxgAtjFWuBDJd7eOb6YRSNJoVoApre9AOKGEQaSY8rp20yx+r3B4Hkct+7VO3Onuv/+YAPXOfnBs8qtx2hsU9yefja7/Xc3RdkVWJUX5VYkkJyGd/6WgQhy5Id2YSPp239PNYAjDwbxACV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5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }+ /* latin */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAHpsABIAAAABMqgAAHoCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoE4G4caHIGacgZgP1NUQVSBICceAIUiL0wRCAqB3DiBrC4LhhYAMIGcXgE2AiQDjBoEIAWHRgejDFtJFnGBsU2lnge5WVVyxx2bn8k4NuF2FGQmX4ZnRm0XabU42f//JyUdMjTEGqDSdar2O+SQccghITKCZESYriN72BqZaY6RUJB0uPlEx4STwvdgyWM3TuN0dmkHp1ih39djHtzlZcqjBEH+ukP3Wz2Jw710mcz4TFNrmNOowSgzl/nbXWIQYdApTKZOe7tkuslj1O5nl5Xxs02ucpl/GRe5jCSh2wdn5w+vLRqoQQaS6d12/ahE1x4WOtXW1XwVGLvMRqwTlb7w/3yd/a99zq1bSbrwIKT7UWk++xPjPwI01EzUCEbn5/nc7M+97xFCjCGFmCITMY0pRowMpimlfMpHmvIj5TNphjI0EylFDBH5lOIWaUSkacSIkV1gEFn2MtRPcUPcMhQ3xI1mKFKLqY2UobhhGkN4GZ50818CCAFBBURmCFmEBBISMhbJXcYlZJDjSCCcIWGEESCwBRWqiFoVa504Fiq1RXeljtVhqzhmFSsdnzpWrdphh/bDTzn1e29IoxGMbEt2HHAA24+4TCe87h5ueIw86QLdbnvdfCBK2rrg/sQFk+xItobn+R9r3fcHk9CHUCw0KhFCo4qeLhoivhvNQ9tsWj0Tx/68Ou1VoBykd00hBcoRbR+ngZaNZzf/87D9t9PG0BQo5KZBO7YkWwaZKLk0R2tlVQ08vAQB4tG2emAvYRWLTwgu6oV9y9c2CSF51opjTMS9cn8I9KQeiRD1rYt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MIe8lcLKCtqqwvvEAgdarFpIwWZMRSaaySbK0M0XV57EzUp8WmGe1WFsDJH85ozQDv13so61NrxoFaexI6PHTMIRymW6xVxbGG/wtFsaQApwKLYpfktyH3j6erc79tjrOqRPXI9hyamaaAezV6Iw4Tcfo9uMp9kCtlwWCQkdQVFfqDTSjTuPWTDAZZ7I80Ys7iRRk8z5qYgo0a6uOXuPWrd/W6OPj48PnYcmBY3D5yc8EXX8yi0UZLZV+bRsNyjt+uDnj8+VM8pHU+kUSZ2j4j86N6DCvlqDcPGHXtwhdUznoC/i1z7CwJquBCaN9AiadhvqmpyuyUsBvG+KKa0G9ARyLXAGofNyKHDXRrDhzT53JHiJjGxNz/S1YwH811K+hRlULwi4+1SCTTzda4IT1PCa6w2iNQkFrxRpvSANT5OOcV43GcME9k3DoWkw0zasRzwjAa5QShObg60bEiyNR+YDlsaUY5FRaj24gUEjEKOdx0jUMjS152iOKAi6znN5ClY6+aQGyg/PmzqAppe/TplnFb8KaaqRSFIlDk7YDUIXBwkk7bzRe6U8VZufX2Us2C8eHJ+lwrxATkSNdSQUPNF4pwDVKYv2Pr1LO4dn6JR/Jn+eoq7ltPCnngDq88an2NdKoXqdm0GGBl9oD+iCgJquEFpPPT4IlJVxt2bVNyhnIDb79BtuqmL0/UC4p84EzV3O04zpcu2hHTvclQQHPraEFXLbC3gTNBbCw81EPB6YbgVhi7SQq59Ez3MnLKitWcJJJOl9CMpn2ngu6AGy9lEF+k1iAM4nyWBwIEwpxODYS0qRUgMnuo2+S0bUJGj9PBNnBZeVsBozZ/wB2g69LwLrOVINXQ3jP3/Vw71ve2/7zs=) format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }+ </style>+ <style>+ /* ==========================================================+ THEME VARIABLES — switch by toggling [data-theme] on <html>+ ========================================================== */+ :root,+ [data-theme="dark"] {+ --bg: #020617;+ --grid: #1e293b;+ --canvas-dot: rgba(148, 163, 184, 0.16);+ --text: #ffffff;+ --text-muted: #94a3b8;+ --text-dim: #475569;+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */+ --text-faint: #7d8da1;++ --panel: rgba(15, 23, 42, 0.5);+ --panel-border: #1e293b;+ --lane-fill: rgba(15, 23, 42, 0.22);+ --lane-stroke: #334155;++ --arrow: #64748b;+ --arrow-emphasis: #34d399;++ /* Opaque mask color used behind semi-transparent component fills+ so the arrows drawn underneath are properly hidden. */+ --mask: #0f172a;++ --frontend-fill: rgba(8, 51, 68, 0.4);+ --frontend-stroke: #22d3ee;+ --backend-fill: rgba(6, 78, 59, 0.4);+ --backend-stroke: #34d399;+ --database-fill: rgba(76, 29, 149, 0.4);+ --database-stroke: #a78bfa;+ --cloud-fill: rgba(120, 53, 15, 0.3);+ --cloud-stroke: #fbbf24;+ --security-fill: rgba(136, 19, 55, 0.4);+ --security-stroke: #fb7185;+ --messagebus-fill: rgba(251, 146, 60, 0.3);+ --messagebus-stroke:#fb923c;+ --external-fill: rgba(30, 41, 59, 0.5);+ --external-stroke: #94a3b8;++ --toolbar-bg: rgba(15, 23, 42, 0.8);+ --toolbar-border: #334155;+ --toolbar-text: #e2e8f0;+ --toolbar-hover: rgba(15, 23, 42, 0.95);+ --toolbar-menu-bg: #0f172a;+ }++ [data-theme="light"] {+ --bg: #f4f5f7;+ --grid: #e9edf2;+ --canvas-dot: #d9dee5;+ --text: #111827;+ --text-muted: #5b6474;+ --text-dim: #9aa3b2;+ --text-faint: #6b7280;++ --panel: #ffffff;+ --panel-border: #e5e7eb;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;++ --arrow: #94a3b8;+ --arrow-emphasis: #059669;++ --mask: #ffffff;++ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke: #ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;++ --toolbar-bg: rgba(255, 255, 255, 0.92);+ --toolbar-border: #cbd5e1;+ --toolbar-text: #334155;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #ffffff;+ }++ /* ==========================================================+ SIGNAL FLOW — an opt-in, motion-forward visual preset.+ The variables also target a standalone exported SVG, whose+ root carries data-preset and data-theme directly.+ ========================================================== */+ [data-preset="signal-flow"][data-theme="dark"] {+ --bg: #030711;+ --grid: #15233a;+ --panel: rgba(6, 14, 28, 0.78);+ --panel-border: #1d3350;+ --lane-fill: rgba(9, 22, 40, 0.5);+ --lane-stroke: #2c4564;+ --text: #f5fbff;+ --text-muted: #9eb0c7;+ --text-dim: #52667f;+ --text-faint: #7890ad;+ --mask: #07101e;+ --frontend-fill: rgba(6, 182, 212, 0.14);+ --frontend-stroke: #67e8f9;+ --backend-fill: rgba(16, 185, 129, 0.14);+ --backend-stroke: #5eead4;+ --database-fill: rgba(139, 92, 246, 0.16);+ --database-stroke: #c4b5fd;+ --cloud-fill: rgba(245, 158, 11, 0.13);+ --cloud-stroke: #fcd34d;+ --security-fill: rgba(244, 63, 94, 0.13);+ --security-stroke: #fda4af;+ --messagebus-fill: rgba(249, 115, 22, 0.13);+ --messagebus-stroke: #fdba74;+ --external-fill: rgba(71, 85, 105, 0.24);+ --external-stroke: #a5b4c7;+ --arrow: #7890ad;+ --arrow-emphasis: #2dd4bf;+ --toolbar-bg: rgba(7, 16, 30, 0.86);+ --toolbar-border: #29415f;+ --toolbar-menu-bg: #07101e;+ }++ [data-preset="signal-flow"][data-theme="light"] {+ --bg: #f4f9fc;+ --grid: #d4e5ee;+ --panel: rgba(255, 255, 255, 0.82);+ --panel-border: #bfd5e2;+ --lane-fill: rgba(232, 243, 248, 0.62);+ --lane-stroke: #a9c5d5;+ --text: #102638;+ --text-muted: #587287;+ --text-dim: #8aa2b4;+ --text-faint: #668397;+ --mask: #ffffff;+ --frontend-fill: rgba(6, 182, 212, 0.09);+ --frontend-stroke: #0789a1;+ --backend-fill: rgba(5, 150, 105, 0.09);+ --backend-stroke: #087f69;+ --database-fill: rgba(124, 58, 237, 0.09);+ --database-stroke: #7254c7;+ --cloud-fill: rgba(217, 119, 6, 0.08);+ --cloud-stroke: #b9670b;+ --security-fill: rgba(225, 29, 72, 0.08);+ --security-stroke: #c53a59;+ --messagebus-fill: rgba(234, 88, 12, 0.08);+ --messagebus-stroke: #c65f27;+ --external-fill: rgba(100, 116, 139, 0.1);+ --external-stroke: #607a8c;+ --arrow: #7b97aa;+ --arrow-emphasis: #0d9488;+ }++ /* ==========================================================+ BLUEPRINT — a review-first drafting preset for deployment,+ infrastructure, and technical design documentation. It keeps+ the same semantic palette and geometry while trading glow for+ precise grid contrast, squared materials, and drafting marks.+ ========================================================== */+ [data-preset="blueprint"][data-theme="dark"] {+ --bg: #06131f;+ --grid: #17425a;+ --panel: rgba(7, 27, 43, 0.9);+ --panel-border: #27627f;+ --lane-fill: rgba(10, 43, 66, 0.36);+ --lane-stroke: #34799a;+ --text: #e3f6ff;+ --text-muted: #91b8ca;+ --text-dim: #557e92;+ --text-faint: #739caf;+ --mask: #0a2031;+ --frontend-fill: rgba(26, 157, 193, 0.14);+ --frontend-stroke: #66d9ef;+ --backend-fill: rgba(31, 155, 124, 0.13);+ --backend-stroke: #69dfbd;+ --database-fill: rgba(120, 105, 196, 0.14);+ --database-stroke: #b4a8ff;+ --cloud-fill: rgba(197, 145, 43, 0.13);+ --cloud-stroke: #ffd166;+ --security-fill: rgba(199, 76, 104, 0.13);+ --security-stroke: #ff8da1;+ --messagebus-fill: rgba(207, 112, 49, 0.13);+ --messagebus-stroke: #ffad66;+ --external-fill: rgba(84, 119, 139, 0.18);+ --external-stroke: #a7cad9;+ --arrow: #78a3b7;+ --arrow-emphasis: #64dfc1;+ --toolbar-bg: rgba(7, 28, 45, 0.92);+ --toolbar-border: #34799a;+ --toolbar-text: #d8f3ff;+ --toolbar-hover: rgba(18, 58, 83, 0.95);+ --toolbar-menu-bg: #0a2031;+ }++ [data-preset="blueprint"][data-theme="light"] {+ --bg: #edf7fa;+ --grid: #b5d5e1;+ --panel: rgba(249, 253, 255, 0.94);+ --panel-border: #78aabd;+ --lane-fill: rgba(210, 232, 240, 0.42);+ --lane-stroke: #83b2c4;+ --text: #123344;+ --text-muted: #4e7486;+ --text-dim: #86a6b4;+ --text-faint: #668c9d;+ --mask: #f9fdff;+ --frontend-fill: rgba(8, 145, 178, 0.08);+ --frontend-stroke: #087f9c;+ --backend-fill: rgba(5, 128, 101, 0.08);+ --backend-stroke: #08755f;+ --database-fill: rgba(100, 75, 180, 0.08);+ --database-stroke: #6757a8;+ --cloud-fill: rgba(181, 120, 15, 0.08);+ --cloud-stroke: #a86609;+ --security-fill: rgba(190, 48, 80, 0.07);+ --security-stroke: #b32f50;+ --messagebus-fill: rgba(196, 81, 22, 0.07);+ --messagebus-stroke: #b65120;+ --external-fill: rgba(79, 112, 128, 0.08);+ --external-stroke: #506f7e;+ --arrow: #6d93a5;+ --arrow-emphasis: #087f69;+ --toolbar-bg: rgba(247, 252, 254, 0.94);+ --toolbar-border: #8ab5c5;+ --toolbar-text: #294f61;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #f9fdff;+ }++ /* ==========================================================+ EDITORIAL — a warm, publication-minded preset for design+ reviews, launch notes, and documentation. The diagram keeps+ the same semantic palette and exact geometry, but trades+ software chrome for paper, ink, ruled structure, and one+ restrained vermilion accent.+ ========================================================== */+ [data-preset="editorial"][data-theme="dark"] {+ --bg: #181611;+ --grid: #39342a;+ --panel: rgba(35, 31, 24, 0.96);+ --panel-border: #625a4a;+ --lane-fill: rgba(52, 46, 35, 0.46);+ --lane-stroke: #726957;+ --text: #f4eddf;+ --text-muted: #b9ae9b;+ --text-dim: #776e60;+ --text-faint: #9d917e;+ --mask: #231f18;+ --frontend-fill: rgba(43, 133, 142, 0.16);+ --frontend-stroke: #7fc6c7;+ --backend-fill: rgba(63, 132, 92, 0.16);+ --backend-stroke: #8fc29e;+ --database-fill: rgba(117, 91, 141, 0.17);+ --database-stroke: #c0a4d0;+ --cloud-fill: rgba(170, 119, 49, 0.16);+ --cloud-stroke: #d8ad68;+ --security-fill: rgba(157, 69, 65, 0.17);+ --security-stroke: #df9085;+ --messagebus-fill: rgba(174, 79, 42, 0.16);+ --messagebus-stroke: #df946f;+ --external-fill: rgba(126, 115, 96, 0.18);+ --external-stroke: #b8ad99;+ --arrow: #948978;+ --arrow-emphasis: #dd6b3d;+ --toolbar-bg: rgba(35, 31, 24, 0.92);+ --toolbar-border: #625a4a;+ --toolbar-text: #eee5d5;+ --toolbar-hover: #302a20;+ --toolbar-menu-bg: #231f18;+ }++ [data-preset="editorial"][data-theme="light"] {+ --bg: #f2eee5;+ --grid: #d8d0c2;+ --panel: rgba(251, 248, 241, 0.97);+ --panel-border: #c4b9a6;+ --lane-fill: rgba(229, 221, 207, 0.42);+ --lane-stroke: #b8aa94;+ --text: #242018;+ --text-muted: #6f6658;+ --text-dim: #a09788;+ --text-faint: #817767;+ --mask: #fbf8f1;+ --frontend-fill: rgba(31, 117, 126, 0.09);+ --frontend-stroke: #287e84;+ --backend-fill: rgba(42, 119, 75, 0.09);+ --backend-stroke: #397b53;+ --database-fill: rgba(105, 75, 130, 0.09);+ --database-stroke: #765d86;+ --cloud-fill: rgba(157, 103, 31, 0.1);+ --cloud-stroke: #9a671f;+ --security-fill: rgba(153, 58, 52, 0.09);+ --security-stroke: #9e463f;+ --messagebus-fill: rgba(182, 70, 27, 0.09);+ --messagebus-stroke: #ad4b25;+ --external-fill: rgba(101, 91, 75, 0.09);+ --external-stroke: #746b5e;+ --arrow: #8a806f;+ --arrow-emphasis: #bb4c23;+ --toolbar-bg: rgba(251, 248, 241, 0.94);+ --toolbar-border: #c4b9a6;+ --toolbar-text: #40392f;+ --toolbar-hover: #fffdf8;+ --toolbar-menu-bg: #fbf8f1;+ }++ * { margin: 0; padding: 0; box-sizing: border-box; }++ body {+ --archify-page-top: 2rem;+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;+ -webkit-font-smoothing: antialiased;+ background: var(--bg);+ min-height: 100vh;+ padding: var(--archify-page-top) 2rem 2rem;+ color: var(--text);+ /* Theme surfaces change together; animating the page background leaves it+ visibly out of sync with the SVG and panel for the first 200ms. */+ }++ html[data-preset="signal-flow"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);+ background-attachment: fixed;+ }+ html[data-preset="signal-flow"][data-theme="light"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);+ }+ html[data-preset="blueprint"] body {+ background-image:+ linear-gradient(var(--grid) 1px, transparent 1px),+ linear-gradient(90deg, var(--grid) 1px, transparent 1px);+ background-size: 32px 32px;+ background-position: -1px -1px;+ background-attachment: fixed;+ }+ html[data-preset="editorial"] body {+ background-image:+ linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),+ repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);+ background-attachment: fixed;+ }++ /* Gallery/embed mode keeps the generated artifact as the source of truth+ while presenting only its diagram surface inside a proof card. */+ html[data-embed="true"] body {+ min-height: 0;+ padding: 0;+ overflow: hidden;+ background: var(--bg);+ background-image: none;+ }+ html[data-embed="true"] .toolbar,+ html[data-embed="true"] .header,+ html[data-embed="true"] .cards,+ html[data-embed="true"] .diagram-nav,+ html[data-embed="true"] .overview-map,+ html[data-embed="true"] .focus-chip,+ html[data-embed="true"] .route-probe,+ html[data-embed="true"] .semantic-lens,+ html[data-embed="true"] .diagram-guide,+ html[data-embed="true"] .node-finder,+ html[data-embed="true"] .node-outline { display: none !important; }+ html[data-embed="true"] .container { max-width: none; }+ html[data-embed="true"] .diagram-container {+ padding: 0.5rem;+ border: 0;+ border-radius: 0;+ box-shadow: none;+ }+ html[data-embed="true"] .diagram-container svg { min-width: 0; }++ /* Presentation Stage is a viewer-only layer: it gives the live diagram+ the viewport while keeping guided views, theme, focus, and exports real.+ Embed mode wins when both query parameters are present. */+ html[data-present="true"]:not([data-embed="true"]) body {+ --archify-page-top: 1rem;+ height: 100dvh;+ min-height: 0;+ padding: 1rem;+ overflow: hidden;+ }+ html[data-present="true"]:not([data-embed="true"]) .container {+ display: flex;+ flex-direction: column;+ gap: 0.75rem;+ width: 100%;+ max-width: none;+ height: calc(100dvh - 2rem);+ }+ html[data-present="true"]:not([data-embed="true"]) .header {+ flex: none;+ min-width: 0;+ margin: 0;+ padding-right: 23rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row { margin-bottom: 0.25rem; }+ html[data-present="true"]:not([data-embed="true"]) .subtitle {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ html[data-present="true"]:not([data-embed="true"]) .diagram-container {+ display: flex;+ flex: 1 1 auto;+ align-items: center;+ justify-content: center;+ min-height: 0;+ padding: 0.75rem;+ padding-bottom: calc(0.75rem + var(--archify-nav-reserve));+ }+ html[data-present="true"]:not([data-embed="true"]) .diagram-container > svg {+ flex: 1 1 auto;+ height: 100%;+ min-height: 0;+ width: 100%;+ min-width: 0;+ }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }+ html[data-present="true"]:not([data-embed="true"]) #btn-present {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+ }++ /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored+ SVG/viewBox while the runtime chooses a desktop width from the actual+ vertical budget. This avoids device-specific files and breakpoint+ jumps between a laptop and a tall monitor. */+ .container {+ width: 100%;+ max-width: var(--archify-reader-width, 1440px);+ margin: 0 auto;+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }++ html[data-preset="signal-flow"] .header,+ html[data-preset="blueprint"] .header,+ html[data-preset="editorial"] .header { padding-right: 29.5rem; }++ .header-row {+ display: flex;+ align-items: center;+ gap: 0.75rem;+ min-height: 2.75rem;+ margin-bottom: 0.25rem;+ }++ .pulse-dot {+ flex: none;+ width: 10px;+ height: 10px;+ background: var(--frontend-stroke);+ border-radius: 50%;+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--frontend-stroke) 16%, transparent);+ animation: none;+ }++ html[data-motion-capable="true"] .pulse-dot { animation: pulse 2s infinite; }++ @keyframes pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.5; }+ }++ h1 {+ font-size: 1.5rem;+ font-weight: 650;+ line-height: 1.25;+ letter-spacing: -0.015em;+ }++ .subtitle {+ color: var(--text-muted);+ font-size: 0.875rem;+ line-height: 1.55;+ margin-left: 1.375rem;+ }++ html[data-preset="signal-flow"] .header-row::after {+ content: attr(data-preset-badge-signal-flow);+ flex: none;+ margin-left: 0.25rem;+ color: var(--frontend-stroke);+ border: 1px solid var(--frontend-stroke);+ border-radius: 999px;+ padding: 0.28rem 0.6rem;+ font-size: 0.625rem;+ letter-spacing: 0.12em;+ opacity: 0.82;+ box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);+ white-space: nowrap;+ }++ html[data-preset="blueprint"] .pulse-dot {+ width: 10px;+ height: 10px;+ border: 1px solid var(--frontend-stroke);+ border-radius: 1px;+ background: transparent;+ box-shadow: inset 0 0 0 2px var(--bg);+ transform: rotate(45deg);+ animation: none;+ }+ html[data-preset="blueprint"] .header-row::after {+ content: attr(data-preset-badge-blueprint);+ flex: none;+ margin-left: 0.25rem;+ padding: 0.28rem 0.55rem;+ border-top: 1px solid var(--frontend-stroke);+ border-bottom: 1px solid var(--frontend-stroke);+ color: var(--frontend-stroke);+ font-size: 0.5625rem;+ font-weight: 700;+ letter-spacing: 0.14em;+ white-space: nowrap;+ }++ html[data-preset="editorial"] h1,+ html[data-preset="editorial"] .card h3 {+ font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;+ letter-spacing: -0.02em;+ }+ html[data-preset="editorial"] h1 { font-size: 1.72rem; font-weight: 600; }+ html[data-preset="editorial"] .pulse-dot {+ width: 9px;+ height: 9px;+ border: 1px solid var(--arrow-emphasis);+ border-radius: 0;+ background: var(--arrow-emphasis);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);+ transform: rotate(45deg);+ animation: none;+ }+ html[data-preset="editorial"] .header-row::after {+ content: attr(data-preset-badge-editorial);+ flex: none;+ margin-left: 0.25rem;+ padding: 0.32rem 0 0.24rem;+ border-bottom: 2px solid var(--arrow-emphasis);+ color: var(--arrow-emphasis);+ font-family: Georgia, 'Times New Roman', serif;+ font-size: 0.625rem;+ font-style: italic;+ font-weight: 600;+ letter-spacing: 0.08em;+ white-space: nowrap;+ }++ .diagram-container {+ --archify-nav-reserve: 0px;+ background: var(--panel);+ border-radius: 1rem;+ border: 1px solid var(--panel-border);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -20px rgba(15, 23, 42, 0.18);+ padding: 1.5rem;+ padding-bottom: calc(1.5rem + var(--archify-nav-reserve));+ overflow: hidden;+ position: relative;+ }++ html[data-preset="signal-flow"] .diagram-container {+ position: relative;+ overflow: hidden;+ background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);+ }+ html[data-preset="signal-flow"][data-theme="light"] .diagram-container {+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);+ }+ html[data-preset="blueprint"] .diagram-container {+ border-color: var(--panel-border);+ border-radius: 0.35rem;+ background: var(--panel);+ box-shadow:+ inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),+ 0 18px 48px rgba(0, 0, 0, 0.16);+ }+ html[data-preset="blueprint"] .diagram-container::after {+ content: "";+ position: absolute;+ z-index: 10;+ inset: 0.7rem;+ pointer-events: none;+ background:+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;+ opacity: 0.58;+ }+ html[data-preset="editorial"] .diagram-container {+ overflow: hidden;+ border-color: var(--panel-border);+ border-radius: 0.38rem;+ background:+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),+ var(--panel);+ box-shadow:+ 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),+ 0 18px 48px color-mix(in srgb, #000 19%, transparent);+ }+ html[data-preset="editorial"] .diagram-container::after {+ position: absolute;+ z-index: 10;+ top: 0.72rem;+ right: 1.25rem;+ padding: 0.2rem 0.52rem;+ border: 1px solid var(--panel-border);+ background: var(--panel);+ color: var(--arrow-emphasis);+ content: attr(data-preset-badge-editorial-plate);+ font-family: Georgia, 'Times New Roman', serif;+ font-size: 0.52rem;+ font-style: italic;+ font-weight: 600;+ letter-spacing: 0.09em;+ pointer-events: none;+ }+ html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {+ content: "";+ position: absolute;+ inset: 0;+ pointer-events: none;+ background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);+ transform: translateX(-70%);+ animation: archify-signal-scan 4.8s ease-in-out 1 both;+ }++ /* Motion Governor gives the reader a real static state and gives the+ strongest semantic action the only motion budget. Atmosphere resets to+ its authored base instead of freezing mid-cycle. Static artifacts never+ start a decorative pulse or scan. */+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ }+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ }+ html[data-motion="still"] .pulse-dot,+ html[data-motion="still"] .diagram-container::before,+ html[data-motion="still"] svg[data-animation="trace"] [data-animate],+ html[data-motion-owner] .pulse-dot,+ html[data-motion-owner] .diagram-container::before,+ html[data-motion-owner] svg[data-animation="trace"] [data-animate],+ html[data-embed="true"] .pulse-dot,+ html[data-embed="true"] .diagram-container::before,+ html[data-share-playback="true"] .pulse-dot,+ html[data-share-playback="true"] .diagram-container::before,+ html[data-document-hidden="true"] .pulse-dot,+ html[data-document-hidden="true"] .diagram-container::before,+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-animate],+ html[data-motion="still"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-motion-owner] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ }+ html[data-motion="still"] .diagram-container::before,+ html[data-motion-owner] .diagram-container::before,+ html[data-embed="true"] .diagram-container::before,+ html[data-share-playback="true"] .diagram-container::before {+ opacity: 0;+ }+ html[data-motion="still"] .intent-trace-flow,+ html[data-motion="still"] .route-probe-flow,+ html[data-motion="still"] .route-journey-flow,+ html[data-motion="still"] .semantic-lens-flow,+ html[data-motion="still"] .diagram-guide,+ html[data-motion="still"] .overview-map-live,+ html[data-document-hidden="true"] .intent-trace-flow,+ html[data-document-hidden="true"] .route-probe-flow,+ html[data-document-hidden="true"] .route-journey-flow,+ html[data-document-hidden="true"] .semantic-lens-flow,+ html[data-document-hidden="true"] .diagram-guide,+ html[data-document-hidden="true"] .overview-map-live {+ animation: none !important;+ }++ html[data-motion="still"] .intent-trace-flow,+ html[data-motion="still"] .route-probe-flow {+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+ }+ html[data-motion="still"] .route-journey-overlay,+ html[data-document-hidden="true"] .route-journey-overlay { display: none !important; }+ html[data-motion="still"] .relationship-pulse-overlay { display: none !important; }++ html[data-motion="still"] svg [data-node-id],+ html[data-motion="still"] svg [data-edge-from],+ html[data-motion="still"] svg [data-detail],+ html[data-motion="still"] svg [data-detail-anchor],+ html[data-motion="still"] svg [data-legend-hit],+ html[data-motion="still"] svg {+ transition: none !important;+ }++ svg {+ font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;+ width: 100%;+ min-width: min(900px, 100%);+ display: block;+ transform-origin: 0 0;+ transition: transform 0.18s ease;+ }++ .diagram-container.is-camera-moving svg {+ transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);+ }+ .diagram-container.is-camera-transaction svg { transition: none; }+ .diagram-container.is-pannable { cursor: grab; }+ .diagram-container.is-panning { cursor: grabbing; user-select: none; }+ .diagram-container.is-panning svg { transition: none; }++ .diagram-nav {+ position: absolute;+ right: 1rem;+ bottom: 1rem;+ z-index: 12;+ translate: 0 calc(-1 * var(--archify-dock-lift, 0px));+ display: inline-flex;+ align-items: center;+ max-width: calc(100% - 2rem);+ padding: 0.25rem;+ gap: 0.0625rem;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ border-radius: 0.75rem;+ background: color-mix(in srgb, var(--panel) 84%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(14px) saturate(1.2);+ scrollbar-width: none;+ }+ .diagram-nav::-webkit-scrollbar { display: none; }+ .diagram-nav button,+ .focus-chip button {+ border: 0;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+ }+ .diagram-nav button {+ min-width: 2rem;+ height: 2rem;+ padding: 0 0.4rem;+ border-radius: 0.5rem;+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ letter-spacing: 0;+ transition: background 0.15s, color 0.15s;+ }+ .diagram-nav button:hover,+ .diagram-nav button:focus-visible {+ color: var(--text);+ background: color-mix(in srgb, var(--text) 6%, transparent);+ }+ .diagram-nav button:hover,+ .diagram-nav button:focus-visible,+ .focus-chip button:hover,+ .focus-chip button:focus-visible { background: var(--toolbar-hover); }+ .diagram-nav button:focus-visible,+ .focus-chip button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .diagram-nav button:disabled { opacity: 0.38; cursor: default; }+ /* The Guide stays on the ? shortcut; Map only earns dock space once the+ reader has zoomed past the full diagram (or opened it from the keyboard). */+ .diagram-nav button[hidden] { display: none; }+ .diagram-container:not(.is-pannable) #btn-overview-map:not([data-radar-requested]):not(:focus) { display: none; }+ .diagram-nav button:disabled:hover { background: transparent; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ min-width: auto;+ padding-inline: 0.6rem;+ color: var(--text-muted);+ font-weight: 500;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ position: relative;+ margin-left: 0.375rem;+ }+ .diagram-nav #btn-node-finder::before,+ .diagram-nav [data-view="out"]::before {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: -0.19rem;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 90%, transparent);+ content: "";+ pointer-events: none;+ }+ .diagram-nav-icon {+ display: block;+ width: 0.875rem;+ height: 0.875rem;+ margin: auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .diagram-nav-icon.find {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.guide {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.minus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.plus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav [data-view="reset"] {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.2rem;+ min-width: 3.1rem;+ padding-inline: 0.35rem;+ }+ .diagram-nav [data-view="reset"][data-detail-visible] {+ min-width: 3.8rem;+ }+ .diagram-nav-detail {+ color: color-mix(in srgb, var(--toolbar-text) 52%, transparent);+ font-size: 0.44rem;+ font-weight: 700;+ line-height: 1;+ letter-spacing: 0.07em;+ }+ .diagram-nav-percent {+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ line-height: 1;+ }+ /* Mode buttons carry a small glyph so the dock reads as one icon language. */+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ display: inline-flex;+ align-items: center;+ gap: 0.375rem;+ padding-inline: 0.55rem 0.65rem;+ }+ .diagram-nav #btn-route-probe::before,+ .diagram-nav #btn-overview-map::before,+ .diagram-nav #btn-semantic-lens::before {+ flex: none;+ width: 0.875rem;+ height: 0.875rem;+ background: currentColor;+ content: "";+ opacity: 0.85;+ -webkit-mask: var(--nav-glyph) center / contain no-repeat;+ mask: var(--nav-glyph) center / contain no-repeat;+ }+ .diagram-nav #btn-route-probe { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='4.8' cy='14.8' r='2.2'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2'/%3E%3Cpath d='M6.9 13.9c3.8-1.4 2.6-6.3 6.2-7.8'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-overview-map { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.8 5.4 7.4 3.5l5.2 2 4.6-1.9v11l-4.6 1.9-5.2-2-4.6 1.9z'/%3E%3Cpath d='M7.4 3.5v11M12.6 5.5v11'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-semantic-lens { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.8'/%3E%3Ccircle cx='10' cy='10' r='2.6'/%3E%3C/g%3E%3C/svg%3E"); }+ /* Zoom out / level / zoom in join into one stepper well. */+ .diagram-nav [data-view="out"],+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] {+ border-radius: 0;+ background: color-mix(in srgb, var(--text) 4.5%, transparent);+ }+ .diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }+ .diagram-nav [data-view="out"]::before { display: none; }+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] { margin-left: -0.0625rem; }+ .diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="out"]:hover,+ .diagram-nav [data-view="reset"]:hover,+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }+ .diagram-nav [data-view="out"]:disabled,+ .diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }+ .diagram-nav [data-view="out"]:disabled:hover,+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .diagram-nav [data-view="reset"] { min-width: 3.25rem; }+ .diagram-container[data-camera-indicator="true"] .diagram-nav-detail,+ .diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }+ .diagram-nav #btn-diagram-guide[aria-expanded="true"] {+ color: var(--cloud-stroke);+ background: var(--toolbar-hover);+ }++ /* Semantic Radar is a deliberately simplified, viewer-only overview. It+ uses authored node bounds and the live camera viewport rather than+ cloning the canonical SVG, so IDs, filters, animation, and export state+ stay singular and deterministic. */+ .overview-map {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 12;+ width: 11.25rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.78rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.625rem;+ }+ .overview-map[hidden] { display: none; }+ .overview-map[data-docked="true"] {+ position: fixed;+ right: var(--archify-radar-right, 1rem);+ top: var(--archify-radar-top, 1rem);+ bottom: auto;+ }+ .overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 1rem);+ }+ html[data-preset="blueprint"] .overview-map { border-radius: 0.28rem; }+ .overview-map-head {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.45rem;+ min-height: 2.25rem;+ padding: 0.42rem 0.48rem 0.38rem 0.55rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .overview-map[data-panel-dragging="true"] .overview-map-head { cursor: grabbing; }+ .overview-map[data-placement-invalid="true"] {+ border-color: var(--security-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);+ }+ .overview-map[data-compact="true"] {+ width: 7.4rem;+ }+ .overview-map[data-compact="true"] .overview-map-head {+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.24rem;+ min-height: 1.5rem;+ padding: 0.05rem 0.16rem 0.05rem 0.32rem;+ border-bottom: 0;+ }+ .overview-map[data-compact="true"] .overview-map-live,+ .overview-map[data-compact="true"] .overview-map-copy,+ .overview-map[data-compact="true"] .overview-map-surface,+ .overview-map[data-compact="true"] .overview-map-hint {+ display: none;+ }+ .overview-map[data-compact="true"] .overview-map-expand { display: inline-flex; }+ .overview-map[data-compact="true"] .overview-map-close {+ width: 1.15rem;+ height: 1.15rem;+ font-size: 0.72rem;+ }+ .overview-map-live {+ width: 0.42rem;+ height: 0.42rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);+ animation: archify-radar-live 2.4s ease-out infinite;+ }+ .overview-map-copy { min-width: 0; line-height: 1.1; }+ .overview-map-copy strong {+ display: block;+ overflow: hidden;+ color: var(--frontend-stroke);+ font-size: 0.59rem;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .overview-map-copy small {+ display: block;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.52rem;+ letter-spacing: 0.04em;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .overview-map-expand {+ display: none;+ align-items: center;+ justify-content: center;+ min-width: 0;+ height: 1.2rem;+ padding: 0 0.34rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.3rem;+ background: transparent;+ color: var(--frontend-stroke);+ font: inherit;+ font-size: 0.49rem;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ white-space: nowrap;+ cursor: pointer;+ }+ .overview-map-close {+ width: 1.55rem;+ height: 1.55rem;+ padding: 0;+ border: 0;+ border-radius: 0.34rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.9rem;+ cursor: pointer;+ }+ .overview-map-expand:hover,+ .overview-map-expand:focus-visible,+ .overview-map-close:hover,+ .overview-map-close:focus-visible { background: var(--toolbar-hover); }+ .overview-map-expand:focus-visible,+ .overview-map-close:focus-visible,+ .overview-map-surface:focus-visible,+ .overview-map-node:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .overview-map-surface {+ position: relative;+ height: 7rem;+ margin: 0.42rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);+ border-radius: 0.42rem;+ background:+ linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ color-mix(in srgb, var(--bg) 86%, transparent);+ background-size: 12px 12px;+ cursor: crosshair;+ touch-action: none;+ }+ html[data-preset="blueprint"] .overview-map-surface { border-radius: 0.1rem; }+ .overview-map-surface > svg {+ width: 100%;+ height: 100%;+ min-width: 0;+ transform: none !important;+ transition: none !important;+ display: block;+ overflow: visible;+ }+ .overview-map-node {+ fill: var(--backend-stroke);+ fill-opacity: 0.52;+ stroke: var(--backend-stroke);+ stroke-opacity: 0.86;+ vector-effect: non-scaling-stroke;+ cursor: pointer;+ transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;+ }+ .overview-map-node[data-kind="frontend"],+ .overview-map-node[data-kind="start"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }+ .overview-map-node[data-kind="database"],+ .overview-map-node[data-kind="success"] { fill: var(--database-stroke); stroke: var(--database-stroke); }+ .overview-map-node[data-kind="cloud"],+ .overview-map-node[data-kind="waiting"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }+ .overview-map-node[data-kind="messagebus"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }+ .overview-map-node[data-kind="security"],+ .overview-map-node[data-kind="decision"],+ .overview-map-node[data-kind="failure"] { fill: var(--security-stroke); stroke: var(--security-stroke); }+ .overview-map-node[data-kind="external"],+ .overview-map-node[data-kind="neutral"] { fill: var(--external-stroke); stroke: var(--external-stroke); }+ .overview-map-node[data-radar-active="true"],+ .overview-map-node:hover,+ .overview-map-node:focus-visible {+ fill-opacity: 0.92;+ stroke-width: 2.2;+ filter: drop-shadow(0 0 3px currentColor);+ }+ .overview-map-viewport {+ fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);+ stroke: var(--frontend-stroke);+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));+ }+ .overview-map-hint {+ display: flex;+ justify-content: space-between;+ gap: 0.5rem;+ padding: 0 0.52rem 0.46rem;+ color: var(--text-faint);+ font-size: 0.49rem;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ }+ .diagram-nav #btn-overview-map[aria-expanded="true"] {+ color: var(--frontend-stroke);+ background: color-mix(in srgb, var(--frontend-stroke) 11%, transparent);+ }+ .overview-map-feedback {+ position: absolute;+ right: 1rem;+ bottom: 4.15rem;+ z-index: 13;+ max-width: min(16rem, calc(100% - 2rem));+ padding: 0.38rem 0.55rem;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.5rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);+ font-size: 0.52rem;+ line-height: 1.35;+ pointer-events: none;+ }+ .overview-map-feedback[hidden] { display: none; }+ .focus-chip[data-radar-yielded="true"] { display: none !important; }+ .diagram-nav #btn-route-probe[aria-pressed="true"] {+ color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-stroke) 11%, transparent);+ }+ .diagram-nav #btn-semantic-lens[aria-expanded="true"],+ .diagram-nav #btn-semantic-lens[aria-pressed="true"] {+ color: var(--database-stroke);+ background: color-mix(in srgb, var(--database-stroke) 11%, transparent);+ }++ /* Semantic Lens turns the compiled node-kind palette into an analytical+ legend. One kind reveals its real traffic; two kinds compare only their+ direct authored relationships. Geometry and the canonical SVG stay put. */+ .semantic-lens {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 24;+ width: min(20rem, calc(100% - 2rem));+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);+ backdrop-filter: blur(18px);+ animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+ }+ .semantic-lens[hidden] { display: none; }+ .semantic-lens[data-dock-side="left"] { left: 1rem; right: auto; }+ .semantic-lens[data-dock-side="right"] { left: auto; right: 1rem; }+ html[data-preset="blueprint"] .semantic-lens { border-radius: 0.28rem; }+ .semantic-lens-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.72rem 0.78rem 0.62rem;+ border-bottom: 1px solid var(--toolbar-border);+ }+ .semantic-lens-eyebrow {+ display: block;+ color: var(--database-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ }+ .semantic-lens-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.82rem;+ letter-spacing: -0.02em;+ }+ .semantic-lens-close {+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .semantic-lens-close:hover,+ .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }+ .semantic-lens-instruction {+ margin: 0;+ padding: 0.52rem 0.78rem 0.48rem;+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+ }+ .semantic-lens-kinds {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.3rem;+ max-height: min(15rem, 40vh);+ padding: 0 0.5rem 0.5rem;+ overflow-y: auto;+ scrollbar-width: thin;+ }+ .semantic-lens-kind {+ --lens-color: var(--external-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.42rem;+ min-width: 0;+ min-height: 2.15rem;+ padding: 0.35rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--panel) 76%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;+ }+ html[data-preset="blueprint"] .semantic-lens-kind { border-radius: 0.12rem; }+ .semantic-lens-kind[data-kind="frontend"],+ .semantic-lens-kind[data-kind="start"] { --lens-color: var(--frontend-stroke); }+ .semantic-lens-kind[data-kind="backend"],+ .semantic-lens-kind[data-kind="active"] { --lens-color: var(--backend-stroke); }+ .semantic-lens-kind[data-kind="database"],+ .semantic-lens-kind[data-kind="success"] { --lens-color: var(--database-stroke); }+ .semantic-lens-kind[data-kind="cloud"],+ .semantic-lens-kind[data-kind="waiting"] { --lens-color: var(--cloud-stroke); }+ .semantic-lens-kind[data-kind="messagebus"] { --lens-color: var(--messagebus-stroke); }+ .semantic-lens-kind[data-kind="security"],+ .semantic-lens-kind[data-kind="decision"],+ .semantic-lens-kind[data-kind="failure"] { --lens-color: var(--security-stroke); }+ .semantic-lens-kind:hover,+ .semantic-lens-kind:focus-visible,+ .semantic-lens-kind[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));+ background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));+ }+ .semantic-lens-kind:focus-visible,+ .semantic-lens-close:focus-visible,+ .semantic-lens-actions button:focus-visible {+ outline: 2px solid var(--database-stroke);+ outline-offset: 1px;+ }+ .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }+ .semantic-lens-swatch {+ width: 0.48rem;+ height: 0.48rem;+ border-radius: 50%;+ background: var(--lens-color);+ box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);+ }+ .semantic-lens-kind strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.61rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-lens-kind em {+ color: var(--lens-color);+ font-size: 0.54rem;+ font-style: normal;+ font-weight: 800;+ }+ .semantic-lens-status {+ min-height: 2.5rem;+ margin: 0;+ padding: 0.55rem 0.78rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+ }+ .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }+ .semantic-lens-actions {+ display: flex;+ justify-content: flex-end;+ gap: 0.28rem;+ padding: 0 0.62rem 0.62rem;+ }+ .semantic-lens-actions button {+ min-height: 1.8rem;+ padding: 0.28rem 0.48rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.56rem;+ cursor: pointer;+ }+ .semantic-lens-actions button:hover { background: var(--toolbar-hover); }+ .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }+ @keyframes archify-lens-in {+ from { opacity: 0; transform: translateY(5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }++ /* Route Probe answers a reader question over the compiled semantic graph:+ choose two stable nodes and reveal the shortest authored directed route.+ The receipt and signal live entirely in the viewer layer. */+ .route-probe {+ position: absolute;+ left: 1rem;+ bottom: calc(1rem + var(--archify-nav-reserve));+ z-index: 12;+ width: min(46rem, calc(100% - 25rem));+ min-width: 18rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.75rem;+ }+ .route-probe[hidden] { display: none; }+ /* Picking needs one line of guidance, not a wide empty card; the panel+ widens only when there is a traced route to show. */+ .route-probe:not([data-state="result"]) { width: min(22rem, calc(100% - 2rem)); min-width: 0; }+ .route-probe-path:has(> .route-probe-placeholder:only-child) { display: none; }+ .route-probe[data-route-dock="top"] {+ top: 1rem;+ bottom: auto;+ }+ html[data-preset="blueprint"] .route-probe { border-radius: 0.25rem; }+ .route-probe-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.65rem;+ padding: 0.625rem 0.75rem 0.5rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);+ }+ .route-probe-copy { min-width: 0; }+ .route-probe-eyebrow {+ display: block;+ color: var(--backend-stroke);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .route-probe-title {+ display: block;+ margin-top: 0.14rem;+ overflow: hidden;+ color: var(--toolbar-text);+ font-size: 0.875rem;+ font-weight: 600;+ line-height: 1.3;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .route-probe-actions { display: flex; gap: 0.2rem; }+ .route-probe button {+ min-height: 1.55rem;+ padding: 0.25rem 0.42rem;+ border: 0;+ border-radius: 0.36rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+ }+ .route-probe button:hover,+ .route-probe button:focus-visible { background: var(--toolbar-hover); }+ .route-probe button:focus-visible {+ outline: 2px solid var(--backend-stroke);+ outline-offset: 1px;+ }+ .route-probe-copy-link { color: var(--frontend-stroke) !important; }+ .route-probe-find { color: var(--backend-stroke) !important; }+ .route-probe-copy-link[hidden] { display: none; }+ .route-probe-find[hidden] { display: none; }+ .route-probe-path {+ display: flex;+ align-items: center;+ min-height: 2.2rem;+ padding: 0.42rem 0.58rem 0.24rem;+ overflow-x: auto;+ scrollbar-width: thin;+ white-space: nowrap;+ }+ .route-probe-node,+ .route-probe button.route-probe-node {+ flex: none;+ max-width: 9.5rem;+ overflow: hidden;+ min-height: 1.75rem !important;+ padding: 0.22rem 0.38rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));+ border-radius: 999px;+ background: color-mix(in srgb, var(--backend-fill) 52%, transparent);+ color: var(--text);+ font-size: 0.56rem;+ font-weight: 700;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .route-probe-node[data-endpoint="start"] {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+ }+ .route-probe-node[data-endpoint="end"] {+ border-color: var(--security-stroke);+ color: var(--security-stroke);+ }+ .route-probe-node[data-route-journey-state="past"] { opacity: 0.66; }+ .route-probe-node[data-route-journey-state="future"] { opacity: 0.48; }+ .route-probe-node[aria-current="step"] {+ border-color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));+ color: var(--text);+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);+ opacity: 1;+ }+ html[data-preset="blueprint"] .route-probe-node[aria-current="step"] {+ border-style: double;+ border-width: 3px;+ border-radius: 0.2rem;+ box-shadow: none;+ }+ .route-probe-arrow {+ flex: none;+ padding: 0 0.28rem;+ color: var(--text-faint);+ font-size: 0.65rem;+ }+ .route-probe-placeholder {+ color: var(--text-faint);+ font-size: 0.75rem;+ }+ .route-probe-status {+ display: block;+ min-height: 1.45rem;+ padding: 0.5rem 0.75rem 0.625rem;+ color: var(--text-muted, var(--text-faint));+ font-size: 0.75rem;+ line-height: 1.45;+ }+ .route-journey-controls {+ display: grid;+ grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);+ justify-content: start;+ gap: 0.22rem;+ padding: 0.08rem 0.58rem 0.28rem;+ }+ .route-journey-controls[hidden] { display: none; }+ .route-journey-controls button {+ min-height: 1.8rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);+ font-size: 0.54rem;+ font-weight: 700;+ }+ .route-journey-controls button:disabled {+ cursor: default;+ opacity: 0.34;+ }+ .route-journey-play { color: var(--backend-stroke) !important; }+ .route-journey-overview { color: var(--frontend-stroke) !important; }+ .route-journey-controls[data-playing="true"] .route-journey-play {+ border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));+ background: color-mix(in srgb, var(--backend-fill) 62%, transparent);+ }+ .route-probe[data-state="error"] {+ border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));+ }+ .route-probe[data-state="error"] .route-probe-status { color: var(--security-stroke); }++ .focus-chip {+ position: absolute;+ left: 1rem;+ top: 1rem;+ z-index: 12;+ display: block;+ width: min(22rem, calc(100% - 13rem));+ max-width: calc(100% - 13rem);+ overflow: hidden;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.6875rem;+ }+ .focus-chip[hidden] { display: none; }+ html[data-preset="blueprint"] .focus-chip { border-radius: 0.3rem; }+ .focus-chip button {+ flex: none;+ padding: 0.3rem 0.45rem;+ border-radius: 0.35rem;+ font-size: 0.625rem;+ }+ .relationship-lens-head {+ position: relative;+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.9rem 0.75rem 0.65rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);+ }+ .relationship-lens-drag-handle {+ position: absolute;+ top: 0.12rem;+ left: 50%;+ width: 2.5rem;+ height: 0.78rem;+ padding: 0 !important;+ transform: translateX(-50%);+ color: var(--text-faint) !important;+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .relationship-lens-drag-handle::before {+ content: "";+ display: block;+ width: 1.25rem;+ margin: auto;+ border-top: 2px dotted currentColor;+ opacity: 0.72;+ }+ .focus-chip[data-panel-dragging="true"] .relationship-lens-drag-handle { cursor: grabbing; }+ @media (hover: none), (pointer: coarse) {+ .relationship-lens-drag-handle { display: none; }+ }+ .relationship-lens-copy { min-width: 0; }+ .relationship-lens-actions {+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ gap: 0.18rem;+ }+ .relationship-lens-actions button { white-space: nowrap; }+ .relationship-lens-actions #btn-focus-clear {+ display: grid;+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ place-items: center;+ color: var(--text-muted);+ font-size: 1rem;+ line-height: 1;+ }+ .relationship-lens-actions #btn-focus-clear:hover,+ .relationship-lens-actions #btn-focus-clear:focus-visible {+ background: var(--toolbar-hover);+ color: var(--text);+ }+ .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }+ .relationship-lens-actions #btn-focus-relations { display: none; }+ .relationship-lens-eyebrow {+ display: block;+ margin-bottom: 0.18rem;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ }+ .relationship-lens-title {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.8rem;+ line-height: 1.35;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-detail {+ display: block;+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-muted);+ font-size: 0.625rem;+ line-height: 1.4;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-detail[hidden] { display: none; }+ .semantic-passport-meta {+ display: flex;+ flex-wrap: wrap;+ gap: 0.24rem;+ margin-top: 0.42rem;+ }+ .semantic-passport-meta span,+ .semantic-passport-meta code {+ max-width: 100%;+ overflow: hidden;+ padding: 0.14rem 0.34rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 68%, transparent);+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ letter-spacing: 0.04em;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-meta [data-passport="kind"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));+ color: var(--frontend-stroke);+ font-weight: 800;+ text-transform: uppercase;+ }+ .semantic-passport-meta [data-passport="tag"] { color: var(--cloud-stroke); }+ .semantic-passport-meta [data-passport="brand"] {+ border-color: color-mix(in srgb, var(--messagebus-stroke) 52%, var(--toolbar-border));+ color: var(--messagebus-stroke);+ font-weight: 700;+ }+ .semantic-passport-meta [hidden] { display: none; }+ html[data-preset="blueprint"] .semantic-passport-meta span,+ html[data-preset="blueprint"] .semantic-passport-meta code { border-radius: 0.1rem; }+ .semantic-passport-evidence {+ margin-top: 0.52rem;+ padding: 0.5rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));+ }+ .semantic-passport-evidence[hidden] { display: none; }+ html[data-preset="blueprint"] .semantic-passport-evidence { border-radius: 0.18rem; }+ .semantic-passport-evidence-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.55rem;+ margin-bottom: 0.35rem;+ }+ .semantic-passport-evidence-status {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ color: var(--backend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ }+ .semantic-passport-evidence-status::before {+ content: '';+ width: 0.38rem;+ height: 0.38rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);+ }+ .semantic-passport-repository {+ min-width: 0;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-decoration: none;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-repository:hover,+ .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }+ .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }+ .semantic-passport-source {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.15rem 0.45rem;+ align-items: center;+ padding: 0.34rem 0.4rem;+ border: 1px solid transparent;+ border-radius: 0.38rem;+ color: var(--text-muted);+ text-decoration: none;+ }+ a.semantic-passport-source:hover,+ a.semantic-passport-source:focus-visible {+ border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);+ background: color-mix(in srgb, var(--backend-fill) 32%, transparent);+ color: var(--text);+ }+ .semantic-passport-source strong {+ overflow: hidden;+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-source code {+ color: var(--backend-stroke);+ font: inherit;+ font-size: 0.5rem;+ }+ .semantic-passport-source small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-summary {+ display: block;+ margin-top: 0.12rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+ }+ .semantic-passport-reach {+ display: grid;+ gap: 0.28rem;+ margin-top: 0.52rem;+ padding-top: 0.48rem;+ border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);+ }+ .semantic-passport-reach[hidden] { display: none; }+ .semantic-passport-reach-label {+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ }+ .semantic-passport-reach-actions {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 0.25rem;+ }+ .semantic-passport-reach-actions button {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.5rem;+ min-width: 0;+ min-height: 2rem;+ padding: 0.32rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--panel) 70%, transparent);+ color: var(--text-muted);+ text-align: left;+ }+ .semantic-passport-reach-actions button:hover:not(:disabled),+ .semantic-passport-reach-actions button:focus-visible {+ border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));+ color: var(--text);+ }+ .semantic-passport-reach-actions button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .semantic-passport-reach-actions button:disabled {+ cursor: default;+ opacity: 0.5;+ }+ .semantic-passport-reach-actions button[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));+ background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);+ color: var(--text);+ }+ #btn-reach-upstream {+ --reach-color: var(--database-stroke);+ --reach-fill: var(--database-fill);+ }+ #btn-reach-downstream {+ --reach-color: var(--backend-stroke);+ --reach-fill: var(--backend-fill);+ }+ .semantic-passport-reach-actions strong {+ color: var(--reach-color, var(--frontend-stroke));+ font-size: 0.625rem;+ }+ .semantic-passport-reach-status {+ color: var(--text-faint);+ font-size: 0.525rem;+ line-height: 1.4;+ }+ .semantic-passport-reach-status[hidden] { display: none; }+ .relationship-lens-list {+ max-height: min(18rem, 46vh);+ overflow: auto;+ padding: 0.4rem;+ scrollbar-width: thin;+ scrollbar-color: var(--frontend-stroke) transparent;+ }+ .relationship-lens-list::-webkit-scrollbar { width: 4px; }+ .relationship-lens-list::-webkit-scrollbar-thumb {+ border-radius: 999px;+ background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);+ }+ .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }+ .relationship-lens-group-title {+ display: block;+ padding: 0.24rem 0.38rem 0.16rem;+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }+ .relationship-lens-row {+ display: grid;+ grid-template-columns: 2.1rem minmax(0, 1fr);+ gap: 0.06rem 0.45rem;+ width: 100%;+ padding: 0.45rem 0.5rem !important;+ text-align: left;+ }+ .relationship-lens-row:hover,+ .relationship-lens-row:focus-visible,+ .relationship-lens-row[data-preview-active="true"] {+ background: var(--toolbar-hover);+ box-shadow: inset 2px 0 0 var(--frontend-stroke);+ }+ .relationship-lens-row:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+ }+ .relationship-lens-direction {+ grid-row: 1 / 3;+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ }+ .relationship-lens-row[data-direction="in"] .relationship-lens-direction { color: var(--database-stroke); }+ .relationship-lens-row[data-direction="loop"] .relationship-lens-direction { color: var(--security-stroke); }+ .relationship-lens-row strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.6875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-row small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-empty {+ margin: 0;+ padding: 0.75rem;+ color: var(--text-faint);+ font-size: 0.625rem;+ text-align: center;+ }++ /* Diagram Guide keeps the artifact's growing reader vocabulary+ discoverable without widening the permanent control bar. It derives+ honest counts at runtime and delegates every action to an existing+ production interaction instead of creating a second command system. */+ .diagram-guide {+ position: absolute;+ top: 1rem;+ right: 1rem;+ z-index: 26;+ width: min(32rem, calc(100% - 2rem));+ max-height: min(42rem, calc(100% - 2rem));+ overflow: auto;+ border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);+ backdrop-filter: blur(18px);+ animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+ }+ .diagram-guide[hidden] { display: none; }+ html[data-preset="blueprint"] .diagram-guide { border-radius: 0.28rem; }+ .diagram-guide-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 1rem;+ padding: 0.82rem 0.9rem 0.68rem;+ border-bottom: 1px solid var(--toolbar-border);+ }+ .diagram-guide-eyebrow {+ display: block;+ color: var(--cloud-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ }+ .diagram-guide-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.86rem;+ letter-spacing: -0.02em;+ }+ .diagram-guide-close {+ width: 1.8rem;+ height: 1.8rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .diagram-guide-close:hover,+ .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }+ .diagram-guide-stats {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin: 0;+ padding: 0.54rem 0.9rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);+ color: var(--text-faint);+ font-size: 0.56rem;+ letter-spacing: 0.025em;+ }+ .diagram-guide-stats::before {+ content: '';+ width: 0.42rem;+ height: 0.42rem;+ flex: none;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);+ }+ .diagram-guide-actions {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.38rem;+ padding: 0.62rem;+ }+ .diagram-guide-action {+ --guide-accent: var(--frontend-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ min-height: 4.15rem;+ padding: 0.55rem 0.58rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;+ }+ .diagram-guide-action[data-guide-action="route"] { --guide-accent: var(--backend-stroke); }+ .diagram-guide-action[data-guide-action="map"] { --guide-accent: var(--database-stroke); }+ .diagram-guide-action[data-guide-action="lens"] { --guide-accent: var(--messagebus-stroke); }++ .diagram-guide-action[data-guide-action="present"] {+ --guide-accent: var(--cloud-stroke);+ }+ .diagram-guide-action:hover,+ .diagram-guide-action:focus-visible {+ border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));+ background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));+ transform: translateY(-1px);+ }+ .diagram-guide-action:focus-visible,+ .diagram-guide-close:focus-visible {+ outline: 2px solid var(--cloud-stroke);+ outline-offset: 1px;+ }+ .diagram-guide-action:disabled {+ opacity: 0.42;+ cursor: default;+ transform: none;+ }+ .diagram-guide-index {+ display: grid;+ place-items: center;+ width: 1.65rem;+ height: 1.65rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));+ border-radius: 0.35rem;+ color: var(--guide-accent);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.06em;+ }+ .diagram-guide-action-copy { min-width: 0; }+ .diagram-guide-action strong {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.66rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .diagram-guide-action small {+ display: -webkit-box;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ line-height: 1.35;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+ }+ .diagram-guide kbd {+ align-self: start;+ min-width: 1.45rem;+ padding: 0.12rem 0.3rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ text-align: center;+ }+ .diagram-guide-shortcuts {+ display: flex;+ flex-wrap: wrap;+ gap: 0.34rem 0.62rem;+ padding: 0.58rem 0.9rem 0.68rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.5rem;+ }+ .diagram-guide-shortcuts span {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ white-space: nowrap;+ }+ .diagram-guide-feedback {+ min-height: 1rem;+ margin: -0.18rem 0.9rem 0.62rem;+ color: var(--security-stroke);+ font-size: 0.5rem;+ }+ .diagram-guide-feedback:empty { display: none; }+ @keyframes archify-guide-in {+ from { opacity: 0; transform: translateY(-5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }++ .node-finder {+ position: absolute;+ top: 1rem;+ left: 1rem;+ z-index: 24;+ display: flex;+ flex-direction: column;+ width: min(22rem, calc(100% - 2rem));+ max-height: calc(100% - 2rem);+ overflow: hidden;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);+ backdrop-filter: blur(16px);+ }+ .node-finder[hidden] { display: none; }+ .node-finder[data-context="route-source"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));+ }+ .node-finder[data-context="route-target"] {+ border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));+ }+ html[data-preset="blueprint"] .node-finder { border-radius: 0.3rem; }+ .node-finder-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.7rem 0.8rem 0.45rem;+ }+ .node-finder-head strong {+ color: var(--text);+ font-size: 0.6875rem;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ }+ .node-finder[data-context="route-source"] .node-finder-head strong { color: var(--frontend-stroke); }+ .node-finder[data-context="route-target"] .node-finder-head strong { color: var(--security-stroke); }+ .node-finder-close {+ width: 1.75rem;+ height: 1.75rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .node-finder-close:hover,+ .node-finder-close:focus-visible { background: var(--toolbar-hover); }+ .node-finder-close:focus-visible,+ .node-finder-result:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+ }+ .node-finder-search {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ margin: 0 0.55rem 0.55rem;+ padding: 0 0.7rem;+ min-height: 2.6rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ transition: border-color 160ms ease-out, box-shadow 160ms ease-out;+ }+ html[data-preset="blueprint"] .node-finder-search { border-radius: 0.18rem; }+ .node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }+ .node-finder-search:focus-within {+ border-color: var(--frontend-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);+ }+ .node-finder-input {+ appearance: none;+ width: 100%;+ min-width: 0;+ border: 0;+ outline: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ font-size: 0.75rem;+ }+ .node-finder-input:focus-visible { outline: none; }+ .node-finder-input::placeholder { color: var(--text-faint); }+ .node-finder kbd {+ padding: 0.1rem 0.32rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5625rem;+ }+ .node-finder-results {+ display: grid;+ flex: 1 1 auto;+ gap: 0;+ min-height: 0;+ max-height: min(18rem, 48vh);+ margin: 0 0.55rem 0.45rem;+ padding: 0;+ overflow-y: auto;+ overscroll-behavior: contain;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 54%, transparent);+ scroll-padding-block: 0.25rem;+ scrollbar-width: thin;+ }+ html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }+ .node-finder-result {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.2rem 0.75rem;+ width: 100%;+ min-height: 3.25rem;+ padding: 0.58rem 0.65rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background-color 160ms ease-out;+ }+ .node-finder-result:not(:last-child) {+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ }+ .node-finder-result:hover,+ .node-finder-result:focus-visible {+ position: relative;+ z-index: 1;+ background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));+ }+ .node-finder-result strong {+ overflow: hidden;+ font-size: 0.75rem;+ line-height: 1.25;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-finder-result small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ letter-spacing: 0.015em;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-finder-result em {+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.625rem;+ font-style: normal;+ }+ .node-finder[data-context^="route-"] .node-finder-result em {+ padding: 0.1rem 0.3rem;+ border: 1px solid color-mix(in srgb, currentColor 52%, transparent);+ border-radius: 999px;+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.05em;+ text-transform: uppercase;+ }+ .node-finder[data-context="route-target"] .node-finder-result em { color: var(--security-stroke); }+ .node-finder-empty {+ padding: 1.1rem 0.75rem 1.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: center;+ }+ .node-finder-status {+ margin: 0;+ padding: 0.1rem 0.8rem 0.65rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+ }++ .cards {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));+ gap: 1rem;+ margin-top: 2rem;+ }++ .card {+ background: var(--panel);+ border-radius: 0.75rem;+ border: 1px solid var(--panel-border);+ padding: 1.125rem 1.25rem;+ }++ html[data-preset="signal-flow"] .card {+ background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);+ }+ html[data-preset="signal-flow"][data-theme="light"] .card {+ background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);+ }++ /* Preserve the one-screen guarantee on ordinary laptop displays. The+ high-screen expansion above must not trade a fuller canvas for page+ scrolling at 900–1080px heights. */+ @media (min-width: 768px) and (max-height: 1100px) {+ .header { margin-bottom: 1rem; }+ .diagram-container {+ padding: 0.875rem;+ padding-bottom: calc(0.875rem + var(--archify-nav-reserve));+ }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ body { padding-block: 1.25rem; }+ body { --archify-page-top: 1.25rem; }+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ html[data-nav-stage-rail="true"] body { padding-block: 0.375rem; }+ /* Align the fixed toolbar with the compact title row. Reserve its hit area+ above the guide without taking extra height from a fitted diagram. */+ html[data-nav-stage-rail="true"] .toolbar { top: 0.25rem; }+ html[data-nav-stage-rail="true"] .header { min-height: 2.625rem; margin-bottom: 0.5rem; }+ html[data-nav-stage-rail="true"] .diagram-container[data-nav-stage-rail="true"] { padding-top: 0.5rem; }+ html[data-nav-stage-rail="true"] .cards { margin-top: 0.375rem; }+ }++ html[data-preset="blueprint"] .card {+ position: relative;+ border-color: var(--panel-border);+ border-radius: 0.3rem;+ background: var(--panel);+ box-shadow: none;+ }+ html[data-preset="blueprint"] .card::before {+ content: "";+ position: absolute;+ top: -1px;+ left: 1rem;+ width: 2.5rem;+ border-top: 2px solid var(--frontend-stroke);+ }++ html[data-preset="editorial"] .card {+ position: relative;+ border-radius: 0.28rem;+ background: var(--panel);+ box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);+ }+ html[data-preset="editorial"] .card::before {+ position: absolute;+ top: -1px;+ left: 1.25rem;+ width: 3.25rem;+ border-top: 3px solid var(--arrow-emphasis);+ content: "";+ }+ html[data-preset="editorial"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }++ /* Summary rail: the reader measures the viewport and enables it only when the+ diagram keeps its readable width beside the notes. */+ .reader-rail { display: contents; }+ html[data-reader-rail="true"] .container {+ display: grid;+ grid-template-columns: minmax(0, 1fr) var(--archify-rail-width);+ grid-auto-flow: row dense;+ column-gap: var(--archify-rail-gap);+ align-items: start;+ }+ html[data-reader-rail="true"] .container > .header { grid-column: 1 / -1; }+ html[data-reader-rail="true"] .container > .diagram-container { grid-column: 1; }+ /* The rail is at least the diagram's height and may run on to the viewport+ floor (--archify-rail-max, set by the reader); past that, notes scroll and+ the index keeps a usable share instead of collapsing to its header. */+ html[data-reader-rail="true"] .reader-rail {+ display: flex;+ flex-direction: column;+ grid-column: 2;+ align-self: stretch;+ min-height: 0;+ max-height: var(--archify-rail-max, none);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards {+ display: flex;+ flex: 0 1 auto;+ flex-direction: column;+ gap: 0;+ min-height: 0;+ margin-top: 0;+ padding: 0.125rem 0 0;+ overflow-y: auto;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards::-webkit-scrollbar { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card { flex: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card {+ padding: 0 0.25rem 1.125rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ box-shadow: none;+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card + .card {+ padding-top: 1.125rem;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card::before { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .card-header { gap: 0.55rem; margin-bottom: 0.45rem; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card h3 { font-size: 0.875rem; letter-spacing: -0.005em; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card ul { font-size: 0.8125rem; line-height: 1.6; }++ .node-outline { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .node-outline:not([hidden]) {+ display: flex;+ flex: 1 0 min(13rem, 55%);+ flex-direction: column;+ min-height: 0;+ margin-top: 0.25rem;+ overflow: hidden;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty + .node-outline:not([hidden]) { margin-top: 0; border-top: 0; }+ /* Collapsed: only the reveal control remains, so the diagram takes the width. */+ html[data-reader-rail="collapsed"] .reader-rail { display: none; }+ /* Overlay: a drawer for diagrams whose readable floor leaves no room to dock. */+ html[data-reader-rail="overlay"] .reader-rail {+ position: fixed;+ z-index: 150;+ top: 1rem;+ right: 1rem;+ bottom: 1rem;+ display: flex;+ flex-direction: column;+ width: var(--archify-rail-width);+ padding: 0.75rem 1rem 0.5rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 1rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 64px -18px rgba(15, 23, 42, 0.38);+ animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);+ }+ @keyframes rail-drawer-in {+ from { opacity: 0; transform: translateX(0.75rem); }+ to { opacity: 1; transform: translateX(0); }+ }+ /* Bottom (default): the notes keep their full-width card row and the index+ follows as one panel whose groups flow into columns, so nothing scrolls+ inside it. The placement toggle sits in the index header. */+ html[data-reader-rail="bottom"] .reader-rail {+ display: grid;+ grid-template-areas: "cards" "index";+ grid-template-columns: minmax(0, 1fr);+ row-gap: 1rem;+ margin-top: 1rem;+ }+ html[data-reader-rail="bottom"] .cards { grid-area: cards; margin-top: 0; }+ html[data-reader-rail="bottom"] .cards:empty { display: none; }+ html[data-reader-rail="bottom"] .node-outline:not([hidden]) {+ display: block;+ grid-area: index;+ padding: 0 1.25rem 0.75rem;+ border: 1px solid var(--panel-border);+ border-radius: 0.75rem;+ background: var(--panel);+ }+ html[data-reader-rail="bottom"] .reader-rail > .rail-controls {+ z-index: 1;+ grid-area: index;+ align-self: start;+ justify-self: end;+ margin: 0.625rem 0.625rem 0 0;+ }+ html[data-reader-rail="bottom"] .node-outline-head { padding: 1rem 2.5rem 0.375rem 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-list {+ columns: 15rem;+ column-gap: 1.75rem;+ padding: 0;+ overflow: visible;+ -webkit-mask-image: none;+ mask-image: none;+ }+ /* Named groups stay whole; a single unnamed group may split across columns,+ where a continuous spine would read as a broken line. */+ html[data-reader-rail="bottom"] .node-outline-group + .node-outline-group { margin-top: 0; }+ html[data-reader-rail="bottom"] .node-outline-group:has(> .node-outline-heading) { break-inside: avoid; padding-bottom: 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-group:not(:has(> .node-outline-heading)) > ul::before { display: none; }+ html[data-reader-rail="bottom"] .node-outline-group li { break-inside: avoid; }+ .rail-controls { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"], [data-reader-rail="bottom"]) .rail-controls {+ display: flex;+ flex: none;+ justify-content: flex-end;+ gap: 0.125rem;+ margin: -0.25rem -0.25rem 0.25rem 0;+ }+ .rail-control {+ display: inline-grid;+ place-items: center;+ width: 1.875rem;+ height: 1.875rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text-faint);+ cursor: pointer;+ transition: background 0.14s ease, color 0.14s ease;+ }+ .rail-control[hidden] { display: none; }+ .rail-control:hover,+ .rail-control:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }+ .rail-control:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: -1.5px; }+ .rail-control-icon,+ .rail-reveal-icon {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ -webkit-mask: var(--rail-glyph) center / contain no-repeat;+ mask: var(--rail-glyph) center / contain no-repeat;+ }+ /* Panel glyphs: a frame with the panel drawn on the side it moves to. */+ .rail-control-icon.placement,+ #rail-placement[data-placement="right"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M2.8 12h14.4'/%3E%3C/g%3E%3C/svg%3E"); }+ #rail-placement[data-placement="bottom"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-control-icon.collapse { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }+ .rail-reveal-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4M14.4 7.2h1M14.4 9.6h1M14.4 12h1'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-reveal[hidden] { display: none; }+ /* The collapsed rail leaves one quiet pill in the canvas corner. */+ .rail-reveal {+ position: absolute;+ z-index: 13;+ top: 0.75rem;+ right: 0.75rem;+ display: inline-flex;+ align-items: center;+ gap: 0.45rem;+ min-height: 2rem;+ padding: 0 0.75rem 0 0.625rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 86%, transparent);+ color: var(--text-muted);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(12px);+ font: inherit;+ font-size: 0.75rem;+ font-weight: 500;+ cursor: pointer;+ transition: color 0.14s ease, background 0.14s ease;+ }+ .rail-reveal:hover,+ .rail-reveal:focus-visible { color: var(--text); background: var(--panel); }+ .rail-reveal:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: 2px; }+ html[data-motion="still"] .reader-rail { animation: none !important; }+ .node-outline-head {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ padding: 1.125rem 0.25rem 0.375rem;+ }+ .node-outline-head strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .node-outline-count {+ min-width: 1.35rem;+ padding: 0.1rem 0.4rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 6%, transparent);+ color: var(--text-muted);+ font-size: 0.6875rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ font-variant-numeric: tabular-nums;+ }+ .node-outline-list {+ flex: 1 1 auto;+ min-height: 0;+ margin: 0 -0.375rem;+ padding: 0 0 1.25rem;+ overflow-y: auto;+ list-style: none;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ }+ .node-outline-list::-webkit-scrollbar { display: none; }+ .node-outline-group + .node-outline-group { margin-top: 0.25rem; }+ .node-outline-group > ul {+ position: relative;+ list-style: none;+ }+ /* A quiet spine ties each group's swatches together like a lane. */+ .node-outline-group > ul::before {+ position: absolute;+ top: 0.95rem;+ bottom: 0.95rem;+ left: calc(0.625rem + 0.3125rem - 0.5px);+ width: 1px;+ background: var(--panel-border);+ content: "";+ }+ .node-outline-heading {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ padding: 0.7rem 0.625rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .node-outline-heading small {+ color: var(--text-dim);+ font-size: 0.6875rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ }+ /* The rail frees the vertical budget, so compact viewports keep the normal+ title spacing instead of the stacked layout's tight stage rail. */+ html[data-reader-rail]:not([data-reader-rail="bottom"]) body { --archify-page-top: 1.5rem; padding-block: 1.5rem; }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .toolbar { top: calc(var(--archify-page-top) - 0.1875rem); }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .header { min-height: 0; margin-bottom: 1.125rem; }+ .node-outline-item {+ position: relative;+ display: grid;+ grid-template-columns: 0.625rem minmax(0, auto) minmax(0, 1fr) 0.75rem;+ align-items: center;+ column-gap: 0.625rem;+ width: 100%;+ min-height: 1.95rem;+ padding: 0.28rem 0.5rem 0.28rem 0.625rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background 0.16s ease;+ }+ /* Trailing chevron hints that a click focuses the node. */+ .node-outline-item::after {+ grid-column: 4;+ width: 0.75rem;+ height: 0.75rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0;+ transform: translateX(-3px);+ transition: opacity 0.16s ease, transform 0.16s ease;+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ }+ .node-outline-item:hover,+ .node-outline-item:focus-visible,+ .node-outline-item[data-previewing] { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .node-outline-item:hover::after,+ .node-outline-item:focus-visible::after { opacity: 0.7; transform: translateX(0); }+ .node-outline-item:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--outline-tone) 60%, transparent); outline-offset: -1.5px; }+ .node-outline-item[aria-current="true"] { background: color-mix(in srgb, var(--outline-tone) 10%, transparent); }+ .node-outline-item[aria-current="true"]::after { opacity: 0; }+ /* Swatches echo the diagram's node cards: tinted fill, hairline stroke. */+ .node-outline-dot {+ width: 0.625rem;+ height: 0.5rem;+ border: 1.25px solid var(--outline-tone);+ border-radius: 0.15rem;+ background: color-mix(in srgb, var(--outline-tone) 16%, var(--bg));+ transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;+ }+ .node-outline-item:hover .node-outline-dot,+ .node-outline-item:focus-visible .node-outline-dot,+ .node-outline-item[data-previewing] .node-outline-dot,+ .node-outline-item[aria-current="true"] .node-outline-dot {+ background: var(--outline-tone);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--outline-tone) 18%, transparent);+ transform: scale(1.08);+ }+ .node-outline-item strong {+ overflow: hidden;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-outline-item[aria-current="true"] strong { font-weight: 600; }+ .node-outline-item small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: right;+ text-overflow: ellipsis;+ white-space: nowrap;+ transition: color 0.16s ease;+ }+ .node-outline-item:hover small,+ .node-outline-item[data-previewing] small,+ .node-outline-item[aria-current="true"] small { color: var(--text-muted); }++ .card-header {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin-bottom: 0.625rem;+ }++ .card-dot {+ flex: none;+ width: 8px;+ height: 8px;+ border-radius: 50%;+ }++ .card-dot.cyan { background: var(--frontend-stroke); }+ .card-dot.emerald { background: var(--backend-stroke); }+ .card-dot.violet { background: var(--database-stroke); }+ .card-dot.amber { background: var(--cloud-stroke); }+ .card-dot.rose { background: var(--security-stroke); }+ .card-dot.orange { background: var(--messagebus-stroke); }+ .card-dot.slate { background: var(--external-stroke); }++ .card h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--text); }++ .card ul {+ list-style: none;+ color: var(--text-muted);+ font-size: 0.8125rem;+ line-height: 1.6;+ }++ .card li {+ position: relative;+ margin-bottom: 0.3rem;+ padding-left: 0.9rem;+ }+ .card li:last-child { margin-bottom: 0; }+ /* Hanging markers take the card's tone so wrapped lines align under text. */+ .card li::before {+ position: absolute;+ top: calc(0.8em - 2px);+ left: 0.2rem;+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: color-mix(in srgb, var(--card-tone, var(--text-muted)) 70%, transparent);+ content: "";+ }+ .card:has(.card-dot.cyan) { --card-tone: var(--frontend-stroke); }+ .card:has(.card-dot.emerald) { --card-tone: var(--backend-stroke); }+ .card:has(.card-dot.violet) { --card-tone: var(--database-stroke); }+ .card:has(.card-dot.amber) { --card-tone: var(--cloud-stroke); }+ .card:has(.card-dot.rose) { --card-tone: var(--security-stroke); }+ .card:has(.card-dot.orange) { --card-tone: var(--messagebus-stroke); }+ .card:has(.card-dot.slate) { --card-tone: var(--external-stroke); }+ .card-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-tone, transparent) 16%, transparent); }++ /* ==========================================================+ Print stylesheet — hide interactive controls, force light,+ drop the grid so the diagram doesn't waste ink, use landscape+ so wide diagrams fit, pack summary cards into 2 columns to+ avoid an orphan card on a trailing page.+ ========================================================== */+ @page { size: landscape; margin: 1.5cm; }++ @media print {+ /* Force the FULL light palette — including component fills/strokes and+ lane/arrow colors — so printing from dark theme doesn't put neon+ strokes and translucent dark fills on white paper. */+ :root, [data-theme="dark"], [data-theme="light"] {+ --bg: #ffffff;+ --grid: transparent;+ --panel: #ffffff;+ --panel-border: #e2e8f0;+ --text: #0f172a;+ --text-muted: #475569;+ --text-dim: #94a3b8;+ --text-faint: #64748b;+ --mask: #ffffff;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;+ --arrow: #94a3b8;+ --arrow-emphasis: #059669;+ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke:#ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;+ }+ body { background: #ffffff !important; padding: 0; }+ .container { max-width: none; }+ .toolbar, .diagram-nav, .focus-chip, .archify-toast, .no-print { display: none !important; }++ .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }+ .diagram-container { --archify-nav-reserve: 0px !important; }+ html[data-preset="signal-flow"] .diagram-container,+ html[data-preset="signal-flow"] .card { background: #ffffff; }+ .cards { grid-template-columns: 1fr 1fr; }+ /* Ensure elements break sensibly across pages */+ .card { break-inside: avoid; page-break-inside: avoid; }+ .diagram-container { break-inside: avoid; page-break-inside: avoid; }+ .diagram-container svg [data-detail] {+ opacity: 1 !important;+ pointer-events: auto !important;+ }+ .diagram-container svg [data-detail-anchor] { transform: none !important; }+ .diagram-container svg[data-lens-active] [data-node-id],+ .diagram-container svg[data-lens-active] [data-edge-from],+ .diagram-container svg[data-legend-preview-active] [data-node-id],+ .diagram-container svg[data-legend-preview-active] [data-edge-from] {+ opacity: 1 !important;+ filter: none !important;+ }+ [data-legend-bridge-runtime] { display: none !important; }+ .semantic-lens-overlay { display: none !important; }+ .relationship-hit-overlay { display: none !important; }+ .relationship-pulse-overlay { display: none !important; }+ .route-probe-overlay, .route-journey-overlay { display: none !important; }+ .diagram-container svg[data-focus-active] [data-node-id],+ .diagram-container svg[data-focus-active] [data-edge-from],+ .diagram-container svg[data-focus-active] [data-graph-role="automatic-crossover-underlay"],+ .diagram-container svg[data-reach-active] [data-node-id],+ .diagram-container svg[data-reach-active] [data-edge-from],+ .diagram-container svg[data-reach-active] [data-graph-role="automatic-crossover-underlay"],+ .diagram-container svg[data-route-active] [data-node-id],+ .diagram-container svg[data-route-active] [data-edge-from],+ .diagram-container svg[data-route-active] [data-graph-role="automatic-crossover-underlay"] {+ opacity: 1 !important;+ filter: none !important;+ animation: none !important;+ }+ h1, .subtitle { color: #0f172a; }+ }++ /* ==========================================================+ TOOLBAR (theme toggle + export menu)+ ========================================================== */+ /* The toolbar tracks the centered reader column and the title row, so+ an adaptive narrow reader does not leave its controls stranded at the+ viewport edge. */+ .toolbar {+ position: absolute;+ top: var(--archify-page-top);+ right: max(1rem, calc((100vw - min(100vw - 4rem, var(--archify-reader-width, 1440px))) / 2));+ display: flex;+ align-items: center;+ gap: 0.125rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;+ z-index: 100;+ }+ /* Ghost controls keep a 44px hit area while the visible pill stays compact;+ Export is the one primary action. */+ .toolbar button {+ position: relative;+ isolation: isolate;+ background: transparent;+ color: var(--text-muted);+ border: 0;+ padding: 0.5rem 0.75rem;+ border-radius: 0.5625rem;+ font-family: inherit;+ font-size: 0.8125rem;+ font-weight: 500;+ cursor: pointer;+ white-space: nowrap;+ box-shadow: none;+ transition: color 0.15s;+ display: inline-flex;+ align-items: center;+ gap: 0.4rem;+ min-height: 2.75rem;+ }+ .toolbar button::before {+ position: absolute;+ z-index: -1;+ inset: 0.375rem 0;+ border-radius: 0.5rem;+ background: transparent;+ content: "";+ transition: background 0.15s, box-shadow 0.15s;+ }+ .toolbar button:hover { color: var(--text); }+ .toolbar button:hover::before { background: color-mix(in srgb, var(--text) 6%, transparent); }+ .toolbar button[aria-expanded="true"],+ .toolbar button[aria-pressed="true"]:not(#btn-theme) { color: var(--text); }+ .toolbar button[aria-expanded="true"]::before,+ .toolbar button[aria-pressed="true"]:not(#btn-theme)::before {+ background: color-mix(in srgb, var(--text) 8%, transparent);+ }+ .toolbar #btn-export {+ margin-left: 0.375rem;+ padding-right: 0.95rem;+ padding-left: 1rem;+ color: var(--bg);+ font-weight: 550;+ }+ .toolbar #btn-export::before {+ background: var(--text);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -8px rgba(15, 23, 42, 0.4);+ }+ .toolbar #btn-export:hover,+ .toolbar #btn-export[aria-expanded="true"] { color: var(--bg); }+ .toolbar #btn-export:hover::before,+ .toolbar #btn-export[aria-expanded="true"]::before { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }+ .toolbar button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -4px;+ }+ .toolbar { gap: 0.5rem; }+ .toolbar #btn-export { margin-left: 0; }+ .toolbar #btn-export::before { inset: 0.25rem 0; border-radius: 0.6875rem; }+ /* Tools share one quiet capsule; the capsule is drawn inside the 44px row+ so the controls keep their hit area without a tall visible box. */+ .toolbar-group {+ position: relative;+ isolation: isolate;+ display: flex;+ align-items: center;+ gap: 0.0625rem;+ padding: 0 0.25rem;+ }+ .toolbar-group::before {+ position: absolute;+ z-index: -1;+ inset: 0.25rem 0;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 0.6875rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.22);+ backdrop-filter: blur(12px);+ content: "";+ }+ .toolbar-group button { padding-inline: 0.625rem; }+ .toolbar-group button::before { inset: 0.5rem 0; border-radius: 0.5rem; }+ /* Theme becomes a sliding switch; its label stays for assistive tech. */+ .toolbar #theme-label,+ .toolbar #present-label {+ position: absolute;+ width: 1px;+ height: 1px;+ overflow: hidden;+ clip: rect(0 0 0 0);+ white-space: nowrap;+ }+ .toolbar #btn-theme {+ width: 3.5rem;+ padding: 0;+ justify-content: center;+ }+ .toolbar #btn-theme::before {+ inset: 0.75rem 0.4375rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 9%, transparent);+ box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);+ }+ .toolbar #btn-theme:hover::before { background: color-mix(in srgb, var(--text) 13%, transparent); }+ .toolbar #btn-theme::after {+ position: absolute;+ z-index: 0;+ top: 50%;+ left: 0.5625rem;+ width: 1.125rem;+ height: 1.125rem;+ border-radius: 50%;+ background: var(--panel);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);+ content: "";+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ .toolbar #theme-icon {+ position: absolute;+ z-index: 1;+ top: 50%;+ left: calc(0.5625rem + 0.1875rem);+ width: 0.75rem;+ height: 0.75rem;+ color: var(--cloud-stroke);+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ [data-theme="dark"] .toolbar #btn-theme::before { background: rgba(148, 163, 184, 0.16); }+ [data-theme="dark"] .toolbar #btn-theme::after { left: calc(100% - 0.5625rem - 1.125rem); background: #3b4a63; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }+ [data-theme="dark"] .toolbar #theme-icon { left: calc(100% - 0.5625rem - 1.125rem + 0.1875rem); color: #c7d2fe; }+ .toolbar #btn-present { width: 2.5rem; padding: 0; justify-content: center; }+ .toolbar #btn-present .toolbar-icon { width: 1rem; height: 1rem; }+ html[data-motion="still"] .toolbar #btn-theme::after,+ html[data-motion="still"] .toolbar #theme-icon { transition: none; }+ html[data-present="true"]:not([data-embed="true"]) .toolbar { right: 1rem; }+ html[data-preset="editorial"] .toolbar { border-radius: 0.45rem; }+ .toolbar #btn-motion[hidden] { display: none !important; }+ .toolbar #btn-motion { min-width: 4.4rem; }+ .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E");+ }+ [data-theme="dark"] #theme-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .toolbar-chevron {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ }+ .toolbar #btn-preset { min-width: 5.4rem; }+ .preset-control-mark {+ width: 0.58rem;+ height: 0.58rem;+ flex: 0 0 auto;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.2rem;+ background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);+ transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;+ }+ #btn-preset[data-preset-option="signal-flow"] .preset-control-mark {+ border-radius: 50%;+ box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);+ }+ #btn-preset[data-preset-option="blueprint"] .preset-control-mark {+ border-radius: 0.06rem;+ background: transparent;+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);+ transform: rotate(45deg) scale(0.84);+ }+ #btn-preset[data-preset-option="editorial"] .preset-control-mark {+ border-color: var(--arrow-emphasis);+ border-radius: 0;+ background: var(--arrow-emphasis);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);+ transform: rotate(45deg) scale(0.72);+ }+ /* Menus anchor to the tools capsule so they open flush under it. */+ .toolbar-group .preset-wrap { position: static; }+ .toolbar .preset-menu {+ position: absolute;+ top: calc(100% + 0.125rem);+ right: 0;+ display: none;+ width: 17.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.375rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 0.875rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ }+ [data-theme="dark"] .toolbar .preset-menu,+ [data-theme="dark"] .toolbar .export-menu {+ border-color: rgba(148, 163, 184, 0.16);+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -12px rgba(0, 0, 0, 0.6);+ }+ /* Menu rows are not toolbar pills: drop the ghost-button pseudo surface. */+ .toolbar .preset-menu button,+ .toolbar .export-menu button { isolation: auto; min-height: 0; }+ .toolbar .preset-menu button::before { display: none; }+ .toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }+ .preset-menu-heading {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.45rem 0.55rem 0.4rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;+ }+ .preset-menu-shortcut {+ display: inline-flex;+ align-items: center;+ gap: 0.35rem;+ font-weight: 500;+ }+ .preset-menu-shortcut kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ }+ .toolbar .preset-option {+ display: grid;+ grid-template-columns: 2.375rem minmax(0, 1fr) 1rem;+ align-items: center;+ gap: 0.75rem;+ width: 100%;+ min-height: 3.125rem;+ margin-top: 0.125rem;+ padding: 0.45rem 0.6rem 0.45rem 0.5rem;+ border: 0;+ border-radius: 0.625rem;+ background: transparent;+ color: var(--text);+ box-shadow: none;+ backdrop-filter: none;+ text-align: left;+ transition: background 0.14s ease;+ }+ .toolbar .preset-option:hover,+ .toolbar .preset-option:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }+ .toolbar .preset-option[aria-checked="true"] { background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent); }+ .toolbar .preset-option:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;+ }+ .preset-option-swatch {+ position: relative;+ width: 2.375rem;+ height: 1.75rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.4375rem;+ background: #0f172a;+ box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 1px 2px rgba(15, 23, 42, 0.12);+ transition: box-shadow 0.14s ease, transform 0.14s ease;+ }+ .toolbar .preset-option:hover .preset-option-swatch { transform: translateY(-1px); }+ .toolbar .preset-option[aria-checked="true"] .preset-option-swatch {+ box-shadow: 0 0 0 2px var(--toolbar-menu-bg), 0 0 0 3.5px var(--frontend-stroke);+ }+ .preset-option-swatch::before,+ .preset-option-swatch::after { position: absolute; content: ""; }+ .preset-option-swatch.classic::before {+ top: 0.42rem;+ right: 0.35rem;+ bottom: 0.42rem;+ left: 0.35rem;+ border: 1px solid #22d3ee;+ border-radius: 0.16rem;+ background: rgba(34, 211, 238, 0.14);+ }+ /* Classic previews the canvas it will actually produce in this theme. */+ [data-theme="light"] .preset-option-swatch.classic {+ background:+ radial-gradient(circle at 1px 1px, #d9dee5 0.6px, transparent 0.9px) 0 0 / 5px 5px,+ #ffffff;+ }+ [data-theme="light"] .preset-option-swatch.classic::before {+ border-color: #1b87a3;+ background: rgba(14, 116, 144, 0.08);+ box-shadow: 0 2px 4px rgba(17, 24, 39, 0.12);+ }+ .preset-option-swatch.signal-flow {+ border-color: #29415f;+ background: linear-gradient(135deg, #07101e 10%, #10243c 100%);+ }+ .preset-option-swatch.signal-flow::before {+ top: 50%;+ right: 0.2rem;+ left: 0.2rem;+ height: 1px;+ background: linear-gradient(90deg, #67e8f9, #c4b5fd);+ box-shadow: 0 0 8px #67e8f9;+ }+ .preset-option-swatch.signal-flow::after {+ top: calc(50% - 0.13rem);+ right: 0.28rem;+ width: 0.26rem;+ height: 0.26rem;+ border-radius: 50%;+ background: #67e8f9;+ box-shadow: 0 0 7px #67e8f9;+ }+ .preset-option-swatch.blueprint {+ border-color: #34799a;+ border-radius: 0.08rem;+ background-color: #0a2031;+ background-image:+ linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),+ linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);+ background-size: 0.42rem 0.42rem;+ }+ .preset-option-swatch.blueprint::before {+ top: 0.34rem;+ right: 0.38rem;+ bottom: 0.34rem;+ left: 0.38rem;+ border: 1px solid #66d9ef;+ }+ .preset-option-swatch.editorial {+ border-color: #b8aa94;+ border-radius: 0.08rem;+ background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);+ }+ .preset-option-swatch.editorial::before {+ top: 0;+ bottom: 0;+ left: 0.42rem;+ width: 1px;+ background: #c9502d;+ opacity: 0.72;+ }+ .preset-option-swatch.editorial::after {+ top: 0.52rem;+ right: 0.45rem;+ width: 0.38rem;+ height: 0.38rem;+ background: #c9502d;+ transform: rotate(45deg);+ }+ .preset-option-copy { min-width: 0; }+ .preset-option-copy strong,+ .preset-option-copy small { display: block; }+ .preset-option-copy strong {+ color: var(--text);+ font-size: 0.8125rem;+ font-weight: 550;+ letter-spacing: -0.005em;+ }+ .toolbar .preset-option[aria-checked="true"] .preset-option-copy strong { font-weight: 650; }+ .preset-option-copy small {+ margin-top: 0.125rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 400;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;+ color: var(--frontend-stroke);+ background: currentColor;+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ opacity: 0;+ }+ .preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }+ html[data-preset="editorial"] .toolbar button,+ html[data-preset="editorial"] .preset-menu,+ html[data-preset="editorial"] .export-menu,+ html[data-preset="editorial"] .overview-map,+ html[data-preset="editorial"] .semantic-lens,+ html[data-preset="editorial"] .route-probe,+ html[data-preset="editorial"] .focus-chip,+ html[data-preset="editorial"] .diagram-guide,+ html[data-preset="editorial"] .node-finder {+ border-radius: 0.3rem;+ }+ .motion-control-dot {+ width: 0.46rem;+ height: 0.46rem;+ flex: 0 0 auto;+ border: 1px solid var(--frontend-stroke);+ border-radius: 50%;+ background: var(--frontend-stroke);+ box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);+ }+ #btn-motion[aria-pressed="false"] .motion-control-dot {+ background: transparent;+ box-shadow: none;+ }+ .toolbar .export-menu {+ position: absolute;+ top: calc(100% + 0.125rem);+ right: 0;+ background: var(--toolbar-menu-bg);+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.375rem;+ display: none;+ flex-direction: column;+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ scrollbar-width: thin;+ }+ .toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.55rem 0.6rem 0.6rem;+ }+ .export-menu-header strong,+ .export-menu-header span { display: block; }+ .export-menu-header strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .export-menu-header span {+ margin-top: 0.15rem;+ color: var(--text-faint);+ font-size: 0.75rem;+ }+ .export-menu-header kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.0625rem;+ }+ .export-menu-section + .export-menu-section {+ margin-top: 0.3rem;+ padding-top: 0.3rem;+ border-top: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.4rem 0.6rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;+ }+ .toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.7rem;+ background: transparent;+ border: 0;+ box-shadow: none;+ backdrop-filter: none;+ width: 100%;+ min-height: 2.5rem;+ text-align: left;+ padding: 0.4rem 0.6rem;+ border-radius: 0.5625rem;+ color: var(--text);+ white-space: nowrap;+ transition: background 0.14s ease;+ }+ .toolbar .export-menu button:hover,+ .toolbar .export-menu button:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }+ .toolbar .export-menu button:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;+ }+ /* Name and format hint share one line, so each row stays compact. */+ .export-item-copy {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 0.75rem;+ min-width: 0;+ }+ .export-item-copy strong {+ overflow: hidden;+ color: inherit;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ flex: none;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 450;+ }+ .toolbar .export-menu button::before {+ position: static;+ z-index: auto;+ inset: auto;+ border-radius: 0;+ display: block;+ width: 1rem;+ height: 1rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0.8;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-format^="svg"]::before,+ .toolbar .export-menu button[data-format="webm"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-action="route-share-card"],+ .toolbar .export-menu button[data-action="reach-share-card"] {+ color: var(--text);+ background: color-mix(in srgb, var(--frontend-stroke) 7%, transparent);+ }+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before { color: var(--frontend-stroke); opacity: 1; }+ .toolbar .export-menu button[hidden] { display: none; }+ .toolbar .export-menu button[data-action="route-share-card"]:hover,+ .toolbar .export-menu button[data-action="reach-share-card"]:hover {+ background: color-mix(in srgb, var(--frontend-stroke) 12%, transparent);+ }+ .toolbar .export-menu button:disabled {+ color: var(--text-faint);+ background: transparent;+ opacity: 0.55;+ cursor: not-allowed;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.6875rem;+ }++ /* Toast — brief feedback for actions like "copied" */+ .archify-toast {+ position: fixed;+ top: 1rem;+ left: 50%;+ transform: translateX(-50%) translateY(-8px);+ background: var(--toolbar-menu-bg);+ color: var(--text);+ border: 1px solid var(--toolbar-border);+ padding: 0.5rem 1rem;+ border-radius: 0.5rem;+ font-family: inherit;+ font-size: 0.75rem;+ opacity: 0;+ transition: opacity 0.2s, transform 0.2s;+ z-index: 200;+ pointer-events: none;+ box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ }+ .archify-toast.show {+ opacity: 1;+ transform: translateX(-50%) translateY(0);+ }++ @media (max-width: 720px) {+ body { padding: 1rem; }+ .toolbar .preset-menu,+ .toolbar .export-menu {+ position: fixed;+ top: 4.5rem;+ right: 1rem;+ left: 1rem;+ width: auto;+ max-width: none;+ }+ .toolbar {+ position: relative;+ top: auto;+ right: auto;+ justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;+ margin-bottom: 1rem;+ }+ .header { margin-bottom: 1.25rem; padding-right: 0; }+ html[data-preset="signal-flow"] .header,+ html[data-preset="blueprint"] .header,+ html[data-preset="editorial"] .header { padding-right: 0; }+ .header-row {+ gap: 0.75rem;+ align-items: flex-start;+ }+ html[data-preset="signal-flow"] .header-row,+ html[data-preset="blueprint"] .header-row,+ html[data-preset="editorial"] .header-row { flex-wrap: wrap; }+ html[data-preset="signal-flow"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ html[data-preset="blueprint"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ html[data-preset="editorial"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ h1 {+ font-size: 1.25rem;+ line-height: 1.25;+ }+ .subtitle {+ margin-left: 0;+ font-size: 0.8125rem;+ line-height: 1.55;+ }+ .diagram-container {+ padding: 0.75rem;+ border-radius: 0.75rem;+ }+ html:not([data-embed="true"]) .diagram-container {+ padding: 0.75rem 0.75rem 4.25rem;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] {+ overflow-x: auto;+ overflow-y: hidden;+ overscroll-behavior-x: contain;+ scrollbar-width: thin;+ scroll-behavior: smooth;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {+ min-width: 720px;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .diagram-nav,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .overview-map,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .focus-chip,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .route-probe,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .semantic-lens,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .diagram-guide,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .node-finder {+ transform: translateX(var(--archify-scroll-x, 0px));+ }+ .diagram-nav { right: 0.5rem; bottom: 0.5rem; }+ .diagram-nav button {+ min-width: 2.75rem;+ height: 2.75rem;+ }+ .diagram-nav [data-view="reset"] { min-width: 3.75rem; }+ .diagram-nav [data-view="reset"][data-detail-visible] { min-width: 4.35rem; }+ .overview-map {+ right: 0.5rem;+ bottom: 3.7rem;+ width: min(10.25rem, calc(100% - 1rem));+ }+ .overview-map[data-docked="true"] {+ right: var(--archify-radar-right, 0.5rem);+ top: var(--archify-radar-top, 0.5rem);+ bottom: auto;+ transform: none !important;+ }+ .overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 0.5rem);+ }+ .overview-map-surface { height: 4rem; }+ .overview-map-feedback { right: 0.5rem; bottom: 3.7rem; }+ .semantic-lens {+ right: 0.5rem;+ bottom: 3.7rem;+ width: calc(100% - 1rem);+ max-height: calc(100% - 4.2rem);+ }+ .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }+ .semantic-lens-kinds { max-height: min(12rem, 34vh); }+ .focus-chip {+ left: 0.5rem;+ top: 0.5rem;+ width: calc(100% - 1rem);+ max-width: none;+ }+ .relationship-lens-head { padding-top: 0.7rem; }+ .relationship-lens-drag-handle { display: none; }+ .relationship-lens-list { max-height: min(12rem, 38vh); }+ .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }+ .focus-chip:not([data-relations-expanded="true"]) .relationship-lens-head { border-bottom-color: transparent; }+ .focus-chip:not([data-relations-expanded="true"]) .relationship-lens-list { display: none; }+ /* While a mobile reader previews one relationship, turn the full Lens+ into a compact peek card. This keeps the exact source and target on+ canvas instead of covering them with a long, scrollable list. */+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-list {+ max-height: none;+ padding: 0.35rem;+ overflow: hidden;+ }+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-group { margin: 0; }+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-group-title,+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-row:not([data-preview-active="true"]) {+ display: none;+ }+ .node-finder {+ top: 0.5rem;+ left: 0.5rem;+ width: min(22rem, calc(100% - 1rem));+ max-height: calc(100% - 1rem);+ }+ .diagram-guide {+ top: 0.5rem;+ right: 0.5rem;+ left: 0.5rem;+ width: auto;+ max-height: calc(100% - 1rem);+ }+ .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }+ .diagram-guide-stats { padding: 0.42rem 0.7rem; }+ .diagram-guide-actions {+ grid-template-columns: 1fr;+ gap: 0.28rem;+ padding: 0.42rem;+ }+ .diagram-guide-action {+ min-height: 3.1rem;+ padding: 0.42rem 0.48rem;+ }+ .diagram-guide-action small {+ display: block;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .diagram-guide-index {+ width: 1.5rem;+ height: 1.5rem;+ }+ .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }+ .diagram-guide-action[data-guide-action="present"] { grid-column: auto; }+ .route-probe[data-guide-open="true"] {+ visibility: hidden;+ pointer-events: none;+ }+ .node-finder-results { max-height: min(16rem, 38vh); }+ .route-probe {+ left: 0.5rem;+ bottom: 3.7rem;+ width: calc(100% - 1rem);+ min-width: 0;+ }+ .route-probe[data-route-dock="top"] {+ top: 0.5rem;+ bottom: auto;+ }+ .route-probe[data-finder-open="true"] {+ visibility: hidden;+ pointer-events: none;+ }+ .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }+ .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }+ .route-probe-node { min-height: 2.75rem !important; }+ .route-journey-controls {+ grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);+ padding: 0.08rem 0.48rem 0.32rem;+ }+ .route-journey-controls button { min-height: 2.75rem; }+ .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }+ .route-probe-node { max-width: 7.5rem; }++++++++++++ html[data-embed="true"][data-share-playback="true"] .diagram-container {+ padding-top: 4.25rem;+ }+ html[data-embed="true"][data-share-moment="true"] .diagram-container {+ padding-top: 4.25rem;+ }++ .cards {+ grid-template-columns: 1fr;+ margin-top: 1rem;+ }+ html[data-present="true"]:not([data-embed="true"]) body { padding: 0.5rem; }+ html[data-present="true"]:not([data-embed="true"]) .container {+ gap: 0.5rem;+ height: calc(100dvh - 1rem);+ }+ html[data-present="true"]:not([data-embed="true"]) .toolbar {+ position: fixed;+ top: 0.5rem;+ right: 0.5rem;+ margin: 0;+ gap: 0.25rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .toolbar button {+ min-height: 2.75rem;+ padding: 0.42rem 0.58rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .header {+ min-height: 2.25rem;+ padding: 3.5rem 0 0;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row {+ min-height: 2.25rem;+ margin: 0;+ align-items: center;+ flex-wrap: nowrap;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row::after,+ html[data-present="true"]:not([data-embed="true"]) .pulse-dot,+ html[data-present="true"]:not([data-embed="true"]) .subtitle { display: none; }+ html[data-present="true"]:not([data-embed="true"]) h1 {+ flex: 1 1 auto;+ min-width: 0;+ max-width: 100%;+ overflow: hidden;+ font-size: 0.875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ html[data-present="true"]:not([data-embed="true"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }+ html[data-present="true"]:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {+ width: 720px;+ height: auto;+ min-width: 720px;+ }+ }++ @media (max-width: 420px) {+ .export-menu-section { grid-template-columns: 1fr; }+ .export-menu-heading,+ .toolbar .export-menu button[data-action="route-share-card"],+ .toolbar .export-menu button[data-action="reach-share-card"] { grid-column: 1; }+ }++ @media (prefers-reduced-motion: reduce) {+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open { animation: none; }+ .toolbar-chevron { transition: none; }+ }++ @media (max-width: 360px) {+ .toolbar { gap: 0.25rem; }+ .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }+ .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }+ #theme-label, #preset-label, #present-label { display: none; }+ }++ /* ==========================================================+ SVG SEMANTIC CLASSES — use these instead of inline fill/stroke+ ========================================================== */+ .c-grid { stroke: var(--grid); fill: none; }+ .c-mask { fill: var(--mask); stroke: none; }+ .c-lane-rule { stroke: var(--lane-stroke); fill: none; opacity: 0.7; }+ .c-lane-wash { fill: var(--lane-fill); stroke: none; }++ .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }+ .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }+ .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }+ .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }+ .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }+ .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }+ .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }++ /* Text helpers */+ .t-primary { fill: var(--text); }+ .t-muted { fill: var(--text-muted); }+ .t-dim { fill: var(--text-dim); }+ .t-frontend { fill: var(--frontend-stroke); }+ .t-backend { fill: var(--backend-stroke); }+ .t-database { fill: var(--database-stroke); }+ .t-cloud { fill: var(--cloud-stroke); }+ .t-security { fill: var(--security-stroke); }+ .t-messagebus { fill: var(--messagebus-stroke); }+ .t-external { fill: var(--external-stroke); }++ /* Relationship labels share the exact color token used by their path. */+ .t-edge-default { fill: var(--arrow); }+ .t-edge-emphasis { fill: var(--arrow-emphasis); }+ .t-edge-security { fill: var(--security-stroke); }+ .t-edge-dashed { fill: var(--database-stroke); }++ /* Classic canvas: a quiet dot field replaces drafting grid lines, and nodes+ read as lifted cards with hairline strokes. Paint only; authored geometry,+ hit areas and exports keep their canonical shapes. */+ html[data-preset="classic"] .diagram-container {+ background:+ radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.4px) 0 0 / 20px 20px,+ var(--panel);+ }+ html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }+ html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ }+ html[data-preset="classic"] .diagram-container > svg [data-edge-from] {+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ html[data-preset="classic"] .diagram-container > svg .c-lane-wash { fill: color-mix(in srgb, var(--text) 2.6%, transparent); }+ html[data-preset="classic"] .diagram-container > svg .c-lane-rule { stroke: var(--panel-border); opacity: 1; }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg .c-lane-rule { stroke: rgba(148, 163, 184, 0.16); }+ html[data-preset="classic"] .diagram-container > svg [data-node-id] {+ transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);+ }+ html[data-preset="classic"]:not([data-motion="still"]) .diagram-container > svg [data-node-id]:hover {+ transform: translateY(-1.5px);+ }++ /* Semantic Sigils are small authored role stamps, not icons from a brand+ pack and not viewer controls. Prefix selectors with svg so the canonical+ export's SVG-only stylesheet collector keeps them automatically. */+ svg .semantic-sigil {+ fill: none;+ stroke: currentColor;+ stroke-width: 1.35;+ stroke-linecap: round;+ stroke-linejoin: round;+ opacity: 0.76;+ pointer-events: none;+ }+ svg .semantic-sigil > * { vector-effect: non-scaling-stroke; }+ svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }+ svg .s-frontend { color: var(--frontend-stroke); }+ svg .s-backend { color: var(--backend-stroke); }+ svg .s-database { color: var(--database-stroke); }+ svg .s-cloud { color: var(--cloud-stroke); }+ svg .s-security { color: var(--security-stroke); }+ svg .s-messagebus { color: var(--messagebus-stroke); }+ svg .s-external { color: var(--external-stroke); }++ /* Brand Marks are authored identity badges. Their color is contained+ inside one neutral plate so vendor color never replaces Archify's+ semantic node and relationship vocabulary. */+ svg .brand-mark { pointer-events: none; }+ svg .brand-mark-badge { fill: #fff; stroke: none; }+ svg .brand-mark-frame {+ fill: none;+ stroke: #cbd5e1;+ stroke-width: 0.8;+ vector-effect: non-scaling-stroke;+ }+ svg .brand-mark-fallback {+ fill: none;+ stroke: #475569;+ stroke-width: 1.15;+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ svg[data-preset="blueprint"] .brand-mark-badge,+ svg[data-preset="blueprint"] .brand-mark-frame { rx: 1px; }++ /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the+ authored structure and primary labels, READ restores relationship labels+ and node context, and FULL restores tags and fine annotations. Semantic+ intent can reveal the relevant detail without moving any geometry. */+ svg [data-detail] { transition: opacity 160ms ease; }+ svg [data-detail-anchor] {+ transform-box: fill-box;+ transform-origin: center;+ transition: transform 160ms ease;+ }+ .diagram-container[data-detail-level="map"] svg [data-detail="context"],+ .diagram-container[data-detail-level="map"] svg [data-detail="fine"],+ .diagram-container[data-detail-level="read"] svg [data-detail="fine"] {+ opacity: 0;+ pointer-events: none;+ }+ .diagram-container[data-detail-level="map"] svg [data-detail-anchor] {+ transform: translateY(8px);+ }++ /* Focus, lens, preview, route, and story states are stronger reader intent than+ the global zoom level. Reveal only their exact semantic matches. */+ svg[data-focus-active] [data-focus-match][data-detail],+ svg[data-focus-active] [data-focus-match] [data-detail],+ svg[data-reach-active] [data-reach-match][data-detail],+ svg[data-reach-active] [data-reach-match] [data-detail],+ svg[data-lens-active] [data-lens-match][data-detail],+ svg[data-lens-active] [data-lens-match] [data-detail],+ svg[data-legend-preview-active] [data-legend-preview-match][data-detail],+ svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],+ svg[data-intent-trace-active] [data-intent-trace-match][data-detail],+ svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],+ svg[data-route-active] [data-route-match][data-detail],+ svg[data-route-active] [data-route-match] [data-detail],+ svg[data-relationship-preview-active] [data-relationship-preview][data-detail],+ svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],+ svg [data-node-id]:hover [data-detail],+ svg [data-node-id]:focus-visible [data-detail] {+ opacity: 1;+ pointer-events: auto;+ }+ svg[data-focus-active] [data-focus-match] [data-detail-anchor],+ svg[data-reach-active] [data-reach-match] [data-detail-anchor],+ svg[data-lens-active] [data-lens-match] [data-detail-anchor],+ svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],+ svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],+ svg[data-route-active] [data-route-match] [data-detail-anchor],+ svg [data-node-id]:hover [data-detail-anchor],+ svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }++ /* Arrows */+ .a-default { stroke: var(--arrow); fill: none; }+ .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }+ .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }+ .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }++ /* Arrowhead markers reference these */+ .m-default { fill: var(--arrow); }+ .m-emphasis { fill: var(--arrow-emphasis); }+ .m-security { fill: var(--security-stroke); }+ .m-dashed { fill: var(--database-stroke); }++ /* Stable semantic exploration hooks emitted by every renderer. */+ svg [data-node-id] {+ cursor: pointer;+ transition: opacity 0.18s ease, fill-opacity 0.18s ease, stroke-opacity 0.18s ease, filter 0.18s ease;+ }+ svg [data-edge-from],+ svg [data-graph-role="automatic-crossover-underlay"] { transition: opacity 0.18s ease, filter 0.18s ease; }+ svg [data-node-id]:hover,+ svg [data-node-id]:focus-visible {+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ outline: none;+ }+ /* Verified Source Beacons are installed at runtime only for nodes whose+ repository evidence passed the local revision/blob/line checks. They+ live inside the owning node so every focus, route, story, and guided+ view keeps one coherent opacity state. Export serialization removes+ them before producing the canonical SVG or any derived visual. */+ .source-evidence-beacon {+ pointer-events: none;+ opacity: 1;+ transition: filter 160ms ease;+ }+ .source-evidence-beacon rect {+ fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));+ stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));+ stroke-width: 1;+ vector-effect: non-scaling-stroke;+ }+ .source-evidence-beacon text {+ fill: var(--backend-stroke);+ font-size: 7px;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-anchor: middle;+ text-transform: uppercase;+ }+ svg [data-node-id]:hover .source-evidence-beacon,+ svg [data-node-id]:focus-visible .source-evidence-beacon,+ svg [data-node-id][data-focus-selected] .source-evidence-beacon {+ opacity: 1;+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));+ }+ svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }+ svg[data-preset="blueprint"] .source-evidence-beacon rect {+ rx: 0.8px;+ filter: none;+ }+ svg [data-legend-kind][role="button"] { cursor: pointer; }+ svg [data-legend-kind]:focus { outline: none; }+ svg [data-legend-hit] {+ fill: transparent;+ stroke: transparent;+ stroke-width: 1.4;+ pointer-events: all;+ vector-effect: non-scaling-stroke;+ transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;+ }+ svg [data-legend-count-badge] { pointer-events: none; }+ svg [data-legend-count-badge] rect {+ fill: var(--mask);+ stroke: var(--panel-border);+ stroke-width: 1;+ vector-effect: non-scaling-stroke;+ }+ svg [data-legend-count-badge] text {+ fill: var(--text-muted);+ font-size: 8px;+ font-weight: 700;+ text-anchor: middle;+ }+ svg [data-legend-kind][role="button"]:hover [data-legend-hit] {+ stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);+ }+ svg [data-legend-kind][role="button"]:focus-visible [data-legend-hit] {+ stroke: var(--frontend-stroke);+ stroke-width: 1.8;+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg [data-legend-kind][data-legend-selected] [data-legend-hit] {+ stroke: var(--database-stroke);+ stroke-width: 2.2;+ stroke-dasharray: 3 2;+ }+ svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {+ stroke: var(--database-stroke);+ stroke-width: 1.8;+ }+ svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }+ svg[data-preset="signal-flow"] [data-legend-kind][data-legend-selected] [data-legend-hit] {+ filter: drop-shadow(0 0 4px var(--database-stroke));+ }+ svg[data-preset="blueprint"] [data-legend-hit],+ svg[data-preset="blueprint"] [data-legend-count-badge] rect { rx: 0; filter: none; }+ svg[data-legend-preview-active] [data-node-id],+ svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }+ svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }+ svg[data-legend-preview-active] [data-legend-preview-selected] {+ filter: drop-shadow(0 0 8px var(--database-stroke));+ }+ svg[data-lens-active] [data-node-id],+ svg[data-lens-active] [data-edge-from] { opacity: 0.11; }+ svg[data-lens-active] [data-lens-match] { opacity: 1; }+ svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }+ svg[data-lens-active] [data-lens-selected] {+ filter: drop-shadow(0 0 10px var(--database-stroke));+ }+ .semantic-lens-overlay { pointer-events: none; }+ .semantic-lens-flow {+ fill: none;+ stroke-width: 3.05;+ stroke-linecap: round;+ stroke-dasharray: 0.075 0.925;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.9;+ animation: archify-semantic-lens-flow 1.35s linear 1 both;+ animation-delay: var(--lens-flow-delay, 0s);+ }+ .semantic-lens-flow[data-direction="out"],+ .semantic-lens-flow[data-direction="forward"] {+ stroke: var(--frontend-stroke);+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ .semantic-lens-flow[data-direction="in"],+ .semantic-lens-flow[data-direction="reverse"] {+ stroke: var(--database-stroke);+ filter: drop-shadow(0 0 3px var(--database-stroke));+ }+ .semantic-lens-flow[data-direction="within"] {+ stroke: var(--messagebus-stroke);+ filter: drop-shadow(0 0 3px var(--messagebus-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow {+ stroke-width: 3.7;+ opacity: 1;+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="out"],+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="forward"] {+ filter: drop-shadow(0 0 6px var(--frontend-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="in"],+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="reverse"] {+ filter: drop-shadow(0 0 6px var(--database-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="within"] {+ filter: drop-shadow(0 0 6px var(--messagebus-stroke));+ }+ svg[data-preset="blueprint"] .semantic-lens-flow {+ stroke-width: 2.45;+ stroke-linecap: square;+ filter: none;+ opacity: 0.78;+ }+ html[data-embed="true"] .semantic-lens-overlay { display: none; }+ /* Automatic crossover masks are visual companions of their one semantic+ edge. Keep the mask free of data-edge-* identity so graph traversal and+ export still observe exactly one edge, then mirror reader emphasis from+ the paired foreground path in this presentation-only wrapper. */+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-match]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-peer]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-peer]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-focus-active] [data-node-id],+ svg[data-focus-active] [data-edge-from] { opacity: 0.13; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.13; }+ svg[data-focus-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-focus-active] [data-focus-match] { opacity: 1; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }++ /* Authored Reachability is a bounded graph query over the relationships+ already present in the artifact. Upstream walks incoming edges;+ downstream walks outgoing edges. It never claims runtime causality and+ changes only viewer emphasis, not canonical geometry or export bytes. */+ svg[data-reach-active] [data-node-id],+ svg[data-reach-active] [data-edge-from] { opacity: 0.09; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.09; }+ svg[data-reach-active] [data-reach-match] { opacity: 1; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"]:has(> [data-reach-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-reach-active="upstream"] [data-reach-origin] {+ filter: drop-shadow(0 0 11px var(--database-stroke));+ }+ svg[data-reach-active="downstream"] [data-reach-origin] {+ filter: drop-shadow(0 0 11px var(--backend-stroke));+ }+ svg[data-reach-active="upstream"] [data-edge-from][data-reach-match] {+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));+ }+ svg[data-reach-active="downstream"] [data-edge-from][data-reach-match] {+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));+ }+ svg[data-preset="blueprint"][data-reach-active] [data-reach-origin],+ svg[data-preset="blueprint"][data-reach-active] [data-edge-from][data-reach-match] {+ filter: none;+ }++ /* Direct Relationship Explorer makes authored paths a real input surface+ without changing their visible stroke or canonical SVG. A transparent+ runtime rail supplies forgiving pointer geometry; the exact authored+ path and endpoints continue to carry every visible state. */+ .relationship-hit-overlay { pointer-events: none; }+ .relationship-hit-target { outline: none; }+ .relationship-hit-rail {+ fill: none;+ stroke: transparent;+ stroke-width: 24;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ pointer-events: stroke;+ cursor: pointer;+ }+ .relationship-focus-rail {+ fill: none;+ stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);+ stroke-width: 6;+ stroke-dasharray: 2 4;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ opacity: 0;+ }+ .relationship-hit-target:focus-visible .relationship-focus-rail {+ opacity: 1;+ }+ svg[data-preset="blueprint"] .relationship-hit-target:focus-visible .relationship-focus-rail {+ stroke-linecap: square;+ filter: none;+ }+ svg[data-relationship-direct-active] [data-node-id],+ svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-relationship-preview],+ svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,+ svg[data-route-picking] .relationship-hit-rail,+ svg[data-route-active] .relationship-hit-rail,+ svg[data-lens-active] .relationship-hit-rail { pointer-events: none; }+ html[data-embed="true"] .relationship-hit-overlay { display: none; }+ @media (hover: none), (pointer: coarse) {+ .relationship-hit-rail { stroke-width: 24; }+ }++ /* Relationship Preview is temporary exploration state layered on top of+ neighborhood focus. It changes emphasis only; exported geometry and the+ relationship's original solid/dashed visual language stay untouched. */+ svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-relationship-preview-active] [data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-relationship-preview-active] [data-relationship-preview] {+ filter: drop-shadow(0 0 5px var(--arrow-emphasis));+ }+ svg[data-relationship-preview-active] [data-relationship-preview] path,+ svg[data-relationship-preview-active] path[data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview] line,+ svg[data-relationship-preview-active] line[data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview] polyline,+ svg[data-relationship-preview-active] polyline[data-relationship-preview] {+ stroke-width: 2.75;+ }+ svg[data-relationship-preview-active] [data-relationship-preview-source] {+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ }+ svg[data-relationship-preview-active] [data-relationship-preview-target] {+ filter: drop-shadow(0 0 7px var(--database-stroke));+ }+ .relationship-pulse-overlay { pointer-events: none; }+ .relationship-flow-pulse {+ fill: none;+ stroke: var(--arrow-emphasis);+ stroke-width: 3.35;+ stroke-linecap: round;+ stroke-dasharray: 0.085 0.915;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0;+ filter: drop-shadow(0 0 4px var(--arrow-emphasis));+ animation: archify-relationship-pulse 1.2s linear 1 both;+ }+ svg[data-preset="signal-flow"] .relationship-flow-pulse {+ stroke: var(--frontend-stroke);+ stroke-width: 3.85;+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"] .relationship-flow-pulse {+ stroke-width: 2.5;+ stroke-linecap: square;+ filter: none;+ }+ svg[data-preset="editorial"] .relationship-flow-pulse {+ stroke: var(--arrow-emphasis);+ stroke-width: 2.75;+ filter: none;+ }+ .semantic-flow-token {+ color: var(--frontend-stroke);+ opacity: 0;+ pointer-events: none;+ }+ .relationship-flow-token {+ animation: archify-relationship-token-life 1.2s linear 1 both;+ }++ .semantic-flow-token-halo {+ fill: var(--mask);+ stroke: currentColor;+ stroke-width: 1.1;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ }+ .relationship-flow-token-shape {+ fill: var(--mask);+ stroke: currentColor;+ stroke-width: 1.35;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ }+ .relationship-flow-token-ink {+ fill: none;+ stroke: currentColor;+ stroke-width: 1.05;+ stroke-linecap: round;+ vector-effect: non-scaling-stroke;+ }+ .relationship-flow-token-dot { fill: currentColor; stroke: none; }+ .semantic-flow-token[data-token-kind="data"] { color: var(--database-stroke); }+ .semantic-flow-token[data-token-kind="event"] { color: var(--messagebus-stroke); }+ .semantic-flow-token[data-token-kind="security"] { color: var(--security-stroke); }+ .semantic-flow-token[data-token-kind="state"] { color: var(--cloud-stroke); }+ svg[data-preset="signal-flow"] .semantic-flow-token {+ filter: drop-shadow(0 0 5px currentColor);+ }+ svg[data-preset="blueprint"] .semantic-flow-token { filter: none; }+ svg[data-preset="editorial"] .semantic-flow-token { filter: none; }+ html[data-embed="true"] .relationship-pulse-overlay { display: none; }++ /* Intent Trace is a temporary, pre-click exploration layer. Related+ topology stays readable while a short viewer-only signal runs over+ cloned edge geometry; the authored edge remains untouched underneath. */+ /* Keep the node's opaque backing mask intact while its visible ink dims.+ Fading the whole group also fades that mask and briefly exposes arrows+ routed underneath the node when the pointer leaves. */+ svg[data-intent-trace-active] [data-node-id] { fill-opacity: 0.2; stroke-opacity: 0.2; }+ svg [data-node-id] > .c-mask { fill-opacity: 1; }+ svg[data-intent-trace-active] [data-node-id][data-intent-trace-match] { fill-opacity: 1; stroke-opacity: 1; }+ svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"]:has(> [data-intent-trace-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-intent-trace-active] [data-intent-trace-selected] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }+ .intent-trace-overlay { pointer-events: none; }+ .intent-trace-flow {+ fill: none;+ stroke-width: 3.1;+ stroke-linecap: round;+ stroke-dasharray: 0.1 0.9;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.94;+ animation: archify-intent-trace-flow 1.15s linear 1 both;+ }+ /* Direction names describe each edge relative to the focused node only.+ The cloned geometry already runs from the authored source to target, so+ incoming and outgoing signals must share the same playback direction. */+ .intent-trace-flow[data-direction="out"] {+ stroke: var(--frontend-stroke);+ filter: drop-shadow(0 0 4px var(--frontend-stroke));+ }+ .intent-trace-flow[data-direction="in"] {+ stroke: var(--database-stroke);+ filter: drop-shadow(0 0 4px var(--database-stroke));+ animation-direction: normal;+ }+ .intent-trace-flow[data-direction="loop"] {+ stroke: var(--security-stroke);+ filter: drop-shadow(0 0 4px var(--security-stroke));+ }+ svg[data-preset="blueprint"] [data-intent-trace-selected],+ svg[data-preset="blueprint"] .intent-trace-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="editorial"] [data-intent-trace-selected],+ svg[data-preset="editorial"] .intent-trace-flow { filter: none; }+ .intent-trace-status {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ clip-path: inset(50%);+ white-space: nowrap;+ border: 0;+ }++ /* Route Probe separates a durable two-point query from selection and+ one-hop hover. Only the chosen shortest directed path stays prominent;+ the traveling signal is cloned viewer geometry and never authored SVG. */+ svg[data-route-picking="target"] [data-node-id] { opacity: 0.24; }+ svg[data-route-picking="target"] [data-route-candidate],+ svg[data-route-picking="target"] [data-route-start] { opacity: 1; }+ svg[data-route-picking] [data-node-id] { cursor: crosshair; }+ svg[data-route-picking] [data-route-start] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }+ svg[data-route-active] [data-node-id],+ svg[data-route-active] [data-edge-from] { opacity: 0.11; }+ svg[data-route-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-route-active] [data-route-match] { opacity: 1; }+ svg[data-route-active] [data-graph-role="automatic-crossover"]:has(> [data-route-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-route-active] [data-route-start] {+ filter: drop-shadow(0 0 11px var(--frontend-stroke));+ }+ svg[data-route-active] [data-route-end] {+ filter: drop-shadow(0 0 11px var(--security-stroke));+ }+ svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {+ filter: drop-shadow(0 0 7px var(--backend-stroke));+ }+ svg[data-route-journey] [data-route-match][data-route-journey-state="past"] { opacity: 0.62; }+ svg[data-route-journey] [data-route-match][data-route-journey-state="future"] { opacity: 0.34; }+ svg[data-route-journey] [data-route-match][data-route-journey-state="current"] { opacity: 1; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="past"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="future"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.34; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="current"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-route-journey] [data-node-id][data-route-journey-current] {+ filter: drop-shadow(0 0 10px var(--backend-stroke));+ }+ svg[data-route-journey] [data-edge-from][data-route-journey-current] {+ opacity: 1;+ filter: drop-shadow(0 0 6px var(--backend-stroke));+ }+ .route-probe-overlay { pointer-events: none; }+ .route-journey-overlay { pointer-events: none; }+ .route-probe-flow {+ fill: none;+ stroke: var(--backend-stroke);+ stroke-width: 3.25;+ stroke-linecap: round;+ stroke-dasharray: 0.085 0.915;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ filter: drop-shadow(0 0 5px var(--backend-stroke));+ animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;+ animation-delay: calc(var(--route-step, 0) * 0.16s);+ }+ .route-journey-flow {+ fill: none;+ stroke: var(--backend-stroke);+ stroke-width: 3.5;+ stroke-linecap: round;+ stroke-dasharray: 0.1 0.9;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0;+ filter: drop-shadow(0 0 6px var(--backend-stroke));+ animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;+ }+ svg[data-preset="blueprint"] [data-route-start],+ svg[data-preset="blueprint"] [data-route-end],+ svg[data-preset="blueprint"] [data-route-step],+ svg[data-preset="blueprint"] .route-probe-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="blueprint"] .route-journey-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="editorial"] [data-route-start],+ svg[data-preset="editorial"] [data-route-end],+ svg[data-preset="editorial"] [data-route-step],+ svg[data-preset="editorial"] .route-probe-flow,+ svg[data-preset="editorial"] .route-journey-flow { filter: none; }++ svg[data-preset="editorial"] .c-grid {+ stroke-dasharray: 1 4;+ opacity: 0.48;+ }+ svg[data-preset="editorial"] .c-region {+ fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);+ stroke-dasharray: 9 4;+ }+ svg[data-preset="editorial"] [data-node-id]:hover,+ svg[data-preset="editorial"] [data-node-id]:focus-visible,+ svg[data-preset="editorial"][data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));+ }++ svg[data-preset="blueprint"] .c-grid {+ stroke-dasharray: 1 3;+ opacity: 0.78;+ }+ svg[data-preset="blueprint"] .c-region {+ fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);+ stroke-dasharray: 12 4 2 4;+ }+ svg[data-preset="blueprint"] .c-security-group,+ svg[data-preset="blueprint"] .c-lane { stroke-dasharray: 7 3; }+ svg[data-preset="blueprint"] [data-node-id]:hover,+ svg[data-preset="blueprint"] [data-node-id]:focus-visible {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"][data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {+ filter: none;+ }+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview],+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview-source],+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview-target] {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }++ /* Dashed boundary variants */+ .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }+ .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }+ .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }++ /* Optional trace animation, enabled only by meta.animation = "trace".+ The ordinary viewer performs one ambient pass and then restores the+ authored solid/security/async line language. WebM samples the same+ authored geometry into an explicit canvas timeline. */+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {+ animation: archify-edge-flow 2.4s linear 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: archify-edge-flow 2.4s linear 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {+ transform-box: fill-box;+ transform-origin: center;+ animation: archify-node-pulse 3.6s ease-in-out 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {+ stroke-linecap: round;+ filter: drop-shadow(0 0 3px var(--arrow-emphasis));+ animation-duration: 1.75s;+ }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation-duration: 3.1s;+ }+ svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {+ stroke-linecap: square;+ filter: none;+ animation-duration: 2.15s;+ }+ svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }+ svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation-name: archify-blueprint-node-pulse;+ animation-duration: 3.8s;+ }+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {+ filter: none;+ animation-duration: 2.2s;+ }+ svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation-name: archify-editorial-node-pulse;+ animation-duration: 3.5s;+ }+ /* Embedded proofs stay static so proof grids are calm instead of leaving+ ambient trace loops on. */+ html[data-embed="true"] svg[data-animation="trace"] [data-animate],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ @keyframes archify-edge-flow {+ 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }+ 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }+ 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }+ 100% { stroke-dashoffset: 0; opacity: 1; }+ }+ @keyframes archify-node-pulse {+ 0%, 72%, 100% { filter: none; stroke-width: 1.5; }+ 18%, 36% {+ filter: drop-shadow(0 0 8px var(--arrow-emphasis));+ stroke-width: 2.4;+ }+ }+ @keyframes archify-blueprint-node-pulse {+ 0%, 72%, 100% { opacity: 1; filter: none; }+ 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }+ }+ @keyframes archify-editorial-node-pulse {+ 0%, 72%, 100% { opacity: 1; filter: none; }+ 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }+ }+ @keyframes archify-signal-scan {+ 0%, 18% { opacity: 1; transform: translateX(-70%); }+ 70% { opacity: 1; transform: translateX(70%); }+ 100% { opacity: 0; transform: translateX(70%); }+ }+ @keyframes archify-radar-live {+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }+ 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }+ }++ @keyframes archify-intent-trace-flow {+ 0% { opacity: 0.28; stroke-dashoffset: 0; }+ 12%, 78% { opacity: 0.94; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-route-probe-flow {+ 0% { stroke-dashoffset: 0; opacity: 0.96; }+ 78% { stroke-dashoffset: -1; opacity: 0.96; }+ 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }+ }+ @keyframes archify-route-journey-flow {+ 0% { opacity: 0.16; stroke-dashoffset: 0; }+ 14%, 76% { opacity: 1; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-semantic-lens-flow {+ 0% { opacity: 0.2; stroke-dashoffset: 0; }+ 12%, 78% { opacity: 0.9; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-relationship-pulse {+ 0% { opacity: 0.18; stroke-dashoffset: 0; }+ 10%, 76% { opacity: 0.98; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-relationship-token-life {+ 0%, 7% { opacity: 0; }+ 13%, 82% { opacity: 1; }+ 100% { opacity: 0; }+ }++ @keyframes archify-share-cue-enter {+ from { opacity: 0; transform: translate(-50%, -0.45rem); }+ to { opacity: 1; transform: translate(-50%, 0); }+ }+ @keyframes archify-share-cue-pulse {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 50% { opacity: 0.48; transform: scale(0.78); }+ }+ @media (prefers-reduced-motion: reduce) {+ html[data-preset="signal-flow"] .diagram-container::before {+ animation: none !important;+ }+ .pulse-dot { animation: none !important; }+ svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ .intent-trace-flow,+ .route-probe-flow,+ .semantic-lens,+ .diagram-guide,+ .overview-map-live { animation: none !important; }++ .intent-trace-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+ }+ .route-probe-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.78;+ }+ .route-journey-overlay { display: none !important; }+ .semantic-lens-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-width: 2.2;+ opacity: 0.34;+ filter: none;+ }+ .relationship-pulse-overlay { display: none !important; }+ .source-evidence-beacon,+ svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }+ }+ </style>+</head>+<body>+ <!-- Toolbar: theme, live visual style, trace motion, presentation stage, and export.+ Motion appears only for trace-enabled artifacts and has no shortcut;+ Keyboard: T toggles theme, S cycles style, F toggles the stage, E opens export. -->+ <div class="toolbar" role="toolbar" aria-label="Diagram actions">+ <div class="toolbar-group">+ <button id="btn-theme" type="button"+ title="Toggle theme (T)"+ aria-label="Toggle color theme"+ aria-pressed="false">+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span>+ <span id="theme-label">Dark</span>+ </button>+ <div class="preset-wrap">+ <button id="btn-preset" type="button"+ title="Choose visual style (S cycles)"+ aria-label="Choose visual style"+ aria-haspopup="menu"+ aria-expanded="false"+ aria-controls="preset-menu"+ aria-keyshortcuts="S">+ <span class="preset-control-mark" aria-hidden="true"></span>+ <span id="preset-label">Style</span>+ <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ </button>+ <div class="preset-menu" id="preset-menu" role="menu" aria-label="Visual style">+ <div class="preset-menu-heading" role="presentation"><span>Visual identity</span><span class="preset-menu-shortcut"><kbd>S</kbd>to cycle</span></div>+ <button class="preset-option" data-preset-value="classic" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch classic" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Classic</strong><small>Stable technical default</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch signal-flow" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch blueprint" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch editorial" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ </div>+ </div>+ <button id="btn-motion" type="button" hidden+ title="Pause motion"+ aria-label="Pause motion"+ aria-pressed="true">+ <span class="motion-control-dot" aria-hidden="true"></span>+ <span id="motion-label">Live</span>+ </button>+ <button id="btn-present" type="button"+ title="Presentation stage (F)"+ aria-label="Enter presentation stage"+ aria-pressed="false">+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span>+ <span id="present-label">Present</span>+ </button>+ </div>+ <div class="export-wrap">+ <button id="btn-export" type="button"+ title="Export diagram (E)"+ aria-label="Export diagram"+ aria-haspopup="menu"+ aria-expanded="false"+ aria-controls="export-menu">+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ </button>+ <div class="export-menu" id="export-menu" role="menu" aria-label="Export">+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </div>+ <div class="export-menu-section" role="group" aria-label="Share">+ <span class="export-menu-heading" aria-hidden="true">Share</span>+ <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Route Share Card</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Reach Share Card</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="copy" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy diagram</strong><small class="hint">PNG to clipboard</small></span></button>+ </div>+ <div class="export-menu-section" role="group" aria-label="Raster images">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </div>+ <div class="export-menu-section" role="group" aria-label="Vector and motion">+ <span class="export-menu-heading" aria-hidden="true">Vector & motion</span>+ <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Auto</strong><small class="hint">Matches host theme</small></span></button>+ <button data-format="svg-light" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Light</strong><small class="hint">Always light</small></span></button>+ <button data-format="svg-dark" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Dark</strong><small class="hint">Always dark</small></span></button>+ <button data-format="webm" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebM</strong><small class="hint">6s motion</small></span></button>+ </div>+ </div>+ </div>+ </div>++ <div class="container">+ <!-- Header -->+ <div class="header">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE">+ <div class="pulse-dot"></div>+ <h1>Order management schema</h1>+ </div>+ </div>+++ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>+ <!-- Main Diagram -->+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">+ <title id="archify-diagram-title">Order management schema</title>+ <desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>+ <!-- Definitions -->+ <defs>+ <marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-default" />+ </marker>+ <marker id="arrowhead-emphasis" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-emphasis" />+ </marker>+ <marker id="arrowhead-security" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-security" />+ </marker>+ <marker id="arrowhead-dashed" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-dashed" />+ </marker>+ <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">+ <path d="M 40 0 L 0 0 0 40" class="c-grid" stroke-width="0.5"/>+ </pattern>+ <!-- Cardinality symbols -->+ <marker id="er-one-end" markerWidth="24" markerHeight="18" refX="22" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 17 1 L 17 15"/>+ </marker>+ <marker id="er-many-start" markerWidth="24" markerHeight="18" refX="0" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 14 8 L 0 1 M 14 8 L 0 8 M 14 8 L 0 15"/>+ </marker>+ <marker id="er-many-optional-start" markerWidth="24" markerHeight="18" refX="0" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 14 8 L 0 1 M 14 8 L 0 8 M 14 8 L 0 15"/>+ <circle cx="18.5" cy="8" r="2.6" class="c-mask"/>+ <circle cx="18.5" cy="8" r="2.6"/>+ </marker>+ </defs>++ <!-- Background Grid -->+ <rect width="100%" height="100%" fill="url(#grid)" />++ <!-- Domain bands (behind the routes so a channel is never washed out) -->+ <g data-domain-band="checkout">+ <rect x="332" y="22" width="603" height="202" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="342" y="35" class="t-muted" font-size="9" font-weight="700">checkout</text>+ </g>+ <g data-domain-band="catalog">+ <rect x="22" y="236" width="584" height="202" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="32" y="249" class="t-muted" font-size="9" font-weight="700">catalog</text>+ </g>++ <!-- Bundled relationship trunks (under the branches: a bus runs close+ to the shared side, so a cardinality glyph that reaches further out+ has to stay readable over it, and the ring's mask has to be able to+ punch through) -->+ <path data-er-trunk="" data-composition-points="660,140;660,320" d="M 660 140 L 660 320" class="a-default" stroke-width="1.5"/>++ <!-- Relationship paths (before entities for correct z-order) -->+ <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>++ <!-- Entities -->+ <g id="node-customer" data-node-id="customer" data-node-label="customer" tabindex="0" role="button" aria-label="Focus customer, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">+ <title>customer · Entity · accounts</title>+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-mask"/>+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="152" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">customer</text>+ <text data-detail="context" x="260" y="56" class="t-muted" font-size="10" text-anchor="end">accounts</text>+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="74" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="260" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="32" y1="90" x2="272" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="74" y="105" class="t-primary" font-size="11">email</text>+ <text data-detail="context" x="260" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="32" y1="110" x2="272" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="74" y="125" class="t-primary" font-size="11">display_name</text>+ <text data-detail="context" x="260" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="32" y1="130" x2="272" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="74" y="145" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="260" y="145" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-order" data-node-id="order" data-node-label="order" tabindex="0" role="button" aria-label="Focus order, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">+ <title>order · Entity · checkout</title>+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-mask"/>+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(350 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="474" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order</text>+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="356" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="386" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="592" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="344" y1="90" x2="604" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="356" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="386" y="105" class="t-primary" font-size="11">customer_id</text>+ <text data-detail="context" x="592" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="344" y1="110" x2="604" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="125" class="t-primary" font-size="11">status</text>+ <text data-detail="context" x="592" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="344" y1="130" x2="604" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="145" class="t-primary" font-size="11">total_amount</text>+ <text data-detail="context" x="592" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="344" y1="150" x2="604" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="165" class="t-primary" font-size="11">currency</text>+ <text data-detail="context" x="592" y="165" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="344" y1="170" x2="604" y2="170" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="185" class="t-primary" font-size="11">placed_at</text>+ <text data-detail="context" x="592" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ <g data-detail="context" data-er-row="6">+ <line x1="344" y1="190" x2="604" y2="190" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="205" class="t-primary" font-size="11">updated_at</text>+ <text data-detail="context" x="592" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-order_item" data-node-id="order_item" data-node-label="order_item" tabindex="0" role="button" aria-label="Focus order_item, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="line items" data-node-context="Entity">+ <title>order_item · Entity · line items</title>+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-mask"/>+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(682 259) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="803" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order_item</text>+ <text data-detail="context" x="918" y="270" class="t-muted" font-size="8.6" text-anchor="end">line items</text>+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="688" y="299" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="718" y="299" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="918" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="676" y1="304" x2="930" y2="304" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="688" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="718" y="319" class="t-primary" font-size="11">order_id</text>+ <text data-detail="context" x="918" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="676" y1="324" x2="930" y2="324" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="688" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="718" y="339" class="t-primary" font-size="11">product_id</text>+ <text data-detail="context" x="918" y="339" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="676" y1="344" x2="930" y2="344" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="718" y="359" class="t-primary" font-size="11">quantity</text>+ <text data-detail="context" x="918" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="676" y1="364" x2="930" y2="364" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="718" y="379" class="t-primary" font-size="11">unit_price</text>+ <text data-detail="context" x="918" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="676" y1="384" x2="930" y2="384" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="718" y="399" class="t-primary" font-size="11">discount_amount</text>+ <text data-detail="context" x="918" y="399" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ </g>++ <g id="node-product" data-node-id="product" data-node-label="product" tabindex="0" role="button" aria-label="Focus product, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">+ <title>product · Entity · catalog</title>+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-mask"/>+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 259) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="474" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">product</text>+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="366" y="299" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="396" y="299" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="582" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="354" y1="304" x2="594" y2="304" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="366" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="396" y="319" class="t-primary" font-size="11">sku</text>+ <text data-detail="context" x="582" y="319" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="354" y1="324" x2="594" y2="324" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="339" class="t-primary" font-size="11">name</text>+ <text data-detail="context" x="582" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="354" y1="344" x2="594" y2="344" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="359" class="t-primary" font-size="11">price</text>+ <text data-detail="context" x="582" y="359" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="354" y1="364" x2="594" y2="364" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="379" class="t-primary" font-size="11">cost_amount</text>+ <text data-detail="context" x="582" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="354" y1="384" x2="594" y2="384" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="399" class="t-primary" font-size="11">active</text>+ <text data-detail="context" x="582" y="399" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>+ </g>+ <g data-detail="context" data-er-row="6">+ <line x1="354" y1="404" x2="594" y2="404" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="419" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="582" y="419" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-inventory" data-node-id="inventory" data-node-label="inventory" tabindex="0" role="button" aria-label="Focus inventory, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">+ <title>inventory · Entity · catalog</title>+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-mask"/>+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 259) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="152" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">inventory</text>+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="46" y="299" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="76" y="299" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="258" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="34" y1="304" x2="270" y2="304" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="46" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="76" y="319" class="t-primary" font-size="11">product_id</text>+ <text data-detail="context" x="258" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="34" y1="324" x2="270" y2="324" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="339" class="t-primary" font-size="11">warehouse_code</text>+ <text data-detail="context" x="258" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="34" y1="344" x2="270" y2="344" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="359" class="t-primary" font-size="11">quantity</text>+ <text data-detail="context" x="258" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="34" y1="364" x2="270" y2="364" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="379" class="t-primary" font-size="11">reserved_quantity</text>+ <text data-detail="context" x="258" y="379" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="34" y1="384" x2="270" y2="384" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="399" class="t-primary" font-size="11">updated_at</text>+ <text data-detail="context" x="258" y="399" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">+ <title>payment · Entity · checkout</title>+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-mask"/>+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(689 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="803" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="695" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="725" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="911" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="683" y1="90" x2="923" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="695" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="725" y="105" class="t-primary" font-size="11">order_id</text>+ <text data-detail="context" x="911" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="683" y1="110" x2="923" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="125" class="t-primary" font-size="11">method</text>+ <text data-detail="context" x="911" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="683" y1="130" x2="923" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="145" class="t-primary" font-size="11">amount</text>+ <text data-detail="context" x="911" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="683" y1="150" x2="923" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="165" class="t-primary" font-size="11">paid_at</text>+ <text data-detail="context" x="911" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="683" y1="170" x2="923" y2="170" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="185" class="t-primary" font-size="11">external_ref</text>+ <text data-detail="context" x="911" y="185" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>+ </g>+ </g>++ <!-- Relationship labels -->+ <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer">+ <rect x="277.89" y="93" width="60.22" height="14" rx="3" class="c-mask"/>+ <text x="308" y="103" class="t-muted" font-size="9" text-anchor="middle">placed by</text>+ </g>++ <!-- Legend -->+ <g data-legend="" data-legend-bridge="">+ <text x="24" y="452" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="472" data-legend-width="116">+ <text x="26" y="472" class="t-database" font-size="9" font-weight="700">PK</text>+ <text x="50" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>+ </g>+ <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="472" data-legend-width="116">+ <text x="164" y="472" class="t-messagebus" font-size="9" font-weight="700">FK</text>+ <text x="188" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>+ </g>+ <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="472" data-legend-width="109">+ <text x="302" y="472" class="t-muted" font-size="9" font-weight="700">UK</text>+ <text x="326" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>+ </g>+ <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="472" data-legend-width="66">+ <path d="M 441 463 L 441 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="457" y="472" class="t-primary" font-size="12" font-weight="600">One</text>+ </g>+ <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="472" data-legend-width="72">+ <path d="M 521 468 L 537 463 M 521 468 L 537 468 M 521 468 L 537 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="545" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>+ </g>+ <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="472" data-legend-width="97">+ <circle cx="622" cy="468" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="639" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>+ </g>+ </g>+ </svg>+ <p class="intent-trace-status no-print" id="intent-trace-status" role="status" aria-live="polite" aria-atomic="true"></p>+ <div class="diagram-guide no-print" id="diagram-guide" hidden role="dialog" aria-modal="false" aria-labelledby="diagram-guide-title">+ <div class="diagram-guide-head">+ <span>+ <span class="diagram-guide-eyebrow">Diagram guide</span>+ <strong class="diagram-guide-title" id="diagram-guide-title">Explore this system</strong>+ </span>+ <button class="diagram-guide-close" id="diagram-guide-close" type="button" aria-label="Close diagram guide">×</button>+ </div>+ <p class="diagram-guide-stats" id="diagram-guide-stats">Inspecting compiled semantics</p>+ <div class="diagram-guide-actions" id="diagram-guide-actions" role="group" aria-label="Diagram exploration actions">+ <button class="diagram-guide-action" type="button" data-guide-action="find" aria-label="Find any node">+ <span class="diagram-guide-index" aria-hidden="true">01</span>+ <span class="diagram-guide-action-copy"><strong>Find any node</strong><small>Search labels, responsibilities, kinds, and stable IDs.</small></span>+ <kbd aria-hidden="true">/</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="route" aria-label="Trace a directed route">+ <span class="diagram-guide-index" aria-hidden="true">02</span>+ <span class="diagram-guide-action-copy"><strong>Trace a route</strong><small>Ask how two semantic nodes connect in authored direction.</small></span>+ <kbd aria-hidden="true">R</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="map" aria-label="See the whole system">+ <span class="diagram-guide-index" aria-hidden="true">03</span>+ <span class="diagram-guide-action-copy"><strong>See the whole system</strong><small>Open Semantic Radar with a live viewport and stable nodes.</small></span>+ <kbd aria-hidden="true">M</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="lens" aria-label="Compare semantic kinds">+ <span class="diagram-guide-index" aria-hidden="true">04</span>+ <span class="diagram-guide-action-copy"><strong>Compare semantic kinds</strong><small>Count roles, reveal their traffic, and compare direct authored links.</small></span>+ <kbd aria-hidden="true">L</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="present" aria-label="Enter presentation stage">+ <span class="diagram-guide-index" aria-hidden="true">05</span>+ <span class="diagram-guide-action-copy"><strong>Enter Presentation Stage</strong><small>Give the live diagram the viewport without changing export.</small></span>+ <kbd aria-hidden="true">F</kbd>+ </button>+ </div>+ <div class="diagram-guide-shortcuts" aria-label="Additional keyboard shortcuts">+ <span><kbd>E</kbd> Export</span><span><kbd>T</kbd> Theme</span><span><kbd>S</kbd> Style</span><span><kbd>0</kbd> Reset</span><span><kbd>+</kbd> Zoom in</span><span><kbd>-</kbd> Zoom out</span><span><kbd>Esc</kbd> Close</span>+ </div>+ <p class="diagram-guide-feedback" id="diagram-guide-feedback" aria-live="polite"></p>+ </div>+ <div class="node-finder no-print" id="node-finder" hidden role="dialog" aria-modal="false" aria-labelledby="node-finder-title">+ <div class="node-finder-head">+ <strong id="node-finder-title">Find a node</strong>+ <button class="node-finder-close" id="node-finder-close" type="button" aria-label="Close node finder">×</button>+ </div>+ <div class="node-finder-search">+ <span aria-hidden="true">⌕</span>+ <input class="node-finder-input" id="node-finder-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search labels or IDs" aria-label="Search diagram nodes" aria-describedby="node-finder-status">+ <kbd aria-hidden="true">/</kbd>+ </div>+ <div class="node-finder-results" id="node-finder-results" role="group" aria-label="Diagram nodes"></div>+ <p class="node-finder-empty" id="node-finder-empty" hidden>No matching nodes</p>+ <p class="node-finder-status" id="node-finder-status" aria-live="polite"></p>+ </div>+ <div class="focus-chip relationship-lens no-print" id="focus-chip" hidden role="region" aria-labelledby="relationship-lens-title">+ <div class="relationship-lens-head">+ <button class="relationship-lens-drag-handle" id="btn-focus-move" type="button" data-focus-drag-handle aria-label="Move semantic passport. Drag, use arrow keys, or press Home to reset." title="Move semantic passport. Drag, use arrow keys, or press Home to reset."></button>+ <div class="relationship-lens-copy">+ <span class="relationship-lens-eyebrow">Semantic passport</span>+ <strong class="relationship-lens-title" id="relationship-lens-title"><span id="focus-label"></span></strong>+ <span class="semantic-passport-detail" id="focus-detail" hidden></span>+ <div class="semantic-passport-meta" id="focus-passport-meta" aria-label="Node metadata">+ <span id="focus-kind" data-passport="kind"></span>+ <span id="focus-context" data-passport="context" hidden></span>+ <span id="focus-tag" data-passport="tag" hidden></span>+ <span id="focus-brand" data-passport="brand" hidden></span>+ <code id="focus-id" data-passport="id"></code>+ </div>+ <div class="semantic-passport-evidence" id="focus-evidence" hidden aria-label="Verified source evidence">+ <div class="semantic-passport-evidence-head">+ <span class="semantic-passport-evidence-status">Verified source</span>+ <a class="semantic-passport-repository" id="focus-repository" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer"></a>+ </div>+ <div class="semantic-passport-evidence-links" id="focus-evidence-links"></div>+ </div>+ <span class="relationship-lens-summary" id="focus-summary" aria-live="polite"></span>+ <div class="semantic-passport-reach" id="focus-reach" hidden>+ <span class="semantic-passport-reach-label">Authored reach</span>+ <div class="semantic-passport-reach-actions" role="group" aria-label="Trace authored reachability">+ <button id="btn-reach-upstream" type="button" aria-label="Trace upstream authored reachability" aria-pressed="false">+ <span>Upstream</span><strong id="focus-reach-upstream-count">0</strong>+ </button>+ <button id="btn-reach-downstream" type="button" aria-label="Trace downstream authored reachability" aria-pressed="false">+ <span>Downstream</span><strong id="focus-reach-downstream-count">0</strong>+ </button>+ </div>+ <small class="semantic-passport-reach-status" id="focus-reach-status" hidden aria-live="polite"></small>+ </div>+ </div>+ <div class="relationship-lens-actions">+ <button id="btn-focus-clear" type="button" aria-label="Close semantic passport" title="Close">×</button>+ <button id="btn-focus-copy" type="button" aria-label="Copy link to focused node">Copy link</button>+ <button id="btn-focus-relations" type="button" aria-label="Show connected relationships" aria-expanded="false" aria-controls="relationship-lens-list">Relations</button>+ </div>+ </div>+ <div class="relationship-lens-list" id="relationship-lens-list" aria-label="Connected relationships"></div>+ </div>+ <div class="route-probe no-print" id="route-probe" hidden role="region" aria-labelledby="route-probe-title" data-state="idle">+ <div class="route-probe-head">+ <span class="route-probe-copy">+ <span class="route-probe-eyebrow">Path</span>+ <strong class="route-probe-title" id="route-probe-title">Click where the path starts</strong>+ </span>+ <span class="route-probe-actions">+ <button class="route-probe-find" id="route-probe-find" type="button" aria-label="Find a route start" data-node-finder-trigger>Find start</button>+ <button class="route-probe-copy-link" id="route-probe-copy" type="button" aria-label="Copy link to traced route" hidden>Copy link</button>+ <button id="route-probe-clear" type="button" aria-label="Clear route probe">Clear</button>+ </span>+ </div>+ <div class="route-probe-path" id="route-probe-path" aria-label="Path">+ <span class="route-probe-placeholder">Click two nodes on the diagram</span>+ </div>+ <div class="route-journey-controls" id="route-journey-controls" hidden role="group" aria-label="Route journey controls" data-playing="false">+ <button id="route-journey-prev" type="button" aria-label="Previous route position" title="Previous route position">←</button>+ <button class="route-journey-play" id="route-journey-play" type="button" aria-label="Play route journey" aria-pressed="false" title="Play route journey">+ <span id="route-journey-play-icon" aria-hidden="true">▶</span>+ <span id="route-journey-play-label">Journey</span>+ </button>+ <button id="route-journey-next" type="button" aria-label="Next route position" title="Next route position">→</button>+ <button class="route-journey-overview" id="route-journey-overview" type="button" aria-label="Show complete route overview" title="Show complete route overview">Overview</button>+ </div>+ <small class="route-probe-status" id="route-probe-status" aria-live="polite">Click a start, then an end. Paths follow the arrows.</small>+ </div>+ <div class="semantic-lens no-print" id="semantic-lens" hidden role="dialog" aria-modal="false" aria-labelledby="semantic-lens-title">+ <div class="semantic-lens-head">+ <span>+ <span class="semantic-lens-eyebrow">Semantic lens</span>+ <strong class="semantic-lens-title" id="semantic-lens-title">Compare system roles</strong>+ </span>+ <button class="semantic-lens-close" id="semantic-lens-close" type="button" aria-label="Close semantic lens">×</button>+ </div>+ <p class="semantic-lens-instruction">Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.</p>+ <div class="semantic-lens-kinds" id="semantic-lens-kinds" role="group" aria-label="Semantic kinds"></div>+ <p class="semantic-lens-status" id="semantic-lens-status" aria-live="polite">Choose a kind to inspect its nodes and touching relationships.</p>+ <div class="semantic-lens-actions">+ <button id="semantic-lens-copy" type="button" aria-label="Copy link to semantic lens" hidden>Copy link</button>+ <button id="semantic-lens-clear" type="button" aria-label="Clear semantic lens">Clear</button>+ </div>+ </div>+ <div class="overview-map no-print" id="overview-map" hidden role="region" aria-labelledby="overview-map-title">+ <div class="overview-map-head">+ <span class="overview-map-live" aria-hidden="true"></span>+ <span class="overview-map-copy">+ <strong id="overview-map-title">Semantic radar</strong>+ <small id="overview-map-status" aria-live="polite">Building overview</small>+ </span>+ <button class="overview-map-expand" id="overview-map-expand" type="button" aria-label="Open full semantic radar">Open radar</button>+ <button class="overview-map-close" id="overview-map-close" type="button" aria-label="Close semantic radar">×</button>+ </div>+ <div class="overview-map-surface" id="overview-map-surface" tabindex="0" role="group" aria-label="Diagram overview. Click a node to focus it, or use arrow keys to pan."></div>+ <div class="overview-map-hint" aria-hidden="true"><span>Click node</span><span>Drag to pan</span></div>+ </div>+ <p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>+ <button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button>+ <div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>+ <button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>+ <button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button>+ <button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button>+ <button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>+ </div>+ </div>++ <aside class="reader-rail" id="reader-rail">+ <div class="rail-controls no-print" role="toolbar" aria-label="Side panel">+ <button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>+ <button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>+ </div>+ <!-- Info Cards -->+ <div class="cards">+ <div class="card">+ <div class="card-header">+ <div class="card-dot cyan"></div>+ <h3>Keys</h3>+ </div>+ <ul>+ <li>Every child carries the parent id as a bigint foreign key.</li>+ <li>order is the hub: order_item and payment each hold an order_id.</li>+ <li>email and sku are unique, so they carry a secondary key marker.</li>+ </ul>+ </div>++ <div class="card">+ <div class="card-header">+ <div class="card-dot amber"></div>+ <h3>Optionality</h3>+ </div>+ <ul>+ <li>An order may exist before any payment attempt, so the payment side is zero or many.</li>+ <li>The payment relationship is non-identifying: it is drawn dashed.</li>+ <li>customer, product, and order_item links are all mandatory.</li>+ </ul>+ </div>++ <div class="card">+ <div class="card-header">+ <div class="card-dot emerald"></div>+ <h3>How the bands read</h3>+ </div>+ <ul>+ <li>The checkout band is the order and the payment that settles it.</li>+ <li>The catalog band is what orders point at: one product, one stock record.</li>+ <li>accounts and line items stand alone; a single-table domain keeps its tag in the table header.</li>+ </ul>+ </div>+ </div>+ <nav class="node-outline no-print" id="node-outline" hidden aria-labelledby="node-outline-title">+ <div class="node-outline-head">+ <strong id="node-outline-title">Node index</strong>+ <span class="node-outline-count" id="node-outline-count"></span>+ </div>+ <ol class="node-outline-list" id="node-outline-list"></ol>+ </nav>+ </aside>++ </div>++ <script>+ var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }++ function hasDrawableGeometry(element) {+ if (!element) return false;+ var geometries = /^(path|line|polyline)$/i.test(element.tagName)+ ? [element]+ : Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));+ return geometries.some(function (geometry) {+ var source = geometry.tagName.toLowerCase() === 'path'+ ? geometry.getAttribute('d')+ : geometry.tagName.toLowerCase() === 'polyline'+ ? geometry.getAttribute('points')+ : [geometry.getAttribute('x1'), geometry.getAttribute('y1'), geometry.getAttribute('x2'), geometry.getAttribute('y2')].join(' ');+ if (!source || /(?:^|[^a-z])(?:nan|infinity)(?:[^a-z]|$)/i.test(source) || typeof geometry.getTotalLength !== 'function') return false;+ try {+ var length = Number(geometry.getTotalLength());+ return Number.isFinite(length) && length > 0;+ } catch (_) {+ return false;+ }+ });+ }++ /* ============================================================+ Visual style try-on — one topology, four bundled presets.+ The reader's choice is intentionally session-only: it updates the+ live page and canonical SVG together, but never rewrites the source,+ URL, or a later diagram's authored default.+ ============================================================ */+ Archify.preset = (function () {+ var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };+ var html = document.documentElement;+ var svg = document.querySelector('.diagram-container svg');+ var btn = document.getElementById('btn-preset');+ var label = document.getElementById('preset-label');+ var menu = document.getElementById('preset-menu');+ var options = function () {+ return Array.prototype.slice.call(menu.querySelectorAll('[data-preset-value]'));+ };+ var authored = PRESETS.indexOf(html.getAttribute('data-preset')) >= 0+ ? html.getAttribute('data-preset')+ : 'classic';++ function current() {+ var value = html.getAttribute('data-preset');+ return PRESETS.indexOf(value) >= 0 ? value : authored;+ }+ function nextAfter(preset) {+ return PRESETS[(PRESETS.indexOf(preset) + 1) % PRESETS.length];+ }+ function apply(preset) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (PRESETS.indexOf(preset) < 0) return false;+ html.setAttribute('data-preset', preset);+ svg.setAttribute('data-preset', preset);+ btn.setAttribute('data-preset-option', preset);+ label.textContent = LABELS[preset];+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');+ options().forEach(function (option) {+ var selected = option.getAttribute('data-preset-value') === preset;+ option.setAttribute('aria-checked', String(selected));+ });+ return true;+ }+ function cycle() { return apply(nextAfter(current())); }++ function isOpen() { return menu.classList.contains('open'); }+ function open(focusLast) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ menu.classList.add('open');+ btn.setAttribute('aria-expanded', 'true');+ var available = options();+ var selected = available.find(function (option) { return option.getAttribute('aria-checked') === 'true'; });+ var target = focusLast ? available[available.length - 1] : (selected || available[0]);+ if (target) target.focus();+ return true;+ }+ function close(focusTrigger) {+ menu.classList.remove('open');+ btn.setAttribute('aria-expanded', 'false');+ if (focusTrigger) btn.focus();+ return false;+ }++ apply(authored);+ btn.addEventListener('click', function (e) {+ e.stopPropagation();+ if (isOpen()) close(false);+ else open(false);+ });+ btn.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault();+ if (!isOpen()) open(e.key === 'ArrowUp');+ }+ });+ document.addEventListener('click', function (e) {+ if (!menu.contains(e.target) && e.target !== btn) close(false);+ });+ menu.addEventListener('click', function (e) {+ var option = e.target.closest('[data-preset-value]');+ if (!option || !menu.contains(option)) return;+ if (apply(option.getAttribute('data-preset-value'))) close(true);+ });+ menu.addEventListener('keydown', function (e) {+ if (e.key === 'Escape') { e.preventDefault(); close(true); return; }+ if (e.key === 'Tab') { close(false); return; }+ var available = options();+ var active = available.indexOf(document.activeElement);+ switch (e.key) {+ case 'ArrowDown':+ e.preventDefault();+ if (available.length) available[(active + 1 + available.length) % available.length].focus();+ break;+ case 'ArrowUp':+ e.preventDefault();+ if (available.length) available[(active - 1 + available.length) % available.length].focus();+ break;+ case 'Home':+ e.preventDefault();+ if (available[0]) available[0].focus();+ break;+ case 'End':+ e.preventDefault();+ if (available.length) available[available.length - 1].focus();+ break;+ }+ });+ return { cycle: cycle, apply: apply, current: current, authored: authored, open: open, close: close, isOpen: isOpen };+ })();++ /* ============================================================+ Theme toggle — persists to localStorage, respects system pref+ ============================================================ */++ Archify.theme = (function () {+ var STORAGE_KEY = 'archify-theme';+ var html = document.documentElement;+ var btn = document.getElementById('btn-theme');+ var label = document.getElementById('theme-label');++ // localStorage can throw (blocked cookies, sandboxed iframes); the whole+ // script element dies on an uncaught error, so guard every access.+ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored(value) {+ try { localStorage.setItem(STORAGE_KEY, value); } catch (_) {}+ }+ function urlOverride() {+ // URL param wins (useful for deterministic screenshots / share links)+ try {+ var param = new URLSearchParams(window.location.search).get('theme');+ if (param === 'light' || param === 'dark') return param;+ } catch (_) {}+ return null;+ }++ function resolveInitial() {+ var fromUrl = urlOverride();+ if (fromUrl) return fromUrl;+ var saved = readStored();+ if (saved === 'light' || saved === 'dark') return saved;+ return window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';+ }++ function apply(theme) {+ html.setAttribute('data-theme', theme);+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');+ btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');+ }++ function toggle() {+ var next = html.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';+ apply(next);+ writeStored(next);+ }++ apply(resolveInitial());+ btn.addEventListener('click', toggle);++ // Follow live OS theme changes while the user has no explicit preference.+ try {+ var media = window.matchMedia('(prefers-color-scheme: light)');+ var onChange = function (e) {+ var saved = readStored();+ if (urlOverride() || saved === 'light' || saved === 'dark') return;+ apply(e.matches ? 'light' : 'dark');+ };+ if (media.addEventListener) media.addEventListener('change', onChange);+ else if (media.addListener) media.addListener(onChange);+ } catch (_) {}++ return { toggle: toggle };+ })();++ /* ============================================================+ Export — Share Card / PNG / JPEG / WebP / SVG / WebM and clipboard++ Raster exports are always rendered at 4x source resolution for+ maximum sharpness. The trick: we set the serialized SVG's+ `width`/`height` to viewBox * 4 so the browser rasterizes the+ vectors at that resolution natively. drawImage then draws at+ the image's natural size (no upscaling = no blur).++ JPEG/WebP paint the current theme's background explicitly since+ those formats have no alpha channel.+ ============================================================ */+ (function () {+ var RASTER_SCALE = 4;+ var MOTION_DURATION = 6000;+ var MOTION_FPS = 30;+ var SHARE_CARD_WIDTH = 1200;+ var SHARE_CARD_HEIGHT = 630;+ var SHARE_CARD_PADDING = 40;+ var SHARE_CARD_HEADER = 124;++ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }++ function diagramFilename() {+ var title = (document.title || 'diagram')+ .replace(/\s+Architecture(\s+Diagram)?$/i, '')+ .replace(/\s+Diagram$/i, '')+ .trim();+ return title.replace(/[^a-z0-9_\-]+/gi, '-')+ .toLowerCase()+ .replace(/^-+|-+$/g, '') || 'diagram';+ }++ function currentBg() {+ return getComputedStyle(document.body).backgroundColor || '#ffffff';+ }++ function cleanExportClone(clone) {+ // View transforms and neighborhood focus are HTML exploration state,+ // never part of a downloaded full-diagram artifact.+ clone.style.removeProperty('transform');+ clone.style.removeProperty('clip-path');+ clone.removeAttribute('data-view-scale');+ clone.removeAttribute('data-focus-active');+ clone.removeAttribute('data-reach-active');+ clone.removeAttribute('data-lens-active');+ clone.removeAttribute('data-lens-flow-count');+ clone.removeAttribute('data-lens-flow-density');+ clone.removeAttribute('data-legend-preview-active');+ clone.removeAttribute('data-relationship-preview-active');+ clone.removeAttribute('data-relationship-direct-active');+ clone.removeAttribute('data-relationship-pin-active');+ clone.removeAttribute('data-intent-trace-active');+ clone.removeAttribute('data-route-picking');+ clone.removeAttribute('data-route-active');+ clone.removeAttribute('data-route-journey');+ clone.removeAttribute('data-share-route');+ clone.removeAttribute('data-share-reach');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-probe-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-journey-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-semantic-lens-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-bridge-runtime]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {+ el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');+ el.removeAttribute('data-legend-count');+ el.removeAttribute('data-legend-zero');+ el.removeAttribute('data-legend-selected');+ el.removeAttribute('role');+ el.removeAttribute('tabindex');+ el.removeAttribute('aria-label');+ el.removeAttribute('aria-pressed');+ el.removeAttribute('aria-haspopup');+ el.removeAttribute('aria-controls');+ el.removeAttribute('aria-expanded');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-bridge]'), function (el) {+ el.removeAttribute('data-legend-bridge');+ el.removeAttribute('role');+ el.removeAttribute('aria-label');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-pulse-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-hit-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-beacon]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {+ var originalLabel = el.getAttribute('data-source-evidence-original-label');+ if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ else el.setAttribute('aria-label', originalLabel);+ el.removeAttribute('data-source-evidence-count');+ el.removeAttribute('data-source-evidence-original-label');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-focus-match], [data-focus-selected]'), function (el) {+ el.removeAttribute('data-focus-match');+ el.removeAttribute('data-focus-selected');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reach-match], [data-reach-origin], [data-reach-depth]'), function (el) {+ el.removeAttribute('data-reach-match');+ el.removeAttribute('data-reach-origin');+ el.removeAttribute('data-reach-depth');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-lens-match], [data-lens-selected], [data-lens-peer]'), function (el) {+ el.removeAttribute('data-lens-match');+ el.removeAttribute('data-lens-selected');+ el.removeAttribute('data-lens-peer');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer]'), function (el) {+ el.removeAttribute('data-legend-preview-match');+ el.removeAttribute('data-legend-preview-selected');+ el.removeAttribute('data-legend-preview-peer');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target]'), function (el) {+ el.removeAttribute('data-relationship-preview');+ el.removeAttribute('data-relationship-preview-node');+ el.removeAttribute('data-relationship-preview-source');+ el.removeAttribute('data-relationship-preview-target');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-match], [data-intent-trace-selected]'), function (el) {+ el.removeAttribute('data-intent-trace-match');+ el.removeAttribute('data-intent-trace-selected');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current]'), function (el) {+ el.removeAttribute('data-route-match');+ el.removeAttribute('data-route-start');+ el.removeAttribute('data-route-end');+ el.removeAttribute('data-route-step');+ el.removeAttribute('data-route-candidate');+ el.removeAttribute('data-route-journey-state');+ el.removeAttribute('data-route-journey-current');+ el.style.removeProperty('--route-step');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle]'), function (el) {+ el.removeAttribute('data-share-route-match');+ el.removeAttribute('data-share-route-step');+ el.removeAttribute('data-share-route-start');+ el.removeAttribute('data-share-route-end');+ el.removeAttribute('data-share-route-middle');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth]'), function (el) {+ el.removeAttribute('data-share-reach-match');+ el.removeAttribute('data-share-reach-origin');+ el.removeAttribute('data-share-reach-depth');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-detail], [data-detail-anchor]'), function (el) {+ el.removeAttribute('data-detail');+ el.removeAttribute('data-detail-anchor');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {+ el.setAttribute('aria-pressed', 'false');+ });+ return !clone.hasAttribute('data-view-scale') &&+ !clone.hasAttribute('data-focus-active') &&+ !clone.hasAttribute('data-reach-active') &&+ !clone.hasAttribute('data-lens-active') &&+ !clone.hasAttribute('data-lens-flow-count') &&+ !clone.hasAttribute('data-lens-flow-density') &&+ !clone.hasAttribute('data-legend-preview-active') &&+ !clone.hasAttribute('data-relationship-preview-active') &&+ !clone.hasAttribute('data-relationship-direct-active') &&+ !clone.hasAttribute('data-intent-trace-active') &&+ !clone.hasAttribute('data-route-picking') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ !clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-share-reach') &&+ !clone.style.getPropertyValue('transform') &&+ !clone.style.getPropertyValue('clip-path') &&+ clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ }+++ /**+ * Serialize the main SVG into a standalone document.+ *+ * Two modes:+ * - Default (opts.autoTheme=false) — locks the serialized SVG to the+ * viewer's current theme. Used by the raster pipeline+ * (PNG/JPEG/WebP/clipboard) because canvas rasterization needs+ * deterministic colors; a raster cannot react to+ * prefers-color-scheme after encoding.+ * - theme=auto — emits BOTH dark and light variable sets plus a+ * `@media (prefers-color-scheme)` rule so the resulting SVG+ * self-themes when embedded in GitHub READMEs or other hosts that+ * expose a color scheme. Used for the default "Download SVG".+ * - theme=light|dark — locks the standalone SVG to the requested+ * theme, independently of its source Viewer and host OS themes.+ */+ function applyRouteSnapshot(clone, snapshot) {+ if (!snapshot || !Array.isArray(snapshot.nodeIds) || !Array.isArray(snapshot.edges) ||+ snapshot.nodeIds.length < 2 || snapshot.edges.length !== snapshot.nodeIds.length - 1 ||+ snapshot.hops !== snapshot.edges.length ||+ !snapshot.source || !snapshot.target ||+ snapshot.source.id !== snapshot.nodeIds[0] ||+ snapshot.target.id !== snapshot.nodeIds[snapshot.nodeIds.length - 1]) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId]) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ nodeMatches.push(matchedNodes);+ }++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ var fromId = snapshot.nodeIds[edgeIndex];+ var toId = snapshot.nodeIds[edgeIndex + 1];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ edge.from !== fromId || edge.to !== toId) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push(matchedEdges);+ }++ clone.setAttribute('data-share-route', '');+ nodeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ if (step === 0) element.setAttribute('data-share-route-start', '');+ else if (step === snapshot.nodeIds.length - 1) element.setAttribute('data-share-route-end', '');+ else element.setAttribute('data-share-route-middle', '');+ });+ });+ edgeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ });+ });++ return clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ clone.querySelectorAll('[data-animate], [data-route-match], [data-route-step], [data-route-start], [data-route-end], [data-route-journey-state], [data-route-journey-current], [data-route-journey-overlay]').length === 0 &&+ clone.querySelectorAll('[data-share-route-match]').length ===+ nodeMatches.reduce(function (count, matches) { return count + matches.length; }, 0) ++ edgeMatches.reduce(function (count, matches) { return count + matches.length; }, 0);+ }++ function applyReachSnapshot(clone, snapshot) {+ if (!snapshot || (snapshot.direction !== 'upstream' && snapshot.direction !== 'downstream') ||+ !snapshot.origin || typeof snapshot.origin.id !== 'string' || !snapshot.origin.id ||+ typeof snapshot.origin.label !== 'string' || !snapshot.origin.label.trim() ||+ !Array.isArray(snapshot.nodeIds) || snapshot.nodeIds.length < 2 ||+ !Array.isArray(snapshot.edges) || !snapshot.edges.length ||+ !snapshot.depths || typeof snapshot.depths !== 'object' ||+ !Number.isInteger(snapshot.maxDepth) || snapshot.maxDepth < 1 ||+ snapshot.nodeIds[0] !== snapshot.origin.id) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];+ var measuredMaxDepth = 0;++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ var depth = snapshot.depths[nodeId];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId] ||+ !Number.isInteger(depth) || depth < 0 || depth > snapshot.maxDepth ||+ (nodeId === snapshot.origin.id ? depth !== 0 : depth < 1)) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ nodeMatches.push({ elements: matchedNodes, id: nodeId, depth: depth });+ }+ if (measuredMaxDepth !== snapshot.maxDepth) return false;++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ !nodeIds[edge.from] || !nodeIds[edge.to] ||+ !Number.isInteger(edge.depth) || edge.depth < 1 || edge.depth > snapshot.maxDepth ||+ edge.depth !== Math.max(snapshot.depths[edge.from], snapshot.depths[edge.to])) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push({ elements: matchedEdges, depth: edge.depth });+ }++ clone.setAttribute('data-share-reach', snapshot.direction);+ nodeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ if (match.id === snapshot.origin.id) element.setAttribute('data-share-reach-origin', '');+ });+ });+ edgeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ });+ });++ return clone.getAttribute('data-share-reach') === snapshot.direction &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-reach-active') &&+ clone.querySelectorAll('[data-animate], [data-reach-match], [data-reach-origin], [data-reach-depth]').length === 0 &&+ clone.querySelectorAll('[data-share-reach-origin]').length === 1 &&+ clone.querySelectorAll('[data-share-reach-match]').length ===+ nodeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0) ++ edgeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0);+ }++ function serializeSvg(scale, opts) {+ // scale: multiplier (integer unless the figure is oversized) for intrinsic SVG pixel dimensions used by+ // the raster path. Defaults to 1 (natural size) for SVG download.+ scale = scale || 1;+ opts = opts || {};+ var requestedTheme = opts.theme || (opts.autoTheme === true ? 'auto' : null);+ if (requestedTheme && requestedTheme !== 'auto' && requestedTheme !== 'light' && requestedTheme !== 'dark') {+ throw new Error('Unsupported SVG theme: ' + requestedTheme);+ }+ var autoTheme = requestedTheme === 'auto';+ var svg = document.querySelector('.diagram-container svg');+ var clone = svg.cloneNode(true);++ var canonicalStateClean = cleanExportClone(clone);++ var vb = svg.viewBox.baseVal;+ var finiteSvgDimensions = Number.isFinite(vb.x) && Number.isFinite(vb.y) &&+ Number.isFinite(vb.width) && Number.isFinite(vb.height) && vb.width > 0 && vb.height > 0;+ var routeStateClean = opts.routeSnapshot+ ? canonicalStateClean && finiteSvgDimensions && applyRouteSnapshot(clone, opts.routeSnapshot)+ : null;+ var reachStateClean = opts.reachSnapshot+ ? canonicalStateClean && finiteSvgDimensions && !opts.routeSnapshot && applyReachSnapshot(clone, opts.reachSnapshot)+ : null;+ // Scale width/height so the browser rasterizes the vectors at target+ // resolution directly. viewBox stays unchanged so coordinates don't+ // shift. This is the key to sharp rasters — do NOT scale later via+ // canvas upscaling.+ clone.setAttribute('width', vb.width * scale);+ clone.setAttribute('height', vb.height * scale);+ // Keep copied Viewer layout rules from overriding the export's size.+ clone.style.width = vb.width * scale + 'px';+ clone.style.height = vb.height * scale + 'px';+ clone.style.minWidth = '0';+ clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');++ // Only the SVG-relevant rules: semantic classes, markers, and the+ // theme variable blocks. Toolbar/cards/print CSS can never apply+ // inside a standalone SVG and would only bloat the export.+ var hostStyle = (function () {+ var out = [];+ Array.prototype.forEach.call(document.styleSheets, function (sheet) {+ var rules;+ try { rules = sheet.cssRules; } catch (_) { return; } // cross-origin+ if (!rules) return;+ Array.prototype.forEach.call(rules, function (rule) {+ if (rule.type === 7 && /^archify-/.test(rule.name || '')) {+ out.push(rule.cssText);+ return;+ }+ if (rule.type !== 1) return; // plain style rules only+ var sel = rule.selectorText || '';+ if (/(^|,)\s*(svg|:root|\[data-theme|\[data-preset|\.c-|\.t-|\.a-|\.m-)/.test(sel)) {+ out.push(rule.cssText);+ } else if (opts.figure && sel.indexOf('.diagram-container > svg') !== -1) {+ // Figures look like the Viewer canvas: keep its preset/theme paint+ // (quiet grid, lifted nodes) by rescoping matching rules to svg.+ var scoped = sel.split(',').map(function (part) {+ var at = part.indexOf('.diagram-container > svg');+ if (at === -1) return null;+ var prefix = part.slice(0, at).trim();+ try { if (prefix && !document.documentElement.matches(prefix)) return null; } catch (_) { return null; }+ return 'svg' + part.slice(at + '.diagram-container > svg'.length);+ }).filter(Boolean);+ if (scoped.length) out.push(scoped.join(', ') + ' { ' + rule.style.cssText + ' }');+ }+ });+ });+ return out.join('\n');+ })();++ // Derive the variable list from the stylesheet so newly added theme+ // variables can never be missed by the export pipeline again+ // (--lane-fill/--lane-stroke once were).+ var varNames = (function () {+ var seen = {};+ var names = [];+ (hostStyle.match(/--[a-zA-Z0-9-]+(?=\s*:)/g) || []).forEach(function (n) {+ if (!seen[n]) { seen[n] = true; names.push(n); }+ });+ return names;+ })();++ // Resolve the full variable set for a given data-theme via an+ // off-DOM probe, independent of what the viewer is currently set to.+ function resolveVars(themeAttr) {+ var probe = document.createElement('div');+ probe.setAttribute('data-theme', themeAttr);+ probe.setAttribute('data-preset', document.documentElement.getAttribute('data-preset') || 'classic');+ probe.style.cssText = 'position:absolute;width:0;height:0;visibility:hidden;';+ document.body.appendChild(probe);+ try {+ var c = getComputedStyle(probe);+ return {+ background: c.getPropertyValue('--bg').trim(),+ vars: varNames.map(function (n) {+ return n + ': ' + c.getPropertyValue(n).trim() + ';';+ }).join(' ')+ };+ } finally {+ document.body.removeChild(probe);+ }+ }++ // Keep the same font bytes, character coverage, and attribution in+ // standalone SVGs and the SVG images used by every raster export.+ var fontCss = document.getElementById('archify-fonts').textContent;++ var style = document.createElementNS('http://www.w3.org/2000/svg', 'style');+ var bgRect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');+ // Cover the real viewBox: auto-cropped canvases start below y=0, and a+ // 100% rect anchored at the origin left an unpainted band at the bottom.+ bgRect.setAttribute('x', vb.x);+ bgRect.setAttribute('y', vb.y);+ bgRect.setAttribute('width', vb.width);+ bgRect.setAttribute('height', vb.height);++ if (autoTheme) {+ // Dual-theme SVG. Dark is the default (so hosts without+ // prefers-color-scheme still render), light swaps in via media+ // query, and svg[data-theme="..."] still lets downstream+ // consumers force a specific theme.+ var darkTheme = resolveVars('dark');+ var lightTheme = resolveVars('light');++ style.textContent =+ fontCss + "\n" ++ "svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" ++ hostStyle + "\n" ++ ":root, svg { " + darkTheme.vars + " }\n" ++ "@media (prefers-color-scheme: light) { :root, svg { " + lightTheme.vars + " } }\n" ++ "svg[data-theme=\"light\"] { " + lightTheme.vars + " }\n" ++ "svg[data-theme=\"dark\"] { " + darkTheme.vars + " }\n" ++ "rect.c-bg-rect { fill: var(--bg); }\n";++ // Don't lock the serialized SVG to the viewer's current theme.+ clone.removeAttribute('data-theme');+ // Background follows the CSS variable, not a fixed color, so it+ // swaps with the media query.+ bgRect.setAttribute('class', 'c-bg-rect');+ } else {+ // Raster exports keep the viewer's current theme. Explicit SVG+ // exports instead select their own stable light/dark source.+ var lockedTheme = requestedTheme || document.documentElement.getAttribute('data-theme') || 'dark';+ var resolvedTheme = requestedTheme && resolveVars(lockedTheme);+ var computed = getComputedStyle(document.documentElement);+ var vars = resolvedTheme ? resolvedTheme.vars : varNames.map(function (n) {+ return n + ': ' + computed.getPropertyValue(n).trim() + ';';+ }).join(' ');++ // IMPORTANT: inject the resolved variables AFTER hostStyle,+ // otherwise hostStyle's ":root, [data-theme=\"dark\"] { ... }" rule+ // overrides our chosen theme via later-in-cascade equal-specificity.+ // Keep this order.+ style.textContent =+ fontCss + "\n" ++ "svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" ++ hostStyle + "\n" ++ ":root, svg { " + vars + " }\n";++ if (requestedTheme) clone.setAttribute('data-theme', lockedTheme);+ bgRect.setAttribute('fill', (resolvedTheme ? resolvedTheme.background : computed.getPropertyValue('--bg').trim()) || '#ffffff');+ }++ if (opts.routeSnapshot) {+ style.textContent += "\nsvg[data-share-route] [data-node-id], svg[data-share-route] [data-edge-from], svg[data-share-route] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.18; }\n" ++ "svg[data-share-route] [data-share-route-match], svg[data-share-route] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-route-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" ++ "svg[data-share-route] [data-share-route-start] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3; stroke-dasharray: 5 3; }\n" ++ "svg[data-share-route] [data-share-route-middle] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 2.2; }\n" ++ "svg[data-share-route] [data-share-route-end] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3.4; stroke-dasharray: 1 0; }\n";+ }+ if (opts.reachSnapshot) {+ style.textContent += "\nsvg[data-share-reach] [data-node-id], svg[data-share-reach] [data-edge-from], svg[data-share-reach] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.14; }\n" ++ "svg[data-share-reach] [data-share-reach-match], svg[data-share-reach] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-reach-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" ++ "svg[data-share-reach] [data-edge-from][data-share-reach-match] { stroke-width: 1.55; }\n" ++ "svg[data-share-reach=\"upstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--database-stroke); stroke-width: 3.4; stroke-dasharray: 5 3; }\n" ++ "svg[data-share-reach=\"downstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--backend-stroke); stroke-width: 3.4; stroke-dasharray: 1 0; }\n" ++ "svg[data-preset=\"blueprint\"][data-share-reach] [data-share-reach-origin], svg[data-preset=\"blueprint\"][data-share-reach] [data-edge-from][data-share-reach-match] { filter: none; }\n";+ }++ // Figures draw the diagram on a painted canvas card, like the Viewer.+ if (opts.figure) bgRect.setAttribute('fill', 'none');++ clone.insertBefore(style, clone.firstChild);+ clone.insertBefore(bgRect, style.nextSibling);++ // The XML declaration pins UTF-8: without it, consumers that guess an+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.+ return {+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' ++ new XMLSerializer().serializeToString(clone),+ width: vb.width * scale,+ height: vb.height * scale,+ canonicalStateClean: canonicalStateClean,+ routeStateClean: routeStateClean,+ reachStateClean: reachStateClean+ };+ }++ function download(blob, filename) {+ var url = URL.createObjectURL(blob);+ var a = document.createElement('a');+ a.href = url;+ a.download = filename;+ document.body.appendChild(a);+ a.click();+ a.remove();+ setTimeout(function () { URL.revokeObjectURL(url); }, 1000);+ }++ // Conservative upper bound on total canvas pixels. Older Safari on iOS+ // silently produces a blank canvas above ~16 Mpx; Chrome / Firefox /+ // desktop Safari are far higher but start failing on memory-constrained+ // devices. We pick the largest integer scale in {4,3,2,1} whose target+ // pixel count fits under this cap; a figure too large even at 1x is+ // downscaled to fit rather than allocating an oversized canvas.+ var MAX_CANVAS_PIXELS = 16 * 1024 * 1024;++ function pickSafeScale(vbW, vbH) {+ for (var s = RASTER_SCALE; s >= 1; s--) {+ if (vbW * s * vbH * s <= MAX_CANVAS_PIXELS) return s;+ }+ return Math.sqrt(MAX_CANVAS_PIXELS / (vbW * vbH)) * 0.999;+ }++ // Raster exports reproduce the Viewer page without its controls: the+ // title row with its accent dot, then the diagram on the same rounded+ // canvas card (fill, hairline, shadow, dot field). CSS pixels.+ var FIGURE_MARGIN = 28;+ var FIGURE_CARD_PADDING = 24;+ var FIGURE_TITLE_SIZE = 24;+ var FIGURE_SUBTITLE_SIZE = 14;++ function figureLayout(vb) {+ var titleNode = document.querySelector('.header h1');+ var subtitleNode = document.querySelector('.header .subtitle');+ var container = document.querySelector('.diagram-container');+ var root = getComputedStyle(document.documentElement);+ var card = container ? getComputedStyle(container) : null;+ var title = titleNode ? titleNode.textContent.trim() : '';+ var subtitle = subtitleNode ? subtitleNode.textContent.trim() : '';+ var header = title ? 32 + (subtitle ? 24 : 0) + 18 : 0;+ var cardWidth = vb.width + FIGURE_CARD_PADDING * 2;+ var cardHeight = vb.height + FIGURE_CARD_PADDING * 2;+ var cardFill = card && card.backgroundColor && !/rgba\(0, 0, 0, 0\)|transparent/.test(card.backgroundColor)+ ? card.backgroundColor : (root.getPropertyValue('--panel').trim() || 'transparent');+ return {+ title: title,+ subtitle: subtitle,+ family: titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif',+ text: root.getPropertyValue('--text').trim() || '#111827',+ muted: root.getPropertyValue('--text-muted').trim() || '#64748b',+ accent: root.getPropertyValue('--frontend-stroke').trim() || '#0891b2',+ bg: root.getPropertyValue('--bg').trim() || currentBg(),+ cardFill: cardFill,+ cardBorder: root.getPropertyValue('--panel-border').trim() || 'transparent',+ dot: card && /radial-gradient/.test(card.backgroundImage) ? (root.getPropertyValue('--canvas-dot').trim() || '') : '',+ light: (document.documentElement.getAttribute('data-theme') || 'dark') === 'light',+ header: header,+ cardWidth: cardWidth,+ cardHeight: cardHeight,+ width: cardWidth + FIGURE_MARGIN * 2,+ height: cardHeight + FIGURE_MARGIN * 2 + header+ };+ }++ function paintFigure(ctx, layout) {+ var m = FIGURE_MARGIN;+ ctx.fillStyle = layout.bg;+ ctx.fillRect(0, 0, layout.width, layout.height);+ if (layout.title) {+ var titleMid = m + 16;+ ctx.fillStyle = layout.accent;+ ctx.globalAlpha = 0.16;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 9, 0, Math.PI * 2); ctx.fill();+ ctx.globalAlpha = 1;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 5, 0, Math.PI * 2); ctx.fill();+ ctx.textBaseline = 'middle';+ ctx.fillStyle = layout.text;+ ctx.fillText(fitCanvasText(ctx, layout.title, layout.width - m * 2 - 22, FIGURE_TITLE_SIZE, 14, '650', layout.family), m + 22, titleMid + 1);+ if (layout.subtitle) {+ ctx.fillStyle = layout.muted;+ ctx.fillText(fitCanvasText(ctx, layout.subtitle, layout.width - m * 2, FIGURE_SUBTITLE_SIZE, 11, '400', layout.family), m, titleMid + 30);+ }+ ctx.textBaseline = 'alphabetic';+ }+ var x = m, y = m + layout.header, w = layout.cardWidth, h = layout.cardHeight, r = 16;+ function cardPath() {+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(x, y, w, h, r);+ else ctx.rect(x, y, w, h);+ }+ ctx.save();+ if (layout.light) {+ ctx.shadowColor = 'rgba(15, 23, 42, 0.08)';+ ctx.shadowBlur = 28;+ ctx.shadowOffsetY = 10;+ }+ cardPath();+ ctx.fillStyle = layout.bg;+ ctx.fill();+ ctx.restore();+ cardPath();+ ctx.fillStyle = layout.cardFill;+ ctx.fill();+ if (layout.dot) {+ ctx.save();+ cardPath();+ ctx.clip();+ ctx.fillStyle = layout.dot;+ for (var dy = y + 1; dy < y + h; dy += 20) {+ for (var dx = x + 1; dx < x + w; dx += 20) {+ ctx.beginPath(); ctx.arc(dx, dy, 1, 0, Math.PI * 2); ctx.fill();+ }+ }+ ctx.restore();+ }+ cardPath();+ ctx.strokeStyle = layout.cardBorder;+ ctx.lineWidth = 1;+ ctx.stroke();+ return { x: x + FIGURE_CARD_PADDING, y: y + FIGURE_CARD_PADDING };+ }++ function rasterize(format) {+ // Serialize at a safe scale (RASTER_SCALE=4 by default, reduced if the+ // resulting canvas would exceed MAX_CANVAS_PIXELS). The SVG itself is+ // rasterized at target resolution natively; drawImage draws at natural+ // size — no upsampling blur.+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var layout = figureLayout(vb);+ var scale = pickSafeScale(layout.width, layout.height);+ var data = serializeSvg(scale, { figure: true });+ var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });+ var svgUrl = URL.createObjectURL(svgBlob);++ return new Promise(function (resolve, reject) {+ var img = new Image();+ img.onload = function () {+ try {+ var canvas = document.createElement('canvas');+ canvas.width = Math.round(layout.width * scale);+ canvas.height = Math.round(layout.height * scale);+ var ctx = canvas2dOrThrow(canvas, format);+ // Paint in CSS pixels; the SVG image is already rendered at scale,+ // so drawing it at CSS size under this transform stays 1:1.+ ctx.setTransform(scale, 0, 0, scale, 0, 0);+ var origin = paintFigure(ctx, layout);+ ctx.drawImage(img, origin.x, origin.y, vb.width, vb.height);+ ctx.setTransform(1, 0, 0, 1, 0, 0);+ URL.revokeObjectURL(svgUrl);+ var mime = format === 'jpeg' ? 'image/jpeg' :+ format === 'webp' ? 'image/webp' : 'image/png';+ var quality = format === 'png' ? undefined : 0.95;+ canvas.toBlob(function (blob) {+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));+ else resolve(blob);+ }, mime, quality);+ } catch (error) {+ URL.revokeObjectURL(svgUrl);+ reject(error);+ }+ };+ img.onerror = function (e) {+ URL.revokeObjectURL(svgUrl);+ reject(e);+ };+ img.src = svgUrl;+ });+ }++ function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight, fontFamily) {+ var value = String(text || '').trim();+ var size = startSize;+ var family = fontFamily || "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ while (size > minSize) {+ ctx.font = (weight || '600') + ' ' + size + 'px ' + family;+ if (ctx.measureText(value).width <= maxWidth) return value;+ size -= 1;+ }+ ctx.font = (weight || '600') + ' ' + minSize + 'px ' + family;+ if (ctx.measureText(value).width <= maxWidth) return value;+ var suffix = '\u2026';+ while (value.length > 1 && ctx.measureText(value + suffix).width > maxWidth) {+ value = value.slice(0, -1);+ }+ return value + suffix;+ }++ function canvas2dOrThrow(canvas, label) {+ if (!canvas || typeof canvas.getContext !== 'function') {+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });+ }+ var ctx = canvas.getContext('2d');+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });+ return ctx;+ }++ function renderShareCard(options) {+ var routeSnapshot = options.routeSnapshot || null;+ var reachSnapshot = options.reachSnapshot || null;+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));+ var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot, figure: true });+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));+ var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });+ var svgUrl = URL.createObjectURL(svgBlob);++ return new Promise(function (resolve, reject) {+ var img = new Image();+ img.onload = function () {+ try {+ var canvas = document.createElement('canvas');+ canvas.width = SHARE_CARD_WIDTH;+ canvas.height = SHARE_CARD_HEIGHT;+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));+ var computed = getComputedStyle(document.documentElement);+ var bg = computed.getPropertyValue('--bg').trim() || currentBg();+ var text = computed.getPropertyValue('--text').trim() || '#ffffff';+ var muted = computed.getPropertyValue('--text-muted').trim() || '#94a3b8';+ var border = computed.getPropertyValue('--panel-border').trim() || '#334155';+ var accentProperty = reachSnapshot+ ? (reachSnapshot.direction === 'upstream' ? '--database-stroke' : '--backend-stroke')+ : '--frontend-stroke';+ var accent = computed.getPropertyValue(accentProperty).trim() || '#22d3ee';+ var titleNode = document.querySelector('.header h1');+ var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';+ var subtitle = routeSnapshot+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ })+ : viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ });+ var cardLabel = routeSnapshot+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ })+ : viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() });++ var family = titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif';+ var panelFill = bg;++ ctx.fillStyle = bg;+ ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);++ // Header: a short accent rule and badge over the title and summary.+ ctx.fillStyle = accent;+ ctx.fillRect(SHARE_CARD_PADDING, 34, 28, 3);+ ctx.textBaseline = 'alphabetic';+ ctx.font = '600 12px ' + family;+ ctx.textAlign = 'right';+ ctx.fillStyle = muted;+ ctx.fillText(cardLabel, SHARE_CARD_WIDTH - SHARE_CARD_PADDING, 40);+ ctx.textAlign = 'left';++ ctx.fillStyle = text;+ var fittedTitle = fitCanvasText(ctx, title, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2 - 260, 30, 18, '650', family);+ ctx.fillText(fittedTitle, SHARE_CARD_PADDING, 74);++ ctx.fillStyle = muted;+ var fittedSubtitle = fitCanvasText(ctx, subtitle, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2, 15, 12, '400', family);+ ctx.fillText(fittedSubtitle, SHARE_CARD_PADDING, 99);++ // The diagram sits on one soft rounded panel with an even inset.+ var panelX = SHARE_CARD_PADDING;+ var panelY = SHARE_CARD_HEADER;+ var panelWidth = SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2;+ var panelHeight = SHARE_CARD_HEIGHT - SHARE_CARD_HEADER - SHARE_CARD_PADDING;+ var inset = 18;+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(panelX, panelY, panelWidth, panelHeight, 14);+ else ctx.rect(panelX, panelY, panelWidth, panelHeight);+ ctx.fillStyle = panelFill;+ ctx.fill();+ ctx.strokeStyle = border;+ ctx.lineWidth = 1;+ ctx.stroke();++ var availableWidth = panelWidth - inset * 2;+ var availableHeight = panelHeight - inset * 2;+ var fit = Math.min(availableWidth / data.width, availableHeight / data.height);+ var drawWidth = data.width * fit;+ var drawHeight = data.height * fit;+ var drawX = panelX + inset + (availableWidth - drawWidth) / 2;+ var drawY = panelY + inset + (availableHeight - drawHeight) / 2;+ ctx.drawImage(img, drawX, drawY, drawWidth, drawHeight);+ URL.revokeObjectURL(svgUrl);++ canvas.toBlob(function (blob) {+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));+ else resolve(blob);+ }, 'image/png');+ } catch (error) {+ URL.revokeObjectURL(svgUrl);+ reject(error);+ }+ };+ img.onerror = function (e) {+ URL.revokeObjectURL(svgUrl);+ reject(e);+ };+ img.src = svgUrl;+ });+ }++ function rasterizeShareCard(options) {+ options = options || {};+ if (options.variant !== 'route' && options.variant !== 'reach') {+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));+ }+ if (options.variant === 'route') {+ var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));+ return renderShareCard({ routeSnapshot: routeSnapshot });+ }+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));+ return renderShareCard({ reachSnapshot: snapshot });+ }++ function motionMimeType() {+ if (typeof MediaRecorder === 'undefined') return '';+ var candidates = [+ 'video/webm;codecs=vp9',+ 'video/webm;codecs=vp8',+ 'video/webm'+ ];+ for (var i = 0; i < candidates.length; i++) {+ if (!MediaRecorder.isTypeSupported || MediaRecorder.isTypeSupported(candidates[i])) return candidates[i];+ }+ return '';+ }++ function canRecordMotion() {+ var svg = document.querySelector('.diagram-container svg');+ return !!(svg && svg.getAttribute('data-animation') === 'trace' &&+ typeof MediaRecorder !== 'undefined' && motionMimeType() &&+ typeof HTMLCanvasElement !== 'undefined' &&+ typeof HTMLCanvasElement.prototype.captureStream === 'function');+ }++ // Record the live CSS animation without Puppeteer, ffmpeg, or a network+ // dependency. SVG files loaded through Image are commonly rasterized as+ // one cached bitmap, so repeatedly drawing that Image does not reliably+ // advance its CSS animation. Keep one crisp static SVG background, then+ // render an explicit time-varying signal scene over the real authored+ // relationship geometry on every captured canvas frame.+ function recordWebm(options) {+ options = options || {};+ if (!canRecordMotion()) {+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));+ }+ var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);+ var fps = Math.max(1, Number(options.fps) || MOTION_FPS);+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var scale = Math.min(1, 1280 / vb.width);+ var data = serializeSvg(scale);+ var sourceUrl = URL.createObjectURL(new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' }));++ function createMotionScene(root) {+ var rootMatrix = root.getCTM ? root.getCTM() : null;++ function pointInRoot(element, point) {+ if (!rootMatrix || !element.getCTM || !point.matrixTransform) return { x: point.x, y: point.y };+ try {+ var elementMatrix = element.getCTM();+ if (!elementMatrix) return { x: point.x, y: point.y };+ var mapped = point.matrixTransform(rootMatrix.inverse().multiply(elementMatrix));+ return { x: mapped.x, y: mapped.y };+ } catch (_) {+ return { x: point.x, y: point.y };+ }+ }++ function samplesFor(element) {+ if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var length;+ try { length = element.getTotalLength(); } catch (_) { return []; }+ if (!Number.isFinite(length) || length <= 0) return [];+ var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));+ var points = [];+ for (var i = 0; i <= count; i++) {+ points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ }+ return points;+ }++ function authoredStep(element, fallback) {+ var raw = element.style.getPropertyValue('--step') || getComputedStyle(element).getPropertyValue('--step');+ var value = Number(raw);+ return Number.isFinite(value) ? value : fallback;+ }++ var edges = Array.prototype.slice.call(root.querySelectorAll('[data-animate="edge"]')).map(function (element, index) {+ var computed = getComputedStyle(element);+ return {+ points: samplesFor(element),+ color: computed.stroke && computed.stroke !== 'none' ? computed.stroke : '#22d3ee',+ width: Math.max(1.5, parseFloat(computed.strokeWidth) || 1.5),+ delay: Math.min(12, authoredStep(element, index)) * 0.16+ };+ }).filter(function (edge) { return edge.points.length > 1; });++ var nodes = Array.prototype.slice.call(root.querySelectorAll('[data-node-id][data-animate="node"]')).map(function (element, index) {+ var box;+ try { box = element.getBBox(); } catch (_) { return null; }+ var painted = element.querySelector('[class*="c-"]') || element;+ var computed = getComputedStyle(painted);+ return {+ x: box.x,+ y: box.y,+ width: box.width,+ height: box.height,+ color: computed.stroke && computed.stroke !== 'none' ? computed.stroke : '#22d3ee',+ delay: Math.min(12, authoredStep(element, index)) * 0.16+ };+ }).filter(Boolean);++ return { edges: edges, nodes: nodes, x: vb.x, y: vb.y, width: vb.width, height: vb.height };+ }++ function pointAlong(points, progress) {+ var scaled = Math.max(0, Math.min(1, progress)) * (points.length - 1);+ var index = Math.min(points.length - 2, Math.floor(scaled));+ var mix = scaled - index;+ return {+ x: points[index].x + (points[index + 1].x - points[index].x) * mix,+ y: points[index].y + (points[index + 1].y - points[index].y) * mix+ };+ }++ function roundedRectPath(ctx, x, y, width, height, radius) {+ var r = Math.max(0, Math.min(radius, width / 2, height / 2));+ ctx.beginPath();+ ctx.moveTo(x + r, y);+ ctx.lineTo(x + width - r, y);+ ctx.quadraticCurveTo(x + width, y, x + width, y + r);+ ctx.lineTo(x + width, y + height - r);+ ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);+ ctx.lineTo(x + r, y + height);+ ctx.quadraticCurveTo(x, y + height, x, y + height - r);+ ctx.lineTo(x, y + r);+ ctx.quadraticCurveTo(x, y, x + r, y);+ ctx.closePath();+ }++ function drawMotionFrame(ctx, backgroundImage, motionScene, elapsed) {+ ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);+ ctx.drawImage(backgroundImage, 0, 0, ctx.canvas.width, ctx.canvas.height);+ ctx.save();+ ctx.scale(ctx.canvas.width / motionScene.width, ctx.canvas.height / motionScene.height);+ ctx.translate(-motionScene.x, -motionScene.y);++ motionScene.edges.forEach(function (edge) {+ var duration = 1.75;+ var progress = (elapsed - edge.delay) / duration;+ if (progress < 0 || progress > 1) return;+ var head = Math.max(0, Math.min(1, progress));+ var tail = Math.max(0, head - 0.24);+ var opacity = Math.sin(Math.PI * Math.min(1, progress));++ ctx.save();+ ctx.strokeStyle = edge.color;+ ctx.fillStyle = edge.color;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ ctx.lineWidth = Math.max(3.2, edge.width * 2.2);+ ctx.globalAlpha = 0.42 + opacity * 0.5;+ ctx.shadowColor = edge.color;+ ctx.shadowBlur = 10;+ ctx.beginPath();+ for (var i = 0; i <= 14; i++) {+ var trailPoint = pointAlong(edge.points, tail + (head - tail) * i / 14);+ if (i === 0) ctx.moveTo(trailPoint.x, trailPoint.y);+ else ctx.lineTo(trailPoint.x, trailPoint.y);+ }+ ctx.stroke();++ var point = pointAlong(edge.points, head);+ ctx.globalAlpha = 0.95;+ ctx.beginPath();+ ctx.arc(point.x, point.y, 4.8, 0, Math.PI * 2);+ ctx.fill();+ ctx.restore();+ });++ motionScene.nodes.forEach(function (node) {+ var progress = (elapsed - node.delay) / 2.6;+ if (progress < 0 || progress > 1) return;+ var pulse = Math.sin(Math.PI * progress);+ if (pulse <= 0.02) return;+ ctx.save();+ ctx.strokeStyle = node.color;+ ctx.lineWidth = 1.4 + pulse * 1.8;+ ctx.globalAlpha = pulse * 0.5;+ ctx.shadowColor = node.color;+ ctx.shadowBlur = 12 * pulse;+ var inset = 2 + pulse * 3;+ roundedRectPath(ctx, node.x - inset, node.y - inset, node.width + inset * 2, node.height + inset * 2, 8);+ ctx.stroke();+ ctx.restore();+ });++ ctx.restore();+ }++ var motionScene = createMotionScene(svg);++ return new Promise(function (resolve, reject) {+ var backgroundImage = new Image();+ backgroundImage.onload = function () {+ var canvas = document.createElement('canvas');+ canvas.width = Math.max(2, Math.round(data.width / 2) * 2);+ canvas.height = Math.max(2, Math.round(data.height / 2) * 2);+ var ctx = canvas.getContext('2d');+ var stream = canvas.captureStream(fps);+ var mime = motionMimeType();+ var recorder;+ try {+ recorder = new MediaRecorder(stream, { mimeType: mime, videoBitsPerSecond: 6000000 });+ } catch (err) {+ URL.revokeObjectURL(sourceUrl);+ stream.getTracks().forEach(function (track) { track.stop(); });+ reject(err);+ return;+ }+ var chunks = [];+ var raf = 0;+ var stopped = false;+ var startedAt = performance.now();+ function cleanup() {+ if (stopped) return;+ stopped = true;+ cancelAnimationFrame(raf);+ URL.revokeObjectURL(sourceUrl);+ stream.getTracks().forEach(function (track) { track.stop(); });+ }+ function draw(now) {+ var elapsed = Math.max(0, ((Number(now) || performance.now()) - startedAt) / 1000);+ drawMotionFrame(ctx, backgroundImage, motionScene, elapsed);+ raf = requestAnimationFrame(draw);+ }+ recorder.ondataavailable = function (event) {+ if (event.data && event.data.size) chunks.push(event.data);+ };+ recorder.onerror = function (event) {+ cleanup();+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));+ };+ recorder.onstop = function () {+ cleanup();+ var blob = new Blob(chunks, { type: recorder.mimeType || mime });+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));+ else resolve(blob);+ };+ drawMotionFrame(ctx, backgroundImage, motionScene, 0);+ recorder.start(250);+ startedAt = performance.now();+ raf = requestAnimationFrame(draw);+ setTimeout(function () {+ if (recorder.state === 'inactive') return;+ // Chromium normally emits the final chunk during stop(), but+ // some embedded browser shells need an explicit encoder flush+ // first. Keep the short grace window bounded and harmless for+ // browsers that already delivered timeslice chunks.+ try { recorder.requestData(); } catch (_) {}+ setTimeout(function () {+ if (recorder.state !== 'inactive') recorder.stop();+ }, 120);+ }, duration);+ };+ backgroundImage.onerror = function () {+ URL.revokeObjectURL(sourceUrl);+ reject(exportError('viewer.export.error.webmBackground'));+ };+ backgroundImage.src = sourceUrl;+ });+ }++ var menu = document.getElementById('export-menu');+ var btn = document.getElementById('btn-export');+ var routeShareItem = menu.querySelector('button[data-action="route-share-card"]');+ var reachShareItem = menu.querySelector('button[data-action="reach-share-card"]');+ var items = function () {+ return Array.prototype.slice.call(menu.querySelectorAll('button[role="menuitem"]'));+ };++ function syncRouteShareItem() {+ var snapshot = Archify.routeProbe && typeof Archify.routeProbe.exportSnapshot === 'function'+ ? Archify.routeProbe.exportSnapshot()+ : null;+ routeShareItem.hidden = !snapshot;+ routeShareItem.disabled = !snapshot;+ return snapshot;+ }++ function syncReachShareItem() {+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ reachShareItem.hidden = !snapshot;+ reachShareItem.disabled = !snapshot;+ return snapshot;+ }++ // ---- Clipboard support ----------------------------------------------+ function canCopyImage() {+ return typeof ClipboardItem !== 'undefined' &&+ navigator.clipboard &&+ typeof navigator.clipboard.write === 'function';+ }++ // ---- Raster format detection ----------------------------------------+ // canvas.toBlob('image/webp') silently returns a PNG on browsers without+ // WebP encoding (older Safari), so detect explicitly.+ function supports(format) {+ if (format === 'svg' || format === 'svg-light' || format === 'svg-dark' || format === 'png') return true;+ if (format === 'webm') return canRecordMotion();+ var mime = format === 'jpeg' ? 'image/jpeg' : 'image/webp';+ try {+ var c = document.createElement('canvas');+ c.width = c.height = 2;+ return c.toDataURL(mime).indexOf('data:' + mime) === 0;+ } catch (_) { return false; }+ }++ // Gray out unsupported items.+ items().forEach(function (it) {+ if (it.dataset.format && !supports(it.dataset.format)) {+ it.disabled = true;+ it.title = viewerText('viewer.export.unsupported');+ }+ if (it.dataset.action === 'copy' && !canCopyImage()) {+ it.disabled = true;+ it.title = viewerText('viewer.export.clipboardUnsupported');+ }+ });++ // ---- Toast ----------------------------------------------------------+ // A live region only announces CHANGES to an existing node, so the toast+ // element is created once up front and updated in place.+ var toastEl = document.createElement('div');+ toastEl.className = 'archify-toast';+ toastEl.setAttribute('role', 'status');+ document.body.appendChild(toastEl);+ var toastTimer = null;++ function toast(msg) {+ toastEl.textContent = '';+ requestAnimationFrame(function () {+ toastEl.textContent = msg;+ toastEl.classList.add('show');+ });+ clearTimeout(toastTimer);+ toastTimer = setTimeout(function () { toastEl.classList.remove('show'); }, 1500);+ }++ function open(focusLast) {+ if (Archify.preset && Archify.preset.isOpen()) Archify.preset.close(false);+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ syncRouteShareItem();+ syncReachShareItem();+ menu.classList.add('open');+ btn.setAttribute('aria-expanded', 'true');+ var available = items().filter(function (i) { return !i.hidden && !i.disabled; });+ var target = focusLast ? available[available.length - 1] : available[0];+ if (target) target.focus();+ }+ function close(focusTrigger) {+ menu.classList.remove('open');+ btn.setAttribute('aria-expanded', 'false');+ if (focusTrigger) btn.focus();+ }+ function isOpen() { return menu.classList.contains('open'); }++ btn.addEventListener('click', function (e) {+ e.stopPropagation();+ if (isOpen()) close(false);+ else open();+ });+ // APG menu-button pattern: ArrowDown/ArrowUp on the trigger opens the menu.+ btn.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault();+ if (!isOpen()) open(e.key === 'ArrowUp');+ }+ });+ document.addEventListener('click', function (e) {+ if (!menu.contains(e.target) && e.target !== btn) close(false);+ });++ // Keyboard navigation inside the menu.+ // Menu items: Up/Down, Home/End.+ // Esc closes + returns focus to trigger; Tab closes.+ menu.addEventListener('keydown', function (e) {+ if (e.key === 'Escape') { e.preventDefault(); close(true); return; }+ if (e.key === 'Tab') { close(false); return; }++ var available = items().filter(function (i) { return !i.hidden && !i.disabled; });+ var current = available.indexOf(document.activeElement);+ switch (e.key) {+ case 'ArrowDown':+ e.preventDefault();+ if (available.length) available[(current + 1 + available.length) % available.length].focus();+ break;+ case 'ArrowUp':+ e.preventDefault();+ if (available.length) available[(current - 1 + available.length) % available.length].focus();+ break;+ case 'Home':+ e.preventDefault();+ if (available[0]) available[0].focus();+ break;+ case 'End':+ e.preventDefault();+ if (available.length) available[available.length - 1].focus();+ break;+ }+ });++ function runExport(format) {+ if (['svg', 'svg-light', 'svg-dark', 'png', 'jpeg', 'webp', 'webm'].indexOf(format) === -1) {+ return Promise.reject(exportError('viewer.export.unsupported'));+ }+ var base = diagramFilename();+ var svgTheme = format === 'svg' ? 'auto' :+ format === 'svg-light' ? 'light' :+ format === 'svg-dark' ? 'dark' : null;+ close(true);+ clearExportReceipt();+ if (format === 'webm') toast(viewerText('viewer.export.recording'));+ return (svgTheme+ ? Promise.resolve(serializeSvg(1, { theme: svgTheme })).then(function (d) {+ var blob = new Blob([d.svgString], { type: 'image/svg+xml;charset=utf-8' });+ recordExportReceipt('svg', blob, d.canonicalStateClean);+ download(blob, base + (svgTheme === 'auto' ? '' : '-' + svgTheme) + '.svg');+ })+ : format === 'webm'+ ? recordWebm().then(function (blob) {+ document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));+ recordExportReceipt('webm', blob, true);+ download(blob, base + '.webm');+ toast(viewerText('viewer.export.downloadedWebm'));+ })+ : rasterize(format).then(function (blob) {+ recordExportReceipt(format, blob, true);+ download(blob, base + '.' + format);+ })+ ).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', format);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {+ var motionItem = menu.querySelector('button[data-format="webm"]');+ if (motionItem) {+ motionItem.disabled = true;+ motionItem.title = viewerText('viewer.export.motionUnavailable');+ motionItem.style.opacity = '0.5';+ }+ toast(viewerText('viewer.export.webmUnavailable'));+ return;+ }+ alert(viewerText('viewer.export.failed', { message: message }));+ });+ }++ function runRouteShareCard() {+ close(false);+ clearExportReceipt();+ var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();+ var blobPromise = snapshot+ ? renderShareCard({ routeSnapshot: snapshot })+ : Promise.reject(exportError('viewer.export.routeRequired'));+ return blobPromise.then(function (blob) {+ recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);+ download(blob, diagramFilename() + '-route-share-card.png');+ toast(viewerText('viewer.export.downloadedRoute'));+ return blob;+ }).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', 'share-card');+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));+ });+ }++ function runReachShareCard() {+ close(false);+ clearExportReceipt();+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ var blobPromise = snapshot+ ? renderShareCard({ reachSnapshot: snapshot })+ : Promise.reject(exportError('viewer.export.reachRequired'));+ return blobPromise.then(function (blob) {+ recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);+ download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');+ toast(viewerText('viewer.export.downloadedReach'));+ return blob;+ }).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', 'share-card');+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));+ });+ }++ // A compact, machine-readable receipt for local QA and generated proof+ // galleries. It exposes no diagram contents, only the completed format,+ // byte count, and whether temporary viewer state was excluded.+ function recordExportReceipt(format, blob, canonical, dimensions, variant, routeStateClean, reachStateClean) {+ document.documentElement.setAttribute('data-last-export-format', format);+ document.documentElement.setAttribute('data-last-export-bytes', String(blob.size));+ document.documentElement.setAttribute('data-last-export-canonical', canonical ? 'true' : 'false');+ if (variant) {+ document.documentElement.setAttribute('data-last-export-variant', variant);+ } else {+ document.documentElement.removeAttribute('data-last-export-variant');+ }+ if (routeStateClean === true) {+ document.documentElement.setAttribute('data-last-export-route-state-clean', 'true');+ } else {+ document.documentElement.removeAttribute('data-last-export-route-state-clean');+ }+ if (reachStateClean === true) {+ document.documentElement.setAttribute('data-last-export-reach-state-clean', 'true');+ } else {+ document.documentElement.removeAttribute('data-last-export-reach-state-clean');+ }+ if (dimensions) {+ document.documentElement.setAttribute('data-last-export-width', String(dimensions.width));+ document.documentElement.setAttribute('data-last-export-height', String(dimensions.height));+ } else {+ document.documentElement.removeAttribute('data-last-export-width');+ document.documentElement.removeAttribute('data-last-export-height');+ }+ }++ function clearExportReceipt() {+ document.documentElement.removeAttribute('data-last-export-format');+ document.documentElement.removeAttribute('data-last-export-bytes');+ document.documentElement.removeAttribute('data-last-export-canonical');+ document.documentElement.removeAttribute('data-last-export-width');+ document.documentElement.removeAttribute('data-last-export-height');+ document.documentElement.removeAttribute('data-last-export-variant');+ document.documentElement.removeAttribute('data-last-export-route-state-clean');+ document.documentElement.removeAttribute('data-last-export-reach-state-clean');+ document.documentElement.removeAttribute('data-last-export-error-format');+ document.documentElement.removeAttribute('data-last-export-error');+ }++ function writePngToClipboard(blobPromise) {+ // WebKit requires ClipboardItem to be constructed synchronously inside+ // the user gesture. Chromium accepts the same pending Promise<Blob>;+ // engines that reject promise values fall back to an awaited Blob.+ try {+ return navigator.clipboard.write([new ClipboardItem({ 'image/png': blobPromise })]);+ } catch (_) {+ return blobPromise.then(function (blob) {+ return navigator.clipboard.write([new ClipboardItem({ 'image/png': blob })]);+ });+ }+ }++ function runCopy() {+ close(true);+ clearExportReceipt();+ if (!canCopyImage()) {+ alert(viewerText('viewer.export.clipboardUnsupported.short'));+ return;+ }+ var blobPromise = rasterize('png');+ return writePngToClipboard(blobPromise).then(function () {+ toast(viewerText('viewer.export.copiedPng'));+ }).catch(function (err) {+ console.error(err);+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));+ });+ }++ menu.addEventListener('click', function (e) {+ var routeShareCardBtn = e.target.closest('button[data-action="route-share-card"]');+ if (routeShareCardBtn && !routeShareCardBtn.disabled && !routeShareCardBtn.hidden) { runRouteShareCard(); return; }++ var reachShareCardBtn = e.target.closest('button[data-action="reach-share-card"]');+ if (reachShareCardBtn && !reachShareCardBtn.disabled && !reachShareCardBtn.hidden) { runReachShareCard(); return; }++ var copyBtn = e.target.closest('button[data-action="copy"]');+ if (copyBtn && !copyBtn.disabled) { runCopy(); return; }++ var formatBtn = e.target.closest('button[data-format]');+ if (formatBtn && !formatBtn.disabled) { runExport(formatBtn.dataset.format); }+ });++ Archify.motion = { canRecord: canRecordMotion, recordWebm: recordWebm };+ Archify.exportMenu = {+ open: open,+ close: close,+ isOpen: isOpen,+ run: runExport,+ shareCard: rasterizeShareCard,+ downloadRouteShareCard: runRouteShareCard,+ downloadReachShareCard: runReachShareCard,+ syncRouteShare: syncRouteShareItem,+ syncReachShare: syncReachShareItem+ };++ // Auto-open on page load for demo/screenshot purposes: ?openExport=1+ // Wait for fonts (so the menu doesn't flash before typography lands)+ // and paint before opening. Fallback timeout for browsers without the+ // Font Loading API.+ try {+ if (new URLSearchParams(window.location.search).get('openExport') === '1') {+ var openWhenReady = function () {+ requestAnimationFrame(function () { requestAnimationFrame(open); });+ };+ if (document.fonts && document.fonts.ready) {+ document.fonts.ready.then(openWhenReady);+ } else {+ setTimeout(openWhenReady, 200);+ }+ }+ } catch (_) {}+ })();+++ /* ============================================================+ Motion Governor — one reader switch and one motion budget. Ambient+ trace yields to the strongest semantic owner; Still also parks bounded+ viewer signals without discarding their static meaning.+ ============================================================ */+ Archify.motionGovernor = (function () {+ var STORAGE_KEY = 'archify-motion';+ var html = document.documentElement;+ var svg = document.querySelector('.diagram-container svg');+ var btn = document.getElementById('btn-motion');+ var label = document.getElementById('motion-label');+ var motionQuery = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;+ var capable = !!(svg && svg.getAttribute('data-animation') === 'trace');+ var readerPaused = false;+ var suspensions = Object.create(null);+ var explicitOwner = '';+ var owner = '';+ var ownerToken = 0;+ var ownerCleanup = null;+ var lastEffectivePaused = null;+ var ambientStarted = false;+ var ambientPending = new Set();++ function detachAmbientBoundary() {+ if (!svg) return;+ svg.removeEventListener('animationend', onAmbientBoundary, true);+ svg.removeEventListener('animationcancel', onAmbientBoundary, true);+ }+ function settleAmbient(reason) {+ if (!capable) return false;+ ambientStarted = true;+ ambientPending.clear();+ detachAmbientBoundary();+ html.setAttribute('data-ambient-motion', 'settled');+ html.setAttribute('data-ambient-settle-reason', reason || 'complete');+ return true;+ }+ function onAmbientBoundary(event) {+ if (!ambientPending.has(event.target)) return;+ ambientPending.delete(event.target);+ if (!ambientPending.size) settleAmbient('complete');+ }+ function startAmbient() {+ if (ambientStarted || !capable) return false;+ ambientStarted = true;+ ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));+ if (!ambientPending.size) return settleAmbient('empty');+ svg.addEventListener('animationend', onAmbientBoundary, true);+ svg.addEventListener('animationcancel', onAmbientBoundary, true);+ html.setAttribute('data-ambient-motion', 'running');+ html.removeAttribute('data-ambient-settle-reason');+ return true;+ }++ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored() {+ try {+ if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');+ else localStorage.removeItem(STORAGE_KEY);+ } catch (_) {}+ }+ function reducedMotion() {+ return !!(motionQuery && motionQuery.matches);+ }+ function hasSuspension() {+ return Object.keys(suspensions).length > 0;+ }+ function effectivePaused() {+ return readerPaused || reducedMotion() || hasSuspension();+ }+ function ownerLabel(value) {+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');+ }+ function render() {+ if (!capable) return;+ var systemPaused = reducedMotion();+ var paused = effectivePaused();+ html.setAttribute('data-motion', paused ? 'still' : 'live');+ if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {+ settleAmbient('suppressed');+ } else if (!ambientStarted) {+ startAmbient();+ }+ btn.setAttribute('aria-pressed', paused ? 'false' : 'true');+ btn.disabled = systemPaused;+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');+ if (paused && lastEffectivePaused !== true && Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: systemPaused ? 'reduced-motion' : (hasSuspension() ? 'hidden' : 'still') });+ }+ lastEffectivePaused = paused;+ if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();+ if (systemPaused) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');+ } else if (hasSuspension()) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');+ } else if (paused) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');+ } else if (owner) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });+ } else {+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');+ }+ }+ function setPaused(next, options) {+ options = options || {};+ readerPaused = !!next;+ if (options.persist !== false) writeStored();+ render();+ return readerPaused;+ }+ function publishOwner() {+ owner = explicitOwner || deriveOwner();+ if (owner) html.setAttribute('data-motion-owner', owner);+ else html.removeAttribute('data-motion-owner');+ render();+ return owner;+ }+ function deriveOwner() {+ if (!svg) return '';+ if (svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active')) return 'route';+ if (svg.hasAttribute('data-lens-active')) return 'lens';+ if (svg.hasAttribute('data-relationship-preview-active')) return 'relationship';+ if (svg.hasAttribute('data-intent-trace-active')) return 'intent';+ if (svg.hasAttribute('data-focus-active')) return 'focus';+ if (svg.hasAttribute('data-legend-preview-active')) return 'legend';+ return '';+ }+ function clearClaim(preempted) {+ var cleanup = ownerCleanup;+ ownerCleanup = null;+ explicitOwner = '';+ if (preempted && cleanup) {+ try { cleanup(); } catch (_) {}+ }+ }+ function claim(next, cleanup) {+ if (!capable || !next) return 0;+ clearClaim(true);+ ownerToken += 1;+ explicitOwner = next;+ ownerCleanup = typeof cleanup === 'function' ? cleanup : null;+ publishOwner();+ return ownerToken;+ }+ function release(token) {+ if (!capable || token !== ownerToken || !explicitOwner) return false;+ clearClaim(false);+ ownerToken += 1;+ publishOwner();+ return true;+ }+ function suspend(reason) {+ var key = String(reason || 'runtime');+ var active = true;+ suspensions[key] = (suspensions[key] || 0) + 1;+ render();+ return function () {+ if (!active) return false;+ active = false;+ if (suspensions[key] > 1) suspensions[key] -= 1;+ else delete suspensions[key];+ render();+ return true;+ };+ }+ function syncVisibility() {+ if (document.hidden) {+ suspensions.visibility = true;+ html.setAttribute('data-document-hidden', 'true');+ } else {+ delete suspensions.visibility;+ html.removeAttribute('data-document-hidden');+ }+ render();+ }++ if (!capable) {+ btn.hidden = true;+ html.removeAttribute('data-motion-capable');+ html.removeAttribute('data-motion');+ html.removeAttribute('data-motion-owner');+ html.removeAttribute('data-ambient-motion');+ html.removeAttribute('data-ambient-settle-reason');+ return {+ capable: false,+ pause: function () { return false; },+ resume: function () { return false; },+ toggle: function () { return false; },+ setMode: function () { return 'still'; },+ mode: function () { return 'still'; },+ claim: function () { return 0; },+ release: function () { return false; },+ suspend: function () { return function () { return false; }; },+ isPaused: function () { return true; },+ owner: function () { return ''; }+ };+ }++ html.setAttribute('data-motion-capable', 'true');+ btn.hidden = false;+ readerPaused = readStored() === 'still';+ btn.addEventListener('click', function () { setPaused(!readerPaused); });+ if (motionQuery) {+ if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);+ else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);+ }+ document.addEventListener('visibilitychange', syncVisibility);+ if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {+ var ownerObserver = new MutationObserver(function () { publishOwner(); });+ ownerObserver.observe(svg, {+ attributes: true,+ attributeFilter: [+ 'data-route-picking', 'data-route-active',+ 'data-lens-active', 'data-relationship-preview-active', 'data-intent-trace-active',+ 'data-focus-active', 'data-legend-preview-active'+ ]+ });+ }+ syncVisibility();+ publishOwner();+ render();++ return {+ capable: true,+ pause: function () { return setPaused(true); },+ resume: function () { return setPaused(false); },+ toggle: function () { return setPaused(!readerPaused); },+ setMode: function (next, options) {+ setPaused(next === 'still', options);+ return effectivePaused() ? 'still' : 'live';+ },+ mode: function () { return effectivePaused() ? 'still' : 'live'; },+ claim: claim,+ release: release,+ suspend: suspend,+ isPaused: effectivePaused,+ owner: function () { return owner; }+ };+ })();++ /* Verified repository evidence is emitted only after the renderer checks+ the authored GitHub revision, source blobs, and optional line ranges+ against the explicit --repo-root. It remains outside the SVG so every+ canonical visual export stays free of repository paths. */+ Archify.sourceEvidence = (function () {+ var element = document.getElementById('archify-source-evidence-data');+ var payload = null;+ var svgNamespace = 'http://www.w3.org/2000/svg';+ if (element) {+ try {+ var parsed = JSON.parse(element.textContent || 'null');+ if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;+ } catch (_) {}+ }+ function installBeacons() {+ if (!payload) return 0;+ var svg = document.querySelector('.diagram-container svg');+ if (!svg) return 0;+ var installed = 0;+ Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ var id = node.getAttribute('data-node-id');+ var sources = payload.nodes[id];+ if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;+ var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');+ var box;+ try { box = (shape || node).getBBox(); } catch (_) { return; }+ if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;++ var count = sources.length;+ var label = viewerCount('viewer.passport.beacon', count);+ var beacon = document.createElementNS(svgNamespace, 'g');+ beacon.classList.add('source-evidence-beacon');+ beacon.setAttribute('data-source-evidence-beacon', '');+ beacon.setAttribute('aria-hidden', 'true');+ var brandOffset = node.hasAttribute('data-node-brand') ? 22 : 0;+ var title = document.createElementNS(svgNamespace, 'title');+ title.textContent = label;+ var plate = document.createElementNS(svgNamespace, 'rect');+ plate.setAttribute('height', '13');+ plate.setAttribute('rx', '6.5');+ var text = document.createElementNS(svgNamespace, 'text');+ text.setAttribute('y', '9.4');+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;+ beacon.appendChild(title);+ beacon.appendChild(plate);+ beacon.appendChild(text);+ node.appendChild(beacon);++ // Measure the real glyph advance, then clamp the plate between 24+ // and 36px; a still-wider label is squeezed with textLength so the+ // badge never overlaps the neighbouring brand mark or sigil.+ var textWidth = 16;+ try {+ var measured = text.getComputedTextLength();+ if (Number.isFinite(measured) && measured > 0) textWidth = measured;+ } catch (_) {}+ var plateWidth = Math.min(36, Math.max(24, textWidth + 8));+ if (textWidth > plateWidth - 8) {+ text.setAttribute('textLength', String(plateWidth - 8));+ text.setAttribute('lengthAdjust', 'spacingAndGlyphs');+ }+ plate.setAttribute('width', String(plateWidth));+ text.setAttribute('x', String(plateWidth / 2));+ beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 6 - brandOffset - plateWidth) + ' ' + (box.y + 4.5) + ')');++ var originalLabel = node.getAttribute('aria-label') || '';+ node.setAttribute('data-source-evidence-count', String(count));+ node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));+ installed += 1;+ });+ return installed;+ }+ return {+ available: function () { return Boolean(payload); },+ repository: function () { return payload ? payload.repository : null; },+ node: function (id) {+ var sources = payload && payload.nodes ? payload.nodes[id] : null;+ return Array.isArray(sources) ? sources.slice() : [];+ },+ installBeacons: installBeacons+ };+ })();+ Archify.sourceEvidence.installBeacons();++ /* ============================================================+ Explore — stable-ID neighborhood focus + dependency-free pan/zoom.+ Renderer IDs become deep-linkable semantic hooks without turning the+ standalone artifact into a canvas editor.+ ============================================================ */+ Archify.focus = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var chip = document.getElementById('focus-chip');+ var label = document.getElementById('focus-label');+ var detail = document.getElementById('focus-detail');+ var kind = document.getElementById('focus-kind');+ var context = document.getElementById('focus-context');+ var tag = document.getElementById('focus-tag');+ var semanticId = document.getElementById('focus-id');+ var evidence = document.getElementById('focus-evidence');+ var repositoryLink = document.getElementById('focus-repository');+ var evidenceLinks = document.getElementById('focus-evidence-links');+ var summary = document.getElementById('focus-summary');+ var reachSection = document.getElementById('focus-reach');+ var reachStatus = document.getElementById('focus-reach-status');+ var upstreamBtn = document.getElementById('btn-reach-upstream');+ var downstreamBtn = document.getElementById('btn-reach-downstream');+ var upstreamCount = document.getElementById('focus-reach-upstream-count');+ var downstreamCount = document.getElementById('focus-reach-downstream-count');+ var relationshipList = document.getElementById('relationship-lens-list');+ var copyBtn = document.getElementById('btn-focus-copy');+ var relationsBtn = document.getElementById('btn-focus-relations');+ var clearBtn = document.getElementById('btn-focus-clear');+ var moveBtn = document.getElementById('btn-focus-move');+ var activeIds = [];+ var hoveredRelationship = null;+ var focusedRelationship = null;+ var pinnedRelationship = null;+ var pinnedRelationshipKey = null;+ var activeRelationshipPreview = null;+ var relationshipHitOverlay = null;+ var relationshipHitTargets = [];+ var directPreviewTimer = null;+ var lensDrag = null;+ var lensDragClickPointer = null;+ var manualLensPosition = null;+ var reachabilityMode = null;+ var activeReachability = null;+ var svgNamespace = 'http://www.w3.org/2000/svg';+ var reducedMotionQuery = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;+ var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') || (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '');+ }+ function reachabilityRelationships() {+ var seen = Object.create(null);+ var relationships = [];+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!from || !to || seen[key]) return;+ seen[key] = true;+ relationships.push({ key: key, from: from, to: to });+ });+ return relationships;+ }+ function computeReachability(originId, direction, relationships) {+ if (typeof originId !== 'string' || !originId ||+ (direction !== 'upstream' && direction !== 'downstream') ||+ !Array.isArray(relationships)) return null;+ var records = [];+ var seenKeys = Object.create(null);+ relationships.forEach(function (relationship, index) {+ if (!relationship || typeof relationship.from !== 'string' || !relationship.from ||+ typeof relationship.to !== 'string' || !relationship.to) return;+ var key = typeof relationship.key === 'string' && relationship.key+ ? relationship.key : String(index);+ if (seenKeys[key]) return;+ seenKeys[key] = true;+ records.push({ key: key, from: relationship.from, to: relationship.to });+ });++ var depths = Object.create(null);+ var order = [];+ var queue = [originId];+ depths[originId] = 0;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var current = queue[cursor];+ records.forEach(function (relationship) {+ var next = null;+ if (direction === 'downstream' && relationship.from === current) next = relationship.to;+ else if (direction === 'upstream' && relationship.to === current) next = relationship.from;+ if (next == null || Object.prototype.hasOwnProperty.call(depths, next)) return;+ depths[next] = depths[current] + 1;+ queue.push(next);+ });+ }+ queue.forEach(function (id) { order.push(id); });++ var edgeKeys = [];+ records.forEach(function (relationship) {+ if (Object.prototype.hasOwnProperty.call(depths, relationship.from) &&+ Object.prototype.hasOwnProperty.call(depths, relationship.to)) edgeKeys.push(relationship.key);+ });+ var maxDepth = order.reduce(function (maximum, id) {+ return Math.max(maximum, depths[id]);+ }, 0);+ return {+ direction: direction,+ originId: originId,+ nodeIds: order,+ edgeKeys: edgeKeys,+ depths: depths,+ maxDepth: maxDepth+ };+ }+ function reachabilityFor(id, direction) {+ return computeReachability(id, direction, reachabilityRelationships());+ }+ function resetReachabilityButtons() {+ upstreamBtn.setAttribute('aria-pressed', 'false');+ downstreamBtn.setAttribute('aria-pressed', 'false');+ }+ function clearReachability(options) {+ options = options || {};+ reachabilityMode = null;+ activeReachability = null;+ svg.removeAttribute('data-reach-active');+ chip.removeAttribute('data-reach-mode');+ nodes().forEach(function (node) {+ node.removeAttribute('data-reach-match');+ node.removeAttribute('data-reach-origin');+ node.removeAttribute('data-reach-depth');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-reach-match');+ edge.removeAttribute('data-reach-depth');+ });+ resetReachabilityButtons();+ reachStatus.textContent = '';+ reachStatus.hidden = true;+ if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {+ Archify.exportMenu.syncReachShare();+ }+ if (options.updateUrl === true && activeIds.length === 1) {+ try {+ history.replaceState(null, '', location.pathname + location.search + '#focus=' + encodeURIComponent(activeIds[0]));+ } catch (_) {}+ }+ }+ function renderReachabilityControls(id) {+ var upstream = reachabilityFor(id, 'upstream');+ var downstream = reachabilityFor(id, 'downstream');+ var upstreamReach = upstream ? Math.max(0, upstream.nodeIds.length - 1) : 0;+ var downstreamReach = downstream ? Math.max(0, downstream.nodeIds.length - 1) : 0;+ upstreamCount.textContent = String(upstreamReach);+ downstreamCount.textContent = String(downstreamReach);+ upstreamBtn.disabled = upstreamReach === 0;+ downstreamBtn.disabled = downstreamReach === 0;+ upstreamBtn.setAttribute('aria-label', upstreamReach+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));+ downstreamBtn.setAttribute('aria-label', downstreamReach+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));+ reachSection.hidden = false;+ }+ function applyReachability(direction, options) {+ options = options || {};+ if (activeIds.length !== 1 || (direction !== 'upstream' && direction !== 'downstream')) return false;+ if (reachabilityMode === direction && options.toggle !== false) {+ clearReachability({ updateUrl: options.updateUrl !== false });+ return true;+ }+ var result = reachabilityFor(activeIds[0], direction);+ if (!result || result.nodeIds.length <= 1) return false;+ clearRelationshipPreview({ clearPin: true });+ clearReachability({ updateUrl: false });+ reachabilityMode = direction;+ activeReachability = result;+ var edgeKeySet = Object.create(null);+ result.edgeKeys.forEach(function (key) { edgeKeySet[key] = true; });+ svg.setAttribute('data-reach-active', direction);+ chip.setAttribute('data-reach-mode', direction);+ nodes().forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ if (!Object.prototype.hasOwnProperty.call(result.depths, id)) return;+ node.setAttribute('data-reach-match', '');+ node.setAttribute('data-reach-depth', String(result.depths[id]));+ if (id === result.originId) node.setAttribute('data-reach-origin', '');+ });+ edges().forEach(function (edge) {+ var key = edge.getAttribute('data-edge-key') || (+ edge.getAttribute('data-edge-from') + '\u0000' ++ edge.getAttribute('data-edge-to') + '\u0000' ++ (edge.getAttribute('data-edge-label') || '')+ );+ if (!edgeKeySet[key]) return;+ edge.setAttribute('data-reach-match', '');+ var fromDepth = result.depths[edge.getAttribute('data-edge-from')];+ var toDepth = result.depths[edge.getAttribute('data-edge-to')];+ edge.setAttribute('data-reach-depth', String(Math.max(fromDepth || 0, toDepth || 0)));+ });+ resetReachabilityButtons();+ var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;+ activeButton.setAttribute('aria-pressed', 'true');+ var reachableCount = result.nodeIds.length - 1;+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });+ reachStatus.hidden = false;+ if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {+ Archify.exportMenu.syncReachShare();+ }+ if (options.updateUrl !== false) {+ try {+ history.replaceState(null, '', location.pathname + location.search + '#focus=' ++ encodeURIComponent(activeIds[0]) + '&reach=' + direction);+ } catch (_) {}+ }+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });+ }+ placeRelationshipLens();+ return true;+ }+ function reachabilitySnapshot() {+ if (!activeReachability || activeIds.length !== 1 ||+ (reachabilityMode !== 'upstream' && reachabilityMode !== 'downstream') ||+ activeReachability.direction !== reachabilityMode ||+ activeReachability.originId !== activeIds[0] ||+ svg.getAttribute('data-reach-active') !== reachabilityMode) return null;++ var originId = activeReachability.originId;+ var nodeIds = activeReachability.nodeIds.slice();+ var edgeKeys = activeReachability.edgeKeys.slice();+ if (nodeIds.length < 2 || nodeIds[0] !== originId || !edgeKeys.length ||+ !activeReachability.depths || !Number.isInteger(activeReachability.maxDepth) ||+ activeReachability.maxDepth < 1) return null;++ var allNodes = nodes();+ var allEdges = edges();+ var seenNodeIds = Object.create(null);+ var seenEdgeKeys = Object.create(null);+ var nodeIdSet = Object.create(null);+ var depths = Object.create(null);+ var originNode = null;+ var measuredMaxDepth = 0;++ if (nodeIds.some(function (id) {+ var depth = activeReachability.depths[id];+ var matches = allNodes.filter(function (node) {+ return node.getAttribute('data-node-id') === id;+ });+ if (typeof id !== 'string' || !id || seenNodeIds[id] || matches.length !== 1 ||+ !matches[0].hasAttribute('data-reach-match') ||+ !Number.isInteger(depth) || depth < 0 || depth > activeReachability.maxDepth ||+ (id === originId+ ? (!matches[0].hasAttribute('data-reach-origin') || depth !== 0)+ : depth < 1)) return true;+ seenNodeIds[id] = true;+ nodeIdSet[id] = true;+ depths[id] = depth;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ if (id === originId) originNode = matches[0];+ return false;+ }) || !originNode || measuredMaxDepth !== activeReachability.maxDepth ||+ allNodes.filter(function (node) { return node.hasAttribute('data-reach-match'); }).length !== nodeIds.length) return null;++ var edgeRecords = [];+ if (edgeKeys.some(function (key) {+ if (typeof key !== 'string' || !key || seenEdgeKeys[key]) return true;+ var fragments = allEdges.filter(function (edge) {+ return edge.getAttribute('data-edge-key') === key;+ });+ var drawableFragments = fragments.filter(hasDrawableGeometry);+ if (!fragments.length || drawableFragments.length !== 1 ||+ !fragments.every(function (fragment) { return fragment.hasAttribute('data-reach-match'); })) return true;+ var first = fragments[0];+ var from = first.getAttribute('data-edge-from');+ var to = first.getAttribute('data-edge-to');+ var id = first.getAttribute('data-edge-id') || '';+ var labelValue = first.getAttribute('data-edge-label') || '';+ if (!nodeIdSet[from] || !nodeIdSet[to] || !fragments.every(function (fragment) {+ return fragment.getAttribute('data-edge-from') === from &&+ fragment.getAttribute('data-edge-to') === to &&+ (fragment.getAttribute('data-edge-id') || '') === id;+ })) return true;+ seenEdgeKeys[key] = true;+ edgeRecords.push({+ key: key,+ id: id,+ from: from,+ to: to,+ label: labelValue,+ depth: Math.max(depths[from], depths[to])+ });+ return false;+ })) return null;++ var liveEdgeKeys = Object.create(null);+ if (allEdges.some(function (edge) {+ if (!edge.hasAttribute('data-reach-match')) return false;+ var key = edge.getAttribute('data-edge-key');+ if (!key || !seenEdgeKeys[key]) return true;+ liveEdgeKeys[key] = true;+ return false;+ }) || Object.keys(liveEdgeKeys).length !== edgeKeys.length) return null;++ return {+ direction: reachabilityMode,+ origin: { id: originId, label: nodeLabel(originNode, originId) },+ nodeIds: nodeIds,+ depths: depths,+ maxDepth: activeReachability.maxDepth,+ edges: edgeRecords+ };+ }+ function setPassportValue(element, value) {+ var normalized = value == null ? '' : String(value).trim();+ element.textContent = normalized;+ element.hidden = !normalized;+ }+ function renderSourceEvidence(id) {+ evidenceLinks.textContent = '';+ repositoryLink.removeAttribute('href');+ repositoryLink.removeAttribute('aria-label');+ repositoryLink.textContent = '';+ var sources = Archify.sourceEvidence.node(id);+ var repository = Archify.sourceEvidence.repository();+ if (!repository || !sources.length) {+ evidence.hidden = true;+ return;+ }+ repositoryLink.textContent = repository.label + ' @ ' + repository.shortRevision;+ if (repository.href) {+ repositoryLink.href = repository.href;+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));+ }+ evidence.title = viewerText('viewer.passport.verificationScope');+ sources.forEach(function (source) {+ var link = document.createElement(source.href ? 'a' : 'div');+ link.className = 'semantic-passport-source';+ if (source.href) {+ link.href = source.href;+ link.target = '_blank';+ link.rel = 'noopener noreferrer';+ link.referrerPolicy = 'no-referrer';+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));+ }+ var name = document.createElement('strong');+ name.textContent = source.label || source.path.split('/').pop() || source.path;+ var location = document.createElement('code');+ location.textContent = source.line+ ? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + (source.href ? ' ↗' : '')+ : source.href ? viewerText('viewer.passport.source.openLink') : '';+ var sourcePath = document.createElement('small');+ sourcePath.textContent = source.path;+ link.appendChild(name);+ link.appendChild(location);+ link.appendChild(sourcePath);+ evidenceLinks.appendChild(link);+ });+ evidence.hidden = false;+ }+ function renderPassport(id, node) {+ setPassportValue(detail, node.getAttribute('data-node-sublabel'));+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));+ setPassportValue(context, node.getAttribute('data-node-context'));+ setPassportValue(tag, node.getAttribute('data-node-tag'));+ setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));+ semanticId.textContent = id;+ semanticId.hidden = false;+ renderSourceEvidence(id);+ }+ function relationshipsFor(id, byId) {+ var seen = {};+ var relationships = [];+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (from !== id && to !== id) return;+ var edgeLabel = edge.getAttribute('data-edge-label') || '';+ var edgeKey = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + edgeLabel);+ var edgeId = edge.getAttribute('data-edge-id') || '';+ if (seen[edgeKey]) return;+ seen[edgeKey] = true;+ var direction = from === id && to === id ? 'loop' : (from === id ? 'out' : 'in');+ var neighborId = direction === 'in' ? from : to;+ var neighbor = byId[neighborId];+ relationships.push({+ key: edgeKey,+ id: edgeId,+ from: from,+ to: to,+ direction: direction,+ neighborId: neighborId,+ neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')+ });+ });+ return relationships;+ }+ function relationshipEdgeShapes(edge) {+ if (!edge) return [];+ if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function relationshipHitRecords() {+ var recordsByKey = {};+ var recordsById = Object.create(null);+ var byId = Object.create(null);+ nodes().forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var records = [];+ edges().forEach(function (edge) {+ var shapes = relationshipEdgeShapes(edge);+ if (!shapes.length) return;+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var labelValue = edge.getAttribute('data-edge-label') || '';+ var edgeId = edge.getAttribute('data-edge-id') || '';+ var key = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + labelValue);+ var existing = recordsByKey[key];+ if (existing) {+ if (existing.from !== from || existing.to !== to || existing.labelValue !== labelValue || existing.id !== edgeId) {+ existing.invalid = true;+ return;+ }+ shapes.forEach(function (shape) {+ if (existing.shapes.indexOf(shape) === -1) existing.shapes.push(shape);+ });+ return;+ }+ var record = {+ key: key,+ id: edgeId,+ from: from,+ to: to,+ fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,+ toLabel: byId[to] ? nodeLabel(byId[to], to) : to,+ labelValue: labelValue,+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),+ edge: edge,+ shapes: shapes,+ invalid: false+ };+ recordsByKey[key] = record;+ if (edgeId) {+ if (recordsById[edgeId]) {+ recordsById[edgeId].invalid = true;+ record.invalid = true;+ } else {+ recordsById[edgeId] = record;+ }+ }+ records.push(record);+ });+ return records.filter(function (record) { return !record.invalid && record.from && record.to; });+ }+ function relationshipRecordForKey(key) {+ return relationshipHitRecords().find(function (record) { return record.key === key; }) || null;+ }+ function pinnedRelationshipRecord() {+ return pinnedRelationshipKey ? relationshipRecordForKey(pinnedRelationshipKey) : null;+ }+ function renderRelationshipCopyAction() {+ var record = pinnedRelationshipRecord();+ if (record && record.id) {+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));+ } else if (pinnedRelationshipKey) {+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));+ } else {+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ }+ }+ function relationshipHitGeometry(shape, className) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('filter');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('tabindex');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.setAttribute('class', className || 'relationship-hit-rail');+ return clone;+ }+ function removeRelationshipPulse() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-relationship-pulse-overlay]'), function (element) {+ element.remove();+ });+ }+ function relationshipPulseGeometry(shape) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('transform');+ clone.removeAttribute('filter');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('tabindex');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-focus-match');+ clone.removeAttribute('data-relationship-preview');+ clone.setAttribute('class', 'relationship-flow-pulse');+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function relationshipTokenKind(edge) {+ var shapes = relationshipEdgeShapes(edge);+ var classEvidence = [edge.getAttribute('class') || ''].concat(shapes.map(function (shape) {+ return shape.getAttribute('class') || '';+ })).join(' ');+ var from = edge.getAttribute('data-edge-from') || '';+ var to = edge.getAttribute('data-edge-to') || '';+ var source = nodes().find(function (node) { return node.getAttribute('data-node-id') === from; });+ var target = nodes().find(function (node) { return node.getAttribute('data-node-id') === to; });+ var sourceKind = source ? source.getAttribute('data-node-kind') || 'neutral' : 'neutral';+ var targetKind = target ? target.getAttribute('data-node-kind') || 'neutral' : 'neutral';+ if (/\ba-security\b/.test(classEvidence) || sourceKind === 'security' || targetKind === 'security' || targetKind === 'failure') return 'security';+ if (/\ba-dashed\b/.test(classEvidence) || sourceKind === 'messagebus' || targetKind === 'messagebus') return 'event';+ if (sourceKind === 'database' || targetKind === 'database') return 'data';+ if (targetKind === 'waiting' || targetKind === 'success') return 'state';+ return 'call';+ }+ function relationshipTokenPath(shape) {+ if (!shape) return '';+ var tagName = String(shape.tagName || '').toLowerCase();+ if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'line') {+ return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') ++ ' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');+ }+ if (tagName === 'polyline' && shape.points && shape.points.numberOfItems > 1) {+ var commands = [];+ for (var i = 0; i < shape.points.numberOfItems; i += 1) {+ var point = shape.points.getItem(i);+ commands.push((i === 0 ? 'M ' : 'L ') + point.x + ' ' + point.y);+ }+ return commands.join(' ');+ }+ return '';+ }+ function relationshipTokenPart(tagName, className, attrs) {+ var part = document.createElementNS(svgNamespace, tagName);+ part.setAttribute('class', className);+ Object.keys(attrs || {}).forEach(function (name) { part.setAttribute(name, attrs[name]); });+ return part;+ }+ function relationshipTokenGeometry(shape, kind, key, options) {+ options = options || {};+ var pathData = relationshipTokenPath(shape);+ if (!pathData) return null;+ var token = document.createElementNS(svgNamespace, 'g');+ token.setAttribute('class', 'semantic-flow-token ' + (options.className || 'relationship-flow-token'));+ token.setAttribute('data-token-kind', kind);+ token.setAttribute('data-token-edge-key', key);+ token.setAttribute('aria-hidden', 'true');+ token.appendChild(relationshipTokenPart('circle', 'semantic-flow-token-halo', { cx: '0', cy: '0', r: '7' }));+ if (kind === 'data') {+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-5', y: '-4', width: '10', height: '8', rx: '2' }));+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'M -2.8 -1.2 h 5.6 M -2.8 1.4 h 3.8' }));+ } else if (kind === 'event') {+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-7', y: '-3', width: '4', height: '6', rx: '1' }));+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-2', y: '-3', width: '4', height: '6', rx: '1' }));+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '3', y: '-3', width: '4', height: '6', rx: '1' }));+ } else if (kind === 'security') {+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-shape', { d: 'M 0 -5 L 4 -3.4 V 0 c 0 3 -1.6 4.5 -4 5.5 C -2.4 4.5 -4 3 -4 0 v -3.4 Z' }));+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'm -2 .2 1.4 1.4 L 2 -1.4' }));+ } else if (kind === 'state') {+ token.appendChild(relationshipTokenPart('circle', 'relationship-flow-token-shape', { cx: '0', cy: '0', r: '5' }));+ token.appendChild(relationshipTokenPart('circle', 'relationship-flow-token-dot', { cx: '0', cy: '0', r: '1.35' }));+ } else {+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'M -5 -3 L -1 0 L -5 3 M 0 -3 L 4 0 L 0 3' }));+ }+ var motion = document.createElementNS(svgNamespace, 'animateMotion');+ motion.setAttribute('path', pathData);+ motion.setAttribute('dur', options.duration || '1.2s');+ motion.setAttribute('begin', '0s');+ motion.setAttribute('fill', 'freeze');+ motion.setAttribute('rotate', 'auto');+ motion.setAttribute('calcMode', 'spline');+ motion.setAttribute('keyTimes', '0;1');+ motion.setAttribute('keySplines', '.2 0 .2 1');+ token.appendChild(motion);+ return token;+ }+ function createSemanticFlowToken(edge, shape, options) {+ if (!edge || !shape) return null;+ var key = edge.getAttribute('data-edge-key') || (+ edge.getAttribute('data-edge-from') + '\u0000' ++ edge.getAttribute('data-edge-to') + '\u0000' ++ (edge.getAttribute('data-edge-label') || '')+ );+ return relationshipTokenGeometry(shape, relationshipTokenKind(edge), key, options);+ }+ Archify.flowTokens = {+ create: createSemanticFlowToken,+ kind: function (edge) { return relationshipTokenKind(edge); },+ path: relationshipTokenPath+ };+ function renderRelationshipPulse(key) {+ removeRelationshipPulse();+ if (!key || document.documentElement.getAttribute('data-embed') === 'true') return false;+ if (document.hidden || (Archify.motionGovernor && Archify.motionGovernor.isPaused())) return false;+ if (reducedMotionQuery && reducedMotionQuery.matches) return false;+ var matchingEdges = edges().filter(function (edge) {+ return edge.getAttribute('data-edge-key') === key;+ });+ if (!matchingEdges.length) return false;+ var overlay = document.createElementNS(svgNamespace, 'g');+ overlay.setAttribute('class', 'relationship-pulse-overlay');+ overlay.setAttribute('data-relationship-pulse-overlay', '');+ overlay.setAttribute('data-relationship-pulse-key', key);+ overlay.setAttribute('aria-hidden', 'true');+ var tokenAdded = false;+ matchingEdges.forEach(function (edge) {+ var wrapper = document.createElementNS(svgNamespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ var shapes = relationshipEdgeShapes(edge);+ shapes.forEach(function (shape) {+ wrapper.appendChild(relationshipPulseGeometry(shape));+ });+ if (!tokenAdded && shapes.length) {+ var tokenKind = relationshipTokenKind(edge);+ var token = relationshipTokenGeometry(shapes[0], tokenKind, key);+ if (token) {+ wrapper.appendChild(token);+ overlay.setAttribute('data-relationship-token-kind', tokenKind);+ tokenAdded = true;+ }+ }+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ if (!overlay.childNodes.length) return false;+ var finishPulse = function () {+ if (overlay.parentNode) overlay.remove();+ };+ overlay.addEventListener('animationend', finishPulse, { once: true });+ overlay.addEventListener('animationcancel', finishPulse, { once: true });+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ return true;+ }+ function clearRelationshipPreview(options) {+ options = options || {};+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ directPreviewTimer = null;+ removeRelationshipPulse();+ activeRelationshipPreview = null;+ svg.removeAttribute('data-relationship-preview-active');+ svg.removeAttribute('data-relationship-direct-active');+ if (options.clearPin === true) {+ pinnedRelationship = null;+ pinnedRelationshipKey = null;+ svg.removeAttribute('data-relationship-pin-active');+ }+ chip.removeAttribute('data-relationship-previewing');+ edges().forEach(function (edge) { edge.removeAttribute('data-relationship-preview'); });+ nodes().forEach(function (node) {+ node.removeAttribute('data-relationship-preview-node');+ node.removeAttribute('data-relationship-preview-source');+ node.removeAttribute('data-relationship-preview-target');+ });+ Array.prototype.forEach.call(relationshipList.querySelectorAll('[data-preview-active]'), function (button) {+ button.removeAttribute('data-preview-active');+ });+ relationshipHitTargets.forEach(function (target) {+ target.setAttribute('aria-pressed', pinnedRelationshipKey && target.getAttribute('data-relationship-key') === pinnedRelationshipKey ? 'true' : 'false');+ target.removeAttribute('data-preview-active');+ });+ renderRelationshipCopyAction();+ placeRelationshipLens();+ }+ function previewRelationship(button, options) {+ options = options || {};+ if (pinnedRelationshipKey && pinnedRelationship && button !== pinnedRelationship) return;+ clearRelationshipPreview();+ if (!button) return;+ var key = button.getAttribute('data-relationship-key');+ var from = button.getAttribute('data-relationship-from');+ var to = button.getAttribute('data-relationship-to');+ if (!key || !from || !to) return;+ svg.setAttribute('data-relationship-preview-active', key);+ if (options.direct === true) svg.setAttribute('data-relationship-direct-active', key);+ edges().forEach(function (edge) {+ if (edge.getAttribute('data-edge-key') === key) edge.setAttribute('data-relationship-preview', '');+ });+ nodes().forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ if (id !== from && id !== to) return;+ node.setAttribute('data-relationship-preview-node', '');+ if (id === from) node.setAttribute('data-relationship-preview-source', '');+ if (id === to) node.setAttribute('data-relationship-preview-target', '');+ });+ button.setAttribute('data-preview-active', 'true');+ if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');+ activeRelationshipPreview = button;+ renderRelationshipPulse(key);+ placeRelationshipLens();+ }+ function syncRelationshipPreview() {+ var next = pinnedRelationship || focusedRelationship || hoveredRelationship;+ if (next === activeRelationshipPreview) return;+ previewRelationship(next, { direct: !!(next && next.hasAttribute('data-relationship-hit-key')) });+ }+ function directRelationshipBlocked() {+ return html.getAttribute('data-embed') === 'true' ||+ html.getAttribute('data-guide-open') === 'true' ||+ container.classList.contains('is-panning') ||+ (activeIds.length > 0 && !pinnedRelationshipKey) ||+ svg.hasAttribute('data-route-picking') ||+ svg.hasAttribute('data-route-active') ||+ svg.hasAttribute('data-lens-active');+ }+ function scheduleDirectRelationshipPreview(target) {+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ if (pinnedRelationshipKey) return;+ directPreviewTimer = window.setTimeout(function () {+ directPreviewTimer = null;+ if (pinnedRelationshipKey || hoveredRelationship !== target || directRelationshipBlocked()) return;+ previewRelationship(target, { direct: true });+ }, reducedMotionQuery && reducedMotionQuery.matches ? 0 : 90);+ }+ function relationshipHitTarget(key) {+ return relationshipHitTargets.find(function (target) {+ return target.getAttribute('data-relationship-key') === key;+ }) || null;+ }+ function revealPinnedRelationship(record) {+ function reveal() {+ if (!record || pinnedRelationshipKey !== record.key) return true;+ if (!Archify.view || typeof Archify.view.reveal !== 'function') return false;+ Archify.view.reveal([record.from, record.to], { reason: 'relationship-direct' });+ return true;+ }+ if (!reveal()) requestAnimationFrame(reveal);+ }+ function inspectRelationship(key, options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ directPreviewTimer = null;+ hoveredRelationship = null;+ focusedRelationship = null;+ if (pinnedRelationshipKey === key) {+ if (options.toggle === false) return true;+ clear({ updateUrl: options.updateUrl !== false });+ return true;+ }+ var record = relationshipRecordForKey(key);+ if (!record) return false;+ set(record.from, { toggle: false, updateUrl: false });+ var row = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-key]')).find(function (candidate) {+ return candidate.getAttribute('data-relationship-key') === key;+ });+ if (!row) return false;+ previewRelationship(row);+ pinnedRelationship = row;+ pinnedRelationshipKey = key;+ svg.setAttribute('data-relationship-pin-active', key);+ var target = relationshipHitTarget(key);+ if (target) target.setAttribute('aria-pressed', 'true');+ renderRelationshipCopyAction();+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });+ revealPinnedRelationship(record);+ if (options.updateUrl !== false && record.id) {+ try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}+ }+ return true;+ }+ function inspectRelationshipById(id, options) {+ var record = relationshipHitRecords().find(function (item) { return item.id === id; });+ return record ? inspectRelationship(record.key, options) : false;+ }+ function installRelationshipHitTargets() {+ if (html.getAttribute('data-embed') === 'true') return 0;+ var records = relationshipHitRecords();+ if (!records.length) return 0;+ relationshipHitOverlay = document.createElementNS(svgNamespace, 'g');+ relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');+ relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');+ relationshipHitOverlay.setAttribute('role', 'group');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));+ var relationshipHelp = document.createElementNS(svgNamespace, 'desc');+ relationshipHelp.id = 'archify-relationship-help';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');+ relationshipHitOverlay.appendChild(relationshipHelp);+ records.forEach(function (record, index) {+ var target = document.createElementNS(svgNamespace, 'g');+ target.setAttribute('class', 'relationship-hit-target');+ target.setAttribute('data-relationship-hit-key', record.key);+ target.setAttribute('data-relationship-key', record.key);+ target.setAttribute('data-relationship-from', record.from);+ target.setAttribute('data-relationship-to', record.to);+ if (record.id) target.setAttribute('data-relationship-id', record.id);+ target.setAttribute('role', 'button');+ target.setAttribute('tabindex', index === 0 ? '0' : '-1');+ target.setAttribute('aria-pressed', 'false');+ target.setAttribute('aria-describedby', relationshipHelp.id);+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });+ target.setAttribute('aria-label', description);+ var title = document.createElementNS(svgNamespace, 'title');+ title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;+ target.appendChild(title);+ record.shapes.forEach(function (shape) {+ target.appendChild(relationshipHitGeometry(shape));+ target.appendChild(relationshipHitGeometry(shape, 'relationship-focus-rail'));+ });+ if (target.childNodes.length > 1) {+ relationshipHitTargets.push(target);+ relationshipHitOverlay.appendChild(target);+ }+ });+ if (!relationshipHitTargets.length) return 0;+ var firstNode = svg.querySelector('[data-node-id]');+ var nodeLayer = firstNode;+ while (nodeLayer && nodeLayer.parentNode && nodeLayer.parentNode !== svg) nodeLayer = nodeLayer.parentNode;+ if (nodeLayer && nodeLayer.parentNode === svg) svg.insertBefore(relationshipHitOverlay, nodeLayer);+ else svg.appendChild(relationshipHitOverlay);++ relationshipHitOverlay.addEventListener('pointerdown', function (event) {+ if (event.target.closest('[data-relationship-hit-key]')) event.stopPropagation();+ });+ relationshipHitOverlay.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch') return;+ if (finePointerQuery && !finePointerQuery.matches) return;+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked() || pinnedRelationshipKey) return;+ if (event.relatedTarget && target.contains(event.relatedTarget)) return;+ hoveredRelationship = target;+ scheduleDirectRelationshipPreview(target);+ });+ relationshipHitOverlay.addEventListener('pointerout', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || (event.relatedTarget && target.contains(event.relatedTarget))) return;+ if (hoveredRelationship === target) hoveredRelationship = null;+ syncRelationshipPreview();+ });+ relationshipHitOverlay.addEventListener('focusin', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked()) return;+ focusedRelationship = target;+ if (!pinnedRelationshipKey) previewRelationship(target, { direct: true });+ });+ relationshipHitOverlay.addEventListener('focusout', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || (event.relatedTarget && target.contains(event.relatedTarget))) return;+ if (focusedRelationship === target) focusedRelationship = null;+ syncRelationshipPreview();+ });+ relationshipHitOverlay.addEventListener('click', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked()) return;+ event.preventDefault();+ event.stopPropagation();+ focusedRelationship = null;+ hoveredRelationship = null;+ inspectRelationship(target.getAttribute('data-relationship-key'));+ });+ relationshipHitOverlay.addEventListener('keydown', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target) return;+ if (event.key === 'Escape' && pinnedRelationshipKey) {+ event.preventDefault();+ clear({ updateUrl: false });+ return;+ }+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ focusedRelationship = null;+ hoveredRelationship = null;+ inspectRelationship(target.getAttribute('data-relationship-key'));+ return;+ }+ if (event.key !== 'ArrowRight' && event.key !== 'ArrowLeft' && event.key !== 'ArrowDown' && event.key !== 'ArrowUp' && event.key !== 'Home' && event.key !== 'End') return;+ var index = relationshipHitTargets.indexOf(target);+ if (event.key === 'Home') index = 0;+ else if (event.key === 'End') index = relationshipHitTargets.length - 1;+ else if (event.key === 'ArrowRight' || event.key === 'ArrowDown') index = (index + 1) % relationshipHitTargets.length;+ else index = (index - 1 + relationshipHitTargets.length) % relationshipHitTargets.length;+ event.preventDefault();+ relationshipHitTargets.forEach(function (item, itemIndex) { item.setAttribute('tabindex', itemIndex === index ? '0' : '-1'); });+ try { relationshipHitTargets[index].focus({ preventScroll: true }); }+ catch (_) { try { relationshipHitTargets[index].focus(); } catch (_) {} }+ });+ return relationshipHitTargets.length;+ }+ function renderRelationshipLens(id, byId) {+ hoveredRelationship = null;+ focusedRelationship = null;+ clearRelationshipPreview({ clearPin: true });+ renderPassport(id, byId[id]);+ var relationships = relationshipsFor(id, byId);+ chip.removeAttribute('data-relations-expanded');+ relationsBtn.setAttribute('aria-expanded', 'false');+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));+ var counts = { out: 0, in: 0, loop: 0 };+ relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });+ renderReachabilityControls(id);+ relationshipList.textContent = '';+ if (!relationships.length) {+ var empty = document.createElement('p');+ empty.className = 'relationship-lens-empty';+ empty.textContent = viewerText('viewer.passport.relationship.none');+ relationshipList.appendChild(empty);+ return;+ }++ [+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }+ ].forEach(function (group) {+ var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });+ if (!items.length) return;+ var section = document.createElement('div');+ section.className = 'relationship-lens-group';+ var heading = document.createElement('span');+ heading.className = 'relationship-lens-group-title';+ heading.textContent = group.label + ' · ' + items.length;+ section.appendChild(heading);+ items.forEach(function (relationship) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'relationship-lens-row';+ button.setAttribute('data-direction', relationship.direction);+ button.setAttribute('data-relationship-target', relationship.neighborId);+ button.setAttribute('data-relationship-key', relationship.key);+ button.setAttribute('data-relationship-from', relationship.from);+ button.setAttribute('data-relationship-to', relationship.to);+ if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));+ var direction = document.createElement('span');+ direction.className = 'relationship-lens-direction';+ direction.setAttribute('aria-hidden', 'true');+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');+ var target = document.createElement('strong');+ target.textContent = relationship.neighborLabel;+ var relation = document.createElement('small');+ relation.textContent = relationship.label;+ button.appendChild(direction);+ button.appendChild(target);+ button.appendChild(relation);+ section.appendChild(button);+ });+ relationshipList.appendChild(section);+ });+ }+ function lensPlacementBounds() {+ var containerRect = container.getBoundingClientRect();+ if (containerRect.width <= 0 || containerRect.height <= 0 || chip.offsetWidth <= 0 || chip.offsetHeight <= 0) return null;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleLeft = Math.max(padding, -containerRect.left + padding);+ var visibleRight = Math.min(+ container.clientWidth - padding,+ window.innerWidth - containerRect.left - padding+ );+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(+ container.clientHeight - padding,+ window.innerHeight - containerRect.top - padding+ );+ var minLeft = visibleLeft;+ var minTop = Math.min(visibleTop, Math.max(padding, visibleBottom - chip.offsetHeight));+ return {+ containerRect: containerRect,+ minLeft: minLeft,+ maxLeft: Math.max(minLeft, visibleRight - chip.offsetWidth),+ minTop: minTop,+ maxTop: Math.max(minTop, visibleBottom - chip.offsetHeight)+ };+ }+ function manualLensPlacementAvailable() {+ return window.innerWidth > 720 && (!finePointerQuery || finePointerQuery.matches);+ }+ function clampLensPosition(position, bounds) {+ if (!position || !bounds) return null;+ return {+ left: Math.max(bounds.minLeft, Math.min(bounds.maxLeft, position.left)),+ top: Math.max(bounds.minTop, Math.min(bounds.maxTop, position.top))+ };+ }+ function currentLensPosition() {+ var bounds = lensPlacementBounds();+ if (!bounds) return null;+ var rect = chip.getBoundingClientRect();+ return clampLensPosition({+ left: rect.left - bounds.containerRect.left,+ top: rect.top - bounds.containerRect.top+ }, bounds);+ }+ function applyManualLensPosition(position) {+ if (!manualLensPlacementAvailable()) return false;+ var bounds = lensPlacementBounds();+ var clamped = clampLensPosition(position, bounds);+ if (!clamped) return false;+ manualLensPosition = clamped;+ chip.setAttribute('data-manual-placement', 'true');+ chip.style.left = Math.round(clamped.left) + 'px';+ chip.style.top = Math.round(clamped.top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ return true;+ }+ function resetLensPlacement(options) {+ options = options || {};+ manualLensPosition = null;+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (options.reposition !== false && !chip.hidden) requestLensPlacement();+ }+ function beginLensDrag(event) {+ if (!manualLensPlacementAvailable() || event.button !== 0 || lensDrag) return;+ var start = currentLensPosition();+ if (!start) return;+ event.preventDefault();+ event.stopPropagation();+ lensDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: start,+ previousManual: manualLensPosition ? { left: manualLensPosition.left, top: manualLensPosition.top } : null,+ moved: false+ };+ chip.setAttribute('data-panel-dragging', 'true');+ try { moveBtn.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function moveLensDrag(event) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ var dx = event.clientX - lensDrag.originX;+ var dy = event.clientY - lensDrag.originY;+ if (!lensDrag.moved && Math.hypot(dx, dy) <= 3) return;+ lensDrag.moved = true;+ event.preventDefault();+ event.stopPropagation();+ applyManualLensPosition({ left: lensDrag.start.left + dx, top: lensDrag.start.top + dy });+ }+ function finishLensDrag(event, cancel) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = lensDrag;+ lensDrag = null;+ if (activeDrag.moved) lensDragClickPointer = activeDrag.pointerId;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(event.pointerId); } catch (_) {}+ if (!cancel) return;+ manualLensPosition = activeDrag.previousManual+ ? { left: activeDrag.previousManual.left, top: activeDrag.previousManual.top }+ : null;+ if (manualLensPosition && manualLensPlacementAvailable()) {+ applyManualLensPosition(manualLensPosition);+ } else {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (!chip.hidden) requestLensPlacement();+ }+ }+ function moveLensWithKeyboard(event) {+ if (event.key === 'Home') {+ event.preventDefault();+ resetLensPlacement();+ return;+ }+ if (event.metaKey || event.ctrlKey || event.altKey || !manualLensPlacementAvailable()) return;+ var directions = {+ ArrowLeft: [-1, 0],+ ArrowRight: [1, 0],+ ArrowUp: [0, -1],+ ArrowDown: [0, 1]+ };+ var direction = directions[event.key];+ if (!direction) return;+ event.preventDefault();+ var current = manualLensPosition || currentLensPosition();+ if (!current) return;+ var distance = event.shiftKey ? 4 : 16;+ applyManualLensPosition({+ left: current.left + direction[0] * distance,+ top: current.top + direction[1] * distance+ });+ }+ var lensFrame = 0;+ function placeRelationshipLens() {+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }+ if (chip.hidden || activeIds.length !== 1) return;+ var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');+ if (!node) return;+ var containerRect = container.getBoundingClientRect();+ var nodeRect = node.getBoundingClientRect();+ if (containerRect.bottom <= 0 || containerRect.top >= window.innerHeight) return;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(containerRect.height - padding, window.innerHeight - containerRect.top - padding);+ var maxTop = Math.max(padding, visibleBottom - chip.offsetHeight);+ var minTop = Math.min(visibleTop, maxTop);+ var mobile = window.innerWidth <= 720;+ if (!manualLensPlacementAvailable()) {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ } else if (manualLensPosition) {+ applyManualLensPosition(manualLensPosition);+ return;+ }+ var nodeCenter = nodeRect.top - containerRect.top + nodeRect.height / 2;+ var previewingOnMobile = mobile && chip.getAttribute('data-relationship-previewing') === 'true';+ var compactOnMobile = mobile && chip.getAttribute('data-relations-expanded') !== 'true';+ var preferred;+ if (compactOnMobile) {+ var nodeTop = nodeRect.top - containerRect.top;+ var nodeBottom = nodeRect.bottom - containerRect.top;+ var gap = 10;+ var above = nodeTop - chip.offsetHeight - gap;+ var below = nodeBottom + gap;+ if (above >= visibleTop) preferred = above;+ else if (below + chip.offsetHeight <= visibleBottom - 56) preferred = below;+ else preferred = nodeCenter < (visibleTop + visibleBottom) / 2+ ? Math.max(minTop, visibleBottom - chip.offsetHeight - 56)+ : visibleTop;+ } else if (previewingOnMobile) {+ var pinnedTop = visibleTop;+ var pinnedBottom = Math.max(minTop, visibleBottom - chip.offsetHeight - 56);+ preferred = nodeCenter < (visibleTop + visibleBottom) / 2 ? pinnedBottom : pinnedTop;+ } else {+ preferred = nodeCenter - chip.offsetHeight / 2;+ }+ var top = Math.max(minTop, Math.min(maxTop, preferred));+ var chipRect = chip.getBoundingClientRect();+ var safeGap = 10;+ var protectViewerChrome = !mobile || compactOnMobile || previewingOnMobile;+ var protectedRects = (protectViewerChrome+ ? [svg.querySelector('[data-legend]'), container.querySelector('.diagram-nav')]+ : [])+ .filter(function (element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ })+ .map(function (element) { return element.getBoundingClientRect(); })+ .filter(function (rect) {+ return rect.width > 0 && rect.height > 0 &&+ chipRect.left < rect.right + safeGap && chipRect.right > rect.left - safeGap;+ });+ if (protectedRects.length) {+ var candidates = [top, minTop, maxTop];+ protectedRects.forEach(function (rect) {+ candidates.push(+ rect.top - containerRect.top - chip.offsetHeight - safeGap,+ rect.bottom - containerRect.top + safeGap+ );+ });+ var valid = candidates.map(function (candidate) {+ return Math.max(minTop, Math.min(maxTop, candidate));+ }).filter(function (candidate, index, all) {+ if (all.indexOf(candidate) !== index) return false;+ var candidateTop = containerRect.top + candidate;+ var candidateBottom = candidateTop + chip.offsetHeight;+ return protectedRects.every(function (rect) {+ return candidateBottom <= rect.top - safeGap || candidateTop >= rect.bottom + safeGap;+ });+ });+ valid.sort(function (first, second) {+ return Math.abs(first - preferred) - Math.abs(second - preferred);+ });+ if (valid.length) top = valid[0];+ }+ chip.style.top = Math.round(top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ }+ function requestLensPlacement() {+ if (lensFrame) return;+ lensFrame = requestAnimationFrame(placeRelationshipLens);+ }+ function clear(options) {+ options = options || {};+ if (lensDrag) {+ var dragPointerId = lensDrag.pointerId;+ lensDrag = null;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(dragPointerId); } catch (_) {}+ }+ var restoreNode = options.restoreFocus === true && activeIds.length === 1+ ? svg.querySelector('[data-node-id="' + activeIds[0] + '"]')+ : null;+ clearReachability({ updateUrl: false });+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {+ Archify.intentTrace.clear({ announce: false });+ }+ hoveredRelationship = null;+ focusedRelationship = null;+ clearRelationshipPreview({ clearPin: true });+ activeIds = [];+ svg.removeAttribute('data-focus-active');+ nodes().forEach(function (node) {+ node.removeAttribute('data-focus-match');+ node.removeAttribute('data-focus-selected');+ node.setAttribute('aria-pressed', 'false');+ });+ edges().forEach(function (edge) { edge.removeAttribute('data-focus-match'); });+ chip.hidden = true;+ label.textContent = '';+ detail.textContent = '';+ detail.hidden = true;+ kind.textContent = '';+ kind.hidden = true;+ context.textContent = '';+ context.hidden = true;+ tag.textContent = '';+ tag.hidden = true;+ semanticId.textContent = '';+ semanticId.hidden = true;+ evidence.hidden = true;+ evidenceLinks.textContent = '';+ repositoryLink.removeAttribute('href');+ repositoryLink.textContent = '';+ summary.textContent = '';+ reachSection.hidden = true;+ upstreamCount.textContent = '0';+ downstreamCount.textContent = '0';+ upstreamBtn.disabled = true;+ downstreamBtn.disabled = true;+ relationshipList.textContent = '';+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));+ relationsBtn.setAttribute('aria-expanded', 'false');+ chip.removeAttribute('data-relations-expanded');+ if (options.preserveLensPlacement !== true) resetLensPlacement({ reposition: false });+ if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.updateUrl !== false) {+ try { history.replaceState(null, '', location.pathname + location.search); } catch (_) {}+ }+ if (restoreNode) {+ try { restoreNode.focus({ preventScroll: true }); }+ catch (_) { try { restoreNode.focus(); } catch (_) {} }+ }+ }++ function setMany(ids, options) {+ options = options || {};+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.active()) {+ Archify.semanticLens.clear({ updateUrl: false, preserveView: true, closePanel: true });+ }+ if (options.preserveRoute !== true && Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {+ Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });+ }+ var nodeList = nodes();+ var byId = Object.create(null);+ nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var normalized = [];+ (ids || []).forEach(function (id) {+ if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);+ });+ if (!normalized.length) return false;+ if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {+ clear();+ return true;+ }++ var preserveLensPlacement = activeIds.length === 1 && normalized.length === 1 && !chip.hidden;+ clear({ updateUrl: false, preserveView: true, preserveLensPlacement: preserveLensPlacement });+ activeIds = normalized;+ var selected = Object.create(null);+ var related = Object.create(null);+ var seenEdges = {};+ var matchedEdges = 0;+ normalized.forEach(function (id) { selected[id] = true; related[id] = true; });+ var selectionMode = options.mode === 'selection' || normalized.length > 1;++ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var match = selectionMode ? selected[from] && selected[to] : selected[from] || selected[to];+ if (!match) return;+ edge.setAttribute('data-focus-match', '');+ if (!selectionMode) { related[from] = true; related[to] = true; }+ var edgeKey = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!seenEdges[edgeKey]) { seenEdges[edgeKey] = true; matchedEdges += 1; }+ });+ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-focus-match', '');+ if (selected[nodeId]) {+ node.setAttribute('data-focus-selected', '');+ node.setAttribute('aria-pressed', 'true');+ }+ });+ svg.setAttribute('data-focus-active', normalized.join(' '));+ var defaultLabel = normalized.length === 1+ ? nodeLabel(byId[normalized[0]], normalized[0])+ : viewerText('viewer.focus.selectedNodes', { count: normalized.length });+ label.textContent = options.label || defaultLabel;+ chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;+ if (!chip.hidden) {+ renderRelationshipLens(normalized[0], byId);+ placeRelationshipLens();+ }+ if (options.updateUrl !== false) {+ var key = options.urlKey || 'focus';+ var value = options.urlValue || normalized[0];+ try { history.replaceState(null, '', location.pathname + location.search + '#' + key + '=' + encodeURIComponent(value)); } catch (_) {}+ }+ return true;+ }++ function set(id, options) {+ options = options || {};+ options.mode = 'neighborhood';+ return setMany([id], options);+ }++ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }++ function copyFocusLink() {+ if (activeIds.length !== 1) return Promise.resolve(false);+ var record = pinnedRelationshipRecord();+ var relationId = record && record.id;+ var value = location.href.replace(/#.*$/, '') + (relationId+ ? '#relation=' + encodeURIComponent(relationId)+ : '#focus=' + encodeURIComponent(activeIds[0]) + (reachabilityMode ? '&reach=' + reachabilityMode : ''));+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', copied+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));+ window.setTimeout(function () {+ renderRelationshipCopyAction();+ }, 1600);+ return copied;+ });+ }++ svg.addEventListener('click', function (event) {+ if (container.getAttribute('data-just-panned') === 'true') return;+ var node = event.target.closest('[data-node-id]');+ if (node) {+ var id = node.getAttribute('data-node-id');+ set(id);+ if (activeIds.indexOf(id) !== -1 && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });+ }+ }+ else if (activeIds.length) clear();+ });+ svg.addEventListener('keydown', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.key !== 'Enter' && event.key !== ' ')) return;+ event.preventDefault();+ var id = node.getAttribute('data-node-id');+ set(id);+ if (activeIds.indexOf(id) !== -1 && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });+ }+ });+ moveBtn.addEventListener('pointerdown', beginLensDrag);+ moveBtn.addEventListener('pointermove', moveLensDrag);+ moveBtn.addEventListener('pointerup', function (event) { finishLensDrag(event, false); });+ moveBtn.addEventListener('pointercancel', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('lostpointercapture', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('dblclick', function (event) {+ event.preventDefault();+ event.stopPropagation();+ resetLensPlacement();+ });+ moveBtn.addEventListener('keydown', moveLensWithKeyboard);+ clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });+ copyBtn.addEventListener('click', copyFocusLink);+ upstreamBtn.addEventListener('click', function () { applyReachability('upstream'); });+ downstreamBtn.addEventListener('click', function () { applyReachability('downstream'); });+ relationsBtn.addEventListener('click', function () {+ var expanded = chip.getAttribute('data-relations-expanded') === 'true';+ if (expanded) chip.removeAttribute('data-relations-expanded');+ else chip.setAttribute('data-relations-expanded', 'true');+ relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));+ placeRelationshipLens();+ });+ relationshipList.addEventListener('click', function (event) {+ var button = event.target.closest('[data-relationship-target]');+ if (!button) return;+ var id = button.getAttribute('data-relationship-target');+ set(id, { toggle: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'relationship' });+ }+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ try { node.focus({ preventScroll: true }); } catch (_) { try { node.focus(); } catch (_) {} }+ }+ });+ relationshipList.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch') return;+ if (finePointerQuery && !finePointerQuery.matches) return;+ var button = event.target.closest('[data-relationship-key]');+ if (!button || !relationshipList.contains(button)) return;+ if (event.relatedTarget && button.contains(event.relatedTarget)) return;+ hoveredRelationship = button;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('pointerout', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;+ if (hoveredRelationship === button) hoveredRelationship = null;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('focusin', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button) return;+ focusedRelationship = button;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('focusout', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;+ if (focusedRelationship === button) focusedRelationship = null;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('keydown', function (event) {+ if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp' && event.key !== 'Home' && event.key !== 'End') return;+ var buttons = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-target]'));+ if (!buttons.length) return;+ var index = buttons.indexOf(document.activeElement);+ if (event.key === 'Home') index = 0;+ else if (event.key === 'End') index = buttons.length - 1;+ else if (event.key === 'ArrowDown') index = Math.min(buttons.length - 1, Math.max(0, index + 1));+ else index = Math.max(0, index < 0 ? 0 : index - 1);+ event.preventDefault();+ buttons[index].focus();+ });+ document.addEventListener('pointerdown', function () {+ lensDragClickPointer = null;+ }, true);+ document.addEventListener('click', function (event) {+ // Losing capture (for example when a resize hides the handle) can+ // retarget this drag's final click to the page. It is not dismissal.+ // A new pointerdown releases the guard; keyboard clicks remain live.+ if (lensDragClickPointer != null && event.detail > 0 &&+ (event.pointerId == null || event.pointerId === lensDragClickPointer)) {+ lensDragClickPointer = null;+ event.preventDefault();+ event.stopPropagation();+ return;+ }+ var target = event.target;+ if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;+ if (container.getAttribute('data-just-panned') === 'true') return;+ if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map')) return;+ clear();+ }, true);+ window.addEventListener('scroll', requestLensPlacement, { passive: true });+ window.addEventListener('resize', requestLensPlacement);+ container.addEventListener('scroll', requestLensPlacement, { passive: true });+ document.addEventListener('visibilitychange', function () {+ if (document.hidden) removeRelationshipPulse();+ });+ function syncRelationshipMotionPreference(event) {+ if (event.matches) removeRelationshipPulse();+ }+ if (reducedMotionQuery) {+ if (typeof reducedMotionQuery.addEventListener === 'function') {+ reducedMotionQuery.addEventListener('change', syncRelationshipMotionPreference);+ } else if (typeof reducedMotionQuery.addListener === 'function') {+ reducedMotionQuery.addListener(syncRelationshipMotionPreference);+ }+ }++ installRelationshipHitTargets();++ function syncFocusFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var relation = params.get('relation');+ var initial = params.get('focus');+ var reach = params.get('reach');+ if (relation) {+ if (html.getAttribute('data-embed') === 'true' ||+ !inspectRelationshipById(relation, { updateUrl: false, toggle: false })) clear({ updateUrl: false });+ }+ else if (initial) {+ if (set(initial, { updateUrl: false, toggle: false }) &&+ (reach === 'upstream' || reach === 'downstream')) {+ applyReachability(reach, { updateUrl: false, toggle: false, reveal: false });+ }+ }+ else clear({ updateUrl: false });+ } catch (_) {}+ }++ window.addEventListener('hashchange', syncFocusFromHash);+ syncFocusFromHash();++ return {+ set: set,+ setMany: setMany,+ clear: clear,+ copyLink: copyFocusLink,+ reach: applyReachability,+ clearReach: clearReachability,+ reachabilitySnapshot: reachabilitySnapshot,+ inspectRelationship: inspectRelationship,+ inspectRelationshipById: inspectRelationshipById,+ reposition: placeRelationshipLens,+ relationship: function () {+ var record = pinnedRelationshipRecord();+ return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;+ },+ reachability: function () {+ return activeReachability ? {+ direction: activeReachability.direction,+ originId: activeReachability.originId,+ nodeIds: activeReachability.nodeIds.slice(),+ edgeKeys: activeReachability.edgeKeys.slice(),+ maxDepth: activeReachability.maxDepth+ } : null;+ },+ active: function () { return activeIds.length === 0 ? null : (activeIds.length === 1 ? activeIds[0] : activeIds.slice()); }+ };+ })();+++ /* ============================================================+ Intent Trace — temporary one-hop topology before durable focus.+ Fine-pointer hover and keyboard focus share the same stable-ID preview;+ touch continues directly to the existing click-to-focus contract.+ ============================================================ */+ Archify.intentTrace = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var status = document.getElementById('intent-trace-status');+ var namespace = 'http://www.w3.org/2000/svg';+ var activeId = null;+ var hoveredNode = null;+ var focusedNode = null;+ var enterTimer = null;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function finePointer() {+ return !window.matchMedia || window.matchMedia('(hover: hover) and (pointer: fine)').matches;+ }+ function reducedMotion() {+ return !!(window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches);+ }+ function blocked() {+ return html.getAttribute('data-embed') === 'true' ||+ html.getAttribute('data-guide-open') === 'true' ||+ container.classList.contains('is-panning') ||+ svg.hasAttribute('data-lens-active') ||+ svg.hasAttribute('data-relationship-preview-active') ||+ !!(Archify.routeProbe && typeof Archify.routeProbe.active === 'function' && Archify.routeProbe.active()) ||+ !!(Archify.focus && typeof Archify.focus.active === 'function' && Archify.focus.active());+ }+ function edgeShapes(edge) {+ if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function removeOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {+ overlay.remove();+ });+ }+ function clear(options) {+ options = options || {};+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = null;+ activeId = null;+ svg.removeAttribute('data-intent-trace-active');+ removeOverlay();+ nodes().forEach(function (node) {+ node.removeAttribute('data-intent-trace-match');+ node.removeAttribute('data-intent-trace-selected');+ });+ edges().forEach(function (edge) { edge.removeAttribute('data-intent-trace-match'); });+ if (options.announce !== false) status.textContent = '';+ }+ function traceGeometry(shape, direction) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-intent-trace-match');+ clone.removeAttribute('data-intent-trace-selected');+ clone.setAttribute('class', 'intent-trace-flow');+ clone.setAttribute('data-direction', direction);+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function show(id, options) {+ options = options || {};+ if (!id || blocked()) {+ clear({ announce: false });+ return false;+ }+ if (activeId === id) return true;+ clear({ announce: false });+ var nodeList = nodes();+ var edgeList = edges();+ var byId = Object.create(null);+ nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var selected = byId[id];+ if (!selected) return false;++ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'intent-trace-overlay');+ overlay.setAttribute('data-intent-trace-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ var related = Object.create(null);+ var seen = {};+ var counts = { out: 0, in: 0, loop: 0 };+ related[id] = true;++ edgeList.forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (from !== id && to !== id) return;+ var direction = from === id && to === id ? 'loop' : (from === id ? 'out' : 'in');+ var key = edge.getAttribute('data-edge-key') ||+ (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!seen[key]) {+ seen[key] = true;+ counts[direction] += 1;+ }+ related[from] = true;+ related[to] = true;+ edge.setAttribute('data-intent-trace-match', '');+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) {+ wrapper.appendChild(traceGeometry(shape, direction));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });++ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-intent-trace-match', '');+ if (nodeId === id) node.setAttribute('data-intent-trace-selected', '');+ });+ if (overlay.childNodes.length) {+ var firstEdge = edgeList[0];+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstEdge && firstEdge.parentNode) firstEdge.parentNode.insertBefore(overlay, firstEdge);+ else if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ activeId = id;+ svg.setAttribute('data-intent-trace-active', id);+ if (options.announce === true) {+ var total = counts.out + counts.in + counts.loop;+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });+ }+ return true;+ }+ function schedule(node) {+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = window.setTimeout(function () {+ enterTimer = null;+ if (hoveredNode === node) show(node.getAttribute('data-node-id'), { announce: false });+ }, reducedMotion() ? 0 : 90);+ }+ function sync() {+ var candidate = focusedNode || hoveredNode;+ if (!candidate) {+ clear();+ return;+ }+ show(candidate.getAttribute('data-node-id'), { announce: candidate === focusedNode });+ }++ svg.addEventListener('pointerover', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || !finePointer() || event.pointerType === 'touch') return;+ if (event.relatedTarget && node.contains(event.relatedTarget)) return;+ hoveredNode = node;+ schedule(node);+ });+ svg.addEventListener('pointerout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (hoveredNode === node) hoveredNode = null;+ sync();+ });+ svg.addEventListener('focusin', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ focusedNode = node;+ show(node.getAttribute('data-node-id'), { announce: true });+ });+ svg.addEventListener('focusout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (focusedNode === node) focusedNode = null;+ sync();+ });+ container.addEventListener('pointerdown', function (event) {+ if (!event.target.closest('[data-node-id]')) clear({ announce: false });+ });+ window.addEventListener('blur', function () { clear({ announce: false }); });++ return {+ show: show,+ clear: clear,+ active: function () { return activeId; }+ };+ })();++ /* ============================================================+ Adaptive Reader Shell — one diagram across laptop and monitor.+ The canonical SVG and viewBox never change. On ordinary desktop pages,+ wide diagrams and measured intrinsic tall workflows receive enough outer width to use the available+ height without pushing summary cards below the viewport. Mobile,+ embed, presentation, print, and unmarked non-wide diagrams retain their own+ established layout contracts.+ ============================================================ */+ // Fixed script-private participants; the CLI sees only the joint wait below.+ const archifyLayoutOwners = { reader: null, viewerChrome: null };+ Archify.waitForStableLayout = function (options) {+ options = options || {};+ var maximumFrames = Math.max(1, Number(options.maximumFrames) || 240);+ var fontsReady = document.fonts && document.fonts.ready+ ? document.fonts.ready.catch(function () {})+ : Promise.resolve();+ return fontsReady.then(function () {+ if (typeof options.schedule === 'function') options.schedule();+ return new Promise(function (resolve, reject) {+ var previous = '';+ var stableFrames = 0;+ var sampledFrames = 0;+ function sample() {+ sampledFrames += 1;+ if (typeof options.pending === 'function' && options.pending()) {+ previous = '';+ stableFrames = 0;+ } else {+ var current = typeof options.snapshot === 'function' ? options.snapshot() : '';+ if (current === previous) stableFrames += 1;+ else {+ previous = current;+ stableFrames = 0;+ }+ if (stableFrames >= 3) {+ resolve({ stable: true, snapshot: current, sampledFrames: sampledFrames });+ return;+ }+ }+ if (sampledFrames >= maximumFrames) {+ reject(new Error(options.timeoutMessage || 'Layout did not reach stable dimensions.'));+ return;+ }+ requestAnimationFrame(sample);+ }+ requestAnimationFrame(sample);+ });+ });+ };++ Archify.readerLayout = (function () {+ var html = document.documentElement;+ var body = document.body;+ var shell = document.querySelector('.container');+ var diagram = document.querySelector('.diagram-container');+ var svg = diagram && diagram.querySelector(':scope > svg');+ var header = shell && shell.querySelector('.header');+ var cards = shell && shell.querySelector('.cards');+ var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;+ var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;+ var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';+ var frame = 0;+ var settleFrame = 0;+ var lastWidth = 0;+ // Widest reader the overflow settle has accepted for this viewport (0 =+ // uncapped). Card copy rewraps as the reader narrows, so recomputing+ // from fixed heights alone would widen again and oscillate; only a+ // resize lifts the cap.+ var settledCap = 0;+ var WIDE_RATIO = 1.55;+ var MIN_DESKTOP_WIDTH = 1024;+ var MIN_READER_WIDTH = 960;+ var MAX_READER_WIDTH = 1920;+ var MIN_PROJECTED_NODE_TEXT_PX = 6;+ var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;+ var requestedMinimumText = Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_PROJECTED_NODE_TEXT_PX, declaredMinimumText)+ : MIN_PROJECTED_NODE_TEXT_PX;+ var declaredPrimaryText = svg ? parseFloat(svg.getAttribute('data-reader-primary-text') || '') : null;+ var SAFE_BOTTOM_GAP = 12;+ // Wide viewports move summary cards beside the diagram, so the height+ // budget belongs to the diagram and spare width holds the notes.+ var RAIL_MIN_VIEWPORT = 1280;+ var RAIL_WIDTH = 288;+ var RAIL_GAP = 20;+ // A default rail must leave primary node labels comfortably readable;+ // otherwise it starts collapsed and the reader can still open it.+ var RAIL_COMFORT_PRIMARY_PX = 12;+ var railPanel = shell && shell.querySelector('.reader-rail');+ var railReveal = document.getElementById('rail-reveal');+ var railCollapse = document.getElementById('rail-collapse');+ var railPlacement = document.getElementById('rail-placement');+ var RAIL_COLLAPSED_KEY = 'archify-rail-collapsed';+ var RAIL_PLACEMENT_KEY = 'archify-rail-placement';+ // Memory is the page's source of truth; storage only carries the choice+ // to later artifacts, so a blocked or full localStorage cannot freeze it.+ var preferences = Object.create(null);+ function readPreference(key) {+ if (key in preferences) return preferences[key];+ try { return localStorage.getItem(key); } catch (_) { return null; }+ }+ function writePreference(key, value) {+ preferences[key] = value;+ try { localStorage.setItem(key, value); } catch (_) {}+ }++ if (diagram && ratio >= WIDE_RATIO) {+ diagram.setAttribute('data-wide-diagram', 'true');+ html.setAttribute('data-diagram-shape', 'wide');+ }++ function number(value) {+ var parsed = parseFloat(value);+ return Number.isFinite(parsed) ? parsed : 0;+ }+ function visible(element) {+ return Boolean(element && !element.hidden && window.getComputedStyle(element).display !== 'none');+ }+ function outerHeight(element) {+ if (!visible(element)) return 0;+ var style = window.getComputedStyle(element);+ return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);+ }+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.+ function minimumReadableScale() {+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);+ }+ });+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;+ }+ var sourcePrimary = null;+ if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {+ var size = parseFloat(text.getAttribute('font-size') || '');+ if (Number.isFinite(size) && size > 0) sourcePrimary = sourcePrimary == null ? size : Math.max(sourcePrimary, size);+ });+ // SVG width at which the largest node label renders at targetPx. Every+ // renderer writes label font sizes, so the rail comfort check works for+ // all diagram types; only the renderer-declared floor needs metadata.+ function labelWidth(targetPx) {+ return sourcePrimary == null || !viewBox ? 0 : viewBox.width * targetPx / sourcePrimary;+ }+ function primaryReadingWidth() {+ if (!measuredHeightFit || !Number.isFinite(declaredPrimaryText) || declaredPrimaryText <= 0) return 0;+ // Primary labels should remain comfortable to read when cards or+ // auxiliary rows make a one-screen fit too small. Ordinary page+ // scroll preserves that reading size; viewport width still caps it.+ // A long title may already use a smaller fitted font. Preserve that+ // hierarchy rather than enlarging every other node to compensate.+ return labelWidth(declaredPrimaryText);+ }+ function eligible() {+ return Boolean(+ shell && diagram && svg && (ratio >= WIDE_RATIO || measuredHeightFit) &&+ window.innerWidth >= MIN_DESKTOP_WIDTH &&+ html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches)+ );+ }+ function clear() {+ html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ html.removeAttribute('data-reader-layout');+ html.removeAttribute('data-reader-overflow');+ setRail(false);+ lastWidth = 0;+ settledCap = 0;+ }+ // Rail modes: "true" docks beside the diagram, "collapsed" leaves only the+ // reveal control, "overlay" opens a drawer when docking would break the+ // readable floor, and "bottom" stacks notes and index below the diagram.+ function setRail(mode) {+ if (mode) {+ html.setAttribute('data-reader-rail', mode);+ html.style.setProperty('--archify-rail-width', RAIL_WIDTH + 'px');+ html.style.setProperty('--archify-rail-gap', RAIL_GAP + 'px');+ } else {+ html.removeAttribute('data-reader-rail');+ html.style.removeProperty('--archify-rail-width');+ html.style.removeProperty('--archify-rail-gap');+ }+ if (railReveal) railReveal.hidden = mode !== 'collapsed';+ if (railCollapse) {+ railCollapse.hidden = mode !== 'true' && mode !== 'overlay';+ railCollapse.setAttribute('aria-expanded', String(mode === 'true' || mode === 'overlay'));+ }+ if (railPlacement) {+ railPlacement.hidden = !mode || mode === 'collapsed' || (mode === 'bottom' && window.innerWidth < RAIL_MIN_VIEWPORT);+ railPlacement.setAttribute('data-placement', mode === 'bottom' ? 'bottom' : 'right');+ railPlacement.setAttribute('aria-label', viewerText(mode === 'bottom' ? 'viewer.rail.right' : 'viewer.rail.bottom'));+ railPlacement.title = railPlacement.getAttribute('aria-label');+ }+ }+ var outline = document.getElementById('node-outline');+ function hasCards() {+ return Boolean((cards && cards.children.length && !cards.hidden) || (outline && !outline.hidden));+ }+ // Bottom notes and index are reading material below the fold: the first+ // screen belongs to the interactive diagram and its controls.+ function belowFold() {+ return html.getAttribute('data-reader-rail') === 'bottom' ? outerHeight(railPanel) : 0;+ }+ // A docked rail may run past a short diagram down to the viewport floor,+ // so the index uses that space instead of scrolling inside the diagram's+ // height; it never pushes the page into overflow.+ function fitDockedRail() {+ if (html.getAttribute('data-reader-rail') !== 'true' || !railPanel) return;+ var top = railPanel.getBoundingClientRect().top + window.scrollY;+ var floor = window.innerHeight - number(window.getComputedStyle(body).paddingBottom) - top;+ html.style.setProperty('--archify-rail-max', Math.max(diagram.getBoundingClientRect().height, floor) + 'px');+ }+ function chromeMetrics() {+ var bodyStyle = window.getComputedStyle(body);+ var diagramStyle = window.getComputedStyle(diagram);+ return {+ bodyX: number(bodyStyle.paddingLeft) + number(bodyStyle.paddingRight),+ bodyY: number(bodyStyle.paddingTop) + number(bodyStyle.paddingBottom),+ diagramX: number(diagramStyle.paddingLeft) + number(diagramStyle.paddingRight) ++ number(diagramStyle.borderLeftWidth) + number(diagramStyle.borderRightWidth),+ diagramY: number(diagramStyle.paddingTop) + number(diagramStyle.paddingBottom) ++ number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)+ };+ }+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.+ function applyWidth(width, minWidth) {+ var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));+ if (Math.abs(rounded - lastWidth) < 1) return false;+ lastWidth = rounded;+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ if (rounded < shellFloor) {+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }+ html.setAttribute('data-reader-layout', 'adaptive');+ return true;+ }+ function settleOverflow(minWidth) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ if (!eligible() || !lastWidth) return;+ fitDockedRail();+ var overflow = Math.max(+ document.documentElement.scrollHeight,+ document.body.scrollHeight+ ) - window.innerHeight - belowFold();+ if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {+ applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);+ settledCap = lastWidth;+ html.setAttribute('data-reader-overflow', 'reduced');+ } else if (overflow > 1) {+ html.setAttribute('data-reader-overflow', 'authored');+ } else {+ html.removeAttribute('data-reader-overflow');+ }+ });+ }+ function measure() {+ frame = 0;+ if (!eligible()) {+ clear();+ return null;+ }+ var chrome = chromeMetrics();+ var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);+ var readableWidth = viewBox && viewBox.width > 0+ ? viewBox.width * minimumReadableScale() + chrome.diagramX+ : MIN_READER_WIDTH;+ var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);+ var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO+ ? readableWidth+ : measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_READER_WIDTH, readableWidth)+ : MIN_READER_WIDTH;+ var minWidth;+ if (measuredHeightFit && ratio < WIDE_RATIO) {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ } else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ }+ var primaryWidth = primaryReadingWidth();+ var railExtra = RAIL_WIDTH + RAIL_GAP;+ var mode = null;+ // Notes default below the diagram; the right rail is the reader's+ // opt-in and needs a wide viewport.+ if (hasCards() && (readPreference(RAIL_PLACEMENT_KEY) !== 'right' || window.innerWidth < RAIL_MIN_VIEWPORT)) {+ mode = 'bottom';+ } else if (hasCards()) {+ var fitsReadable = readableMinimumWidth + railExtra <= maxWidth;+ var comfortWidth = labelWidth(RAIL_COMFORT_PRIMARY_PX);+ var comfortable = fitsReadable && (!comfortWidth || comfortWidth + chrome.diagramX + railExtra <= maxWidth);+ var collapsedPreference = readPreference(RAIL_COLLAPSED_KEY);+ if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';+ else mode = fitsReadable ? 'true' : 'overlay';+ }+ // With notes below the fold, the first screen belongs to the whole+ // diagram and its controls: it may shrink past the comfortable primary+ // size down to the renderer's readable text floor, and zoom restores+ // detail. Only a graph taller than that floor allows still scrolls.+ if (mode === 'bottom') primaryWidth = 0;+ if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));+ var docked = mode === 'true';+ setRail(mode);+ chrome = chromeMetrics();+ if (docked) minWidth = Math.min(maxWidth, minWidth + railExtra);+ var stackedBelow = mode === 'bottom' ? 0 : docked ? 0 : outerHeight(cards);+ var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP ++ outerHeight(header) + stackedBelow;+ var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);+ var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));+ applyWidth(width, minWidth);+ settleOverflow(minWidth);+ return {+ ratio: ratio,+ width: lastWidth,+ availableSvgHeight: Math.round(availableSvgHeight),+ fixedHeight: Math.round(fixedHeight)+ };+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var shellRect = shell ? shell.getBoundingClientRect() : { width: 0, height: 0 };+ var diagramRect = diagram ? diagram.getBoundingClientRect() : { width: 0, height: 0 };+ return [+ lastWidth,+ html.getAttribute('data-reader-layout') || '',+ html.getAttribute('data-reader-overflow') || '',+ Math.ceil(document.documentElement.scrollWidth),+ Math.ceil(document.documentElement.scrollHeight),+ Math.ceil(document.body.scrollWidth),+ Math.ceil(document.body.scrollHeight),+ Math.round(shellRect.width * 100) / 100,+ Math.round(shellRect.height * 100) / 100,+ Math.round(diagramRect.width * 100) / 100,+ Math.round(diagramRect.height * 100) / 100+ ].join('|');+ }+ function layoutPending() { return Boolean(frame || settleFrame); }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: layoutPending,+ snapshot: stableSnapshot,+ timeoutMessage: 'Adaptive reader layout did not reach stable dimensions.'+ });+ }+ archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };++ window.addEventListener('resize', function () {+ settledCap = 0;+ schedule();+ }, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [header, cards].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(schedule);+ if (cards) contentObserver.observe(cards, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ // Reader choices persist across artifacts; a resize-style remeasure+ // applies them without reloading.+ function chooseRail(key, value) {+ writePreference(key, value);+ settledCap = 0;+ schedule();+ }+ function collapseRail() {+ chooseRail(RAIL_COLLAPSED_KEY, '1');+ if (railReveal) requestAnimationFrame(function () { try { railReveal.focus({ preventScroll: true }); } catch (_) {} });+ }+ if (railReveal) railReveal.addEventListener('click', function () { chooseRail(RAIL_COLLAPSED_KEY, '0'); });+ if (railCollapse) railCollapse.addEventListener('click', collapseRail);+ if (railPlacement) railPlacement.addEventListener('click', function () {+ var toBottom = html.getAttribute('data-reader-rail') !== 'bottom';+ if (!toBottom) writePreference(RAIL_COLLAPSED_KEY, '0');+ chooseRail(RAIL_PLACEMENT_KEY, toBottom ? 'bottom' : 'right');+ });+ document.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' && html.getAttribute('data-reader-rail') === 'overlay') collapseRail();+ });+ document.addEventListener('pointerdown', function (event) {+ if (html.getAttribute('data-reader-rail') !== 'overlay' || !railPanel) return;+ if (!railPanel.contains(event.target) && !(railReveal && railReveal.contains(event.target))) chooseRail(RAIL_COLLAPSED_KEY, '1');+ });+ if (typeof ResizeObserver === 'function' && railPanel) new ResizeObserver(schedule).observe(railPanel);+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ whenStable: whenStable,+ active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },+ receipt: function () { return { ratio: ratio, width: lastWidth }; }+ };+ })();++ /* ============================================================+ Viewer Chrome Layout — keep HTML controls clear of the canonical SVG+ stage without changing authored geometry. The dock keeps its floating+ appearance while a small bottom stage rail becomes part of the reader+ budget whenever its zero-reserve position would enter the stage.+ ============================================================ */+ Archify.viewerChromeLayout = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container && container.querySelector(':scope > svg');+ var nav = container && container.querySelector('.diagram-nav');+ var legend = svg && svg.querySelector('[data-legend]');+ var frame = 0;+ var settleFrame = 0;+ var reserve = 0;+ var railLatched = false;+ var probingBaseline = false;+ var probePromise = null;+ var baselineIntersectionArea = 0;+ var baselineStageGap = null;+ var restorableReserve = 0;+ var probeFallbackReserve = 0;+ var lastReceipt = null;+ var SAFE_GAP = 10;++ function visible(element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ }+ function usable(rect) {+ return Boolean(rect && rect.width > 0 && rect.height > 0);+ }+ function intersectionArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function protectedStageRect() {+ if (!svg) return null;+ var rect = svg.getBoundingClientRect();+ var transform = '';+ try { transform = window.getComputedStyle(svg).transform || ''; } catch (_) {}+ var scaleX = 1;+ var scaleY = 1;+ var translateX = 0;+ var translateY = 0;+ var matrix = transform.match(/^matrix\(([^)]+)\)$/);+ var matrix3d = transform.match(/^matrix3d\(([^)]+)\)$/);+ if (matrix) {+ var values = matrix[1].split(',').map(Number);+ if (values.length === 6 && values.every(Number.isFinite)) {+ scaleX = Math.abs(values[0]) || 1;+ scaleY = Math.abs(values[3]) || 1;+ translateX = values[4];+ translateY = values[5];+ }+ } else if (matrix3d) {+ var values3d = matrix3d[1].split(',').map(Number);+ if (values3d.length === 16 && values3d.every(Number.isFinite)) {+ scaleX = Math.abs(values3d[0]) || 1;+ scaleY = Math.abs(values3d[5]) || 1;+ translateX = values3d[12];+ translateY = values3d[13];+ }+ }+ var width = rect.width / scaleX;+ var height = rect.height / scaleY;+ var left = rect.left - translateX;+ var top = rect.top - translateY;+ return {+ x: left,+ y: top,+ left: left,+ top: top,+ right: left + width,+ bottom: top + height,+ width: width,+ height: height+ };+ }+ function eligible() {+ return Boolean(+ container && svg && nav &&+ window.innerWidth > 720 &&+ html.getAttribute('data-embed') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches) &&+ visible(nav)+ );+ }+ function cameraAtBaseline() {+ var scale = Number(svg && svg.getAttribute('data-view-scale'));+ return !Number.isFinite(scale) || Math.abs(scale - 1) < 0.001;+ }+ function writeReserve(next, options) {+ options = options || {};+ next = Math.max(0, Math.ceil(next));+ if (Math.abs(next - reserve) < 1) return false;+ reserve = next;+ if (reserve) {+ if (options.remember !== false) restorableReserve = reserve;+ container.style.setProperty('--archify-nav-reserve', reserve + 'px');+ container.setAttribute('data-nav-stage-rail', 'true');+ html.setAttribute('data-nav-stage-rail', 'true');+ } else {+ container.style.removeProperty('--archify-nav-reserve');+ container.removeAttribute('data-nav-stage-rail');+ html.removeAttribute('data-nav-stage-rail');+ }+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') {+ Archify.readerLayout.schedule();+ }+ if (options.quiet !== true) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ schedule();+ });+ }+ return true;+ }+ function clear(options) {+ options = options || {};+ railLatched = false;+ if (options.preserveBaseline !== true) {+ baselineIntersectionArea = 0;+ baselineStageGap = null;+ restorableReserve = 0;+ }+ writeReserve(0, { quiet: probingBaseline });+ lastReceipt = {+ eligible: false,+ active: false,+ reserve: 0,+ gap: SAFE_GAP,+ baselineStageGap: null,+ stageGap: null,+ stageIntersectionArea: 0,+ baselineIntersectionArea: 0,+ intersectionArea: 0+ };+ return lastReceipt;+ }+ /* When the stage runs below the viewport, the dock lifts to the viewport+ floor so its controls stay reachable while reading. Stage-rail+ decisions and receipts use its resting position, so the lift never+ feeds back into layout. */+ var lift = 0;+ var liftFrame = 0;+ function restingNavRect() {+ var rect = nav.getBoundingClientRect();+ if (!lift) return rect;+ return { x: rect.x, y: rect.y + lift, left: rect.left, right: rect.right, top: rect.top + lift, bottom: rect.bottom + lift, width: rect.width, height: rect.height };+ }+ function updateLift() {+ liftFrame = 0;+ var next = 0;+ if (eligible()) {+ var rest = restingNavRect();+ var box = container.getBoundingClientRect();+ next = Math.round(Math.max(0, Math.min(rest.bottom - (window.innerHeight - 16), rest.top - box.top - 16)));+ }+ if (next === lift) return;+ lift = next;+ if (lift) container.style.setProperty('--archify-dock-lift', lift + 'px');+ else container.style.removeProperty('--archify-dock-lift');+ }+ function scheduleLift() {+ if (!liftFrame) liftFrame = requestAnimationFrame(updateLift);+ }+ function measure() {+ frame = 0;+ scheduleLift();+ if (probingBaseline) return null;+ if (!eligible()) return clear({ preserveBaseline: !cameraAtBaseline() });++ /* Camera transforms enlarge and translate authored paint inside the+ fixed, clipped root SVG viewport. They must not redefine the+ reader's baseline rail.+ Restore that baseline after temporary mobile/embed/print states.+ Camera Reset preserves the established rail while viewport, mode,+ and content changes remain responsible for baseline reprobes. */+ if (!cameraAtBaseline()) {+ if (reserve === 0 && restorableReserve > 0) {+ if (writeReserve(restorableReserve)) return null;+ }+ var cameraNavRect = restingNavRect();+ var cameraLegendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ var cameraStageRect = protectedStageRect();+ var cameraIntersectionArea = usable(cameraLegendRect) && intersectionArea(cameraNavRect, cameraStageRect) > 0+ ? intersectionArea(cameraNavRect, cameraLegendRect)+ : 0;+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineStageGap: baselineStageGap == null ? null : Math.round(baselineStageGap * 100) / 100,+ stageGap: Math.round((cameraNavRect.top - cameraStageRect.bottom) * 100) / 100,+ stageIntersectionArea: Math.round(intersectionArea(cameraNavRect, cameraStageRect) * 100) / 100,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round(cameraIntersectionArea * 100) / 100+ };+ return lastReceipt;+ }++ var navRect = restingNavRect();+ var legendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ var stageRect = protectedStageRect();+ if (!usable(navRect) || !usable(stageRect)) return clear();++ var actualIntersectionArea = usable(legendRect) ? intersectionArea(navRect, legendRect) : 0;+ var stageGap = navRect.top - stageRect.bottom;+ if (!railLatched && reserve === 0) {+ baselineIntersectionArea = actualIntersectionArea;+ baselineStageGap = stageGap;+ if (stageGap < SAFE_GAP) {+ railLatched = true;+ if (writeReserve(Math.max(0, SAFE_GAP - stageGap))) return null;+ }+ } else if (railLatched && reserve > 0 && stageGap < SAFE_GAP) {+ /* Keep the decision latched while Adaptive Reader incorporates the+ rail. Presentation and rounded layout values can require one+ bounded follow-up before the full stage gap is established. */+ var remaining = Math.max(1, SAFE_GAP - stageGap);+ if (writeReserve(reserve + remaining)) return null;+ }++ navRect = restingNavRect();+ legendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ stageRect = protectedStageRect();+ stageGap = navRect.top - stageRect.bottom;+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineStageGap: baselineStageGap == null ? null : Math.round(baselineStageGap * 100) / 100,+ stageGap: Math.round(stageGap * 100) / 100,+ stageIntersectionArea: Math.round(intersectionArea(navRect, stageRect) * 100) / 100,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round((usable(legendRect) ? intersectionArea(navRect, legendRect) : 0) * 100) / 100+ };+ return lastReceipt;+ }+ function reprobe() {+ if (probingBaseline) return probePromise || Promise.resolve(false);+ if (!cameraAtBaseline()) {+ schedule();+ return Promise.resolve(false);+ }+ if (!reserve && !railLatched && !restorableReserve) {+ schedule();+ return Promise.resolve(false);+ }+ probeFallbackReserve = restorableReserve || reserve;+ probingBaseline = true;+ railLatched = false;+ baselineIntersectionArea = 0;+ baselineStageGap = null;+ restorableReserve = 0;+ writeReserve(0, { quiet: true });+ var readerReady = Archify.readerLayout && typeof Archify.readerLayout.whenStable === 'function'+ ? Archify.readerLayout.whenStable().catch(function () {})+ : Promise.resolve();+ probePromise = readerReady.then(function () {+ probingBaseline = false;+ probePromise = null;+ if (!cameraAtBaseline() && probeFallbackReserve > 0) {+ restorableReserve = probeFallbackReserve;+ }+ probeFallbackReserve = 0;+ schedule();+ return true;+ });+ return probePromise;+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var containerRect = container ? container.getBoundingClientRect() : { width: 0, height: 0 };+ var navRect = nav ? restingNavRect() : { top: 0, left: 0 };+ var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };+ return [+ reserve,+ Math.round(containerRect.width * 100) / 100,+ Math.round(containerRect.height * 100) / 100,+ Math.round(navRect.left * 100) / 100,+ Math.round(navRect.top * 100) / 100,+ Math.round(legendRect.left * 100) / 100,+ Math.round(legendRect.top * 100) / 100,+ railLatched ? 'latched' : 'clear',+ lastReceipt ? lastReceipt.stageGap : ''+ ].join('|');+ }+ function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: layoutPending,+ snapshot: stableSnapshot,+ timeoutMessage: 'Viewer chrome layout did not reach stable dimensions.'+ });+ }+ archifyLayoutOwners.viewerChrome = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };++ window.addEventListener('resize', reprobe, { passive: true });+ window.addEventListener('scroll', scheduleLift, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', schedule);+ window.addEventListener('afterprint', reprobe);+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(reprobe).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(function (records) {+ // A theme switch changes paint, not the stage geometry. Reprobing+ // drops the bottom rail for several frames and makes the diagram jump.+ var viewerModeChanged = records.some(function (record) {+ return record.target === html && record.attributeName !== 'data-theme';+ });+ if (viewerModeChanged) reprobe();+ else schedule();+ });+ if (legend) contentObserver.observe(legend, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, {+ attributes: true,+ attributeFilter: ['data-embed', 'data-present', 'data-preset', 'data-theme']+ });+ }+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ reprobe: reprobe,+ whenStable: whenStable,+ stageRect: protectedStageRect,+ dockRect: function () { return nav ? restingNavRect() : null; },+ active: function () { return reserve > 0; },+ receipt: function () { return lastReceipt || measure(); }+ };+ })();++ Archify.layoutStability = {+ whenStable: function () {+ var reader = archifyLayoutOwners.reader;+ var chrome = archifyLayoutOwners.viewerChrome;+ if (!reader || !chrome) {+ return Promise.reject(new Error('Joint layout owners are unavailable.'));+ }+ var observedFontsReady = document.fonts && document.fonts.ready;+ var fontCyclePending = false;+ var fontGeneration = 0;+ function scheduleOwners() { reader.schedule(); chrome.schedule(); }+ function fontsPending() {+ var fonts = document.fonts;+ var ready = fonts && fonts.ready;+ if (ready && (ready !== observedFontsReady || (fonts.status === 'loading' && !fontCyclePending))) {+ observedFontsReady = ready;+ fontCyclePending = true;+ var generation = ++fontGeneration;+ ready.catch(function () {}).then(function () {+ if (generation !== fontGeneration) return;+ fontCyclePending = false;+ scheduleOwners();+ });+ }+ return fontCyclePending || Boolean(fonts && fonts.status === 'loading');+ }+ return Archify.waitForStableLayout({+ maximumFrames: 960,+ schedule: scheduleOwners,+ pending: function () {+ // Recapture readiness for font cycles that begin during sampling.+ return fontsPending() || reader.pending() || chrome.pending();+ },+ snapshot: function () {+ return JSON.stringify([+ ['reader', reader.snapshot()],+ ['viewerChrome', chrome.snapshot()]+ ]);+ },+ timeoutMessage: 'Joint reader and viewer chrome layout did not reach stable dimensions.'+ });+ }+ };+ Archify.view = (function () {+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var outBtn = container.querySelector('[data-view="out"]');+ var resetBtn = container.querySelector('[data-view="reset"]');+ var resetDetailLabel = resetBtn.querySelector('[data-view-detail]');+ var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');+ var inBtn = container.querySelector('[data-view="in"]');+ var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var drag = null;+ var cameraTimer = null;+ var cameraFrame = null;+ var cameraGeneration = 0;+ var cameraTransaction = null;+ var clipFrame = 0;+ var resizeFrame = 0;+ var autoScrollUntil = 0;++ var viewBox = svg.viewBox && svg.viewBox.baseVal;++ function clamp() {+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ state.x = Math.min(0, Math.max(width - width * state.scale, state.x));+ state.y = Math.min(0, Math.max(height - height * state.scale, state.y));+ }+ function reducedMotion() {+ return window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;+ }+ function contentMetrics() {+ if (!viewBox || viewBox.width <= 0 || viewBox.height <= 0) return null;+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ var scale = Math.min(width / viewBox.width, height / viewBox.height);+ return {+ width: width,+ height: height,+ scale: scale,+ offsetX: (width - viewBox.width * scale) / 2,+ offsetY: (height - viewBox.height * scale) / 2+ };+ }+ function logicalViewport() {+ var metrics = contentMetrics();+ if (!metrics) return null;+ var x;+ var y;+ var width;+ var height;+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ x = viewBox.x + container.scrollLeft / metrics.scale;+ y = viewBox.y;+ width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));+ height = viewBox.height;+ } else {+ x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;+ width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);+ }+ width = Math.max(1, Math.min(viewBox.width, width));+ height = Math.max(1, Math.min(viewBox.height, height));+ x = Math.max(viewBox.x, Math.min(viewBox.x + viewBox.width - width, x));+ y = Math.max(viewBox.y, Math.min(viewBox.y + viewBox.height - height, y));+ return { x: x, y: y, width: width, height: height, scale: state.scale };+ }+ function detailLevel() {+ if (state.mode === 'semantic') return 'full';+ if (state.scale >= 1.75) return 'full';+ if (state.scale >= 1) return 'read';+ return 'map';+ }+ function renderControls() {+ var semantic = state.mode === 'semantic' && state.scale > 1.01;+ var detail = detailLevel();+ var percent = Math.round(state.scale * 100) + '%';+ var levelLabel = viewerText('viewer.nav.level.' + detail);+ var detailHint = detail === 'map'+ ? viewerText('viewer.nav.detail.map')+ : detail === 'read'+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';+ if (resetDetailLabel) {+ resetDetailLabel.textContent = resolvedLevel;+ resetDetailLabel.hidden = !showDetailLevel;+ }+ if (resetPercentLabel) resetPercentLabel.textContent = percent;+ resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));+ resetBtn.setAttribute('data-detail-level', detail);+ container.setAttribute('data-detail-level', detail);+ container.setAttribute('data-camera-mode', state.mode);+ container.setAttribute('data-camera-indicator', semantic ? 'true' : 'false');+ }+ function clipToViewport(camera) {+ camera = camera || state;+ if (camera.scale <= 1.001) {+ svg.style.removeProperty('clip-path');+ return;+ }+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ var scale = camera.scale;+ var top = Math.max(0, Math.min(height, -camera.y / scale));+ var left = Math.max(0, Math.min(width, -camera.x / scale));+ var right = Math.max(0, Math.min(width, width - (width - camera.x) / scale));+ var bottom = Math.max(0, Math.min(height, height - (height - camera.y) / scale));+ svg.style.clipPath = 'inset(' + [top, right, bottom, left].map(function (value) {+ return Math.round(value * 1000) / 1000 + 'px';+ }).join(' ') + ')';+ }+ function cameraSettled(rendered) {+ return Math.abs(rendered.scale - state.scale) < 0.001 &&+ Math.abs(rendered.x - state.x) < 0.05 &&+ Math.abs(rendered.y - state.y) < 0.05;+ }+ function syncViewportClip() {+ if (clipFrame) cancelAnimationFrame(clipFrame);+ clipFrame = 0;+ function sample() {+ clipFrame = 0;+ var rendered = sampleRenderedState();+ clipToViewport(rendered);+ if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);+ }+ sample();+ }+ function apply() {+ clamp();+ svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ syncViewportClip();+ renderControls();+ outBtn.disabled = state.scale <= 1;+ inBtn.disabled = state.scale >= 3;+ container.classList.toggle('is-pannable', state.scale > 1);+ svg.setAttribute('data-view-scale', String(state.scale));+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {+ Archify.viewerChromeLayout.schedule();+ }+ }+ function sampleRenderedState() {+ var transform = '';+ try { transform = getComputedStyle(svg).transform || ''; } catch (_) {}+ var match = transform.match(/^matrix\(([^)]+)\)$/);+ if (!match) return { scale: state.scale, x: state.x, y: state.y, mode: state.mode };+ var values = match[1].split(',').map(Number);+ if (values.length !== 6 || !values.every(Number.isFinite)) {+ return { scale: state.scale, x: state.x, y: state.y, mode: state.mode };+ }+ return { scale: values[0], x: values[4], y: values[5], mode: state.mode };+ }+ function finishCameraTransaction(transaction, outcome) {+ if (!transaction || transaction.settled) return false;+ transaction.settled = true;+ transaction.state = outcome || 'complete';+ if (transaction.frame) cancelAnimationFrame(transaction.frame);+ if (transaction.timer) clearTimeout(transaction.timer);+ transaction.frame = null;+ transaction.timer = null;+ if (cameraTransaction === transaction) cameraTransaction = null;+ cameraFrame = null;+ cameraTimer = null;+ container.classList.remove('is-camera-moving');+ container.classList.remove('is-camera-transaction');+ container.removeAttribute('data-camera-transaction');+ if (Archify.focus && Archify.focus.reposition) Archify.focus.reposition();+ transaction.resolve({ id: transaction.id, state: transaction.state });+ return true;+ }+ function cameraReceipt(target, options) {+ var resolver;+ var transaction = {+ id: ++cameraGeneration,+ state: 'running',+ target: target,+ settled: false,+ frame: null,+ timer: null,+ finished: new Promise(function (resolve) { resolver = resolve; }),+ resolve: resolver,+ cancel: function (reason, commitTarget) {+ if (transaction.settled) return false;+ if (commitTarget && transaction.target) {+ if (Object.prototype.hasOwnProperty.call(transaction.target, 'scrollLeft')) {+ container.scrollLeft = transaction.target.scrollLeft;+ } else {+ state = {+ scale: transaction.target.scale,+ x: transaction.target.x,+ y: transaction.target.y,+ mode: transaction.target.mode+ };+ apply();+ }+ }+ return finishCameraTransaction(transaction, reason || 'cancelled');+ }+ };+ return transaction;+ }+ function stopCameraMotion(reason, commitTarget) {+ if (cameraTransaction && !cameraTransaction.settled) {+ cameraTransaction.cancel(reason || 'cancelled', commitTarget === true);+ return;+ }+ if (cameraTimer) clearTimeout(cameraTimer);+ if (cameraFrame) cancelAnimationFrame(cameraFrame);+ cameraTimer = null;+ cameraFrame = null;+ container.classList.remove('is-camera-moving');+ container.classList.remove('is-camera-transaction');+ container.removeAttribute('data-camera-transaction');+ }+ function interruptCamera(reason) {+ var rendered = sampleRenderedState();+ stopCameraMotion(reason || 'manual', false);+ state = rendered;+ state.mode = 'manual';+ apply();+ renderControls();+ if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: reason || 'manual' });+ }+ }+ function zoom(next, options) {+ options = options || {};+ if (options.manual !== false) interruptCamera();+ var previous = state.scale;+ next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ if (next === previous) return;+ var centerX = (svg.clientWidth || 1) / 2;+ var centerY = (svg.clientHeight || 1) / 2;+ var contentX = (centerX - state.x) / previous;+ var contentY = (centerY - state.y) / previous;+ state.scale = next;+ state.x = centerX - contentX * next;+ state.y = centerY - contentY * next;+ apply();+ }+ function reset(options) {+ options = options || {};+ if (options.automatic !== true) interruptCamera();+ else stopCameraMotion('reset', false);+ state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ apply();+ }+ function centerAt(logicalX, logicalY, options) {+ options = options || {};+ logicalX = Number(logicalX);+ logicalY = Number(logicalY);+ var metrics = contentMetrics();+ if (!metrics || !Number.isFinite(logicalX) || !Number.isFinite(logicalY)) return false;+ interruptCamera();+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ state.scale = 1;+ state.x = 0;+ state.y = 0;+ state.mode = 'manual';+ apply();+ var mobileTarget = (logicalX - viewBox.x) * metrics.scale - container.clientWidth / 2;+ mobileTarget = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, mobileTarget));+ autoScrollUntil = Date.now() + 80;+ try { container.scrollTo({ left: mobileTarget, behavior: options.instant ? 'auto' : 'smooth' }); }+ catch (_) { container.scrollLeft = mobileTarget; }+ return true;+ }+ var minimumScale = Math.max(1, Math.min(3, Number(options.minimumScale) || 1));+ var requestedScale = Number(options.scale);+ state.scale = Math.max(minimumScale, Math.min(3, Number.isFinite(requestedScale) ? requestedScale : state.scale));+ var contentX = metrics.offsetX + (logicalX - viewBox.x) * metrics.scale;+ var contentY = metrics.offsetY + (logicalY - viewBox.y) * metrics.scale;+ state.x = metrics.width / 2 - contentX * state.scale;+ state.y = metrics.height / 2 - contentY * state.scale;+ state.mode = 'manual';+ apply();+ if (Archify.focus && Archify.focus.reposition) Archify.focus.reposition();+ return true;+ }+ function semanticIds(ids, includeNeighbors) {+ var seeds = Object.create(null);+ var wanted = Object.create(null);+ (ids || []).forEach(function (id) { seeds[id] = true; wanted[id] = true; });+ if (includeNeighbors) {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (seeds[from] || seeds[to]) { wanted[from] = true; wanted[to] = true; }+ });+ }+ return wanted;+ }+ function boxesFor(ids, includeNeighbors) {+ var wanted = semanticIds(ids, includeNeighbors);+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'))+ .filter(function (node) { return wanted[node.getAttribute('data-node-id')]; })+ .map(function (node) {+ try { return node.getBBox(); } catch (_) { return null; }+ })+ .filter(Boolean);+ }+ function frameDesktop(ids, options) {+ options = options || {};+ var boxes = boxesFor(ids, options.includeNeighbors === true);+ if (!boxes.length || !viewBox || viewBox.width <= 0 || viewBox.height <= 0) return false;+ var svgWidth = svg.clientWidth || 1;+ var svgHeight = svg.clientHeight || 1;+ var contentScale = Math.min(svgWidth / viewBox.width, svgHeight / viewBox.height);+ var contentOffsetX = (svgWidth - viewBox.width * contentScale) / 2;+ var contentOffsetY = (svgHeight - viewBox.height * contentScale) / 2;+ var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));+ var minY = Math.min.apply(Math, boxes.map(function (box) { return box.y; }));+ var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));+ var maxY = Math.max.apply(Math, boxes.map(function (box) { return box.y + box.height; }));+ var bounds = {+ x: contentOffsetX + (minX - viewBox.x) * contentScale,+ y: contentOffsetY + (minY - viewBox.y) * contentScale,+ width: Math.max(1, (maxX - minX) * contentScale),+ height: Math.max(1, (maxY - minY) * contentScale)+ };+ var padding = options.padding || 48;+ var left = padding;+ var right = svgWidth - padding;+ var top = padding;+ var bottom = svgHeight - Math.max(padding, 72);+ var containerRect = container.getBoundingClientRect();+ var visibleTop = Math.max(0, -containerRect.top);+ var visibleBottom = Math.min(svgHeight, window.innerHeight - containerRect.top);+ if (visibleBottom - visibleTop >= 240) {+ top = Math.max(top, visibleTop + padding);+ bottom = Math.min(bottom, visibleBottom - Math.max(padding, 72));+ }+ var chip = document.getElementById('focus-chip');+ if (chip && !chip.hidden) {+ var lensEnd = chip.offsetLeft + chip.offsetWidth + 24 - (svg.offsetLeft || 0);+ left = Math.max(left, Math.min(svgWidth * 0.42, lensEnd));+ }+ var routeReceipt = document.getElementById('route-probe');+ if (routeReceipt && !routeReceipt.hidden && routeReceipt.hasAttribute('data-route-journey')) {+ var receiptTop = routeReceipt.offsetTop;+ var receiptBottom = receiptTop + routeReceipt.offsetHeight;+ if (receiptTop < svgHeight / 2) top = Math.max(top, receiptBottom + 24);+ else bottom = Math.min(bottom, receiptTop - 24);+ }+ if (right <= left || bottom <= top) return false;+ var maxScale = options.maxScale || (options.includeNeighbors ? 1.9 : 2.15);+ var targetScale = Math.min((right - left) / bounds.width, (bottom - top) / bounds.height) * 0.9;+ targetScale = Math.max(1, Math.min(maxScale, targetScale));+ if (targetScale < 1.08) targetScale = 1;+ var target = {+ scale: Math.round(targetScale * 100) / 100,+ x: 0,+ y: 0,+ mode: 'semantic'+ };+ target.x = (left + right) / 2 - (bounds.x + bounds.width / 2) * target.scale;+ target.y = (top + bottom) / 2 - (bounds.y + bounds.height / 2) * target.scale;+ var start = sampleRenderedState();+ stopCameraMotion('replaced', false);+ var transaction = cameraReceipt(target, options);+ cameraTransaction = transaction;+ var instant = options.instant === true || reducedMotion() || document.hidden;+ if (instant) {+ state = target;+ apply();+ finishCameraTransaction(transaction, reducedMotion() ? 'reduced-motion' : (document.hidden ? 'hidden' : 'complete'));+ return transaction;+ }+ var duration = Math.max(180, Math.min(520, Number(options.duration) || 420));+ var startedAt = 0;+ state = start;+ state.mode = 'semantic';+ apply();+ container.classList.add('is-camera-moving');+ container.classList.add('is-camera-transaction');+ container.setAttribute('data-camera-transaction', String(transaction.id));+ var step = function (timestamp) {+ if (cameraTransaction !== transaction || transaction.settled) return;+ if (!startedAt) startedAt = timestamp;+ var fraction = Math.max(0, Math.min(1, (timestamp - startedAt) / duration));+ var eased = 1 - Math.pow(1 - fraction, 3);+ state = {+ scale: start.scale + (target.scale - start.scale) * eased,+ x: start.x + (target.x - start.x) * eased,+ y: start.y + (target.y - start.y) * eased,+ mode: 'semantic'+ };+ apply();+ if (fraction < 1) {+ transaction.frame = requestAnimationFrame(step);+ cameraFrame = transaction.frame;+ } else {+ state = target;+ apply();+ finishCameraTransaction(transaction, 'complete');+ }+ };+ transaction.frame = requestAnimationFrame(step);+ cameraFrame = transaction.frame;+ return transaction;+ }+ function reveal(ids, options) {+ options = options || {};+ if (window.innerWidth > 720) return frameDesktop(ids, options);+ stopCameraMotion('replaced', false);+ state.scale = 1;+ state.x = 0;+ state.y = 0;+ state.mode = 'semantic';+ apply();+ if (!container.hasAttribute('data-wide-diagram')) {+ var contained = cameraReceipt({ scale: 1, x: 0, y: 0, mode: 'semantic' }, options);+ cameraTransaction = contained;+ finishCameraTransaction(contained, 'complete');+ return contained;+ }+ var boxes = boxesFor(ids, options.includeNeighbors === true);+ if (!boxes.length || !viewBox || viewBox.width <= 0) return false;+ var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));+ var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));+ var center = (((minX + maxX) / 2 - viewBox.x) / viewBox.width) * (svg.clientWidth || 1);+ var target = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, center - container.clientWidth / 2));+ var transaction = cameraReceipt({ scrollLeft: target }, options);+ cameraTransaction = transaction;+ var instant = options.instant === true || reducedMotion() || document.hidden;+ autoScrollUntil = Date.now() + (instant ? 50 : 470);+ try { container.scrollTo({ left: target, behavior: instant ? 'auto' : 'smooth' }); }+ catch (_) { container.scrollLeft = target; }+ if (instant) finishCameraTransaction(transaction, reducedMotion() ? 'reduced-motion' : (document.hidden ? 'hidden' : 'complete'));+ else {+ transaction.timer = setTimeout(function () { finishCameraTransaction(transaction, 'complete'); }, 460);+ cameraTimer = transaction.timer;+ container.classList.add('is-camera-moving');+ container.setAttribute('data-camera-transaction', String(transaction.id));+ }+ return transaction;+ }+ function syncSemantic() {+ var active = Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null;+ if (typeof active === 'string') return reveal([active], { includeNeighbors: true, reason: 'focus-sync' });+ if (Array.isArray(active) && active.length) return reveal(active, { reason: 'selection-sync' });+ return false;+ }+ function pinControls() {+ container.style.setProperty('--archify-scroll-x', container.scrollLeft + 'px');+ }+ function onScroll() {+ pinControls();+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && Date.now() > autoScrollUntil) {+ interruptCamera();+ }+ }+ function onPointerEnd(event) {+ if (!drag) return;+ var moved = drag.moved;+ drag = null;+ container.classList.remove('is-panning');+ try { container.releasePointerCapture(event.pointerId); } catch (_) {}+ if (moved) {+ container.setAttribute('data-just-panned', 'true');+ setTimeout(function () { container.removeAttribute('data-just-panned'); }, 80);+ }+ }++ inBtn.addEventListener('click', function () { zoom(state.scale + 0.25); });+ outBtn.addEventListener('click', function () { zoom(state.scale - 0.25); });+ resetBtn.addEventListener('click', reset);+ container.addEventListener('pointerdown', function (event) {+ if (state.scale <= 1 || event.button !== 0 || event.target.closest('.diagram-nav, .focus-chip, .node-finder, .diagram-guide, .overview-map, .route-probe, .semantic-lens') || event.target.closest('[data-node-id]') || event.target.closest('[data-relationship-hit-key]')) return;+ interruptCamera();+ drag = { startX: event.clientX, startY: event.clientY, x: state.x, y: state.y, moved: false };+ container.classList.add('is-panning');+ try { container.setPointerCapture(event.pointerId); } catch (_) {}+ });+ container.addEventListener('pointermove', function (event) {+ if (!drag) return;+ var dx = event.clientX - drag.startX;+ var dy = event.clientY - drag.startY;+ if (Math.abs(dx) + Math.abs(dy) > 3) drag.moved = true;+ state.x = drag.x + dx;+ state.y = drag.y + dy;+ apply();+ });+ container.addEventListener('pointerup', onPointerEnd);+ container.addEventListener('pointercancel', onPointerEnd);+ container.addEventListener('scroll', onScroll, { passive: true });+ window.addEventListener('resize', function () {+ if (resizeFrame) cancelAnimationFrame(resizeFrame);+ resizeFrame = requestAnimationFrame(function () {+ resizeFrame = 0;+ if (state.mode === 'semantic') syncSemantic();+ else apply();+ });+ });+ window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });+ apply();+ pinControls();+ requestAnimationFrame(syncSemantic);++ return {+ zoomIn: function () { zoom(state.scale + 0.25); },+ zoomOut: function () { zoom(state.scale - 0.25); },+ reset: reset,+ reveal: reveal,+ centerAt: centerAt,+ logicalViewport: logicalViewport,+ sync: syncSemantic,+ state: function () { return { scale: state.scale, x: state.x, y: state.y, mode: state.mode }; }+ };+ })();++ /* ============================================================+ Semantic Radar — simplified semantic bounds + live viewport.+ The radar is built at runtime so the checked artifact still contains+ one canonical SVG block, and export serialization remains untouched.+ ============================================================ */+ Archify.radar = (function () {+ var container = document.querySelector('.diagram-container');+ var diagram = container.querySelector(':scope > svg');+ var panel = document.getElementById('overview-map');+ var panelHead = panel.querySelector('.overview-map-head');+ var surface = document.getElementById('overview-map-surface');+ var status = document.getElementById('overview-map-status');+ var trigger = document.getElementById('btn-overview-map');+ var closeBtn = document.getElementById('overview-map-close');+ var expandBtn = document.getElementById('overview-map-expand');+ var feedback = document.getElementById('overview-map-feedback');+ var navigation = container.querySelector('.diagram-nav');+ var passport = document.getElementById('focus-chip');+ var namespace = 'http://www.w3.org/2000/svg';+ var viewBox = diagram.viewBox && diagram.viewBox.baseVal;+ var mapSvg = document.createElementNS(namespace, 'svg');+ var nodeLayer = document.createElementNS(namespace, 'g');+ var viewport = document.createElementNS(namespace, 'rect');+ var nodes = [];+ var viewportDrag = null;+ var panelDrag = null;+ var manualPosition = null;+ var lastPlacement = null;+ var requestedOpen = false;+ var passportYielded = false;+ var passportPreviousAriaHidden = null;+ var syncFrame = 0;+ var spaceRetryTimer = 0;+ var spaceRetryCount = 0;+ var placementGap = 16;++ mapSvg.setAttribute('role', 'group');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));+ mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');+ nodeLayer.setAttribute('class', 'overview-map-nodes');+ viewport.setAttribute('class', 'overview-map-viewport');+ viewport.setAttribute('rx', '3');+ viewport.setAttribute('ry', '3');+ mapSvg.appendChild(nodeLayer);+ mapSvg.appendChild(viewport);+ surface.appendChild(mapSvg);++ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function build() {+ if (!viewBox || viewBox.width <= 0 || viewBox.height <= 0) return false;+ mapSvg.setAttribute('viewBox', [viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' '));+ nodeLayer.textContent = '';+ nodes = [];+ Array.prototype.forEach.call(diagram.querySelectorAll('[data-node-id]'), function (node) {+ var box;+ try { box = node.getBBox(); } catch (_) { box = null; }+ if (!box || box.width <= 0 || box.height <= 0) return;+ var id = node.getAttribute('data-node-id');+ var rect = document.createElementNS(namespace, 'rect');+ rect.setAttribute('class', 'overview-map-node');+ rect.setAttribute('x', String(box.x));+ rect.setAttribute('y', String(box.y));+ rect.setAttribute('width', String(Math.max(3, box.width)));+ rect.setAttribute('height', String(Math.max(3, box.height)));+ rect.setAttribute('rx', String(Math.max(2, Math.min(8, Math.min(box.width, box.height) * 0.1))));+ rect.setAttribute('data-radar-node-id', id);+ rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');+ rect.setAttribute('tabindex', '0');+ rect.setAttribute('role', 'button');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));+ nodeLayer.appendChild(rect);+ nodes.push({ id: id, node: node, rect: rect });+ });+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });+ return true;+ }+ function visibleRect(element) {+ if (!element || element.hidden) return null;+ var rect = element.getBoundingClientRect();+ if (rect.width <= 0 || rect.height <= 0 || rect.right <= 0 || rect.bottom <= 0 || rect.left >= window.innerWidth || rect.top >= window.innerHeight) return null;+ return { left: rect.left, top: rect.top, right: rect.right, bottom: rect.bottom, width: rect.width, height: rect.height };+ }+ function panelRectAt(position) {+ return {+ left: position.left,+ top: position.top,+ right: position.left + panel.offsetWidth,+ bottom: position.top + panel.offsetHeight,+ width: panel.offsetWidth,+ height: panel.offsetHeight+ };+ }+ function rectsIntersect(first, second, gap) {+ gap = Number(gap) || 0;+ return first.left < second.right + gap &&+ first.right > second.left - gap &&+ first.top < second.bottom + gap &&+ first.bottom > second.top - gap;+ }+ function intersectionArea(first, second) {+ var width = Math.max(0, Math.min(first.right, second.right) - Math.max(first.left, second.left));+ var height = Math.max(0, Math.min(first.bottom, second.bottom) - Math.max(first.top, second.top));+ return width * height;+ }+ function clamp(value, minimum, maximum) {+ if (maximum < minimum) return minimum;+ return Math.max(minimum, Math.min(maximum, value));+ }+ function placementContext() {+ var containerRect = visibleRect(container);+ if (!containerRect) return null;+ var controlRect = visibleRect(navigation);+ var left = Math.max(placementGap, containerRect.left + placementGap);+ var top = Math.max(placementGap, containerRect.top + placementGap);+ var right = Math.min(window.innerWidth - placementGap, containerRect.right - placementGap);+ var bottom = Math.min(window.innerHeight - placementGap, containerRect.bottom - placementGap);+ if (controlRect) bottom = Math.min(bottom, controlRect.top - placementGap);+ var lens = document.getElementById('focus-chip');+ var lensRect = visibleRect(lens);+ var legendRect = visibleRect(diagram.querySelector('[data-legend]'));+ var active = diagram.querySelector('[data-focus-selected]');+ var activeRect = visibleRect(active);+ return {+ bounds: { left: left, top: top, right: right, bottom: bottom },+ hardBlockers: [lensRect, controlRect, legendRect].filter(Boolean),+ softBlockers: [activeRect].filter(Boolean),+ preferredSide: !activeRect || activeRect.left + activeRect.width / 2 > window.innerWidth / 2 ? 'left' : 'right'+ };+ }+ function positionIsValid(position, context) {+ if (!position || !context) return false;+ var rect = panelRectAt(position);+ var bounds = context.bounds;+ if (rect.left < bounds.left || rect.top < bounds.top || rect.right > bounds.right || rect.bottom > bounds.bottom) return false;+ return context.hardBlockers.every(function (blocker) { return !rectsIntersect(rect, blocker, placementGap); });+ }+ function cornerCandidates(context) {+ var bounds = context.bounds;+ var left = bounds.left;+ var right = Math.max(left, bounds.right - panel.offsetWidth);+ var top = bounds.top;+ var bottom = Math.max(top, bounds.bottom - panel.offsetHeight);+ var preferredLeft = context.preferredSide === 'left' ? left : right;+ var alternateLeft = context.preferredSide === 'left' ? right : left;+ return [+ { left: preferredLeft, top: bottom },+ { left: alternateLeft, top: bottom },+ { left: preferredLeft, top: top },+ { left: alternateLeft, top: top }+ ].filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function nearbyCandidates(context, reference) {+ var bounds = context.bounds;+ var maximumLeft = bounds.right - panel.offsetWidth;+ var maximumTop = bounds.bottom - panel.offsetHeight;+ var requested = reference ? {+ left: clamp(reference.left, bounds.left, maximumLeft),+ top: clamp(reference.top, bounds.top, maximumTop)+ } : null;+ var horizontal = [bounds.left, maximumLeft];+ var vertical = [bounds.top, maximumTop];+ if (requested) {+ horizontal.push(requested.left);+ vertical.push(requested.top);+ }+ context.hardBlockers.forEach(function (blocker) {+ horizontal.push(+ blocker.left - placementGap - panel.offsetWidth,+ blocker.right + placementGap+ );+ vertical.push(+ blocker.top - placementGap - panel.offsetHeight,+ blocker.bottom + placementGap+ );+ });+ horizontal = horizontal.map(function (left) { return clamp(left, bounds.left, maximumLeft); });+ vertical = vertical.map(function (top) { return clamp(top, bounds.top, maximumTop); });+ var candidates = [];+ horizontal.forEach(function (left) {+ vertical.forEach(function (top) { candidates.push({ left: left, top: top }); });+ });+ return candidates.filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function placementScore(position, context, reference, softWeight) {+ var rect = panelRectAt(position);+ var referenceLeft = reference ? reference.left : (context.preferredSide === 'left' ? context.bounds.left : context.bounds.right - panel.offsetWidth);+ var referenceTop = reference ? reference.top : context.bounds.bottom - panel.offsetHeight;+ var distance = Math.pow(position.left - referenceLeft, 2) + Math.pow(position.top - referenceTop, 2);+ var softOverlap = context.softBlockers.reduce(function (total, blocker) { return total + intersectionArea(rect, blocker); }, 0);+ return distance + softOverlap * softWeight;+ }+ function chooseRadarPlacement(context, reference, options) {+ options = options || {};+ var softWeight = Number.isFinite(options.softWeight) ? options.softWeight : 100;+ var candidates = nearbyCandidates(context, reference).concat(cornerCandidates(context));+ var valid = candidates.filter(function (candidate) { return positionIsValid(candidate, context); });+ valid.sort(function (first, second) {+ return placementScore(first, context, reference, softWeight) - placementScore(second, context, reference, softWeight);+ });+ return valid.length ? valid[0] : null;+ }+ function applyPlacement(position, remember) {+ var useLeft = position.left + panel.offsetWidth / 2 <= window.innerWidth / 2;+ panel.setAttribute('data-docked', 'true');+ panel.setAttribute('data-dock-side', useLeft ? 'left' : 'right');+ if (useLeft) {+ panel.style.setProperty('--archify-radar-left', Math.round(position.left) + 'px');+ panel.style.removeProperty('--archify-radar-right');+ } else {+ panel.style.setProperty('--archify-radar-right', Math.round(window.innerWidth - position.left - panel.offsetWidth) + 'px');+ panel.style.removeProperty('--archify-radar-left');+ }+ panel.style.setProperty('--archify-radar-top', Math.round(position.top) + 'px');+ if (remember !== false) lastPlacement = { left: position.left, top: position.top };+ }+ function resetDockingStyles() {+ panel.removeAttribute('data-docked');+ panel.removeAttribute('data-dock-side');+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('data-compact');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ panel.style.removeProperty('--archify-radar-right');+ panel.style.removeProperty('--archify-radar-left');+ panel.style.removeProperty('--archify-radar-top');+ }+ function updateDocking() {+ var options = arguments[0] || {};+ if (panel.hidden) return false;+ if (panelDrag) return true;+ panel.removeAttribute('data-compact');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ var context = placementContext();+ if (!context) {+ resetDockingStyles();+ return false;+ }+ var reference = manualPosition || lastPlacement;+ var placementOptions = { softWeight: manualPosition ? 0 : 100 };+ var placement = manualPosition && positionIsValid(manualPosition, context)+ ? manualPosition+ : chooseRadarPlacement(context, reference, placementOptions);+ var compact = false;+ if (!placement && options.allowCompact !== false) {+ compact = true;+ panel.setAttribute('data-compact', 'true');+ panel.setAttribute('data-placement-degraded', 'true');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));+ context = placementContext();+ placement = chooseRadarPlacement(context, reference, placementOptions);+ }+ if (!placement) {+ resetDockingStyles();+ panel.setAttribute('data-placement-unavailable', 'true');+ return false;+ }+ if (manualPosition && !compact) manualPosition = { left: placement.left, top: placement.top };+ applyPlacement(placement, true);+ return true;+ }+ function clearSpaceRetry() {+ if (spaceRetryTimer) window.clearTimeout(spaceRetryTimer);+ spaceRetryTimer = 0;+ }+ function yieldPassport() {+ if (!passport || passport.hidden || passportYielded) return passportYielded;+ passportPreviousAriaHidden = passport.getAttribute('aria-hidden');+ passportYielded = true;+ passport.setAttribute('data-radar-yielded', 'true');+ passport.setAttribute('aria-hidden', 'true');+ return true;+ }+ function restorePassport() {+ if (!passport || !passportYielded) return;+ passportYielded = false;+ passport.removeAttribute('data-radar-yielded');+ if (passportPreviousAriaHidden === null) passport.removeAttribute('aria-hidden');+ else passport.setAttribute('aria-hidden', passportPreviousAriaHidden);+ passportPreviousAriaHidden = null;+ }+ function reflectVisible() {+ panel.hidden = false;+ panel.removeAttribute('data-placement-unavailable');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');+ feedback.hidden = true;+ }+ function scheduleSpaceRetry() {+ if (!requestedOpen || spaceRetryTimer || spaceRetryCount >= 4) return;+ spaceRetryCount += 1;+ spaceRetryTimer = window.setTimeout(function () {+ spaceRetryTimer = 0;+ attemptRequestedOpen();+ }, 60);+ }+ function reflectUnavailable() {+ restorePassport();+ panel.hidden = true;+ panel.setAttribute('data-placement-unavailable', 'true');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));+ trigger.setAttribute('data-radar-space-limited', 'true');+ trigger.title = viewerText('viewer.radar.needsSpace');+ feedback.hidden = false;+ scheduleSpaceRetry();+ }+ function attemptRequestedOpen(options) {+ options = options || {};+ if (!requestedOpen) return false;+ panel.hidden = false;+ if (!updateDocking(options)) {+ reflectUnavailable();+ return false;+ }+ clearSpaceRetry();+ spaceRetryCount = 0;+ reflectVisible();+ sync();+ if (options.focus === true && !panel.hasAttribute('data-compact')) surface.focus();+ return true;+ }+ function expandCompactRadar() {+ if (!requestedOpen || panel.hidden || !panel.hasAttribute('data-compact')) return false;+ yieldPassport();+ if (!updateDocking({ allowCompact: false })) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return false;+ }+ }+ reflectVisible();+ sync();+ if (!panel.hasAttribute('data-compact')) surface.focus();+ return !panel.hasAttribute('data-compact');+ }+ function syncNow() {+ syncFrame = 0;+ if (panel.hidden || !Archify.view || typeof Archify.view.logicalViewport !== 'function') return;+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ if (passportYielded && panel.hasAttribute('data-compact')) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ }+ reflectVisible();+ var visible = Archify.view.logicalViewport();+ if (!visible) return;+ viewport.setAttribute('x', String(visible.x));+ viewport.setAttribute('y', String(visible.y));+ viewport.setAttribute('width', String(visible.width));+ viewport.setAttribute('height', String(visible.height));+ var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;+ var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');+ var viewportCopy = full+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });+ nodes.forEach(function (item) {+ var active = item.node.hasAttribute('data-focus-selected');+ if (active) item.rect.setAttribute('data-radar-active', 'true');+ else item.rect.removeAttribute('data-radar-active');+ });+ }+ function sync() {+ if (requestedOpen && panel.hidden) {+ attemptRequestedOpen();+ return;+ }+ if (syncFrame) return;+ syncFrame = requestAnimationFrame(syncNow);+ }+ function setOpen(next, options) {+ options = options || {};+ next = Boolean(next);+ if (next && Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (next && Archify.semanticLens && Archify.semanticLens.isOpen()) {+ Archify.semanticLens.close({ restoreFocus: false });+ }+ requestedOpen = next;+ if (next) {+ clearSpaceRetry();+ spaceRetryCount = 0;+ trigger.setAttribute('data-radar-requested', 'true');+ build();+ attemptRequestedOpen(options);+ } else {+ clearSpaceRetry();+ spaceRetryCount = 0;+ viewportDrag = null;+ panelDrag = null;+ container.classList.remove('is-panning');+ panel.hidden = true;+ resetDockingStyles();+ restorePassport();+ feedback.hidden = true;+ // Focus before collapsing: the dock hides this trigger at 100% unless it holds focus.+ if (options.restoreFocus === true) trigger.focus();+ trigger.setAttribute('aria-expanded', 'false');+ trigger.removeAttribute('data-radar-requested');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');+ }+ return next;+ }+ function toggle() { return setOpen(!requestedOpen, { focus: false }); }+ function close(options) { return setOpen(false, options); }+ function bringNodeIntoWindow(node) {+ var delay = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 0 : 540;+ window.setTimeout(function () {+ var rect = node.getBoundingClientRect();+ var safeTop = 64;+ var safeBottom = window.innerHeight - 64;+ if (rect.top >= safeTop && rect.bottom <= safeBottom) return;+ var top = Math.max(0, window.scrollY + rect.top + rect.height / 2 - window.innerHeight / 2);+ try { window.scrollTo({ top: top, behavior: delay ? 'smooth' : 'auto' }); }+ catch (_) { window.scrollTo(0, top); }+ }, delay);+ }+ function focusNode(id) {+ var main = diagram.querySelector('[data-node-id="' + id + '"]');+ if (!main) return false;+ if (Archify.focus && typeof Archify.focus.set === 'function') {+ Archify.focus.set(id, { toggle: false });+ }+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'radar' });+ }+ bringNodeIntoWindow(main);+ try { main.focus({ preventScroll: true }); } catch (_) { try { main.focus(); } catch (_) {} }+ sync();+ return true;+ }+ function diagramPoint(event) {+ var matrix = mapSvg.getScreenCTM();+ if (!matrix) return null;+ var point = mapSvg.createSVGPoint();+ point.x = event.clientX;+ point.y = event.clientY;+ return point.matrixTransform(matrix.inverse());+ }+ function navigate(event) {+ var point = diagramPoint(event);+ if (!point || !Archify.view || typeof Archify.view.centerAt !== 'function') return;+ Archify.view.centerAt(point.x, point.y, { minimumScale: 1.5, instant: true });+ sync();+ }+ function endViewportDrag(event) {+ if (!viewportDrag) return;+ viewportDrag = null;+ panel.removeAttribute('data-dragging');+ container.classList.remove('is-panning');+ try { surface.releasePointerCapture(event.pointerId); } catch (_) {}+ }+ function beginPanelDrag(event) {+ if (event.button !== 0 || event.target.closest('button, a, input, [role="button"]')) return;+ var context = placementContext();+ if (!context) return;+ var rect = panel.getBoundingClientRect();+ event.preventDefault();+ event.stopPropagation();+ panelDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: { left: rect.left, top: rect.top },+ current: { left: rect.left, top: rect.top },+ previousManual: manualPosition ? { left: manualPosition.left, top: manualPosition.top } : null+ };+ panel.setAttribute('data-panel-dragging', 'true');+ try { panelHead.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function movePanelDrag(event) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ var context = placementContext();+ if (!context) return;+ event.preventDefault();+ event.stopPropagation();+ var bounds = context.bounds;+ var position = {+ left: clamp(panelDrag.start.left + event.clientX - panelDrag.originX, bounds.left, bounds.right - panel.offsetWidth),+ top: clamp(panelDrag.start.top + event.clientY - panelDrag.originY, bounds.top, bounds.bottom - panel.offsetHeight)+ };+ panelDrag.current = position;+ if (positionIsValid(position, context)) panel.removeAttribute('data-placement-invalid');+ else panel.setAttribute('data-placement-invalid', 'true');+ applyPlacement(position, false);+ }+ function finishPanelDrag(event, cancel) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = panelDrag;+ panelDrag = null;+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ try { panelHead.releasePointerCapture(event.pointerId); } catch (_) {}+ var context = placementContext();+ if (!context) return;+ if (cancel) {+ manualPosition = activeDrag.previousManual;+ lastPlacement = { left: activeDrag.start.left, top: activeDrag.start.top };+ updateDocking();+ return;+ }+ var requested = activeDrag.current;+ manualPosition = { left: requested.left, top: requested.top };+ updateDocking();+ }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close({ restoreFocus: true }); });+ expandBtn.addEventListener('click', expandCompactRadar);+ panelHead.addEventListener('pointerdown', beginPanelDrag);+ panelHead.addEventListener('pointermove', movePanelDrag);+ panelHead.addEventListener('pointerup', function (event) { finishPanelDrag(event, false); });+ panelHead.addEventListener('pointercancel', function (event) { finishPanelDrag(event, true); });+ surface.addEventListener('pointerdown', function (event) {+ if (event.button !== 0 || event.target.closest('[data-radar-node-id]')) return;+ event.preventDefault();+ viewportDrag = { pointerId: event.pointerId };+ panel.setAttribute('data-dragging', 'true');+ container.classList.add('is-panning');+ try { surface.setPointerCapture(event.pointerId); } catch (_) {}+ navigate(event);+ });+ surface.addEventListener('pointermove', function (event) {+ if (!viewportDrag || viewportDrag.pointerId !== event.pointerId) return;+ navigate(event);+ });+ surface.addEventListener('pointerup', endViewportDrag);+ surface.addEventListener('pointercancel', endViewportDrag);+ surface.addEventListener('click', function (event) {+ var node = event.target.closest('[data-radar-node-id]');+ if (node) focusNode(node.getAttribute('data-radar-node-id'));+ });+ surface.addEventListener('keydown', function (event) {+ if (event.key === 'Escape') {+ event.preventDefault();+ event.stopPropagation();+ close({ restoreFocus: true });+ return;+ }+ var node = event.target.closest('[data-radar-node-id]');+ if (node && (event.key === 'Enter' || event.key === ' ')) {+ event.preventDefault();+ focusNode(node.getAttribute('data-radar-node-id'));+ return;+ }+ if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight' && event.key !== 'ArrowUp' && event.key !== 'ArrowDown') return;+ var visible = Archify.view && Archify.view.logicalViewport ? Archify.view.logicalViewport() : null;+ if (!visible) return;+ event.preventDefault();+ var x = visible.x + visible.width / 2;+ var y = visible.y + visible.height / 2;+ var stepX = Math.max(12, visible.width * 0.24);+ var stepY = Math.max(12, visible.height * 0.24);+ if (event.key === 'ArrowLeft') x -= stepX;+ else if (event.key === 'ArrowRight') x += stepX;+ else if (event.key === 'ArrowUp') y -= stepY;+ else y += stepY;+ Archify.view.centerAt(x, y, { minimumScale: 1.5, instant: true });+ sync();+ });+ document.addEventListener('keydown', function (event) {+ if (!panelDrag || event.key !== 'Escape') return;+ finishPanelDrag({+ pointerId: panelDrag.pointerId,+ preventDefault: function () { event.preventDefault(); },+ stopPropagation: function () { event.stopPropagation(); }+ }, true);+ }, true);+ function reflow() {+ if (!requestedOpen) return;+ clearSpaceRetry();+ spaceRetryCount = 0;+ sync();+ }+ window.addEventListener('resize', reflow);+ window.addEventListener('scroll', reflow, { passive: true });+ if (typeof ResizeObserver === 'function') {+ var radarResizeObserver = new ResizeObserver(function (entries) {+ if (!requestedOpen) return;+ if (panel.hidden && entries.every(function (entry) { return entry.target === panel; })) return;+ reflow();+ });+ [container, navigation, document.getElementById('focus-chip'), panel].filter(Boolean).forEach(function (element) {+ radarResizeObserver.observe(element);+ });+ }+ requestAnimationFrame(build);++ return {+ open: function () { return setOpen(true); },+ close: close,+ toggle: toggle,+ sync: sync,+ focus: focusNode,+ isOpen: function () { return requestedOpen; },+ count: function () { return nodes.length; }+ };+ })();++ /* ============================================================+ Presentation Stage — a shareable, viewport-filling live view.+ It changes only HTML layout and URL state; SVG semantics and export+ serialization remain untouched. Escape first clears an active+ focus, then exits the stage.+ ============================================================ */+ Archify.presentation = (function () {+ var html = document.documentElement;+ var btn = document.getElementById('btn-present');+ var label = document.getElementById('present-label');+ var previousScrollY = 0;++ function active() { return html.getAttribute('data-present') === 'true'; }++ function updateUrl(next) {+ try {+ var url = new URL(window.location.href);+ if (next) url.searchParams.set('present', '1');+ else url.searchParams.delete('present');+ history.replaceState(null, '', url.pathname + url.search + url.hash);+ } catch (_) {}+ }++ function render(next) {+ btn.setAttribute('aria-pressed', next ? 'true' : 'false');+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');+ }++ function setActive(next, options) {+ options = options || {};+ next = Boolean(next);+ if (next === active()) {+ render(next);+ return next;+ }+ if (next) {+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ previousScrollY = window.scrollY || 0;+ html.setAttribute('data-present', 'true');+ try { window.scrollTo(0, 0); } catch (_) {}+ } else {+ html.removeAttribute('data-present');+ }+ render(next);+ if (options.updateUrl !== false) updateUrl(next);+ requestAnimationFrame(function () {+ if (Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ requestAnimationFrame(function () {+ if (Archify.view && typeof Archify.view.sync === 'function') Archify.view.sync();+ });+ }+ if (!next && previousScrollY) {+ try { window.scrollTo(0, previousScrollY); } catch (_) {}+ }+ });+ return next;+ }++ function toggle() { return setActive(!active()); }++ render(active());+ btn.addEventListener('click', toggle);++ return {+ enter: function () { return setActive(true); },+ exit: function () { return setActive(false); },+ toggle: toggle,+ active: active+ };+ })();++ /* ============================================================+ Node Finder — stable-ID search over the existing semantic SVG.+ Search never changes the IR or SVG geometry: selecting a result resets+ the viewport and delegates to semantic focus.+ ============================================================ */+ Archify.finder = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var trigger = document.getElementById('btn-node-finder');+ var panel = document.getElementById('node-finder');+ var heading = document.getElementById('node-finder-title');+ var closeBtn = document.getElementById('node-finder-close');+ var input = document.getElementById('node-finder-input');+ var results = document.getElementById('node-finder-results');+ var empty = document.getElementById('node-finder-empty');+ var status = document.getElementById('node-finder-status');+ var visibleItems = [];++ function defaultContext() {+ return {+ kind: 'focus',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),+ allowedIds: null,+ badges: null+ };+ }++ var context = defaultContext();++ function semanticType(node) {+ var authored = node.getAttribute('data-node-kind');+ if (authored) return authored;+ var types = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ return types.find(function (type) { return node.querySelector('.c-' + type); }) || 'node';+ }++ function connectionsFor(id) {+ var count = 0;+ var seen = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = from + '\u0000' + to;+ if ((from === id || to === id) && !seen[key]) {+ seen[key] = true;+ count += 1;+ }+ });+ return count;+ }++ var items = Array.prototype.map.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ var id = node.getAttribute('data-node-id');+ var label = node.getAttribute('data-node-label') || (node.getAttribute('aria-label') || id).replace(/^Focus\s+/, '');+ var text = (node.textContent || '').replace(/\s+/g, ' ').trim();+ var sublabel = node.getAttribute('data-node-sublabel') || '';+ var context = node.getAttribute('data-node-context') || '';+ var tag = node.getAttribute('data-node-tag') || '';+ var brand = node.getAttribute('data-node-brand') || '';+ var type = semanticType(node);+ var sources = Archify.sourceEvidence.node(id);+ var sourceSearch = sources.map(function (source) {+ return [source.path, source.label, source.line, source.endLine].filter(Boolean).join(' ');+ }).join(' ');+ return {+ id: id,+ label: label,+ type: type,+ sublabel: sublabel,+ context: context,+ tag: tag,+ brand: brand,+ sources: sources,+ links: connectionsFor(id),+ search: (id + ' ' + label + ' ' + type + ' ' + sublabel + ' ' + context + ' ' + tag + ' ' + sourceSearch + ' ' + text).toLowerCase() + ' ' + brand.toLowerCase(),+ node: node+ };+ });++ function resultButtons() {+ return Array.prototype.slice.call(results.querySelectorAll('.node-finder-result'));+ }++ function resolveContext(options) {+ var requested = options && options.context ? options.context : null;+ if (!requested && Archify.routeProbe && typeof Archify.routeProbe.finderContext === 'function') {+ requested = Archify.routeProbe.finderContext();+ }+ if (!requested) return defaultContext();+ var resolved = defaultContext();+ Object.keys(requested).forEach(function (key) { resolved[key] = requested[key]; });+ return resolved;+ }++ function availableItems() {+ if (!context.allowedIds) return items.slice();+ return items.filter(function (item) { return context.allowedIds.indexOf(item.id) !== -1; });+ }++ function applyContext() {+ panel.setAttribute('data-context', context.kind);+ heading.textContent = context.title;+ input.placeholder = context.placeholder;+ empty.textContent = context.empty;+ results.setAttribute('aria-label', context.resultsLabel);+ }++ function select(id) {+ var item = items.find(function (candidate) { return candidate.id === id; });+ if (!item) return false;+ var routeSelection = context.kind === 'route-source' || context.kind === 'route-target';+ if (routeSelection) {+ if (!Archify.routeProbe || typeof Archify.routeProbe.choose !== 'function' || !Archify.routeProbe.choose(id)) return false;+ if (Archify.routeProbe.active() === 'target' && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'route-pick' });+ }+ close({ restoreFocus: false });+ try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }+ return true;+ }+ if (Archify.view && typeof Archify.view.reset === 'function') Archify.view.reset({ automatic: true });+ Archify.focus.set(id, { toggle: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'finder' });+ }+ close({ restoreFocus: false });+ try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }+ return true;+ }++ function render(query) {+ query = (query || '').trim().toLowerCase();+ var available = availableItems();+ visibleItems = available.filter(function (item) { return !query || item.search.indexOf(query) !== -1; });+ results.textContent = '';+ visibleItems.forEach(function (item) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-finder-result';+ button.setAttribute('data-node-id', item.id);+ var badge = context.badges && context.badges[item.id]+ ? context.badges[item.id]+ : context.kind === 'focus'+ ? viewerCount('viewer.finder.link', item.links)+ : String(item.links);+ var action = context.kind === 'route-source'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label })+ : context.kind === 'route-target'+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });+ button.setAttribute('aria-label', action);++ var name = document.createElement('strong');+ name.textContent = item.label;+ var links = document.createElement('em');+ links.textContent = badge;+ links.title = context.kind === 'focus' ? badge : action;+ var meta = document.createElement('small');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ button.appendChild(name);+ button.appendChild(links);+ button.appendChild(meta);+ button.addEventListener('click', function () { select(item.id); });+ results.appendChild(button);+ });+ empty.hidden = visibleItems.length !== 0;+ status.textContent = query+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });+ }++ function open(options) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ context = resolveContext(options || {});+ applyContext();+ panel.hidden = false;+ trigger.setAttribute('aria-expanded', 'true');+ if (context.kind.indexOf('route-') === 0 && Archify.routeProbe && typeof Archify.routeProbe.finderOpening === 'function') {+ Archify.routeProbe.finderOpening();+ }+ input.value = '';+ render('');+ requestAnimationFrame(function () { input.focus(); });+ return true;+ }++ function close(options) {+ options = options || {};+ var routeContext = context.kind.indexOf('route-') === 0;+ panel.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ input.value = '';+ if (routeContext && Archify.routeProbe && typeof Archify.routeProbe.finderClosed === 'function') {+ Archify.routeProbe.finderClosed({ restoreFocus: options.restoreFocus !== false });+ } else if (options.restoreFocus !== false) {+ trigger.focus();+ }+ }++ function toggle() { return panel.hidden ? open() : (close(), false); }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close(); });+ input.addEventListener('input', function () { render(input.value); });+ input.addEventListener('keydown', function (event) {+ var buttons = resultButtons();+ if (event.key === 'ArrowDown' && buttons.length) {+ event.preventDefault();+ buttons[0].focus();+ } else if (event.key === 'Enter' && visibleItems.length) {+ event.preventDefault();+ select(visibleItems[0].id);+ }+ });+ results.addEventListener('keydown', function (event) {+ var buttons = resultButtons();+ var index = buttons.indexOf(document.activeElement);+ if (index < 0 || !buttons.length) return;+ var next = null;+ if (event.key === 'ArrowDown') next = (index + 1) % buttons.length;+ else if (event.key === 'ArrowUp') next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = buttons.length - 1;+ if (next !== null) {+ event.preventDefault();+ buttons[next].focus();+ }+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key !== 'Escape') return;+ event.preventDefault();+ event.stopPropagation();+ close();+ });+ document.addEventListener('click', function (event) {+ if (!panel.hidden && !panel.contains(event.target) && !event.target.closest('[data-node-finder-trigger]')) close({ restoreFocus: false });+ });++ render('');+ return {+ open: open,+ close: close,+ toggle: toggle,+ select: select,+ isOpen: function () { return !panel.hidden; },+ context: function () { return context.kind; },+ count: items.length+ };+ })();++ /* ============================================================+ Node Outline — a rail index of the semantic nodes, grouped by their+ authored context. Hover previews neighbors through Intent Trace;+ selection delegates to the Finder's focus-and-reveal path. It reads+ the canonical SVG and never changes geometry or export state.+ ============================================================ */+ Archify.outline = (function () {+ var panel = document.getElementById('node-outline');+ var list = document.getElementById('node-outline-list');+ var count = document.getElementById('node-outline-count');+ var svg = document.querySelector('.diagram-container > svg');+ if (!panel || !list || !svg) return { count: 0 };+ var TONES = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ var nodes = Array.from(svg.querySelectorAll('[data-node-id]')).filter(function (node) {+ return !node.closest('[data-legend-hit], .legend') && node.getAttribute('data-node-label');+ });+ var buttons = Object.create(null);++ function tone(node) {+ var shape = node.querySelector('[class*="c-"]:not(.c-mask)');+ var match = shape && /(?:^|\s)c-([a-z]+)/.exec(shape.getAttribute('class') || '');+ return match && TONES.indexOf(match[1]) !== -1 ? match[1] : 'external';+ }+ function preview(id) {+ if (Archify.intentTrace && typeof Archify.intentTrace.show === 'function') Archify.intentTrace.show(id);+ }+ function clearPreview() {+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ }+ function select(id) {+ clearPreview();+ var finder = Archify.finder;+ if (finder && typeof finder.select === 'function') {+ if (finder.select(id)) return;+ var routeMode = Archify.routeProbe && typeof Archify.routeProbe.active === 'function' ? Archify.routeProbe.active() : 'idle';+ // Only an active endpoint picker owns a refused selection.+ if (routeMode === 'source' || routeMode === 'target') return;+ }+ if (Archify.focus && typeof Archify.focus.set === 'function') Archify.focus.set(id, { toggle: false });+ }++ var groups = [];+ var byContext = Object.create(null);+ nodes.forEach(function (node) {+ // Group by the outermost context (lane or stage); deeper segments+ // such as workflow groups and columns would split the index into+ // one-node sections.+ var context = (node.getAttribute('data-node-context') || '').split(' \u203a ')[0];+ if (!byContext[context]) {+ byContext[context] = { label: context, nodes: [] };+ groups.push(byContext[context]);+ }+ byContext[context].nodes.push(node);+ });++ groups.forEach(function (group) {+ var section = document.createElement('li');+ section.className = 'node-outline-group';+ if (groups.length > 1 && group.label) {+ var heading = document.createElement('span');+ heading.className = 'node-outline-heading';+ var headingLabel = document.createElement('span');+ headingLabel.textContent = group.label;+ var headingCount = document.createElement('small');+ headingCount.textContent = String(group.nodes.length);+ heading.appendChild(headingLabel);+ heading.appendChild(headingCount);+ section.appendChild(heading);+ }+ var items = document.createElement('ul');+ group.nodes.forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ var item = document.createElement('li');+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-outline-item';+ button.setAttribute('data-outline-node', id);+ button.style.setProperty('--outline-tone', 'var(--' + tone(node) + '-stroke)');+ var dot = document.createElement('span');+ dot.className = 'node-outline-dot';+ dot.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = node.getAttribute('data-node-label');+ button.appendChild(dot);+ button.appendChild(label);+ var sublabel = node.getAttribute('data-node-sublabel');+ if (sublabel) {+ var detail = document.createElement('small');+ detail.textContent = sublabel;+ button.appendChild(detail);+ }+ button.addEventListener('pointerenter', function () { preview(id); });+ button.addEventListener('focus', function () { preview(id); });+ button.addEventListener('pointerleave', clearPreview);+ button.addEventListener('blur', clearPreview);+ button.addEventListener('click', function () { select(id); });+ buttons[id] = button;+ item.appendChild(button);+ items.appendChild(item);+ });+ section.appendChild(items);+ list.appendChild(section);+ });++ var previewing = null;+ function syncCurrent() {+ nodes.forEach(function (node) {+ var button = buttons[node.getAttribute('data-node-id')];+ if (!button) return;+ if (node.getAttribute('aria-pressed') === 'true') button.setAttribute('aria-current', 'true');+ else button.removeAttribute('aria-current');+ });+ // Mirror a diagram-side hover so the index answers "where is this?".+ var active = buttons[svg.getAttribute('data-intent-trace-active') || ''] || null;+ if (active === previewing) return;+ if (previewing) previewing.removeAttribute('data-previewing');+ previewing = active;+ if (!active) return;+ active.setAttribute('data-previewing', '');+ if (!active.matches(':hover') && panel.offsetParent) {+ var box = list.getBoundingClientRect();+ var item = active.getBoundingClientRect();+ if (item.top < box.top || item.bottom > box.bottom - 24) {+ list.scrollTop += item.top - box.top - box.height / 2 + item.height / 2;+ }+ }+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(syncCurrent).observe(svg, { attributes: true, subtree: true, attributeFilter: ['aria-pressed', 'data-intent-trace-active'] });+ }+ if (count) count.textContent = String(nodes.length);+ panel.hidden = nodes.length < 2;+ syncCurrent();+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') Archify.readerLayout.schedule();++ return { count: nodes.length, select: select };+ })();+++ /* ============================================================+ Route Probe — shortest directed path over compiled semantics.+ The graph is read from renderer-owned stable IDs and relationship+ endpoints. BFS order follows authored DOM edge order, so equal-length+ choices are deterministic without adding weights or a graph runtime.+ ============================================================ */+ Archify.routeProbe = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-route-probe');+ var panel = document.getElementById('route-probe');+ var title = document.getElementById('route-probe-title');+ var path = document.getElementById('route-probe-path');+ var status = document.getElementById('route-probe-status');+ var findBtn = document.getElementById('route-probe-find');+ var copyBtn = document.getElementById('route-probe-copy');+ var clearBtn = document.getElementById('route-probe-clear');+ var journeyControls = document.getElementById('route-journey-controls');+ var journeyPrevBtn = document.getElementById('route-journey-prev');+ var journeyPlayBtn = document.getElementById('route-journey-play');+ var journeyPlayIcon = document.getElementById('route-journey-play-icon');+ var journeyPlayLabel = document.getElementById('route-journey-play-label');+ var journeyNextBtn = document.getElementById('route-journey-next');+ var journeyOverviewBtn = document.getElementById('route-journey-overview');+ var namespace = 'http://www.w3.org/2000/svg';+ var mode = 'idle';+ var startId = null;+ var endId = null;+ var activeNodeIds = [];+ var activeEdges = [];+ var journeyIndex = -1;+ var journeyPlaying = false;+ var journeyComplete = false;+ var journeyGeneration = 0;+ var journeyTimer = null;+ var journeyStartedAt = 0;+ var journeyElapsedMs = 0;+ var journeyOwnerToken = 0;+ var JOURNEY_DWELL_MS = 1100;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodesById() {+ var out = Object.create(null);+ nodes().forEach(function (node) { out[node.getAttribute('data-node-id')] = node; });+ return out;+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function exportSnapshot() {+ if (mode !== 'result' || activeNodeIds.length < 2 || activeEdges.length !== activeNodeIds.length - 1) return null;+ var allNodes = nodes();+ var byId = nodesById();+ var seenNodeIds = Object.create(null);+ var seenEdgeKeys = Object.create(null);+ if (startId !== activeNodeIds[0] || endId !== activeNodeIds[activeNodeIds.length - 1] ||+ activeNodeIds.some(function (id) {+ if (seenNodeIds[id] || allNodes.filter(function (node) {+ return node.getAttribute('data-node-id') === id;+ }).length !== 1) return true;+ seenNodeIds[id] = true;+ return !byId[id];+ }) ||+ activeEdges.some(function (edge, index) {+ if (!edge || !svg.contains(edge)) return true;+ var edgeKey = edge.getAttribute('data-edge-key');+ var edgeId = edge.getAttribute('data-edge-id') || '';+ if (!edgeKey || seenEdgeKeys[edgeKey]) return true;+ seenEdgeKeys[edgeKey] = true;+ var fragments = Array.prototype.slice.call(svg.querySelectorAll('[data-edge-key]')).filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edgeKey;+ });+ var drawableFragments = fragments.filter(hasDrawableGeometry);+ return !fragments.length || !fragments.every(function (fragment) {+ return fragment.getAttribute('data-edge-from') === activeNodeIds[index] &&+ fragment.getAttribute('data-edge-to') === activeNodeIds[index + 1] &&+ (fragment.getAttribute('data-edge-id') || '') === edgeId;+ }) || drawableFragments.length !== 1 || drawableFragments[0] !== edge ||+ edge.getAttribute('data-edge-from') !== activeNodeIds[index] ||+ edge.getAttribute('data-edge-to') !== activeNodeIds[index + 1];+ })) return null;+ return {+ source: { id: startId, label: nodeLabel(byId[startId], startId) },+ target: { id: endId, label: nodeLabel(byId[endId], endId) },+ nodeIds: activeNodeIds.slice(),+ hops: activeEdges.length,+ edges: activeEdges.map(function (edge) {+ return {+ key: edge.getAttribute('data-edge-key'),+ id: edge.getAttribute('data-edge-id') || '',+ from: edge.getAttribute('data-edge-from'),+ to: edge.getAttribute('data-edge-to'),+ label: edge.getAttribute('data-edge-label') || ''+ };+ })+ };+ }+ function edgeShapes(edge) {+ if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function removeOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {+ overlay.remove();+ });+ }+ function removeJourneyPulse(options) {+ options = options || {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-route-journey-overlay]'), function (overlay) {+ overlay.remove();+ });+ if (journeyOwnerToken && options.release !== false && Archify.motionGovernor) {+ var token = journeyOwnerToken;+ journeyOwnerToken = 0;+ Archify.motionGovernor.release(token);+ }+ }+ function stopJourneyTimer(options) {+ options = options || {};+ journeyGeneration += 1;+ if (journeyTimer) {+ if (options.preserveElapsed === true && journeyStartedAt) {+ journeyElapsedMs = Math.min(JOURNEY_DWELL_MS, journeyElapsedMs + Math.max(0, Date.now() - journeyStartedAt));+ }+ window.clearTimeout(journeyTimer);+ }+ journeyTimer = null;+ journeyStartedAt = 0;+ if (options.preserveElapsed !== true) journeyElapsedMs = 0;+ }+ function clearJourneyPresentation(options) {+ options = options || {};+ removeJourneyPulse();+ svg.removeAttribute('data-route-journey');+ panel.removeAttribute('data-route-journey');+ nodes().forEach(function (node) {+ node.removeAttribute('data-route-journey-state');+ node.removeAttribute('data-route-journey-current');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-route-journey-state');+ edge.removeAttribute('data-route-journey-current');+ });+ Array.prototype.forEach.call(path.querySelectorAll('[data-route-journey-index]'), function (button, index) {+ button.removeAttribute('data-route-journey-state');+ button.removeAttribute('aria-current');+ button.setAttribute('tabindex', index === 0 ? '0' : '-1');+ });+ if (options.keepControls !== true) journeyControls.hidden = true;+ journeyControls.setAttribute('data-playing', 'false');+ }+ function resetJourneyState() {+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ journeyIndex = -1;+ clearJourneyPresentation();+ }+ function cleanSvgState() {+ resetJourneyState();+ svg.removeAttribute('data-route-picking');+ svg.removeAttribute('data-route-active');+ removeOverlay();+ nodes().forEach(function (node) {+ node.removeAttribute('data-route-match');+ node.removeAttribute('data-route-start');+ node.removeAttribute('data-route-end');+ node.removeAttribute('data-route-step');+ node.removeAttribute('data-route-candidate');+ node.style.removeProperty('--route-step');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-route-match');+ edge.removeAttribute('data-route-step');+ edge.style.removeProperty('--route-step');+ });+ panel.removeAttribute('data-route-dock');+ }+ function replaceRouteHash(value) {+ try {+ history.replaceState(null, '', location.pathname + location.search + (value ? '#route=' + value : ''));+ } catch (_) {}+ }+ function renderPlaceholder(copy) {+ path.textContent = '';+ var placeholder = document.createElement('span');+ placeholder.className = 'route-probe-placeholder';+ placeholder.textContent = copy;+ path.appendChild(placeholder);+ }+ function renderPath(ids, options) {+ options = options || {};+ var byId = nodesById();+ path.textContent = '';+ ids.forEach(function (id, index) {+ if (index) {+ var arrow = document.createElement('span');+ arrow.className = 'route-probe-arrow';+ arrow.setAttribute('aria-hidden', 'true');+ arrow.textContent = '\u2192';+ path.appendChild(arrow);+ }+ var item = document.createElement(options.interactive === true ? 'button' : 'span');+ if (options.interactive === true) {+ item.type = 'button';+ item.setAttribute('data-route-journey-index', String(index));+ item.setAttribute('data-route-node-id', id);+ item.setAttribute('tabindex', index === 0 ? '0' : '-1');+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));+ }+ item.className = 'route-probe-node';+ item.textContent = nodeLabel(byId[id], id);+ item.title = nodeLabel(byId[id], id) + ' · ' + id;+ if (index === 0) item.setAttribute('data-endpoint', 'start');+ if (index === ids.length - 1 && ids.length > 1) item.setAttribute('data-endpoint', 'end');+ path.appendChild(item);+ });+ }+ function setTrigger(active) {+ trigger.setAttribute('aria-pressed', active ? 'true' : 'false');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));+ }+ function clear(options) {+ options = options || {};+ var wasActive = mode !== 'idle';+ if (Archify.finder && Archify.finder.isOpen() && typeof Archify.finder.context === 'function' && Archify.finder.context().indexOf('route-') === 0) {+ Archify.finder.close({ restoreFocus: false });+ }+ mode = 'idle';+ startId = null;+ endId = null;+ activeNodeIds = [];+ activeEdges = [];+ cleanSvgState();+ panel.hidden = true;+ panel.setAttribute('data-state', 'idle');+ panel.removeAttribute('data-finder-open');+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');+ findBtn.hidden = true;+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));+ copyBtn.hidden = true;+ copyBtn.textContent = viewerText('viewer.route.copy');+ if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();+ setTrigger(false);+ if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.updateUrl !== false) replaceRouteHash('');+ if (options.restoreFocus === true) trigger.focus();+ }+ function outgoingByNode() {+ var byId = nodesById();+ var outgoing = Object.create(null);+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (!byId[from] || !byId[to] || from === to) return;+ if (!outgoing[from]) outgoing[from] = [];+ outgoing[from].push({ edge: edge, to: to });+ });+ return outgoing;+ }+ function reachableFrom(source) {+ var outgoing = outgoingByNode();+ var reached = Object.create(null);+ var queue = [source];+ reached[source] = true;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.forEach(function (link) {+ if (reached[link.to]) return;+ reached[link.to] = true;+ queue.push(link.to);+ });+ }+ return reached;+ }+ function hopDistancesFrom(source) {+ var outgoing = outgoingByNode();+ var distances = Object.create(null);+ var queue = [source];+ distances[source] = 0;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.forEach(function (link) {+ if (Object.prototype.hasOwnProperty.call(distances, link.to)) return;+ distances[link.to] = distances[queue[cursor]] + 1;+ queue.push(link.to);+ });+ }+ return distances;+ }+ function shortestDirectedPath(source, target) {+ if (source === target) return null;+ var outgoing = outgoingByNode();+ var previous = Object.create(null);+ var queue = [source];+ previous[source] = null;+ for (var cursor = 0; cursor < queue.length && !Object.prototype.hasOwnProperty.call(previous, target); cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.some(function (link) {+ if (Object.prototype.hasOwnProperty.call(previous, link.to)) return false;+ previous[link.to] = { from: queue[cursor], edge: link.edge };+ queue.push(link.to);+ return link.to === target;+ });+ }+ if (!Object.prototype.hasOwnProperty.call(previous, target)) return null;+ var nodeIds = [target];+ var routeEdges = [];+ var current = target;+ while (current !== source) {+ var step = previous[current];+ if (!step) return null;+ routeEdges.unshift(step.edge);+ nodeIds.unshift(step.from);+ current = step.from;+ }+ return { nodes: nodeIds, edges: routeEdges };+ }+ function traceGeometry(shape, step) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-route-match');+ clone.removeAttribute('data-route-step');+ clone.setAttribute('class', 'route-probe-flow');+ clone.setAttribute('pathLength', '1');+ clone.style.setProperty('--route-step', String(step));+ return clone;+ }+ function renderOverlay(routeEdges) {+ removeOverlay();+ if (!routeEdges.length) return;+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'route-probe-overlay');+ overlay.setAttribute('data-route-probe-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ routeEdges.forEach(function (edge, step) {+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) { wrapper.appendChild(traceGeometry(shape, step)); });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ function journeyButtons() {+ return Array.prototype.slice.call(path.querySelectorAll('[data-route-journey-index]'));+ }+ function journeyMotionAllowed() {+ return html.getAttribute('data-embed') !== 'true' &&+ !document.hidden &&+ Archify.motionGovernor &&+ Archify.motionGovernor.capable === true &&+ !Archify.motionGovernor.isPaused();+ }+ function routeOverviewStatus() {+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });+ }+ function centerJourneyButton(button) {+ if (!button) return;+ var target = button.offsetLeft - Math.max(0, (path.clientWidth - button.offsetWidth) / 2);+ path.scrollLeft = Math.max(0, target);+ }+ function focusJourneyButton(index) {+ var buttons = journeyButtons();+ if (!buttons.length) return false;+ var next = Math.max(0, Math.min(buttons.length - 1, index));+ buttons.forEach(function (button, buttonIndex) {+ button.setAttribute('tabindex', buttonIndex === next ? '0' : '-1');+ });+ try { buttons[next].focus({ preventScroll: true }); } catch (_) { buttons[next].focus(); }+ centerJourneyButton(buttons[next]);+ return true;+ }+ function renderJourneyControls() {+ var hasRoute = mode === 'result' && activeNodeIds.length > 1;+ var canPlay = hasRoute && journeyMotionAllowed();+ journeyControls.hidden = !hasRoute;+ journeyControls.setAttribute('data-playing', journeyPlaying ? 'true' : 'false');+ journeyPrevBtn.disabled = !hasRoute || journeyIndex <= 0;+ journeyNextBtn.disabled = !hasRoute || journeyIndex >= activeNodeIds.length - 1;+ journeyOverviewBtn.disabled = !hasRoute || journeyIndex < 0;+ journeyPlayBtn.disabled = !canPlay;+ journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');+ if (journeyPlaying) {+ journeyPlayIcon.textContent = '\u275a\u275a';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');+ } else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {+ journeyPlayIcon.textContent = '\u21bb';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');+ } else {+ journeyPlayIcon.textContent = '\u25b6';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');+ }+ }+ function journeyGeometry(shape) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-route-match');+ clone.removeAttribute('data-route-step');+ clone.removeAttribute('data-route-journey-state');+ clone.removeAttribute('data-route-journey-current');+ clone.setAttribute('class', 'route-journey-flow');+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function renderJourneyPulse(edge) {+ removeJourneyPulse();+ if (!edge || !journeyMotionAllowed()) return false;+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'route-journey-overlay');+ overlay.setAttribute('data-route-journey-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) { wrapper.appendChild(journeyGeometry(shape)); });+ if (!wrapper.childNodes.length) return false;+ overlay.appendChild(wrapper);+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ if (Archify.motionGovernor && Archify.motionGovernor.capable) {+ var token = 0;+ token = Archify.motionGovernor.claim('route', function () {+ if (journeyOwnerToken === token) journeyOwnerToken = 0;+ removeJourneyPulse({ release: false });+ });+ journeyOwnerToken = token;+ }+ overlay.addEventListener('animationend', function () {+ if (overlay.isConnected) removeJourneyPulse();+ }, { once: true });+ window.setTimeout(function () {+ if (overlay.isConnected) removeJourneyPulse();+ }, 860);+ return true;+ }+ function applyJourneyState(index, options) {+ options = options || {};+ if (mode !== 'result' || !activeNodeIds.length) return false;+ var byId = nodesById();+ journeyIndex = Math.max(0, Math.min(activeNodeIds.length - 1, index));+ removeJourneyPulse();+ svg.setAttribute('data-route-journey', (journeyIndex + 1) + '/' + activeNodeIds.length);+ panel.setAttribute('data-route-journey', String(journeyIndex));+ activeNodeIds.forEach(function (id, step) {+ var node = byId[id];+ if (!node) return;+ var state = step < journeyIndex ? 'past' : (step === journeyIndex ? 'current' : 'future');+ node.setAttribute('data-route-journey-state', state);+ if (step === journeyIndex) node.setAttribute('data-route-journey-current', '');+ else node.removeAttribute('data-route-journey-current');+ });+ activeEdges.forEach(function (edge, step) {+ var destination = step + 1;+ var state = destination < journeyIndex ? 'past' : (destination === journeyIndex ? 'current' : 'future');+ edge.setAttribute('data-route-journey-state', state);+ if (destination === journeyIndex) edge.setAttribute('data-route-journey-current', '');+ else edge.removeAttribute('data-route-journey-current');+ });+ var buttons = journeyButtons();+ buttons.forEach(function (button, step) {+ var state = step < journeyIndex ? 'past' : (step === journeyIndex ? 'current' : 'future');+ button.setAttribute('data-route-journey-state', state);+ button.setAttribute('tabindex', step === journeyIndex ? '0' : '-1');+ if (step === journeyIndex) button.setAttribute('aria-current', 'step');+ else button.removeAttribute('aria-current');+ });+ if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });+ if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {+ includeNeighbors: false,+ reason: 'route-journey',+ maxScale: 1.65,+ padding: 64,+ duration: 360,+ instant: !journeyMotionAllowed()+ });+ }+ renderJourneyControls();+ requestDocking();+ return true;+ }+ function pauseJourney(options) {+ options = options || {};+ if (!journeyPlaying && options.complete !== true) {+ renderJourneyControls();+ return false;+ }+ stopJourneyTimer({ preserveElapsed: options.complete !== true && options.preserveElapsed !== false });+ journeyPlaying = false;+ journeyComplete = options.complete === true;+ if (journeyComplete) journeyElapsedMs = 0;+ removeJourneyPulse();+ if (journeyIndex >= 0) applyJourneyState(journeyIndex, { center: false, pulse: false, reveal: false });+ else renderJourneyControls();+ return true;+ }+ function selectJourneyIndex(index) {+ if (mode !== 'result') return false;+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ return applyJourneyState(index, { pulse: true, reveal: true });+ }+ function showJourneyOverview(options) {+ options = options || {};+ if (mode !== 'result') return false;+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ journeyIndex = -1;+ clearJourneyPresentation({ keepControls: true });+ status.textContent = routeOverviewStatus();+ renderJourneyControls();+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(activeNodeIds, { includeNeighbors: false, reason: 'route', instant: !journeyMotionAllowed() });+ }+ requestDocking();+ return true;+ }+ function scheduleJourney() {+ if (!journeyPlaying || !journeyMotionAllowed()) {+ pauseJourney({ preserveElapsed: true });+ return false;+ }+ var generation = ++journeyGeneration;+ var remaining = Math.max(0, JOURNEY_DWELL_MS - journeyElapsedMs);+ journeyStartedAt = Date.now();+ journeyTimer = window.setTimeout(function () {+ if (generation !== journeyGeneration || !journeyPlaying) return;+ journeyTimer = null;+ journeyStartedAt = 0;+ journeyElapsedMs = 0;+ if (journeyIndex >= activeNodeIds.length - 1) {+ pauseJourney({ complete: true, preserveElapsed: false });+ return;+ }+ applyJourneyState(journeyIndex + 1, { pulse: true, reveal: true });+ // Camera and motion-owner handoff are allowed to synchronously+ // settle the previous step. The new step always starts with a fresh+ // dwell; never carry cleanup time into the next scheduler lease.+ journeyElapsedMs = 0;+ journeyStartedAt = 0;+ scheduleJourney();+ }, remaining);+ return true;+ }+ function playJourney() {+ if (mode !== 'result' || activeNodeIds.length < 2 || !journeyMotionAllowed()) {+ renderJourneyControls();+ return false;+ }+ if (journeyPlaying) return true;+ if (journeyComplete || journeyIndex >= activeNodeIds.length - 1) {+ journeyIndex = -1;+ journeyElapsedMs = 0;+ journeyComplete = false;+ }+ journeyPlaying = true;+ if (journeyIndex < 0) applyJourneyState(0, { pulse: false, reveal: true });+ else applyJourneyState(journeyIndex, { center: false, pulse: false, reveal: false });+ scheduleJourney();+ return true;+ }+ function toggleJourney() {+ return journeyPlaying ? pauseJourney({ preserveElapsed: true }) : playJourney();+ }+ function previousJourney() {+ return selectJourneyIndex(Math.max(0, journeyIndex < 0 ? 0 : journeyIndex - 1));+ }+ function nextJourney() {+ return selectJourneyIndex(Math.min(activeNodeIds.length - 1, journeyIndex + 1));+ }+ function overlapArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function updateDocking() {+ if (panel.hidden) {+ panel.removeAttribute('data-route-dock');+ return;+ }+ var containerRect = container.getBoundingClientRect();+ var width = panel.offsetWidth;+ var height = panel.offsetHeight;+ if (!width || !height) return;+ var currentRect = panel.getBoundingClientRect();+ var left = currentRect.left;+ var topCandidate = {+ left: left,+ right: left + width,+ top: containerRect.top + 8,+ bottom: containerRect.top + 8 + height+ };+ var nav = container.querySelector('.diagram-nav');+ var navRect = nav ? nav.getBoundingClientRect() : null;+ var bottom = navRect ? navRect.top - 9 : containerRect.bottom - 8;+ var bottomCandidate = {+ left: left,+ right: left + width,+ top: bottom - height,+ bottom: bottom+ };+ var byId = nodesById();+ var relevant = activeNodeIds.length ? activeNodeIds : (startId ? [startId] : []);+ var blockers = relevant.map(function (id) { return byId[id]; }).filter(Boolean).map(function (node) {+ return node.getBoundingClientRect();+ });+ function score(candidate) {+ var value = blockers.reduce(function (sum, rect) { return sum + overlapArea(candidate, rect); }, 0);+ if (navRect) value += overlapArea(candidate, navRect) * 4;+ if (candidate.top < containerRect.top || candidate.bottom > containerRect.bottom) value += 1000000;+ return value;+ }+ if (score(topCandidate) <= score(bottomCandidate)) panel.setAttribute('data-route-dock', 'top');+ else panel.setAttribute('data-route-dock', 'bottom');+ }+ function requestDocking() {+ requestAnimationFrame(updateDocking);+ window.setTimeout(updateDocking, 120);+ window.setTimeout(updateDocking, 560);+ }+ function chooseStart(id) {+ var byId = nodesById();+ if (!byId[id]) return false;+ cleanSvgState();+ startId = id;+ endId = null;+ mode = 'target';+ var reached = reachableFrom(id);+ byId[id].setAttribute('data-route-start', '');+ byId[id].setAttribute('data-route-match', '');+ Object.keys(reached).forEach(function (candidateId) {+ if (candidateId !== id && byId[candidateId]) byId[candidateId].setAttribute('data-route-candidate', '');+ });+ svg.setAttribute('data-route-picking', 'target');+ panel.setAttribute('data-state', 'target');+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });+ renderPath([id]);+ var count = Math.max(0, Object.keys(reached).length - 1);+ status.textContent = count+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');+ findBtn.hidden = false;+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));+ requestDocking();+ return true;+ }+ function showResult(result, options) {+ options = options || {};+ var byId = nodesById();+ cleanSvgState();+ mode = 'result';+ startId = result.nodes[0];+ endId = result.nodes[result.nodes.length - 1];+ activeNodeIds = result.nodes.slice();+ activeEdges = result.edges.slice();+ result.nodes.forEach(function (id, step) {+ var node = byId[id];+ if (!node) return;+ node.setAttribute('data-route-match', '');+ node.setAttribute('data-route-step', String(step));+ node.style.setProperty('--route-step', String(step));+ if (step === 0) node.setAttribute('data-route-start', '');+ if (step === result.nodes.length - 1) node.setAttribute('data-route-end', '');+ });+ result.edges.forEach(function (edge, step) {+ edge.setAttribute('data-route-match', '');+ edge.setAttribute('data-route-step', String(step));+ edge.style.setProperty('--route-step', String(step));+ });+ svg.setAttribute('data-route-active', startId + '~' + endId);+ renderOverlay(result.edges);+ renderPath(result.nodes, { interactive: true });+ panel.setAttribute('data-state', 'result');+ panel.hidden = false;+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });+ findBtn.hidden = true;+ copyBtn.hidden = false;+ setTrigger(true);+ if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();+ if (options.updateUrl !== false) {+ replaceRouteHash(encodeURIComponent(startId) + '~' + encodeURIComponent(endId));+ }+ showJourneyOverview({ reveal: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(result.nodes, { includeNeighbors: false, reason: 'route' });+ }+ return true;+ }+ function choose(id, options) {+ options = options || {};+ var byId = nodesById();+ if (!byId[id]) return false;+ if (mode === 'source') return chooseStart(id);+ if (mode !== 'target') return false;+ if (id === startId) {+ panel.setAttribute('data-state', 'error');+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');+ return false;+ }+ var result = shortestDirectedPath(startId, id);+ if (!result) {+ panel.setAttribute('data-state', 'error');+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });+ return false;+ }+ return showResult(result, options);+ }+ function begin(options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.active()) {+ Archify.semanticLens.clear({ updateUrl: false, preserveView: true, closePanel: true });+ }+ var focused = options.source || (Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null);+ if (Array.isArray(focused)) focused = null;+ clear({ updateUrl: false, preserveView: true, restoreFocus: false });+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ if (Archify.focus && typeof Archify.focus.clear === 'function') {+ Archify.focus.clear({ updateUrl: false, preserveView: true });+ }+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ mode = 'source';+ panel.hidden = false;+ panel.setAttribute('data-state', 'source');+ svg.setAttribute('data-route-picking', 'source');+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');+ findBtn.hidden = false;+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));+ copyBtn.hidden = true;+ setTrigger(true);+ if (focused && nodesById()[focused]) chooseStart(focused);+ if (options.focusNode === true && !focused) {+ var first = nodes()[0];+ if (first) {+ try { first.focus({ preventScroll: true }); } catch (_) { try { first.focus(); } catch (_) {} }+ }+ }+ return true;+ }+ function toggle(options) {+ if (mode !== 'idle') {+ clear({ restoreFocus: true });+ return false;+ }+ return begin(options);+ }+ function finderContext() {+ var byId = nodesById();+ if (mode === 'source') {+ var outgoing = outgoingByNode();+ var sourceIds = nodes().map(function (node) { return node.getAttribute('data-node-id'); }).filter(function (id) {+ return outgoing[id] && outgoing[id].length;+ });+ var sourceBadges = Object.create(null);+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });+ return {+ kind: 'route-source',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),+ allowedIds: sourceIds,+ badges: sourceBadges+ };+ }+ if (mode === 'target' && startId && byId[startId]) {+ var distances = hopDistancesFrom(startId);+ var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });+ var targetBadges = Object.create(null);+ targetIds.forEach(function (id) {+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);+ });+ return {+ kind: 'route-target',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),+ allowedIds: targetIds,+ badges: targetBadges+ };+ }+ return null;+ }+ function finderOpening() {+ panel.setAttribute('data-finder-open', 'true');+ }+ function finderClosed(options) {+ options = options || {};+ panel.removeAttribute('data-finder-open');+ requestDocking();+ if (options.restoreFocus === true && !findBtn.hidden) findBtn.focus();+ }+ function openFinder() {+ var context = finderContext();+ if (!context || !Archify.finder) return false;+ return Archify.finder.open({ context: context });+ }+ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }+ function copyLink() {+ if (mode !== 'result') return Promise.resolve(false);+ var value = location.href.replace(/#.*$/, '') + '#route=' + encodeURIComponent(startId) + '~' + encodeURIComponent(endId);+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));+ window.setTimeout(function () {+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));+ }, 1600);+ return copied;+ });+ }+ function interceptSelection(event) {+ if (mode !== 'source' && mode !== 'target') return;+ if (container.getAttribute('data-just-panned') === 'true') return;+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ if (event.type === 'keydown' && event.key !== 'Enter' && event.key !== ' ') return;+ event.preventDefault();+ event.stopImmediatePropagation();+ choose(node.getAttribute('data-node-id'));+ }+ function syncFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var route = params.get('route');+ if (!route) {+ if (mode !== 'idle') clear({ updateUrl: false, restoreFocus: false });+ return;+ }+ var parts = route.split('~');+ if (parts.length !== 2) return;+ var byId = nodesById();+ if (!byId[parts[0]] || !byId[parts[1]]) return;+ begin({ source: parts[0], focusNode: false });+ choose(parts[1], { updateUrl: false });+ } catch (_) {}+ }+ function escapeRoute(options) {+ options = options || {};+ if (journeyPlaying) {+ pauseJourney({ preserveElapsed: true });+ if (options.restoreFocus === true) journeyPlayBtn.focus();+ return 'paused';+ }+ if (journeyIndex >= 0) {+ showJourneyOverview({ reveal: true });+ if (options.restoreFocus === true) journeyOverviewBtn.focus();+ return 'overview';+ }+ clear({ restoreFocus: options.restoreFocus === true });+ return 'cleared';+ }+ function syncJourneyMotion() {+ if (journeyPlaying && !journeyMotionAllowed()) pauseJourney({ preserveElapsed: true });+ renderJourneyControls();+ return journeyMotionAllowed();+ }++ trigger.addEventListener('click', function () { toggle({ focusNode: false }); });+ findBtn.addEventListener('click', openFinder);+ clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });+ copyBtn.addEventListener('click', copyLink);+ journeyPrevBtn.addEventListener('click', previousJourney);+ journeyPlayBtn.addEventListener('click', toggleJourney);+ journeyNextBtn.addEventListener('click', nextJourney);+ journeyOverviewBtn.addEventListener('click', function () { showJourneyOverview({ reveal: true }); });+ path.addEventListener('click', function (event) {+ var button = event.target.closest('[data-route-journey-index]');+ if (!button) return;+ selectJourneyIndex(Number(button.getAttribute('data-route-journey-index')));+ });+ path.addEventListener('focusin', function (event) {+ if (journeyPlaying && event.target.closest('[data-route-journey-index]')) pauseJourney({ preserveElapsed: true });+ });+ path.addEventListener('keydown', function (event) {+ var button = event.target.closest('[data-route-journey-index]');+ if (!button) return;+ var index = Number(button.getAttribute('data-route-journey-index'));+ var next = null;+ if (event.key === 'ArrowRight') next = Math.min(activeNodeIds.length - 1, index + 1);+ else if (event.key === 'ArrowLeft') next = Math.max(0, index - 1);+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = activeNodeIds.length - 1;+ if (next !== null) {+ event.preventDefault();+ focusJourneyButton(next);+ return;+ }+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ selectJourneyIndex(index);+ }+ });+ svg.addEventListener('click', interceptSelection, true);+ svg.addEventListener('keydown', interceptSelection, true);+ container.addEventListener('scroll', updateDocking, { passive: true });+ window.addEventListener('resize', requestDocking);+ window.addEventListener('beforeprint', function () {+ if (journeyPlaying) pauseJourney({ preserveElapsed: true, reason: 'print' });+ else removeJourneyPulse();+ });+ window.addEventListener('hashchange', function () { requestAnimationFrame(syncFromHash); });+ syncFromHash();++ return {+ begin: begin,+ choose: choose,+ clear: clear,+ toggle: toggle,+ escape: escapeRoute,+ copyLink: copyLink,+ playJourney: playJourney,+ pauseJourney: pauseJourney,+ showOverview: showJourneyOverview,+ selectJourneyIndex: selectJourneyIndex,+ syncMotion: syncJourneyMotion,+ isJourneyPlaying: function () { return journeyPlaying; },+ finderContext: finderContext,+ finderOpening: finderOpening,+ finderClosed: finderClosed,+ openFinder: openFinder,+ exportSnapshot: exportSnapshot,+ active: function () { return mode === 'idle' ? null : mode; },+ result: function () {+ return mode === 'result'+ ? { source: startId, target: endId, nodes: activeNodeIds.slice(), hops: activeEdges.length, journey: journeyIndex, playing: journeyPlaying }+ : null;+ }+ };+ })();++ /* ============================================================+ Semantic Lens — a counted, viewer-only legend over data-node-kind.+ One selected kind reveals every authored relationship touching it.+ Two selected kinds compare only direct cross-kind relationships while+ preserving the full diagram as a dimmed spatial reference.+ ============================================================ */+ Archify.semanticLens = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-semantic-lens');+ var panel = document.getElementById('semantic-lens');+ var closeBtn = document.getElementById('semantic-lens-close');+ var kindsRoot = document.getElementById('semantic-lens-kinds');+ var status = document.getElementById('semantic-lens-status');+ var copyBtn = document.getElementById('semantic-lens-copy');+ var clearBtn = document.getElementById('semantic-lens-clear');+ var legendBridge = svg.querySelector('[data-legend-bridge]');+ var legendEntries = [];+ var hoveredLegendEntry = null;+ var focusedLegendEntry = null;+ var activeLegendPreview = null;+ var lensOpener = trigger;+ var selectedKinds = [];+ var namespace = 'http://www.w3.org/2000/svg';+ var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;+ var MAX_LENS_FLOW_EDGES = 24;++ function nodesById() {+ var byId = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {+ var id = node.getAttribute('data-node-id');+ if (id && !byId[id]) byId[id] = node;+ });+ return byId;+ }+ function collectKinds() {+ var kinds = {};+ var byId = nodesById();+ Object.keys(byId).forEach(function (id) {+ var node = byId[id];+ var value = node.getAttribute('data-node-kind') || 'neutral';+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });+ kind.nodes.push(node);+ });+ return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {+ return b.nodes.length - a.nodes.length || a.label.localeCompare(b.label);+ });+ }+ function edgeGroups() {+ var groups = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = edge.getAttribute('data-edge-key') || [from, to, edge.getAttribute('data-edge-label') || ''].join('\u0000');+ if (!groups[key]) groups[key] = { key: key, from: from, to: to, members: [] };+ groups[key].members.push(edge);+ });+ return Object.keys(groups).map(function (key) { return groups[key]; });+ }+ function edgeShapes(edge) {+ if (!edge) return [];+ if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function legendSourceBounds(entry) {+ var bounds = null;+ Array.prototype.forEach.call(entry.children, function (child) {+ if (child.hasAttribute('data-legend-bridge-runtime')) return;+ var box;+ try { box = child.getBBox(); } catch (_) { return; }+ if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y)) return;+ var next = { left: box.x, top: box.y, right: box.x + box.width, bottom: box.y + box.height };+ if (!bounds) bounds = next;+ else {+ bounds.left = Math.min(bounds.left, next.left);+ bounds.top = Math.min(bounds.top, next.top);+ bounds.right = Math.max(bounds.right, next.right);+ bounds.bottom = Math.max(bounds.bottom, next.bottom);+ }+ });+ return bounds;+ }+ function layoutLegendEntry(entry) {+ var bounds = legendSourceBounds(entry);+ var hit = entry.querySelector('[data-legend-hit]');+ var badge = entry.querySelector('[data-legend-count-badge]');+ if (!bounds || !hit || !badge) return false;+ var count = entry.getAttribute('data-legend-count') || '0';+ var centerY = (bounds.top + bounds.bottom) / 2;+ var badgeWidth = Math.max(14, count.length * 5 + 8);+ var badgeX = bounds.right + 3;+ var hitX = bounds.left - 5;+ var hitRight = badgeX + badgeWidth + 4;+ hit.setAttribute('x', hitX.toFixed(2));+ hit.setAttribute('y', (centerY - 12).toFixed(2));+ hit.setAttribute('width', Math.max(24, hitRight - hitX).toFixed(2));+ hit.setAttribute('height', '24');+ hit.setAttribute('rx', '4');+ var badgeRect = badge.querySelector('rect');+ var badgeText = badge.querySelector('text');+ badgeRect.setAttribute('x', badgeX.toFixed(2));+ badgeRect.setAttribute('y', (centerY - 7).toFixed(2));+ badgeRect.setAttribute('width', badgeWidth.toFixed(2));+ badgeRect.setAttribute('height', '14');+ badgeRect.setAttribute('rx', '7');+ badgeText.setAttribute('x', (badgeX + badgeWidth / 2).toFixed(2));+ badgeText.setAttribute('y', (centerY + 2.5).toFixed(2));+ return true;+ }+ function layoutLegendBridge() {+ legendEntries.forEach(layoutLegendEntry);+ if (!legendBridge) return;+ Array.prototype.forEach.call(legendBridge.querySelectorAll('[data-legend-zero]'), layoutLegendEntry);+ }+ function decorateLegendBridge() {+ legendEntries = [];+ if (!legendBridge || html.getAttribute('data-embed') === 'true') return false;+ var facts = {};+ collectKinds().forEach(function (kind) { facts[kind.id] = kind; });+ Array.prototype.forEach.call(legendBridge.querySelectorAll('[data-legend-kind]'), function (entry) {+ var kind = entry.getAttribute('data-legend-kind');+ var fact = facts[kind];+ var count = fact ? fact.nodes.length : 0;+ entry.setAttribute('data-legend-count', String(count));+ var hit = document.createElementNS(namespace, 'rect');+ hit.setAttribute('data-legend-bridge-runtime', '');+ hit.setAttribute('data-legend-hit', '');+ hit.setAttribute('aria-hidden', 'true');+ entry.insertBefore(hit, entry.firstChild);+ var badge = document.createElementNS(namespace, 'g');+ badge.setAttribute('data-legend-bridge-runtime', '');+ badge.setAttribute('data-legend-count-badge', '');+ badge.setAttribute('aria-hidden', 'true');+ badge.appendChild(document.createElementNS(namespace, 'rect'));+ var countText = document.createElementNS(namespace, 'text');+ countText.textContent = String(count);+ badge.appendChild(countText);+ entry.appendChild(badge);+ if (!fact || !count) {+ entry.setAttribute('data-legend-zero', '');+ return;+ }+ entry.setAttribute('role', 'button');+ entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));+ entry.setAttribute('aria-pressed', 'false');+ entry.setAttribute('aria-haspopup', 'dialog');+ entry.setAttribute('aria-controls', 'semantic-lens');+ entry.setAttribute('aria-expanded', 'false');+ legendEntries.push(entry);+ });+ if (!legendEntries.length) return false;+ legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));+ syncLegendBridge();+ layoutLegendBridge();+ try {+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(layoutLegendBridge);+ } catch (_) {}+ return true;+ }+ function syncLegendBridge() {+ legendEntries.forEach(function (entry) {+ var selected = selectedKinds.indexOf(entry.getAttribute('data-legend-kind')) >= 0;+ entry.setAttribute('aria-pressed', selected ? 'true' : 'false');+ entry.setAttribute('aria-expanded', !panel.hidden && lensOpener === entry ? 'true' : 'false');+ if (selected) entry.setAttribute('data-legend-selected', '');+ else entry.removeAttribute('data-legend-selected');+ });+ }+ function clearLegendPreview() {+ activeLegendPreview = null;+ svg.removeAttribute('data-legend-preview-active');+ Array.prototype.forEach.call(svg.querySelectorAll('[data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer]'), function (element) {+ element.removeAttribute('data-legend-preview-match');+ element.removeAttribute('data-legend-preview-selected');+ element.removeAttribute('data-legend-preview-peer');+ });+ }+ function strongerLegendOwnerActive() {+ return selectedKinds.length > 0 || !panel.hidden || html.getAttribute('data-present') === 'true' ||+ svg.hasAttribute('data-focus-active') || svg.hasAttribute('data-intent-trace-active') ||+ svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active') ||+ svg.hasAttribute('data-relationship-preview-active');+ }+ function previewLegendKind(entry) {+ clearLegendPreview();+ if (!entry || strongerLegendOwnerActive()) return false;+ var kind = entry.getAttribute('data-legend-kind');+ var byId = nodesById();+ var matches = Object.keys(byId).filter(function (id) {+ return (byId[id].getAttribute('data-node-kind') || 'neutral') === kind;+ });+ if (!matches.length) return false;+ var chosen = Object.create(null);+ matches.forEach(function (id) {+ chosen[id] = true;+ byId[id].setAttribute('data-legend-preview-match', '');+ byId[id].setAttribute('data-legend-preview-selected', '');+ });+ edgeGroups().forEach(function (edge) {+ if (!chosen[edge.from] && !chosen[edge.to]) return;+ edge.members.forEach(function (member) { member.setAttribute('data-legend-preview-match', ''); });+ [edge.from, edge.to].forEach(function (id) {+ if (!byId[id] || chosen[id]) return;+ byId[id].setAttribute('data-legend-preview-match', '');+ byId[id].setAttribute('data-legend-preview-peer', '');+ });+ });+ svg.setAttribute('data-legend-preview-active', kind);+ activeLegendPreview = entry;+ return true;+ }+ function syncLegendPreview() {+ var next = focusedLegendEntry || hoveredLegendEntry;+ if (next === activeLegendPreview) return;+ clearLegendPreview();+ if (next) previewLegendKind(next);+ }+ function activateLegendEntry(entry) {+ if (!entry || entry.getAttribute('role') !== 'button') return false;+ clearLegendPreview();+ select(entry.getAttribute('data-legend-kind'));+ return open({ opener: entry });+ }+ function removeFlowOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-semantic-lens-overlay]'), function (element) {+ element.remove();+ });+ svg.removeAttribute('data-lens-flow-count');+ svg.removeAttribute('data-lens-flow-density');+ }+ function flowGeometry(shape, direction, step) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-lens-match');+ clone.setAttribute('class', 'semantic-lens-flow');+ clone.setAttribute('data-direction', direction);+ clone.setAttribute('pathLength', '1');+ clone.style.setProperty('--lens-flow-delay', (step * 0.08).toFixed(2) + 's');+ return clone;+ }+ function renderFlowOverlay(entries) {+ removeFlowOverlay();+ svg.setAttribute('data-lens-flow-count', String(entries.length));+ if (!entries.length || html.getAttribute('data-embed') === 'true') return false;+ if (entries.length > MAX_LENS_FLOW_EDGES) {+ svg.setAttribute('data-lens-flow-density', 'quiet');+ return false;+ }+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'semantic-lens-overlay');+ overlay.setAttribute('data-semantic-lens-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ entries.forEach(function (entry, step) {+ var wrapper = document.createElementNS(namespace, 'g');+ if (entry.edge.members[0].hasAttribute('transform')) {+ wrapper.setAttribute('transform', entry.edge.members[0].getAttribute('transform'));+ }+ edgeShapes(entry.edge.members[0]).forEach(function (shape) {+ wrapper.appendChild(flowGeometry(shape, entry.direction, step));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ if (!overlay.childNodes.length) return false;+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ return true;+ }+ function cleanSvgState() {+ removeFlowOverlay();+ svg.removeAttribute('data-lens-active');+ Array.prototype.forEach.call(svg.querySelectorAll('[data-lens-match], [data-lens-selected], [data-lens-peer]'), function (element) {+ element.removeAttribute('data-lens-match');+ element.removeAttribute('data-lens-selected');+ element.removeAttribute('data-lens-peer');+ });+ }+ function renderKinds() {+ kindsRoot.textContent = '';+ collectKinds().forEach(function (kind) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'semantic-lens-kind';+ button.setAttribute('data-kind', kind.id);+ button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));+ button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;+ var swatch = document.createElement('span');+ swatch.className = 'semantic-lens-swatch';+ swatch.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = kind.label;+ var count = document.createElement('em');+ count.textContent = String(kind.nodes.length);+ button.appendChild(swatch);+ button.appendChild(label);+ button.appendChild(count);+ kindsRoot.appendChild(button);+ });+ }+ function updateHash() {+ try {+ var hash = selectedKinds.length+ ? '#lens=' + selectedKinds.map(encodeURIComponent).join('~')+ : '';+ history.replaceState(null, '', location.pathname + location.search + hash);+ } catch (_) {}+ }+ function updateTrigger() {+ var active = selectedKinds.length > 0;+ trigger.setAttribute('aria-pressed', active ? 'true' : 'false');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));+ copyBtn.hidden = !active;+ syncLegendBridge();+ }+ function overlapArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function dockPanel(byId) {+ panel.removeAttribute('data-dock-side');+ if (panel.hidden || window.innerWidth <= 720) return 'right';+ var panelRect = panel.getBoundingClientRect();+ var containerRect = container.getBoundingClientRect();+ if (!panelRect.width || !panelRect.height) return 'right';+ var selectedRects = Object.keys(byId).filter(function (id) {+ return selectedKinds.indexOf(byId[id].getAttribute('data-node-kind') || 'neutral') >= 0;+ }).map(function (id) { return byId[id].getBoundingClientRect(); });+ var top = panelRect.top;+ var width = panelRect.width;+ var leftCandidate = { left: containerRect.left + 16, right: containerRect.left + 16 + width, top: top, bottom: panelRect.bottom };+ var rightCandidate = { left: containerRect.right - 16 - width, right: containerRect.right - 16, top: top, bottom: panelRect.bottom };+ var leftScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(leftCandidate, rect); }, 0);+ var rightScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(rightCandidate, rect); }, 0);+ var legend = svg.querySelector('[data-legend]');+ var nav = container.querySelector('.diagram-nav');+ var protectedRects = [legend, nav].filter(function (element) {+ return element && !element.hidden && window.getComputedStyle(element).display !== 'none';+ }).map(function (element) { return element.getBoundingClientRect(); });+ leftScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(leftCandidate, rect) * 1000;+ }, 0);+ rightScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(rightCandidate, rect) * 1000;+ }, 0);+ var side = leftScore < rightScore ? 'left' : 'right';+ panel.setAttribute('data-dock-side', side);+ return side;+ }+ function applySelection(options) {+ options = options || {};+ cleanSvgState();+ var byId = nodesById();+ var nodeKind = Object.create(null);+ Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });+ if (!selectedKinds.length) {+ status.textContent = viewerText('viewer.lens.choose');+ updateTrigger();+ renderKinds();+ dockPanel(byId);+ if (options.updateUrl !== false) updateHash();+ return false;+ }++ var chosen = {};+ selectedKinds.forEach(function (kind) { chosen[kind] = true; });+ Object.keys(byId).forEach(function (id) {+ if (!chosen[nodeKind[id]]) return;+ byId[id].setAttribute('data-lens-match', '');+ byId[id].setAttribute('data-lens-selected', '');+ });++ var touching = 0;+ var forward = 0;+ var reverse = 0;+ var crossKind = selectedKinds.length === 2;+ var matchedFlow = [];+ edgeGroups().forEach(function (edge) {+ var fromKind = nodeKind[edge.from];+ var toKind = nodeKind[edge.to];+ var match = false;+ if (crossKind) {+ if (fromKind === selectedKinds[0] && toKind === selectedKinds[1]) { match = true; forward += 1; }+ if (fromKind === selectedKinds[1] && toKind === selectedKinds[0]) { match = true; reverse += 1; }+ } else if (fromKind === selectedKinds[0] || toKind === selectedKinds[0]) {+ match = true;+ touching += 1;+ }+ if (!match) return;+ var direction = 'within';+ if (crossKind) {+ direction = fromKind === selectedKinds[0] ? 'forward' : 'reverse';+ } else {+ direction = fromKind === selectedKinds[0] && toKind !== selectedKinds[0] ? 'out'+ : (toKind === selectedKinds[0] && fromKind !== selectedKinds[0] ? 'in' : 'within');+ }+ matchedFlow.push({ edge: edge, direction: direction });+ edge.members.forEach(function (member) { member.setAttribute('data-lens-match', ''); });+ if (!crossKind) {+ [edge.from, edge.to].forEach(function (id) {+ if (!byId[id]) return;+ byId[id].setAttribute('data-lens-match', '');+ if (!chosen[nodeKind[id]]) byId[id].setAttribute('data-lens-peer', '');+ });+ }+ });++ svg.setAttribute('data-lens-active', selectedKinds.join(' '));+ renderFlowOverlay(matchedFlow);+ if (crossKind) {+ var total = forward + reverse;+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });+ } else {+ var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });+ }+ updateTrigger();+ renderKinds();+ dockPanel(byId);+ if (options.updateUrl !== false) updateHash();+ return true;+ }+ function prepareForLens() {+ clearLegendPreview();+ if (Archify.focus && typeof Archify.focus.clear === 'function') {+ Archify.focus.clear({ updateUrl: false, preserveView: true });+ }+ if (Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {+ Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });+ }+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {+ Archify.intentTrace.clear({ announce: false });+ }+ }+ function select(kind, options) {+ options = options || {};+ clearLegendPreview();+ var exists = collectKinds().some(function (entry) { return entry.id === kind; });+ if (!exists) return false;+ var index = selectedKinds.indexOf(kind);+ if (index >= 0) selectedKinds.splice(index, 1);+ else {+ if (selectedKinds.length >= 2) return false;+ if (!selectedKinds.length) prepareForLens();+ selectedKinds.push(kind);+ }+ return applySelection(options);+ }+ function close(options) {+ options = options || {};+ panel.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ updateTrigger();+ if (options.restoreFocus !== false && lensOpener && typeof lensOpener.focus === 'function') lensOpener.focus();+ return false;+ }+ function open(options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ lensOpener = options.opener || trigger;+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ if (Archify.guide && Archify.guide.isOpen()) Archify.guide.close({ restoreFocus: false });+ renderKinds();+ panel.hidden = false;+ trigger.setAttribute('aria-expanded', 'true');+ updateTrigger();+ requestAnimationFrame(function () {+ dockPanel(nodesById());+ var activeButton = kindsRoot.querySelector('[aria-pressed="true"]');+ var firstButton = activeButton || kindsRoot.querySelector('button:not(:disabled)');+ if (firstButton) firstButton.focus();+ });+ return true;+ }+ function toggle() { return panel.hidden ? open({ opener: trigger }) : close(); }+ function clear(options) {+ options = options || {};+ selectedKinds = [];+ cleanSvgState();+ panel.removeAttribute('data-dock-side');+ updateTrigger();+ renderKinds();+ status.textContent = viewerText('viewer.lens.choose');+ if (options.updateUrl !== false) updateHash();+ if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.closePanel === true) close({ restoreFocus: false });+ return false;+ }+ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }+ function copyLink() {+ if (!selectedKinds.length) return Promise.resolve(false);+ var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);+ return copied;+ });+ }+ function syncFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var value = params.get('lens');+ if (!value) {+ if (selectedKinds.length) clear({ updateUrl: false, preserveView: true });+ return;+ }+ var available = collectKinds().map(function (kind) { return kind.id; });+ var requested = value.split('~').filter(function (kind, index, list) {+ return available.indexOf(kind) >= 0 && list.indexOf(kind) === index;+ }).slice(0, 2);+ if (!requested.length) return;+ prepareForLens();+ selectedKinds = requested;+ applySelection({ updateUrl: false });+ } catch (_) {}+ }++ trigger.addEventListener('click', toggle);+ if (decorateLegendBridge()) {+ legendBridge.addEventListener('click', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (entry) activateLegendEntry(entry);+ });+ legendBridge.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch' || (finePointerQuery && !finePointerQuery.matches)) return;+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ hoveredLegendEntry = entry;+ syncLegendPreview();+ });+ legendBridge.addEventListener('pointerout', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ if (hoveredLegendEntry === entry) hoveredLegendEntry = null;+ syncLegendPreview();+ });+ legendBridge.addEventListener('focusin', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry) return;+ focusedLegendEntry = entry;+ legendEntries.forEach(function (candidate) {+ candidate.setAttribute('tabindex', candidate === entry ? '0' : '-1');+ });+ syncLegendPreview();+ });+ legendBridge.addEventListener('focusout', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ if (focusedLegendEntry === entry) focusedLegendEntry = null;+ syncLegendPreview();+ });+ legendBridge.addEventListener('keydown', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry) return;+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ activateLegendEntry(entry);+ return;+ }+ var index = legendEntries.indexOf(entry);+ var next = null;+ if (event.key === 'ArrowRight') next = (index + 1) % legendEntries.length;+ else if (event.key === 'ArrowLeft') next = (index - 1 + legendEntries.length) % legendEntries.length;+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = legendEntries.length - 1;+ if (next === null) return;+ event.preventDefault();+ legendEntries.forEach(function (candidate, candidateIndex) {+ candidate.setAttribute('tabindex', candidateIndex === next ? '0' : '-1');+ });+ legendEntries[next].focus();+ });+ }+ closeBtn.addEventListener('click', function () { close(); });+ clearBtn.addEventListener('click', function () { clear({ preserveView: true }); });+ copyBtn.addEventListener('click', copyLink);+ kindsRoot.addEventListener('click', function (event) {+ var button = event.target.closest('[data-kind]');+ if (!button || button.disabled) return;+ select(button.getAttribute('data-kind'));+ });+ kindsRoot.addEventListener('keydown', function (event) {+ var buttons = Array.prototype.slice.call(kindsRoot.querySelectorAll('button:not(:disabled)'));+ var index = buttons.indexOf(document.activeElement);+ var next = null;+ if (index >= 0 && (event.key === 'ArrowRight' || event.key === 'ArrowDown')) next = (index + 1) % buttons.length;+ else if (index >= 0 && (event.key === 'ArrowLeft' || event.key === 'ArrowUp')) next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home' && buttons.length) next = 0;+ else if (event.key === 'End' && buttons.length) next = buttons.length - 1;+ if (next !== null) { event.preventDefault(); buttons[next].focus(); }+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key !== 'Escape') return;+ event.preventDefault();+ event.stopPropagation();+ close();+ });+ document.addEventListener('click', function (event) {+ var eventPath = typeof event.composedPath === 'function' ? event.composedPath() : [];+ var clickedInside = eventPath.indexOf(panel) >= 0 || panel.contains(event.target);+ var clickedLauncher = event.target === trigger || legendEntries.some(function (entry) {+ return event.target === entry || entry.contains(event.target);+ });+ if (!panel.hidden && !clickedInside && !clickedLauncher) close({ restoreFocus: false });+ });+ window.addEventListener('hashchange', syncFromHash);+ window.addEventListener('resize', function () {+ if (!panel.hidden && selectedKinds.length) dockPanel(nodesById());+ layoutLegendBridge();+ });+ renderKinds();+ syncFromHash();++ return {+ open: open,+ close: close,+ toggle: toggle,+ clear: clear,+ clearPreview: clearLegendPreview,+ select: select,+ copyLink: copyLink,+ isOpen: function () { return !panel.hidden; },+ active: function () { return selectedKinds.length ? selectedKinds.slice() : null; },+ kinds: function () { return collectKinds().map(function (kind) { return { id: kind.id, count: kind.nodes.length }; }); }+ };+ })();++ /* ============================================================+ Diagram Guide — a factual command deck over existing interactions.+ Counts come from compiled semantics; actions delegate to Finder, Route+ Probe, Semantic Radar, Semantic Lens, Presentation, theme, export, and+ camera without adding a second command implementation or SVG state.+ ============================================================ */+ Archify.guide = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-diagram-guide');+ var panel = document.getElementById('diagram-guide');+ var closeBtn = document.getElementById('diagram-guide-close');+ var stats = document.getElementById('diagram-guide-stats');+ var actions = document.getElementById('diagram-guide-actions');+ var feedback = document.getElementById('diagram-guide-feedback');+ var routePanel = document.getElementById('route-probe');+ var returnFocus = null;++ function relationshipCount() {+ var seen = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var key = edge.getAttribute('data-edge-key') || [+ edge.getAttribute('data-edge-from'),+ edge.getAttribute('data-edge-to'),+ edge.getAttribute('data-edge-label') || ''+ ].join('\u0000');+ seen[key] = true;+ });+ return Object.keys(seen).length;+ }+ function renderFacts() {+ var nodes = svg.querySelectorAll('[data-node-id]').length;+ var relationships = relationshipCount();+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships)+ });+ }+ function actionButtons() {+ return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));+ }+ function close(options) {+ options = options || {};+ panel.hidden = true;+ html.removeAttribute('data-guide-open');+ routePanel.removeAttribute('data-guide-open');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));+ feedback.textContent = '';+ if (options.restoreFocus !== false) {+ var target = trigger.hidden ? returnFocus : trigger;+ if (target && typeof target.focus === 'function') target.focus();+ }+ return false;+ }+ function open() {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: 'guide' });+ }+ returnFocus = document.activeElement;+ renderFacts();+ panel.hidden = false;+ html.setAttribute('data-guide-open', 'true');+ routePanel.setAttribute('data-guide-open', 'true');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));+ feedback.textContent = '';+ requestAnimationFrame(function () {+ var first = actionButtons()[0];+ if (first) first.focus();+ });+ return true;+ }+ function toggle() { return panel.hidden ? open() : close(); }+ function execute(action) {+ feedback.textContent = '';+ close({ restoreFocus: false });+ if (action === 'find') return Archify.finder.open();+ if (action === 'route') return Archify.routeProbe.begin({ focusNode: true });+ if (action === 'map') return Archify.radar.open();+ if (action === 'lens') return Archify.semanticLens.open();+ if (action === 'present') return Archify.presentation.enter();+ if (action === 'export') return Archify.exportMenu.open();+ if (action === 'theme') return Archify.theme.toggle();+ if (action === 'preset') return Archify.preset.cycle();+ if (action === 'reset') return Archify.view.reset();+ if (action === 'zoom-in') return Archify.view.zoomIn();+ if (action === 'zoom-out') return Archify.view.zoomOut();+ return false;+ }+ function actionForKey(key) {+ return {+ '/': 'find',+ r: 'route',+ m: 'map',+ l: 'lens',+ f: 'present',+ e: 'export',+ t: 'theme',+ s: 'preset',+ '0': 'reset',+ '+': 'zoom-in',+ '=': 'zoom-in',+ '-': 'zoom-out'+ }[key] || null;+ }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close(); });+ actions.addEventListener('click', function (event) {+ var button = event.target.closest('[data-guide-action]');+ if (!button || button.disabled) return;+ event.stopPropagation();+ execute(button.getAttribute('data-guide-action'));+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' || event.key === '?') {+ event.preventDefault();+ event.stopPropagation();+ close();+ return;+ }+ var buttons = actionButtons();+ var index = buttons.indexOf(document.activeElement);+ var next = null;+ if (index >= 0 && event.key === 'ArrowRight') next = (index + 1) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowDown') next = (index + 1) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowLeft') next = (index - 1 + buttons.length) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowUp') next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home' && buttons.length) next = 0;+ else if (event.key === 'End' && buttons.length) next = buttons.length - 1;+ if (next !== null) {+ event.preventDefault();+ event.stopPropagation();+ buttons[next].focus();+ return;+ }+ var action = actionForKey(event.key.length === 1 ? event.key.toLowerCase() : event.key);+ if (!action) return;+ event.preventDefault();+ event.stopPropagation();+ execute(action);+ });+ document.addEventListener('click', function (event) {+ if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ });++ renderFacts();+ return {+ open: open,+ close: close,+ toggle: toggle,+ execute: execute,+ isOpen: function () { return !panel.hidden; },+ facts: function () {+ return {+ nodes: svg.querySelectorAll('[data-node-id]').length,+ relationships: relationshipCount()+ };+ }+ };+ })();++ /* ============================================================+ Global keyboard shortcuts+ ? -> open Diagram Guide+ T -> toggle theme+ S -> cycle visual style+ E -> open export menu+ F -> toggle presentation stage+ M -> toggle Semantic Radar+ L -> toggle Semantic Lens+ R -> start/clear Route Probe+ / -> open node finder or the active route endpoint picker+ + / - -> zoom, 0 -> reset view+ Escape -> clear temporary trace/focus/view first, then exit presentation+ Ignored when focus is inside an input/textarea/contenteditable.+ ============================================================ */+ document.addEventListener('keydown', function (e) {+ if (e.metaKey || e.ctrlKey || e.altKey) return;+ if (e.defaultPrevented) return;+ var t = e.target;+ if (t && (t.tagName === 'INPUT' || t.tagName === 'TEXTAREA' || t.isContentEditable)) return;+ if (Archify.preset && Archify.preset.isOpen() && e.key !== 'Escape' && e.key !== 's' && e.key !== 'S') {+ Archify.preset.close(false);+ }+ if (e.key === '?') {+ e.preventDefault();+ Archify.guide.toggle();+ } else if (e.key === '/') {+ e.preventDefault();+ Archify.finder.open();+ } else if (e.key === 't' || e.key === 'T') {+ e.preventDefault();+ Archify.theme.toggle();+ } else if (e.key === 's' || e.key === 'S') {+ e.preventDefault();+ Archify.preset.cycle();+ } else if (e.key === 'e' || e.key === 'E') {+ e.preventDefault();+ if (!Archify.exportMenu.isOpen()) Archify.exportMenu.open();+ } else if (e.key === 'f' || e.key === 'F') {+ e.preventDefault();+ Archify.presentation.toggle();+ } else if (e.key === 'm' || e.key === 'M') {+ e.preventDefault();+ Archify.radar.toggle();+ } else if (e.key === 'l' || e.key === 'L') {+ e.preventDefault();+ Archify.semanticLens.toggle();+ } else if (e.key === 'r' || e.key === 'R') {+ e.preventDefault();+ Archify.routeProbe.toggle({ focusNode: true });+ } else if (e.key === '+' || e.key === '=') {+ e.preventDefault();+ Archify.view.zoomIn();+ } else if (e.key === '-') {+ e.preventDefault();+ Archify.view.zoomOut();+ } else if (e.key === '0') {+ e.preventDefault();+ Archify.view.reset();+ } else if (e.key === 'Escape' && Archify.preset.isOpen()) {+ e.preventDefault();+ Archify.preset.close(true);+ } else if (e.key === 'Escape' && Archify.semanticLens.isOpen()) {+ e.preventDefault();+ Archify.semanticLens.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.semanticLens.active()) {+ e.preventDefault();+ Archify.semanticLens.clear({ preserveView: true });+ } else if (e.key === 'Escape' && Archify.guide.isOpen()) {+ e.preventDefault();+ Archify.guide.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.radar.isOpen()) {+ e.preventDefault();+ Archify.radar.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.routeProbe.active()) {+ e.preventDefault();+ Archify.routeProbe.escape({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.intentTrace.active()) {+ e.preventDefault();+ Archify.intentTrace.clear();+ } else if (e.key === 'Escape' && Archify.focus.active()) {+ e.preventDefault();+ Archify.focus.clear({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.presentation.active()) {+ e.preventDefault();+ Archify.presentation.exit();+ }+ });+ </script>+</body>+</html>diff --git a/docs/gallery/sources/orders.erd.json b/docs/gallery/sources/orders.erd.jsonnew file mode 100644index 00000000..f79065f3--- /dev/null+++ b/docs/gallery/sources/orders.erd.json@@ -0,0 +1,337 @@+{+ "schema_version": 1,+ "diagram_type": "erd",+ "meta": {+ "title": "Order management schema",+ "locale": "en",+ "output": "examples/erd-orders-rendered.html",+ "quality_profile": "showcase",+ "views": [+ {+ "id": "identity",+ "label": "Reference rows",+ "focus": [+ "customer",+ "product"+ ],+ "note": "The rows everything else points at, with their unique keys."+ },+ {+ "id": "checkout",+ "label": "Checkout core",+ "focus": [+ "order",+ "order_item",+ "customer"+ ],+ "note": "order is the hub: order_item and payment both point back at it."+ },+ {+ "id": "followups",+ "label": "Payment and stock",+ "focus": [+ "payment",+ "order",+ "inventory",+ "product"+ ],+ "note": "One optional dashed link and one mandatory stock link."+ }+ ]+ },+ "layout": {+ "mode": "grid",+ "gapY": 38,+ "gapX": 72+ },+ "entities": [+ {+ "id": "customer",+ "label": "customer",+ "tag": "accounts",+ "row": 0,+ "col": 0,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "email",+ "type": "varchar(255)",+ "key": "uk"+ },+ {+ "name": "display_name",+ "type": "varchar(120)"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "order",+ "label": "order",+ "tag": "checkout",+ "row": 0,+ "col": 1,+ "width": 260,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "customer_id",+ "type": "bigint",+ "key": "fk",+ "references": "customer.id"+ },+ {+ "name": "status",+ "type": "varchar(32)"+ },+ {+ "name": "total_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "currency",+ "type": "char(3)"+ },+ {+ "name": "placed_at",+ "type": "timestamptz"+ },+ {+ "name": "updated_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "order_item",+ "label": "order_item",+ "tag": "line items",+ "row": 1,+ "col": 2,+ "width": 254,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "order_id",+ "type": "bigint",+ "key": "fk",+ "references": "order.id"+ },+ {+ "name": "product_id",+ "type": "bigint",+ "key": "fk",+ "references": "product.id"+ },+ {+ "name": "quantity",+ "type": "int"+ },+ {+ "name": "unit_price",+ "type": "numeric(12,2)"+ },+ {+ "name": "discount_amount",+ "type": "numeric(12,2)"+ }+ ]+ },+ {+ "id": "product",+ "label": "product",+ "tag": "catalog",+ "row": 1,+ "col": 1,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "sku",+ "type": "varchar(64)",+ "key": "uk"+ },+ {+ "name": "name",+ "type": "varchar(160)"+ },+ {+ "name": "price",+ "type": "numeric(12,2)"+ },+ {+ "name": "cost_amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "active",+ "type": "boolean"+ },+ {+ "name": "created_at",+ "type": "timestamptz"+ }+ ]+ },+ {+ "id": "inventory",+ "label": "inventory",+ "tag": "catalog",+ "row": 1,+ "col": 0,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "product_id",+ "type": "bigint",+ "key": "fk",+ "references": "product.id"+ },+ {+ "name": "warehouse_code",+ "type": "varchar(16)"+ },+ {+ "name": "quantity",+ "type": "int"+ },+ {+ "name": "reserved_quantity",+ "type": "int"+ },+ {+ "name": "updated_at",+ "type": "timestamptz"+ }+ ],+ "width": 236+ },+ {+ "id": "payment",+ "label": "payment",+ "tag": "checkout",+ "row": 0,+ "col": 2,+ "attributes": [+ {+ "name": "id",+ "type": "bigint",+ "key": "pk"+ },+ {+ "name": "order_id",+ "type": "bigint",+ "key": "fk",+ "references": "order.id"+ },+ {+ "name": "method",+ "type": "varchar(32)"+ },+ {+ "name": "amount",+ "type": "numeric(12,2)"+ },+ {+ "name": "paid_at",+ "type": "timestamptz"+ },+ {+ "name": "external_ref",+ "type": "varchar(64)"+ }+ ]+ }+ ],+ "relationships": [+ {+ "id": "order_customer",+ "from": "order",+ "to": "customer",+ "label": "placed by",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "payment_order",+ "from": "payment",+ "to": "order",+ "fromCardinality": "many",+ "fromOptional": true,+ "toCardinality": "one",+ "identifying": false+ },+ {+ "id": "order_item_order",+ "from": "order_item",+ "to": "order",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "order_item_product",+ "from": "order_item",+ "to": "product",+ "fromCardinality": "many",+ "toCardinality": "one"+ },+ {+ "id": "inventory_product",+ "from": "inventory",+ "to": "product",+ "fromCardinality": "many",+ "toCardinality": "one"+ }+ ],+ "cards": [+ {+ "dot": "cyan",+ "title": "Keys",+ "items": [+ "Every child carries the parent id as a bigint foreign key.",+ "order is the hub: order_item and payment each hold an order_id.",+ "email and sku are unique, so they carry a secondary key marker."+ ]+ },+ {+ "dot": "amber",+ "title": "Optionality",+ "items": [+ "An order may exist before any payment attempt, so the payment side is zero or many.",+ "The payment relationship is non-identifying: it is drawn dashed.",+ "customer, product, and order_item links are all mandatory."+ ]+ },+ {+ "dot": "emerald",+ "title": "How the bands read",+ "items": [+ "The checkout band is the order and the payment that settles it.",+ "The catalog band is what orders point at: one product, one stock record.",+ "accounts and line items stand alone; a single-table domain keeps its tag in the table header."+ ]+ }+ ]+}diff --git a/examples/erd-orders-rendered.html b/examples/erd-orders-rendered.htmlnew file mode 100644index 00000000..0cd65df9--- /dev/null+++ b/examples/erd-orders-rendered.html@@ -0,0 +1,13942 @@+<!DOCTYPE html>+<html lang="en" data-theme="dark" data-preset="classic">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta name="generator" content="archify 3.0.2-dev.1">+ <meta name="archify-reader-contract" content="declared-wide-v1">+ <title>Order management schema Diagram</title>+ <script>+ // Resolve the theme before first paint so light-preference users don't+ // see a dark flash. The toolbar script below re-applies with UI state.+ (function () {+ try {+ var theme = null;+ try {+ var param = new URLSearchParams(window.location.search).get('theme');+ if (param === 'light' || param === 'dark') theme = param;+ if (new URLSearchParams(window.location.search).get('embed') === '1') {+ document.documentElement.setAttribute('data-embed', 'true');+ }+ if (new URLSearchParams(window.location.search).get('present') === '1') {+ document.documentElement.setAttribute('data-present', 'true');+ }+ } catch (_) {}+ if (!theme) {+ try { theme = localStorage.getItem('archify-theme'); } catch (_) {}+ }+ if (theme !== 'light' && theme !== 'dark') {+ theme = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';+ }+ document.documentElement.setAttribute('data-theme', theme);+ } catch (_) {}+ })();+ </script>+ <style id="archify-fonts">+/*+JetBrains Mono variable WOFF2 subsets from Google Fonts service revision v24.+These fixed bytes are shared by the viewer and its SVG/raster exports.+No local() source: an installed copy must not override the bundled font.+Uncovered characters (including CJK) still use the system fallback stack.+Upstream: https://github.com/JetBrains/JetBrainsMono++cyrillic-ext 1664 bytes sha256 9343de2ca5d9549f792e7962375af8efb0f320c7643bfd36c884b5a30e5c396f+cyrillic 8892 bytes sha256 4995a9a43ac659ec32fcd8b463755cd6a07b31a6e6b3894a6a153b661cf490e2+greek 6800 bytes sha256 49c3da6c9a2b279b0f1f860f5cfb1f5dc38d88a5c7be9c9b1837bbc4e3db6111+vietnamese 5872 bytes sha256 d44eb1936043a56038eb02dd70b243f379bef65783f94ec12f277550720411f1+latin-ext 11596 bytes sha256 9c38cb2d0d2d93c1ee6e21fa78db76f13ea7e15e15cc64214c7ca89b6aaa35c4+latin 31340 bytes sha256 2c32b9b3ee358c119e210f6f5195f9bd34894d78a785ff2e95d60e718e400af4++Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+https://openfontlicense.org+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.+*/+ /* cyrillic-ext */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAAaAABIAAAAADMwAAAYdAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVIEgJx4AdC9MEQgKhGSEAAsgADCDOgE2AiQDOgQgBYdGB4EUGw8LIxEmZHIexT8PYyJTH6s540K0vrtCWaIRpUzRCqKVgSh/33L3iSgiBkN7EeGRTTw85UW9X5WkwZF7tJBx0g3Cac+S8lfO/UPNN4h5WrZiW1TT4nbixDB3vt1UJciEG0hoUc5XuE5OKAqYvtaSRANO3rv/tVb/oBJpOuAlQEikTDqxv3uuFVOLvC6aVeM2NBS8cplGyFpZ1RkosWs55KTlc8eza3siAl1ACKUQAiHQNt10sd4GuaWgrYCaBYG2BSwg+XhrehjdJgND8D69SDvFvJJ0SaoENkV7xx5CYy2QaJlypoYnsMkAPC/FV/nf/18l/xv+I3HLBzdAWiC9jZFSCE0J41WYJ514oKBNBfgC5g2oGAkHKYX4m64rCymGIJCRooirSE8jQTTyiPQ9eW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18C3rm8vQl45/bFz16aW+emiPwoKgkEn2Z12skn6P/wOYSJ9u20WvUMBf5uUN0zHgEAfC7Aq05gYJ5slpyeTTp6nK8bR9HC08mZwDA9FZj043fMVosnsbBYXIGlqXEcVhaJTRL7VojxmYJuNLHQj9+x1PUvVpp+xYaxPsaO5dyLXcs4DXuWsAX2rWQiDnS1/+ZQG9sgpGgyWdrQJIS4smFtkrWgCcm0ykPIEFb5AOvr0ua5EZIREk3sruRYNoeLhRBqJ+XBNpRfUAk5TouzilHr9FBRXohPoA3witRyrWIt+TU8FlcLIbk2rQIdS0gi0JFa8AXZUrrcE7Z9rvxyWEuqjyJknC1jCctY2tKFyllm49ySS1ct2WTYJedoTXV87+YpCLluLW8kODW7FLCMbEcD7sTpLVtpQfkiGDeJbW3tb20lWvzntJB3tx1I6Gdpx+lWty9CKmivAQbdPJ+PZMptjYUi3PMA87wcyWqRo4gyqmjI0YxWtKNTrb1PC+7AWu1HCIOXWzsNhawfzSf908vHlAfuLZXShddLrR2c1t3GkN63vQ3/MIvgz1kYfbtt2aVWaAAAAAA=) format('woff2');+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }+ /* cyrillic */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAACK8ABIAAAAARmAAACJTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoE1G4JgHIFaBmA/U1RBVIEgJx4AgkwvTBEICrporgMLggoAMKw6ATYCJAOEBAQgBYdGB4kHG7Q9RQdy2DiAAS7vZkS1alhU/18T1IqxA6flgFcrUbKj5VbNnlXLwaeDwbp1QnuC56gjzYrVYUfM09q5suLaHUkQV50dVYOIj26jU47IlZS6HX26O7S6VQJNqV6RcRcvsUAQII6oCK8Iu2mJiGj0lbNNfv915sno33zICElmoYK1snoO9x4ZgoQycWQEkjCsiF3igH/+3aw/UUIgZoR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RoYlR1LIMEDQwLCR/IzicCUPd4IgiuwQQHJY4EDyPmUQEiOxIRkwHGa9EkpplF5zRro4wEq1ReJbWLxdpmHWq1MNwi7YmZ9baQvEBqed+RkMyXpWyhVkqvjIwuTfLgpmmljcVhtWM0WFAvBFjmh0ZY5yNWdasOWhJtogmhmZJ2ZtFqHbRRaEuNpjcvpxPFjmzReKg/p+0iZKpLoaqdynQxGtqWTrZh6cIqFItnFgkzHywvuUlq9EKrvg3DNgQtk9LCUt4SUkuBusBon2i2gSWUi1CXjbXfHpE7dKG9i2kZcaFL/MQSjj0siYnDK2lwV4V8iv37vwcFEPzXQUC2wzJACkL4g3mn6k+UnIoaFl8ptI9lxNPD7xVT/D8HUZIVVdMN07IdSVZUTTdMK2SHHRSJxuKJZCo9lMnm8oViqVypurX6cOORkdHmltajj23dhsZgcXgCkUSmUGl0BpPF5nB5fIFQJJZIZXKFUqUO+6fV6Q1Gk9liTfR77YU3XvBd/pdUIMHOyoShBK2SomWLlHhrlSpH2mjjerUbxDA0ugkDygRPQkrJGqd6kVSjjgHNBS6krjewhS3EMJSwVULKmvIESVKVI220cb3arUQwNLoJQ5UJnoSUkjVOWthSjbob20ZyKRdSN7osOfBGp/zbeWfb5Sv2IZTse/ye/d7w+gv/rv08vPufXPP/uL/xRy/vzPXhAAAA) format('woff2');+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }+ /* greek */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAABqQABIAAAAANggAABopAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnwbHhyBWgZgP1NUQVSBICceAIFiL0wRCAqrfKMTC4FmADCgXAE2AiQDg0QEIAWHRgeHQRt7L1UHctg4AONHDw/J/98StCEx8OvQuaoS6nSKOb1TAFiw0Fg4OrHmUFx9lE0RHuCAwNZTYLzu0qIYrA2BIRRRhOaLtZ08a/sp9zYCdQA8K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DglUC8R0/KNYW8jX00uiLnKg5WNisEz8mklcAFKeBQUTuLiXKiySyC2PPZ8UaekxY87W9XgiaVew0K9qvrECVdCYFgs+TcAnl0F4oSOHb75vWbuJ7krbIHBWfF6H29siCNkklk/eLT5Ur/3XvXTqIvrf733vVumw7TrFoj1RDrZ1tGQAAAAA=) format('woff2');+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }+ /* vietnamese */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAABbwABIAAAAAP8wAABaJAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoEYG4YcHIIWBmA/U1RBVIEgJx4AgwQvTBEICrBAp3ILgjgAMKEmATYCJAOEKAQgBYdGB4xOGw05JeOYFbBxAJizfwap/v9LAidj5+rgVi2AmnKs4xCdVNzZFtedQQYTHrvu9fJjcffSRGkQNsblzkX3scG0IVTkKwtieRAjQYIYSTEMHWyen+61Gx9Jw60vaxE6DsqpIySZ9eH5bf657z2M9+hFIWIMA5WBjUx4aGPSw8RGG91QWchkJcv4GeEvf3Tx8P1+7dy/5kDURCg2nSEy5E24JCqZUkjFJBE1S7W0jXlX6ayeGY3CSEgkB4GRCRdj/t/jhxD23f9+V/97pRgxZLFewVpgBoEIUPGH787svV+Szt0o4q0YhCDIhSzmNsrTVAyxi1iFhaS8ob3ndnUNSK+n8wPYtvFX7IFjYJvXAM9YQnjiuRrX0ynt3jl65pMQAQ7OC3XgBYde/n82zXb+zn6z7rxBuQvte3II+rEOy3Obl6JMddV6tLsjuJHpQDJKDtmH8hFLJpIdItIFraACWKWiLq8HhgqwaVKm6NKmS7o0fV66gCo45XaAf8bky97UPvDRbT1uNyGEEE2WiYYZOdvv9Ws9LxA0uYdFt6BIEYTl1sTaOglaIo2WLV8rZNCMqjUrm+bg0jx6tD6j2rjJXU6bRpsV0raLaHssbE0AqzUh5tEm8M13j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fy89gPif4Bwg1RE/ymS2GFab3eF0uT3e0gEQghEUw8sIklJDpdEZTBabw+XxBcImkVgilckVSlWbWqPV9ck3GE1mi9VmdzhdeKRqFmXKVahUpVpNb6hlVZdNvQaNmjSzsXNwcnHz2JSHV4tWbdp1EEIwUiuK4US0LUnRDMvxgijJiqrphmnZjuvx+vzCdpoXsctue+y1z4Ko/YP/Ar1bemPb7+eIwYTBYQUCEpVlGXQoUKFBWIPk/PJxnb9GUcMMJ4CARGUOq9CozuHMkirXfu1PK+0zPAAVEmT2ZOiWDNnO7vq4xFQTDBx0MgQlDMgOI7IjrgwJg5GCxpIwlJwb7ejxI8vN/nNue0WK4XAqN/9rYESJiBS5DfQoUaNFtNlqnOEkEJGq3GE1WtU7nD2czu2rgIgaKXKU6KeM2StapOgxIiKfUmbfqBHRoi8Vc+9SPPdH6ZG4XgADKdfPrK6XrVdPQdlqWeTEfwfvOcX58v26tSKS2CpRnCYuvDqr7q7X43xx5e1TWV1fX/DzLFvj8+/2XV67NlfMCWzISpK4GyrKa+niIpSVtxKLaLA5vfBlWaqs6Y4OC6xGCoRFFlidTBvinumYRq+w6laz1LxPCLfgVlMKAA==) format('woff2');+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }+ /* latin-ext */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAC1MABIAAAAAdAQAACzjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoJLG4ouHIM+BmA/U1RBVIEgJx4AhTovTBEICuBkzjkLhAwAMMVKATYCJAOIEgQgBYdGB5FVG4xnNXjTMeV2EEi463Muilo1Semz//9z0jFkDP0YgPnK6IQkTGZVRXZVMlEhJrRAsqq2tIQeZfVhf0qr17jt0HuNqAthhO/aPDdxgAtjFWuB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BE7fuj6fq3NhFEGJcjoBxj9jZvRG7RWB2JkzXGa0k2KmyAMyiBFVx3kFV+F3BrwwJOs/obXzjaMTPJNjD2pwjDZBQAAAA==) format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }+ /* latin */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAHpsABIAAAABMqgAAHoCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoE4G4caHIGacgZgP1NUQVSBICceAIUiL0wRCAqB3DiBrC4LhhYAMIGcXgE2AiQDjBoEIAWHRgejDFtJFnGBsU2lnge5WVVyxx2bn8k4NuF2FGQmX4ZnRm0XabU42f//JyUdMjTEGqDSdar2O+SQccghITKCZESYriN72BqZaY6RUJB0uPlEx4STwvdgyWM3TuN0dmkHp1ih39djHtzlZcqjBEH+ukP3Wz2Jw710mcz4TFNrmNOowSgzl/nbXWIQYdApTKZOe7tkuslj1O5nl5Xxs02ucpl/GRe5jCSh2wdn5w+vLRqoQQaS6d12/ahE1x4WOtXW1XwVGLvMRqwTlb7w/3yd/a99zq1bSbrwIKT7UWk++xPjPwI01EzUCEbn5/nc7M+97xFCjCGFmCITMY0pRowMpimlfMpHmvIj5TNphjI0EylFDBH5lOIWaUSkacSIkV1gEFn2MtRPcUPcMhQ3xI1mKFKLqY2UobhhGkN4GZ50818CCAFBBURmCFmEBBISMhbJXcYlZJDjSCCcIWGEESCwBRWqiFoVa504Fiq1RXeljtVhqzhmFSsdnzpWrdphh/bDTzn1e29IoxGMbEt2HHAA24+4TCe87h5ueIw86QLdbnvdfCBK2rrg/sQFk+xItobn+R9r3fcHk9CHUCw0KhFCo4qeLhoivhvNQ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0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }+ </style>+ <style>+ /* ==========================================================+ THEME VARIABLES — switch by toggling [data-theme] on <html>+ ========================================================== */+ :root,+ [data-theme="dark"] {+ --bg: #020617;+ --grid: #1e293b;+ --canvas-dot: rgba(148, 163, 184, 0.16);+ --text: #ffffff;+ --text-muted: #94a3b8;+ --text-dim: #475569;+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */+ --text-faint: #7d8da1;++ --panel: rgba(15, 23, 42, 0.5);+ --panel-border: #1e293b;+ --lane-fill: rgba(15, 23, 42, 0.22);+ --lane-stroke: #334155;++ --arrow: #64748b;+ --arrow-emphasis: #34d399;++ /* Opaque mask color used behind semi-transparent component fills+ so the arrows drawn underneath are properly hidden. */+ --mask: #0f172a;++ --frontend-fill: rgba(8, 51, 68, 0.4);+ --frontend-stroke: #22d3ee;+ --backend-fill: rgba(6, 78, 59, 0.4);+ --backend-stroke: #34d399;+ --database-fill: rgba(76, 29, 149, 0.4);+ --database-stroke: #a78bfa;+ --cloud-fill: rgba(120, 53, 15, 0.3);+ --cloud-stroke: #fbbf24;+ --security-fill: rgba(136, 19, 55, 0.4);+ --security-stroke: #fb7185;+ --messagebus-fill: rgba(251, 146, 60, 0.3);+ --messagebus-stroke:#fb923c;+ --external-fill: rgba(30, 41, 59, 0.5);+ --external-stroke: #94a3b8;++ --toolbar-bg: rgba(15, 23, 42, 0.8);+ --toolbar-border: #334155;+ --toolbar-text: #e2e8f0;+ --toolbar-hover: rgba(15, 23, 42, 0.95);+ --toolbar-menu-bg: #0f172a;+ }++ [data-theme="light"] {+ --bg: #f4f5f7;+ --grid: #e9edf2;+ --canvas-dot: #d9dee5;+ --text: #111827;+ --text-muted: #5b6474;+ --text-dim: #9aa3b2;+ --text-faint: #6b7280;++ --panel: #ffffff;+ --panel-border: #e5e7eb;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;++ --arrow: #94a3b8;+ --arrow-emphasis: #059669;++ --mask: #ffffff;++ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke: #ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;++ --toolbar-bg: rgba(255, 255, 255, 0.92);+ --toolbar-border: #cbd5e1;+ --toolbar-text: #334155;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #ffffff;+ }++ /* ==========================================================+ SIGNAL FLOW — an opt-in, motion-forward visual preset.+ The variables also target a standalone exported SVG, whose+ root carries data-preset and data-theme directly.+ ========================================================== */+ [data-preset="signal-flow"][data-theme="dark"] {+ --bg: #030711;+ --grid: #15233a;+ --panel: rgba(6, 14, 28, 0.78);+ --panel-border: #1d3350;+ --lane-fill: rgba(9, 22, 40, 0.5);+ --lane-stroke: #2c4564;+ --text: #f5fbff;+ --text-muted: #9eb0c7;+ --text-dim: #52667f;+ --text-faint: #7890ad;+ --mask: #07101e;+ --frontend-fill: rgba(6, 182, 212, 0.14);+ --frontend-stroke: #67e8f9;+ --backend-fill: rgba(16, 185, 129, 0.14);+ --backend-stroke: #5eead4;+ --database-fill: rgba(139, 92, 246, 0.16);+ --database-stroke: #c4b5fd;+ --cloud-fill: rgba(245, 158, 11, 0.13);+ --cloud-stroke: #fcd34d;+ --security-fill: rgba(244, 63, 94, 0.13);+ --security-stroke: #fda4af;+ --messagebus-fill: rgba(249, 115, 22, 0.13);+ --messagebus-stroke: #fdba74;+ --external-fill: rgba(71, 85, 105, 0.24);+ --external-stroke: #a5b4c7;+ --arrow: #7890ad;+ --arrow-emphasis: #2dd4bf;+ --toolbar-bg: rgba(7, 16, 30, 0.86);+ --toolbar-border: #29415f;+ --toolbar-menu-bg: #07101e;+ }++ [data-preset="signal-flow"][data-theme="light"] {+ --bg: #f4f9fc;+ --grid: #d4e5ee;+ --panel: rgba(255, 255, 255, 0.82);+ --panel-border: #bfd5e2;+ --lane-fill: rgba(232, 243, 248, 0.62);+ --lane-stroke: #a9c5d5;+ --text: #102638;+ --text-muted: #587287;+ --text-dim: #8aa2b4;+ --text-faint: #668397;+ --mask: #ffffff;+ --frontend-fill: rgba(6, 182, 212, 0.09);+ --frontend-stroke: #0789a1;+ --backend-fill: rgba(5, 150, 105, 0.09);+ --backend-stroke: #087f69;+ --database-fill: rgba(124, 58, 237, 0.09);+ --database-stroke: #7254c7;+ --cloud-fill: rgba(217, 119, 6, 0.08);+ --cloud-stroke: #b9670b;+ --security-fill: rgba(225, 29, 72, 0.08);+ --security-stroke: #c53a59;+ --messagebus-fill: rgba(234, 88, 12, 0.08);+ --messagebus-stroke: #c65f27;+ --external-fill: rgba(100, 116, 139, 0.1);+ --external-stroke: #607a8c;+ --arrow: #7b97aa;+ --arrow-emphasis: #0d9488;+ }++ /* ==========================================================+ BLUEPRINT — a review-first drafting preset for deployment,+ infrastructure, and technical design documentation. It keeps+ the same semantic palette and geometry while trading glow for+ precise grid contrast, squared materials, and drafting marks.+ ========================================================== */+ [data-preset="blueprint"][data-theme="dark"] {+ --bg: #06131f;+ --grid: #17425a;+ --panel: rgba(7, 27, 43, 0.9);+ --panel-border: #27627f;+ --lane-fill: rgba(10, 43, 66, 0.36);+ --lane-stroke: #34799a;+ --text: #e3f6ff;+ --text-muted: #91b8ca;+ --text-dim: #557e92;+ --text-faint: #739caf;+ --mask: #0a2031;+ --frontend-fill: rgba(26, 157, 193, 0.14);+ --frontend-stroke: #66d9ef;+ --backend-fill: rgba(31, 155, 124, 0.13);+ --backend-stroke: #69dfbd;+ --database-fill: rgba(120, 105, 196, 0.14);+ --database-stroke: #b4a8ff;+ --cloud-fill: rgba(197, 145, 43, 0.13);+ --cloud-stroke: #ffd166;+ --security-fill: rgba(199, 76, 104, 0.13);+ --security-stroke: #ff8da1;+ --messagebus-fill: rgba(207, 112, 49, 0.13);+ --messagebus-stroke: #ffad66;+ --external-fill: rgba(84, 119, 139, 0.18);+ --external-stroke: #a7cad9;+ --arrow: #78a3b7;+ --arrow-emphasis: #64dfc1;+ --toolbar-bg: rgba(7, 28, 45, 0.92);+ --toolbar-border: #34799a;+ --toolbar-text: #d8f3ff;+ --toolbar-hover: rgba(18, 58, 83, 0.95);+ --toolbar-menu-bg: #0a2031;+ }++ [data-preset="blueprint"][data-theme="light"] {+ --bg: #edf7fa;+ --grid: #b5d5e1;+ --panel: rgba(249, 253, 255, 0.94);+ --panel-border: #78aabd;+ --lane-fill: rgba(210, 232, 240, 0.42);+ --lane-stroke: #83b2c4;+ --text: #123344;+ --text-muted: #4e7486;+ --text-dim: #86a6b4;+ --text-faint: #668c9d;+ --mask: #f9fdff;+ --frontend-fill: rgba(8, 145, 178, 0.08);+ --frontend-stroke: #087f9c;+ --backend-fill: rgba(5, 128, 101, 0.08);+ --backend-stroke: #08755f;+ --database-fill: rgba(100, 75, 180, 0.08);+ --database-stroke: #6757a8;+ --cloud-fill: rgba(181, 120, 15, 0.08);+ --cloud-stroke: #a86609;+ --security-fill: rgba(190, 48, 80, 0.07);+ --security-stroke: #b32f50;+ --messagebus-fill: rgba(196, 81, 22, 0.07);+ --messagebus-stroke: #b65120;+ --external-fill: rgba(79, 112, 128, 0.08);+ --external-stroke: #506f7e;+ --arrow: #6d93a5;+ --arrow-emphasis: #087f69;+ --toolbar-bg: rgba(247, 252, 254, 0.94);+ --toolbar-border: #8ab5c5;+ --toolbar-text: #294f61;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #f9fdff;+ }++ /* ==========================================================+ EDITORIAL — a warm, publication-minded preset for design+ reviews, launch notes, and documentation. The diagram keeps+ the same semantic palette and exact geometry, but trades+ software chrome for paper, ink, ruled structure, and one+ restrained vermilion accent.+ ========================================================== */+ [data-preset="editorial"][data-theme="dark"] {+ --bg: #181611;+ --grid: #39342a;+ --panel: rgba(35, 31, 24, 0.96);+ --panel-border: #625a4a;+ --lane-fill: rgba(52, 46, 35, 0.46);+ --lane-stroke: #726957;+ --text: #f4eddf;+ --text-muted: #b9ae9b;+ --text-dim: #776e60;+ --text-faint: #9d917e;+ --mask: #231f18;+ --frontend-fill: rgba(43, 133, 142, 0.16);+ --frontend-stroke: #7fc6c7;+ --backend-fill: rgba(63, 132, 92, 0.16);+ --backend-stroke: #8fc29e;+ --database-fill: rgba(117, 91, 141, 0.17);+ --database-stroke: #c0a4d0;+ --cloud-fill: rgba(170, 119, 49, 0.16);+ --cloud-stroke: #d8ad68;+ --security-fill: rgba(157, 69, 65, 0.17);+ --security-stroke: #df9085;+ --messagebus-fill: rgba(174, 79, 42, 0.16);+ --messagebus-stroke: #df946f;+ --external-fill: rgba(126, 115, 96, 0.18);+ --external-stroke: #b8ad99;+ --arrow: #948978;+ --arrow-emphasis: #dd6b3d;+ --toolbar-bg: rgba(35, 31, 24, 0.92);+ --toolbar-border: #625a4a;+ --toolbar-text: #eee5d5;+ --toolbar-hover: #302a20;+ --toolbar-menu-bg: #231f18;+ }++ [data-preset="editorial"][data-theme="light"] {+ --bg: #f2eee5;+ --grid: #d8d0c2;+ --panel: rgba(251, 248, 241, 0.97);+ --panel-border: #c4b9a6;+ --lane-fill: rgba(229, 221, 207, 0.42);+ --lane-stroke: #b8aa94;+ --text: #242018;+ --text-muted: #6f6658;+ --text-dim: #a09788;+ --text-faint: #817767;+ --mask: #fbf8f1;+ --frontend-fill: rgba(31, 117, 126, 0.09);+ --frontend-stroke: #287e84;+ --backend-fill: rgba(42, 119, 75, 0.09);+ --backend-stroke: #397b53;+ --database-fill: rgba(105, 75, 130, 0.09);+ --database-stroke: #765d86;+ --cloud-fill: rgba(157, 103, 31, 0.1);+ --cloud-stroke: #9a671f;+ --security-fill: rgba(153, 58, 52, 0.09);+ --security-stroke: #9e463f;+ --messagebus-fill: rgba(182, 70, 27, 0.09);+ --messagebus-stroke: #ad4b25;+ --external-fill: rgba(101, 91, 75, 0.09);+ --external-stroke: #746b5e;+ --arrow: #8a806f;+ --arrow-emphasis: #bb4c23;+ --toolbar-bg: rgba(251, 248, 241, 0.94);+ --toolbar-border: #c4b9a6;+ --toolbar-text: #40392f;+ --toolbar-hover: #fffdf8;+ --toolbar-menu-bg: #fbf8f1;+ }++ * { margin: 0; padding: 0; box-sizing: border-box; }++ body {+ --archify-page-top: 2rem;+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;+ -webkit-font-smoothing: antialiased;+ background: var(--bg);+ min-height: 100vh;+ padding: var(--archify-page-top) 2rem 2rem;+ color: var(--text);+ /* Theme surfaces change together; animating the page background leaves it+ visibly out of sync with the SVG and panel for the first 200ms. */+ }++ html[data-preset="signal-flow"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);+ background-attachment: fixed;+ }+ html[data-preset="signal-flow"][data-theme="light"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);+ }+ html[data-preset="blueprint"] body {+ background-image:+ linear-gradient(var(--grid) 1px, transparent 1px),+ linear-gradient(90deg, var(--grid) 1px, transparent 1px);+ background-size: 32px 32px;+ background-position: -1px -1px;+ background-attachment: fixed;+ }+ html[data-preset="editorial"] body {+ background-image:+ linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),+ repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);+ background-attachment: fixed;+ }++ /* Gallery/embed mode keeps the generated artifact as the source of truth+ while presenting only its diagram surface inside a proof card. */+ html[data-embed="true"] body {+ min-height: 0;+ padding: 0;+ overflow: hidden;+ background: var(--bg);+ background-image: none;+ }+ html[data-embed="true"] .toolbar,+ html[data-embed="true"] .header,+ html[data-embed="true"] .cards,+ html[data-embed="true"] .diagram-nav,+ html[data-embed="true"] .overview-map,+ html[data-embed="true"] .focus-chip,+ html[data-embed="true"] .route-probe,+ html[data-embed="true"] .semantic-lens,+ html[data-embed="true"] .diagram-guide,+ html[data-embed="true"] .node-finder,+ html[data-embed="true"] .node-outline { display: none !important; }+ html[data-embed="true"] .container { max-width: none; }+ html[data-embed="true"] .diagram-container {+ padding: 0.5rem;+ border: 0;+ border-radius: 0;+ box-shadow: none;+ }+ html[data-embed="true"] .diagram-container svg { min-width: 0; }++ /* Presentation Stage is a viewer-only layer: it gives the live diagram+ the viewport while keeping guided views, theme, focus, and exports real.+ Embed mode wins when both query parameters are present. */+ html[data-present="true"]:not([data-embed="true"]) body {+ --archify-page-top: 1rem;+ height: 100dvh;+ min-height: 0;+ padding: 1rem;+ overflow: hidden;+ }+ html[data-present="true"]:not([data-embed="true"]) .container {+ display: flex;+ flex-direction: column;+ gap: 0.75rem;+ width: 100%;+ max-width: none;+ height: calc(100dvh - 2rem);+ }+ html[data-present="true"]:not([data-embed="true"]) .header {+ flex: none;+ min-width: 0;+ margin: 0;+ padding-right: 23rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row { margin-bottom: 0.25rem; }+ html[data-present="true"]:not([data-embed="true"]) .subtitle {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ html[data-present="true"]:not([data-embed="true"]) .diagram-container {+ display: flex;+ flex: 1 1 auto;+ align-items: center;+ justify-content: center;+ min-height: 0;+ padding: 0.75rem;+ padding-bottom: calc(0.75rem + var(--archify-nav-reserve));+ }+ html[data-present="true"]:not([data-embed="true"]) .diagram-container > svg {+ flex: 1 1 auto;+ height: 100%;+ min-height: 0;+ width: 100%;+ min-width: 0;+ }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }+ html[data-present="true"]:not([data-embed="true"]) #btn-present {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+ }++ /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored+ SVG/viewBox while the runtime chooses a desktop width from the actual+ vertical budget. This avoids device-specific files and breakpoint+ jumps between a laptop and a tall monitor. */+ .container {+ width: 100%;+ max-width: var(--archify-reader-width, 1440px);+ margin: 0 auto;+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }++ html[data-preset="signal-flow"] .header,+ html[data-preset="blueprint"] .header,+ html[data-preset="editorial"] .header { padding-right: 29.5rem; }++ .header-row {+ display: flex;+ align-items: center;+ gap: 0.75rem;+ min-height: 2.75rem;+ margin-bottom: 0.25rem;+ }++ .pulse-dot {+ flex: none;+ width: 10px;+ height: 10px;+ background: var(--frontend-stroke);+ border-radius: 50%;+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--frontend-stroke) 16%, transparent);+ animation: none;+ }++ html[data-motion-capable="true"] .pulse-dot { animation: pulse 2s infinite; }++ @keyframes pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.5; }+ }++ h1 {+ font-size: 1.5rem;+ font-weight: 650;+ line-height: 1.25;+ letter-spacing: -0.015em;+ }++ .subtitle {+ color: var(--text-muted);+ font-size: 0.875rem;+ line-height: 1.55;+ margin-left: 1.375rem;+ }++ html[data-preset="signal-flow"] .header-row::after {+ content: attr(data-preset-badge-signal-flow);+ flex: none;+ margin-left: 0.25rem;+ color: var(--frontend-stroke);+ border: 1px solid var(--frontend-stroke);+ border-radius: 999px;+ padding: 0.28rem 0.6rem;+ font-size: 0.625rem;+ letter-spacing: 0.12em;+ opacity: 0.82;+ box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);+ white-space: nowrap;+ }++ html[data-preset="blueprint"] .pulse-dot {+ width: 10px;+ height: 10px;+ border: 1px solid var(--frontend-stroke);+ border-radius: 1px;+ background: transparent;+ box-shadow: inset 0 0 0 2px var(--bg);+ transform: rotate(45deg);+ animation: none;+ }+ html[data-preset="blueprint"] .header-row::after {+ content: attr(data-preset-badge-blueprint);+ flex: none;+ margin-left: 0.25rem;+ padding: 0.28rem 0.55rem;+ border-top: 1px solid var(--frontend-stroke);+ border-bottom: 1px solid var(--frontend-stroke);+ color: var(--frontend-stroke);+ font-size: 0.5625rem;+ font-weight: 700;+ letter-spacing: 0.14em;+ white-space: nowrap;+ }++ html[data-preset="editorial"] h1,+ html[data-preset="editorial"] .card h3 {+ font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;+ letter-spacing: -0.02em;+ }+ html[data-preset="editorial"] h1 { font-size: 1.72rem; font-weight: 600; }+ html[data-preset="editorial"] .pulse-dot {+ width: 9px;+ height: 9px;+ border: 1px solid var(--arrow-emphasis);+ border-radius: 0;+ background: var(--arrow-emphasis);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);+ transform: rotate(45deg);+ animation: none;+ }+ html[data-preset="editorial"] .header-row::after {+ content: attr(data-preset-badge-editorial);+ flex: none;+ margin-left: 0.25rem;+ padding: 0.32rem 0 0.24rem;+ border-bottom: 2px solid var(--arrow-emphasis);+ color: var(--arrow-emphasis);+ font-family: Georgia, 'Times New Roman', serif;+ font-size: 0.625rem;+ font-style: italic;+ font-weight: 600;+ letter-spacing: 0.08em;+ white-space: nowrap;+ }++ .diagram-container {+ --archify-nav-reserve: 0px;+ background: var(--panel);+ border-radius: 1rem;+ border: 1px solid var(--panel-border);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -20px rgba(15, 23, 42, 0.18);+ padding: 1.5rem;+ padding-bottom: calc(1.5rem + var(--archify-nav-reserve));+ overflow: hidden;+ position: relative;+ }++ html[data-preset="signal-flow"] .diagram-container {+ position: relative;+ overflow: hidden;+ background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);+ }+ html[data-preset="signal-flow"][data-theme="light"] .diagram-container {+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);+ }+ html[data-preset="blueprint"] .diagram-container {+ border-color: var(--panel-border);+ border-radius: 0.35rem;+ background: var(--panel);+ box-shadow:+ inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),+ 0 18px 48px rgba(0, 0, 0, 0.16);+ }+ html[data-preset="blueprint"] .diagram-container::after {+ content: "";+ position: absolute;+ z-index: 10;+ inset: 0.7rem;+ pointer-events: none;+ background:+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;+ opacity: 0.58;+ }+ html[data-preset="editorial"] .diagram-container {+ overflow: hidden;+ border-color: var(--panel-border);+ border-radius: 0.38rem;+ background:+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),+ var(--panel);+ box-shadow:+ 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),+ 0 18px 48px color-mix(in srgb, #000 19%, transparent);+ }+ html[data-preset="editorial"] .diagram-container::after {+ position: absolute;+ z-index: 10;+ top: 0.72rem;+ right: 1.25rem;+ padding: 0.2rem 0.52rem;+ border: 1px solid var(--panel-border);+ background: var(--panel);+ color: var(--arrow-emphasis);+ content: attr(data-preset-badge-editorial-plate);+ font-family: Georgia, 'Times New Roman', serif;+ font-size: 0.52rem;+ font-style: italic;+ font-weight: 600;+ letter-spacing: 0.09em;+ pointer-events: none;+ }+ html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {+ content: "";+ position: absolute;+ inset: 0;+ pointer-events: none;+ background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);+ transform: translateX(-70%);+ animation: archify-signal-scan 4.8s ease-in-out 1 both;+ }++ /* Motion Governor gives the reader a real static state and gives the+ strongest semantic action the only motion budget. Atmosphere resets to+ its authored base instead of freezing mid-cycle. Static artifacts never+ start a decorative pulse or scan. */+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ }+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ }+ html[data-motion="still"] .pulse-dot,+ html[data-motion="still"] .diagram-container::before,+ html[data-motion="still"] svg[data-animation="trace"] [data-animate],+ html[data-motion-owner] .pulse-dot,+ html[data-motion-owner] .diagram-container::before,+ html[data-motion-owner] svg[data-animation="trace"] [data-animate],+ html[data-embed="true"] .pulse-dot,+ html[data-embed="true"] .diagram-container::before,+ html[data-share-playback="true"] .pulse-dot,+ html[data-share-playback="true"] .diagram-container::before,+ html[data-document-hidden="true"] .pulse-dot,+ html[data-document-hidden="true"] .diagram-container::before,+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-animate],+ html[data-motion="still"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-motion-owner] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ }+ html[data-motion="still"] .diagram-container::before,+ html[data-motion-owner] .diagram-container::before,+ html[data-embed="true"] .diagram-container::before,+ html[data-share-playback="true"] .diagram-container::before {+ opacity: 0;+ }+ html[data-motion="still"] .intent-trace-flow,+ html[data-motion="still"] .route-probe-flow,+ html[data-motion="still"] .route-journey-flow,+ html[data-motion="still"] .semantic-lens-flow,+ html[data-motion="still"] .diagram-guide,+ html[data-motion="still"] .overview-map-live,+ html[data-document-hidden="true"] .intent-trace-flow,+ html[data-document-hidden="true"] .route-probe-flow,+ html[data-document-hidden="true"] .route-journey-flow,+ html[data-document-hidden="true"] .semantic-lens-flow,+ html[data-document-hidden="true"] .diagram-guide,+ html[data-document-hidden="true"] .overview-map-live {+ animation: none !important;+ }++ html[data-motion="still"] .intent-trace-flow,+ html[data-motion="still"] .route-probe-flow {+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+ }+ html[data-motion="still"] .route-journey-overlay,+ html[data-document-hidden="true"] .route-journey-overlay { display: none !important; }+ html[data-motion="still"] .relationship-pulse-overlay { display: none !important; }++ html[data-motion="still"] svg [data-node-id],+ html[data-motion="still"] svg [data-edge-from],+ html[data-motion="still"] svg [data-detail],+ html[data-motion="still"] svg [data-detail-anchor],+ html[data-motion="still"] svg [data-legend-hit],+ html[data-motion="still"] svg {+ transition: none !important;+ }++ svg {+ font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;+ width: 100%;+ min-width: min(900px, 100%);+ display: block;+ transform-origin: 0 0;+ transition: transform 0.18s ease;+ }++ .diagram-container.is-camera-moving svg {+ transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);+ }+ .diagram-container.is-camera-transaction svg { transition: none; }+ .diagram-container.is-pannable { cursor: grab; }+ .diagram-container.is-panning { cursor: grabbing; user-select: none; }+ .diagram-container.is-panning svg { transition: none; }++ .diagram-nav {+ position: absolute;+ right: 1rem;+ bottom: 1rem;+ z-index: 12;+ translate: 0 calc(-1 * var(--archify-dock-lift, 0px));+ display: inline-flex;+ align-items: center;+ max-width: calc(100% - 2rem);+ padding: 0.25rem;+ gap: 0.0625rem;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ border-radius: 0.75rem;+ background: color-mix(in srgb, var(--panel) 84%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(14px) saturate(1.2);+ scrollbar-width: none;+ }+ .diagram-nav::-webkit-scrollbar { display: none; }+ .diagram-nav button,+ .focus-chip button {+ border: 0;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+ }+ .diagram-nav button {+ min-width: 2rem;+ height: 2rem;+ padding: 0 0.4rem;+ border-radius: 0.5rem;+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ letter-spacing: 0;+ transition: background 0.15s, color 0.15s;+ }+ .diagram-nav button:hover,+ .diagram-nav button:focus-visible {+ color: var(--text);+ background: color-mix(in srgb, var(--text) 6%, transparent);+ }+ .diagram-nav button:hover,+ .diagram-nav button:focus-visible,+ .focus-chip button:hover,+ .focus-chip button:focus-visible { background: var(--toolbar-hover); }+ .diagram-nav button:focus-visible,+ .focus-chip button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .diagram-nav button:disabled { opacity: 0.38; cursor: default; }+ /* The Guide stays on the ? shortcut; Map only earns dock space once the+ reader has zoomed past the full diagram (or opened it from the keyboard). */+ .diagram-nav button[hidden] { display: none; }+ .diagram-container:not(.is-pannable) #btn-overview-map:not([data-radar-requested]):not(:focus) { display: none; }+ .diagram-nav button:disabled:hover { background: transparent; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ min-width: auto;+ padding-inline: 0.6rem;+ color: var(--text-muted);+ font-weight: 500;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ position: relative;+ margin-left: 0.375rem;+ }+ .diagram-nav #btn-node-finder::before,+ .diagram-nav [data-view="out"]::before {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: -0.19rem;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 90%, transparent);+ content: "";+ pointer-events: none;+ }+ .diagram-nav-icon {+ display: block;+ width: 0.875rem;+ height: 0.875rem;+ margin: auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .diagram-nav-icon.find {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.guide {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.minus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.plus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav [data-view="reset"] {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.2rem;+ min-width: 3.1rem;+ padding-inline: 0.35rem;+ }+ .diagram-nav [data-view="reset"][data-detail-visible] {+ min-width: 3.8rem;+ }+ .diagram-nav-detail {+ color: color-mix(in srgb, var(--toolbar-text) 52%, transparent);+ font-size: 0.44rem;+ font-weight: 700;+ line-height: 1;+ letter-spacing: 0.07em;+ }+ .diagram-nav-percent {+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ line-height: 1;+ }+ /* Mode buttons carry a small glyph so the dock reads as one icon language. */+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ display: inline-flex;+ align-items: center;+ gap: 0.375rem;+ padding-inline: 0.55rem 0.65rem;+ }+ .diagram-nav #btn-route-probe::before,+ .diagram-nav #btn-overview-map::before,+ .diagram-nav #btn-semantic-lens::before {+ flex: none;+ width: 0.875rem;+ height: 0.875rem;+ background: currentColor;+ content: "";+ opacity: 0.85;+ -webkit-mask: var(--nav-glyph) center / contain no-repeat;+ mask: var(--nav-glyph) center / contain no-repeat;+ }+ .diagram-nav #btn-route-probe { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='4.8' cy='14.8' r='2.2'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2'/%3E%3Cpath d='M6.9 13.9c3.8-1.4 2.6-6.3 6.2-7.8'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-overview-map { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.8 5.4 7.4 3.5l5.2 2 4.6-1.9v11l-4.6 1.9-5.2-2-4.6 1.9z'/%3E%3Cpath d='M7.4 3.5v11M12.6 5.5v11'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-semantic-lens { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.8'/%3E%3Ccircle cx='10' cy='10' r='2.6'/%3E%3C/g%3E%3C/svg%3E"); }+ /* Zoom out / level / zoom in join into one stepper well. */+ .diagram-nav [data-view="out"],+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] {+ border-radius: 0;+ background: color-mix(in srgb, var(--text) 4.5%, transparent);+ }+ .diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }+ .diagram-nav [data-view="out"]::before { display: none; }+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] { margin-left: -0.0625rem; }+ .diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="out"]:hover,+ .diagram-nav [data-view="reset"]:hover,+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }+ .diagram-nav [data-view="out"]:disabled,+ .diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }+ .diagram-nav [data-view="out"]:disabled:hover,+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .diagram-nav [data-view="reset"] { min-width: 3.25rem; }+ .diagram-container[data-camera-indicator="true"] .diagram-nav-detail,+ .diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }+ .diagram-nav #btn-diagram-guide[aria-expanded="true"] {+ color: var(--cloud-stroke);+ background: var(--toolbar-hover);+ }++ /* Semantic Radar is a deliberately simplified, viewer-only overview. It+ uses authored node bounds and the live camera viewport rather than+ cloning the canonical SVG, so IDs, filters, animation, and export state+ stay singular and deterministic. */+ .overview-map {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 12;+ width: 11.25rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.78rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.625rem;+ }+ .overview-map[hidden] { display: none; }+ .overview-map[data-docked="true"] {+ position: fixed;+ right: var(--archify-radar-right, 1rem);+ top: var(--archify-radar-top, 1rem);+ bottom: auto;+ }+ .overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 1rem);+ }+ html[data-preset="blueprint"] .overview-map { border-radius: 0.28rem; }+ .overview-map-head {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.45rem;+ min-height: 2.25rem;+ padding: 0.42rem 0.48rem 0.38rem 0.55rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .overview-map[data-panel-dragging="true"] .overview-map-head { cursor: grabbing; }+ .overview-map[data-placement-invalid="true"] {+ border-color: var(--security-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);+ }+ .overview-map[data-compact="true"] {+ width: 7.4rem;+ }+ .overview-map[data-compact="true"] .overview-map-head {+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.24rem;+ min-height: 1.5rem;+ padding: 0.05rem 0.16rem 0.05rem 0.32rem;+ border-bottom: 0;+ }+ .overview-map[data-compact="true"] .overview-map-live,+ .overview-map[data-compact="true"] .overview-map-copy,+ .overview-map[data-compact="true"] .overview-map-surface,+ .overview-map[data-compact="true"] .overview-map-hint {+ display: none;+ }+ .overview-map[data-compact="true"] .overview-map-expand { display: inline-flex; }+ .overview-map[data-compact="true"] .overview-map-close {+ width: 1.15rem;+ height: 1.15rem;+ font-size: 0.72rem;+ }+ .overview-map-live {+ width: 0.42rem;+ height: 0.42rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);+ animation: archify-radar-live 2.4s ease-out infinite;+ }+ .overview-map-copy { min-width: 0; line-height: 1.1; }+ .overview-map-copy strong {+ display: block;+ overflow: hidden;+ color: var(--frontend-stroke);+ font-size: 0.59rem;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .overview-map-copy small {+ display: block;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.52rem;+ letter-spacing: 0.04em;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .overview-map-expand {+ display: none;+ align-items: center;+ justify-content: center;+ min-width: 0;+ height: 1.2rem;+ padding: 0 0.34rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.3rem;+ background: transparent;+ color: var(--frontend-stroke);+ font: inherit;+ font-size: 0.49rem;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ white-space: nowrap;+ cursor: pointer;+ }+ .overview-map-close {+ width: 1.55rem;+ height: 1.55rem;+ padding: 0;+ border: 0;+ border-radius: 0.34rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.9rem;+ cursor: pointer;+ }+ .overview-map-expand:hover,+ .overview-map-expand:focus-visible,+ .overview-map-close:hover,+ .overview-map-close:focus-visible { background: var(--toolbar-hover); }+ .overview-map-expand:focus-visible,+ .overview-map-close:focus-visible,+ .overview-map-surface:focus-visible,+ .overview-map-node:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .overview-map-surface {+ position: relative;+ height: 7rem;+ margin: 0.42rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);+ border-radius: 0.42rem;+ background:+ linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ color-mix(in srgb, var(--bg) 86%, transparent);+ background-size: 12px 12px;+ cursor: crosshair;+ touch-action: none;+ }+ html[data-preset="blueprint"] .overview-map-surface { border-radius: 0.1rem; }+ .overview-map-surface > svg {+ width: 100%;+ height: 100%;+ min-width: 0;+ transform: none !important;+ transition: none !important;+ display: block;+ overflow: visible;+ }+ .overview-map-node {+ fill: var(--backend-stroke);+ fill-opacity: 0.52;+ stroke: var(--backend-stroke);+ stroke-opacity: 0.86;+ vector-effect: non-scaling-stroke;+ cursor: pointer;+ transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;+ }+ .overview-map-node[data-kind="frontend"],+ .overview-map-node[data-kind="start"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }+ .overview-map-node[data-kind="database"],+ .overview-map-node[data-kind="success"] { fill: var(--database-stroke); stroke: var(--database-stroke); }+ .overview-map-node[data-kind="cloud"],+ .overview-map-node[data-kind="waiting"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }+ .overview-map-node[data-kind="messagebus"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }+ .overview-map-node[data-kind="security"],+ .overview-map-node[data-kind="decision"],+ .overview-map-node[data-kind="failure"] { fill: var(--security-stroke); stroke: var(--security-stroke); }+ .overview-map-node[data-kind="external"],+ .overview-map-node[data-kind="neutral"] { fill: var(--external-stroke); stroke: var(--external-stroke); }+ .overview-map-node[data-radar-active="true"],+ .overview-map-node:hover,+ .overview-map-node:focus-visible {+ fill-opacity: 0.92;+ stroke-width: 2.2;+ filter: drop-shadow(0 0 3px currentColor);+ }+ .overview-map-viewport {+ fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);+ stroke: var(--frontend-stroke);+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));+ }+ .overview-map-hint {+ display: flex;+ justify-content: space-between;+ gap: 0.5rem;+ padding: 0 0.52rem 0.46rem;+ color: var(--text-faint);+ font-size: 0.49rem;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ }+ .diagram-nav #btn-overview-map[aria-expanded="true"] {+ color: var(--frontend-stroke);+ background: color-mix(in srgb, var(--frontend-stroke) 11%, transparent);+ }+ .overview-map-feedback {+ position: absolute;+ right: 1rem;+ bottom: 4.15rem;+ z-index: 13;+ max-width: min(16rem, calc(100% - 2rem));+ padding: 0.38rem 0.55rem;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.5rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);+ font-size: 0.52rem;+ line-height: 1.35;+ pointer-events: none;+ }+ .overview-map-feedback[hidden] { display: none; }+ .focus-chip[data-radar-yielded="true"] { display: none !important; }+ .diagram-nav #btn-route-probe[aria-pressed="true"] {+ color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-stroke) 11%, transparent);+ }+ .diagram-nav #btn-semantic-lens[aria-expanded="true"],+ .diagram-nav #btn-semantic-lens[aria-pressed="true"] {+ color: var(--database-stroke);+ background: color-mix(in srgb, var(--database-stroke) 11%, transparent);+ }++ /* Semantic Lens turns the compiled node-kind palette into an analytical+ legend. One kind reveals its real traffic; two kinds compare only their+ direct authored relationships. Geometry and the canonical SVG stay put. */+ .semantic-lens {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 24;+ width: min(20rem, calc(100% - 2rem));+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);+ backdrop-filter: blur(18px);+ animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+ }+ .semantic-lens[hidden] { display: none; }+ .semantic-lens[data-dock-side="left"] { left: 1rem; right: auto; }+ .semantic-lens[data-dock-side="right"] { left: auto; right: 1rem; }+ html[data-preset="blueprint"] .semantic-lens { border-radius: 0.28rem; }+ .semantic-lens-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.72rem 0.78rem 0.62rem;+ border-bottom: 1px solid var(--toolbar-border);+ }+ .semantic-lens-eyebrow {+ display: block;+ color: var(--database-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ }+ .semantic-lens-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.82rem;+ letter-spacing: -0.02em;+ }+ .semantic-lens-close {+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .semantic-lens-close:hover,+ .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }+ .semantic-lens-instruction {+ margin: 0;+ padding: 0.52rem 0.78rem 0.48rem;+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+ }+ .semantic-lens-kinds {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.3rem;+ max-height: min(15rem, 40vh);+ padding: 0 0.5rem 0.5rem;+ overflow-y: auto;+ scrollbar-width: thin;+ }+ .semantic-lens-kind {+ --lens-color: var(--external-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.42rem;+ min-width: 0;+ min-height: 2.15rem;+ padding: 0.35rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--panel) 76%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;+ }+ html[data-preset="blueprint"] .semantic-lens-kind { border-radius: 0.12rem; }+ .semantic-lens-kind[data-kind="frontend"],+ .semantic-lens-kind[data-kind="start"] { --lens-color: var(--frontend-stroke); }+ .semantic-lens-kind[data-kind="backend"],+ .semantic-lens-kind[data-kind="active"] { --lens-color: var(--backend-stroke); }+ .semantic-lens-kind[data-kind="database"],+ .semantic-lens-kind[data-kind="success"] { --lens-color: var(--database-stroke); }+ .semantic-lens-kind[data-kind="cloud"],+ .semantic-lens-kind[data-kind="waiting"] { --lens-color: var(--cloud-stroke); }+ .semantic-lens-kind[data-kind="messagebus"] { --lens-color: var(--messagebus-stroke); }+ .semantic-lens-kind[data-kind="security"],+ .semantic-lens-kind[data-kind="decision"],+ .semantic-lens-kind[data-kind="failure"] { --lens-color: var(--security-stroke); }+ .semantic-lens-kind:hover,+ .semantic-lens-kind:focus-visible,+ .semantic-lens-kind[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));+ background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));+ }+ .semantic-lens-kind:focus-visible,+ .semantic-lens-close:focus-visible,+ .semantic-lens-actions button:focus-visible {+ outline: 2px solid var(--database-stroke);+ outline-offset: 1px;+ }+ .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }+ .semantic-lens-swatch {+ width: 0.48rem;+ height: 0.48rem;+ border-radius: 50%;+ background: var(--lens-color);+ box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);+ }+ .semantic-lens-kind strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.61rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-lens-kind em {+ color: var(--lens-color);+ font-size: 0.54rem;+ font-style: normal;+ font-weight: 800;+ }+ .semantic-lens-status {+ min-height: 2.5rem;+ margin: 0;+ padding: 0.55rem 0.78rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+ }+ .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }+ .semantic-lens-actions {+ display: flex;+ justify-content: flex-end;+ gap: 0.28rem;+ padding: 0 0.62rem 0.62rem;+ }+ .semantic-lens-actions button {+ min-height: 1.8rem;+ padding: 0.28rem 0.48rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.56rem;+ cursor: pointer;+ }+ .semantic-lens-actions button:hover { background: var(--toolbar-hover); }+ .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }+ @keyframes archify-lens-in {+ from { opacity: 0; transform: translateY(5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }++ /* Route Probe answers a reader question over the compiled semantic graph:+ choose two stable nodes and reveal the shortest authored directed route.+ The receipt and signal live entirely in the viewer layer. */+ .route-probe {+ position: absolute;+ left: 1rem;+ bottom: calc(1rem + var(--archify-nav-reserve));+ z-index: 12;+ width: min(46rem, calc(100% - 25rem));+ min-width: 18rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.75rem;+ }+ .route-probe[hidden] { display: none; }+ /* Picking needs one line of guidance, not a wide empty card; the panel+ widens only when there is a traced route to show. */+ .route-probe:not([data-state="result"]) { width: min(22rem, calc(100% - 2rem)); min-width: 0; }+ .route-probe-path:has(> .route-probe-placeholder:only-child) { display: none; }+ .route-probe[data-route-dock="top"] {+ top: 1rem;+ bottom: auto;+ }+ html[data-preset="blueprint"] .route-probe { border-radius: 0.25rem; }+ .route-probe-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.65rem;+ padding: 0.625rem 0.75rem 0.5rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);+ }+ .route-probe-copy { min-width: 0; }+ .route-probe-eyebrow {+ display: block;+ color: var(--backend-stroke);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .route-probe-title {+ display: block;+ margin-top: 0.14rem;+ overflow: hidden;+ color: var(--toolbar-text);+ font-size: 0.875rem;+ font-weight: 600;+ line-height: 1.3;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .route-probe-actions { display: flex; gap: 0.2rem; }+ .route-probe button {+ min-height: 1.55rem;+ padding: 0.25rem 0.42rem;+ border: 0;+ border-radius: 0.36rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+ }+ .route-probe button:hover,+ .route-probe button:focus-visible { background: var(--toolbar-hover); }+ .route-probe button:focus-visible {+ outline: 2px solid var(--backend-stroke);+ outline-offset: 1px;+ }+ .route-probe-copy-link { color: var(--frontend-stroke) !important; }+ .route-probe-find { color: var(--backend-stroke) !important; }+ .route-probe-copy-link[hidden] { display: none; }+ .route-probe-find[hidden] { display: none; }+ .route-probe-path {+ display: flex;+ align-items: center;+ min-height: 2.2rem;+ padding: 0.42rem 0.58rem 0.24rem;+ overflow-x: auto;+ scrollbar-width: thin;+ white-space: nowrap;+ }+ .route-probe-node,+ .route-probe button.route-probe-node {+ flex: none;+ max-width: 9.5rem;+ overflow: hidden;+ min-height: 1.75rem !important;+ padding: 0.22rem 0.38rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));+ border-radius: 999px;+ background: color-mix(in srgb, var(--backend-fill) 52%, transparent);+ color: var(--text);+ font-size: 0.56rem;+ font-weight: 700;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .route-probe-node[data-endpoint="start"] {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+ }+ .route-probe-node[data-endpoint="end"] {+ border-color: var(--security-stroke);+ color: var(--security-stroke);+ }+ .route-probe-node[data-route-journey-state="past"] { opacity: 0.66; }+ .route-probe-node[data-route-journey-state="future"] { opacity: 0.48; }+ .route-probe-node[aria-current="step"] {+ border-color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));+ color: var(--text);+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);+ opacity: 1;+ }+ html[data-preset="blueprint"] .route-probe-node[aria-current="step"] {+ border-style: double;+ border-width: 3px;+ border-radius: 0.2rem;+ box-shadow: none;+ }+ .route-probe-arrow {+ flex: none;+ padding: 0 0.28rem;+ color: var(--text-faint);+ font-size: 0.65rem;+ }+ .route-probe-placeholder {+ color: var(--text-faint);+ font-size: 0.75rem;+ }+ .route-probe-status {+ display: block;+ min-height: 1.45rem;+ padding: 0.5rem 0.75rem 0.625rem;+ color: var(--text-muted, var(--text-faint));+ font-size: 0.75rem;+ line-height: 1.45;+ }+ .route-journey-controls {+ display: grid;+ grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);+ justify-content: start;+ gap: 0.22rem;+ padding: 0.08rem 0.58rem 0.28rem;+ }+ .route-journey-controls[hidden] { display: none; }+ .route-journey-controls button {+ min-height: 1.8rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);+ font-size: 0.54rem;+ font-weight: 700;+ }+ .route-journey-controls button:disabled {+ cursor: default;+ opacity: 0.34;+ }+ .route-journey-play { color: var(--backend-stroke) !important; }+ .route-journey-overview { color: var(--frontend-stroke) !important; }+ .route-journey-controls[data-playing="true"] .route-journey-play {+ border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));+ background: color-mix(in srgb, var(--backend-fill) 62%, transparent);+ }+ .route-probe[data-state="error"] {+ border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));+ }+ .route-probe[data-state="error"] .route-probe-status { color: var(--security-stroke); }++ .focus-chip {+ position: absolute;+ left: 1rem;+ top: 1rem;+ z-index: 12;+ display: block;+ width: min(22rem, calc(100% - 13rem));+ max-width: calc(100% - 13rem);+ overflow: hidden;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.6875rem;+ }+ .focus-chip[hidden] { display: none; }+ html[data-preset="blueprint"] .focus-chip { border-radius: 0.3rem; }+ .focus-chip button {+ flex: none;+ padding: 0.3rem 0.45rem;+ border-radius: 0.35rem;+ font-size: 0.625rem;+ }+ .relationship-lens-head {+ position: relative;+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.9rem 0.75rem 0.65rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);+ }+ .relationship-lens-drag-handle {+ position: absolute;+ top: 0.12rem;+ left: 50%;+ width: 2.5rem;+ height: 0.78rem;+ padding: 0 !important;+ transform: translateX(-50%);+ color: var(--text-faint) !important;+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .relationship-lens-drag-handle::before {+ content: "";+ display: block;+ width: 1.25rem;+ margin: auto;+ border-top: 2px dotted currentColor;+ opacity: 0.72;+ }+ .focus-chip[data-panel-dragging="true"] .relationship-lens-drag-handle { cursor: grabbing; }+ @media (hover: none), (pointer: coarse) {+ .relationship-lens-drag-handle { display: none; }+ }+ .relationship-lens-copy { min-width: 0; }+ .relationship-lens-actions {+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ gap: 0.18rem;+ }+ .relationship-lens-actions button { white-space: nowrap; }+ .relationship-lens-actions #btn-focus-clear {+ display: grid;+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ place-items: center;+ color: var(--text-muted);+ font-size: 1rem;+ line-height: 1;+ }+ .relationship-lens-actions #btn-focus-clear:hover,+ .relationship-lens-actions #btn-focus-clear:focus-visible {+ background: var(--toolbar-hover);+ color: var(--text);+ }+ .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }+ .relationship-lens-actions #btn-focus-relations { display: none; }+ .relationship-lens-eyebrow {+ display: block;+ margin-bottom: 0.18rem;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ }+ .relationship-lens-title {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.8rem;+ line-height: 1.35;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-detail {+ display: block;+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-muted);+ font-size: 0.625rem;+ line-height: 1.4;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-detail[hidden] { display: none; }+ .semantic-passport-meta {+ display: flex;+ flex-wrap: wrap;+ gap: 0.24rem;+ margin-top: 0.42rem;+ }+ .semantic-passport-meta span,+ .semantic-passport-meta code {+ max-width: 100%;+ overflow: hidden;+ padding: 0.14rem 0.34rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 68%, transparent);+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ letter-spacing: 0.04em;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-meta [data-passport="kind"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));+ color: var(--frontend-stroke);+ font-weight: 800;+ text-transform: uppercase;+ }+ .semantic-passport-meta [data-passport="tag"] { color: var(--cloud-stroke); }+ .semantic-passport-meta [data-passport="brand"] {+ border-color: color-mix(in srgb, var(--messagebus-stroke) 52%, var(--toolbar-border));+ color: var(--messagebus-stroke);+ font-weight: 700;+ }+ .semantic-passport-meta [hidden] { display: none; }+ html[data-preset="blueprint"] .semantic-passport-meta span,+ html[data-preset="blueprint"] .semantic-passport-meta code { border-radius: 0.1rem; }+ .semantic-passport-evidence {+ margin-top: 0.52rem;+ padding: 0.5rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));+ }+ .semantic-passport-evidence[hidden] { display: none; }+ html[data-preset="blueprint"] .semantic-passport-evidence { border-radius: 0.18rem; }+ .semantic-passport-evidence-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.55rem;+ margin-bottom: 0.35rem;+ }+ .semantic-passport-evidence-status {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ color: var(--backend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ }+ .semantic-passport-evidence-status::before {+ content: '';+ width: 0.38rem;+ height: 0.38rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);+ }+ .semantic-passport-repository {+ min-width: 0;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-decoration: none;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-repository:hover,+ .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }+ .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }+ .semantic-passport-source {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.15rem 0.45rem;+ align-items: center;+ padding: 0.34rem 0.4rem;+ border: 1px solid transparent;+ border-radius: 0.38rem;+ color: var(--text-muted);+ text-decoration: none;+ }+ a.semantic-passport-source:hover,+ a.semantic-passport-source:focus-visible {+ border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);+ background: color-mix(in srgb, var(--backend-fill) 32%, transparent);+ color: var(--text);+ }+ .semantic-passport-source strong {+ overflow: hidden;+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-source code {+ color: var(--backend-stroke);+ font: inherit;+ font-size: 0.5rem;+ }+ .semantic-passport-source small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-summary {+ display: block;+ margin-top: 0.12rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+ }+ .semantic-passport-reach {+ display: grid;+ gap: 0.28rem;+ margin-top: 0.52rem;+ padding-top: 0.48rem;+ border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);+ }+ .semantic-passport-reach[hidden] { display: none; }+ .semantic-passport-reach-label {+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ }+ .semantic-passport-reach-actions {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 0.25rem;+ }+ .semantic-passport-reach-actions button {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.5rem;+ min-width: 0;+ min-height: 2rem;+ padding: 0.32rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--panel) 70%, transparent);+ color: var(--text-muted);+ text-align: left;+ }+ .semantic-passport-reach-actions button:hover:not(:disabled),+ .semantic-passport-reach-actions button:focus-visible {+ border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));+ color: var(--text);+ }+ .semantic-passport-reach-actions button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .semantic-passport-reach-actions button:disabled {+ cursor: default;+ opacity: 0.5;+ }+ .semantic-passport-reach-actions button[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));+ background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);+ color: var(--text);+ }+ #btn-reach-upstream {+ --reach-color: var(--database-stroke);+ --reach-fill: var(--database-fill);+ }+ #btn-reach-downstream {+ --reach-color: var(--backend-stroke);+ --reach-fill: var(--backend-fill);+ }+ .semantic-passport-reach-actions strong {+ color: var(--reach-color, var(--frontend-stroke));+ font-size: 0.625rem;+ }+ .semantic-passport-reach-status {+ color: var(--text-faint);+ font-size: 0.525rem;+ line-height: 1.4;+ }+ .semantic-passport-reach-status[hidden] { display: none; }+ .relationship-lens-list {+ max-height: min(18rem, 46vh);+ overflow: auto;+ padding: 0.4rem;+ scrollbar-width: thin;+ scrollbar-color: var(--frontend-stroke) transparent;+ }+ .relationship-lens-list::-webkit-scrollbar { width: 4px; }+ .relationship-lens-list::-webkit-scrollbar-thumb {+ border-radius: 999px;+ background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);+ }+ .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }+ .relationship-lens-group-title {+ display: block;+ padding: 0.24rem 0.38rem 0.16rem;+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }+ .relationship-lens-row {+ display: grid;+ grid-template-columns: 2.1rem minmax(0, 1fr);+ gap: 0.06rem 0.45rem;+ width: 100%;+ padding: 0.45rem 0.5rem !important;+ text-align: left;+ }+ .relationship-lens-row:hover,+ .relationship-lens-row:focus-visible,+ .relationship-lens-row[data-preview-active="true"] {+ background: var(--toolbar-hover);+ box-shadow: inset 2px 0 0 var(--frontend-stroke);+ }+ .relationship-lens-row:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+ }+ .relationship-lens-direction {+ grid-row: 1 / 3;+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ }+ .relationship-lens-row[data-direction="in"] .relationship-lens-direction { color: var(--database-stroke); }+ .relationship-lens-row[data-direction="loop"] .relationship-lens-direction { color: var(--security-stroke); }+ .relationship-lens-row strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.6875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-row small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-empty {+ margin: 0;+ padding: 0.75rem;+ color: var(--text-faint);+ font-size: 0.625rem;+ text-align: center;+ }++ /* Diagram Guide keeps the artifact's growing reader vocabulary+ discoverable without widening the permanent control bar. It derives+ honest counts at runtime and delegates every action to an existing+ production interaction instead of creating a second command system. */+ .diagram-guide {+ position: absolute;+ top: 1rem;+ right: 1rem;+ z-index: 26;+ width: min(32rem, calc(100% - 2rem));+ max-height: min(42rem, calc(100% - 2rem));+ overflow: auto;+ border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);+ backdrop-filter: blur(18px);+ animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+ }+ .diagram-guide[hidden] { display: none; }+ html[data-preset="blueprint"] .diagram-guide { border-radius: 0.28rem; }+ .diagram-guide-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 1rem;+ padding: 0.82rem 0.9rem 0.68rem;+ border-bottom: 1px solid var(--toolbar-border);+ }+ .diagram-guide-eyebrow {+ display: block;+ color: var(--cloud-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ }+ .diagram-guide-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.86rem;+ letter-spacing: -0.02em;+ }+ .diagram-guide-close {+ width: 1.8rem;+ height: 1.8rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .diagram-guide-close:hover,+ .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }+ .diagram-guide-stats {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin: 0;+ padding: 0.54rem 0.9rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);+ color: var(--text-faint);+ font-size: 0.56rem;+ letter-spacing: 0.025em;+ }+ .diagram-guide-stats::before {+ content: '';+ width: 0.42rem;+ height: 0.42rem;+ flex: none;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);+ }+ .diagram-guide-actions {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.38rem;+ padding: 0.62rem;+ }+ .diagram-guide-action {+ --guide-accent: var(--frontend-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ min-height: 4.15rem;+ padding: 0.55rem 0.58rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;+ }+ .diagram-guide-action[data-guide-action="route"] { --guide-accent: var(--backend-stroke); }+ .diagram-guide-action[data-guide-action="map"] { --guide-accent: var(--database-stroke); }+ .diagram-guide-action[data-guide-action="lens"] { --guide-accent: var(--messagebus-stroke); }++ .diagram-guide-action[data-guide-action="present"] {+ --guide-accent: var(--cloud-stroke);+ }+ .diagram-guide-action:hover,+ .diagram-guide-action:focus-visible {+ border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));+ background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));+ transform: translateY(-1px);+ }+ .diagram-guide-action:focus-visible,+ .diagram-guide-close:focus-visible {+ outline: 2px solid var(--cloud-stroke);+ outline-offset: 1px;+ }+ .diagram-guide-action:disabled {+ opacity: 0.42;+ cursor: default;+ transform: none;+ }+ .diagram-guide-index {+ display: grid;+ place-items: center;+ width: 1.65rem;+ height: 1.65rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));+ border-radius: 0.35rem;+ color: var(--guide-accent);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.06em;+ }+ .diagram-guide-action-copy { min-width: 0; }+ .diagram-guide-action strong {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.66rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .diagram-guide-action small {+ display: -webkit-box;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ line-height: 1.35;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+ }+ .diagram-guide kbd {+ align-self: start;+ min-width: 1.45rem;+ padding: 0.12rem 0.3rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ text-align: center;+ }+ .diagram-guide-shortcuts {+ display: flex;+ flex-wrap: wrap;+ gap: 0.34rem 0.62rem;+ padding: 0.58rem 0.9rem 0.68rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.5rem;+ }+ .diagram-guide-shortcuts span {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ white-space: nowrap;+ }+ .diagram-guide-feedback {+ min-height: 1rem;+ margin: -0.18rem 0.9rem 0.62rem;+ color: var(--security-stroke);+ font-size: 0.5rem;+ }+ .diagram-guide-feedback:empty { display: none; }+ @keyframes archify-guide-in {+ from { opacity: 0; transform: translateY(-5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }++ .node-finder {+ position: absolute;+ top: 1rem;+ left: 1rem;+ z-index: 24;+ display: flex;+ flex-direction: column;+ width: min(22rem, calc(100% - 2rem));+ max-height: calc(100% - 2rem);+ overflow: hidden;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);+ backdrop-filter: blur(16px);+ }+ .node-finder[hidden] { display: none; }+ .node-finder[data-context="route-source"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));+ }+ .node-finder[data-context="route-target"] {+ border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));+ }+ html[data-preset="blueprint"] .node-finder { border-radius: 0.3rem; }+ .node-finder-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.7rem 0.8rem 0.45rem;+ }+ .node-finder-head strong {+ color: var(--text);+ font-size: 0.6875rem;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ }+ .node-finder[data-context="route-source"] .node-finder-head strong { color: var(--frontend-stroke); }+ .node-finder[data-context="route-target"] .node-finder-head strong { color: var(--security-stroke); }+ .node-finder-close {+ width: 1.75rem;+ height: 1.75rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .node-finder-close:hover,+ .node-finder-close:focus-visible { background: var(--toolbar-hover); }+ .node-finder-close:focus-visible,+ .node-finder-result:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+ }+ .node-finder-search {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ margin: 0 0.55rem 0.55rem;+ padding: 0 0.7rem;+ min-height: 2.6rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ transition: border-color 160ms ease-out, box-shadow 160ms ease-out;+ }+ html[data-preset="blueprint"] .node-finder-search { border-radius: 0.18rem; }+ .node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }+ .node-finder-search:focus-within {+ border-color: var(--frontend-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);+ }+ .node-finder-input {+ appearance: none;+ width: 100%;+ min-width: 0;+ border: 0;+ outline: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ font-size: 0.75rem;+ }+ .node-finder-input:focus-visible { outline: none; }+ .node-finder-input::placeholder { color: var(--text-faint); }+ .node-finder kbd {+ padding: 0.1rem 0.32rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5625rem;+ }+ .node-finder-results {+ display: grid;+ flex: 1 1 auto;+ gap: 0;+ min-height: 0;+ max-height: min(18rem, 48vh);+ margin: 0 0.55rem 0.45rem;+ padding: 0;+ overflow-y: auto;+ overscroll-behavior: contain;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 54%, transparent);+ scroll-padding-block: 0.25rem;+ scrollbar-width: thin;+ }+ html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }+ .node-finder-result {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.2rem 0.75rem;+ width: 100%;+ min-height: 3.25rem;+ padding: 0.58rem 0.65rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background-color 160ms ease-out;+ }+ .node-finder-result:not(:last-child) {+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ }+ .node-finder-result:hover,+ .node-finder-result:focus-visible {+ position: relative;+ z-index: 1;+ background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));+ }+ .node-finder-result strong {+ overflow: hidden;+ font-size: 0.75rem;+ line-height: 1.25;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-finder-result small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ letter-spacing: 0.015em;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-finder-result em {+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.625rem;+ font-style: normal;+ }+ .node-finder[data-context^="route-"] .node-finder-result em {+ padding: 0.1rem 0.3rem;+ border: 1px solid color-mix(in srgb, currentColor 52%, transparent);+ border-radius: 999px;+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.05em;+ text-transform: uppercase;+ }+ .node-finder[data-context="route-target"] .node-finder-result em { color: var(--security-stroke); }+ .node-finder-empty {+ padding: 1.1rem 0.75rem 1.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: center;+ }+ .node-finder-status {+ margin: 0;+ padding: 0.1rem 0.8rem 0.65rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+ }++ .cards {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));+ gap: 1rem;+ margin-top: 2rem;+ }++ .card {+ background: var(--panel);+ border-radius: 0.75rem;+ border: 1px solid var(--panel-border);+ padding: 1.125rem 1.25rem;+ }++ html[data-preset="signal-flow"] .card {+ background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);+ }+ html[data-preset="signal-flow"][data-theme="light"] .card {+ background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);+ }++ /* Preserve the one-screen guarantee on ordinary laptop displays. The+ high-screen expansion above must not trade a fuller canvas for page+ scrolling at 900–1080px heights. */+ @media (min-width: 768px) and (max-height: 1100px) {+ .header { margin-bottom: 1rem; }+ .diagram-container {+ padding: 0.875rem;+ padding-bottom: calc(0.875rem + var(--archify-nav-reserve));+ }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ body { padding-block: 1.25rem; }+ body { --archify-page-top: 1.25rem; }+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ html[data-nav-stage-rail="true"] body { padding-block: 0.375rem; }+ /* Align the fixed toolbar with the compact title row. Reserve its hit area+ above the guide without taking extra height from a fitted diagram. */+ html[data-nav-stage-rail="true"] .toolbar { top: 0.25rem; }+ html[data-nav-stage-rail="true"] .header { min-height: 2.625rem; margin-bottom: 0.5rem; }+ html[data-nav-stage-rail="true"] .diagram-container[data-nav-stage-rail="true"] { padding-top: 0.5rem; }+ html[data-nav-stage-rail="true"] .cards { margin-top: 0.375rem; }+ }++ html[data-preset="blueprint"] .card {+ position: relative;+ border-color: var(--panel-border);+ border-radius: 0.3rem;+ background: var(--panel);+ box-shadow: none;+ }+ html[data-preset="blueprint"] .card::before {+ content: "";+ position: absolute;+ top: -1px;+ left: 1rem;+ width: 2.5rem;+ border-top: 2px solid var(--frontend-stroke);+ }++ html[data-preset="editorial"] .card {+ position: relative;+ border-radius: 0.28rem;+ background: var(--panel);+ box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);+ }+ html[data-preset="editorial"] .card::before {+ position: absolute;+ top: -1px;+ left: 1.25rem;+ width: 3.25rem;+ border-top: 3px solid var(--arrow-emphasis);+ content: "";+ }+ html[data-preset="editorial"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }++ /* Summary rail: the reader measures the viewport and enables it only when the+ diagram keeps its readable width beside the notes. */+ .reader-rail { display: contents; }+ html[data-reader-rail="true"] .container {+ display: grid;+ grid-template-columns: minmax(0, 1fr) var(--archify-rail-width);+ grid-auto-flow: row dense;+ column-gap: var(--archify-rail-gap);+ align-items: start;+ }+ html[data-reader-rail="true"] .container > .header { grid-column: 1 / -1; }+ html[data-reader-rail="true"] .container > .diagram-container { grid-column: 1; }+ /* The rail is at least the diagram's height and may run on to the viewport+ floor (--archify-rail-max, set by the reader); past that, notes scroll and+ the index keeps a usable share instead of collapsing to its header. */+ html[data-reader-rail="true"] .reader-rail {+ display: flex;+ flex-direction: column;+ grid-column: 2;+ align-self: stretch;+ min-height: 0;+ max-height: var(--archify-rail-max, none);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards {+ display: flex;+ flex: 0 1 auto;+ flex-direction: column;+ gap: 0;+ min-height: 0;+ margin-top: 0;+ padding: 0.125rem 0 0;+ overflow-y: auto;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards::-webkit-scrollbar { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card { flex: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card {+ padding: 0 0.25rem 1.125rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ box-shadow: none;+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card + .card {+ padding-top: 1.125rem;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card::before { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .card-header { gap: 0.55rem; margin-bottom: 0.45rem; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card h3 { font-size: 0.875rem; letter-spacing: -0.005em; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card ul { font-size: 0.8125rem; line-height: 1.6; }++ .node-outline { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .node-outline:not([hidden]) {+ display: flex;+ flex: 1 0 min(13rem, 55%);+ flex-direction: column;+ min-height: 0;+ margin-top: 0.25rem;+ overflow: hidden;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty + .node-outline:not([hidden]) { margin-top: 0; border-top: 0; }+ /* Collapsed: only the reveal control remains, so the diagram takes the width. */+ html[data-reader-rail="collapsed"] .reader-rail { display: none; }+ /* Overlay: a drawer for diagrams whose readable floor leaves no room to dock. */+ html[data-reader-rail="overlay"] .reader-rail {+ position: fixed;+ z-index: 150;+ top: 1rem;+ right: 1rem;+ bottom: 1rem;+ display: flex;+ flex-direction: column;+ width: var(--archify-rail-width);+ padding: 0.75rem 1rem 0.5rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 1rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 64px -18px rgba(15, 23, 42, 0.38);+ animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);+ }+ @keyframes rail-drawer-in {+ from { opacity: 0; transform: translateX(0.75rem); }+ to { opacity: 1; transform: translateX(0); }+ }+ /* Bottom (default): the notes keep their full-width card row and the index+ follows as one panel whose groups flow into columns, so nothing scrolls+ inside it. The placement toggle sits in the index header. */+ html[data-reader-rail="bottom"] .reader-rail {+ display: grid;+ grid-template-areas: "cards" "index";+ grid-template-columns: minmax(0, 1fr);+ row-gap: 1rem;+ margin-top: 1rem;+ }+ html[data-reader-rail="bottom"] .cards { grid-area: cards; margin-top: 0; }+ html[data-reader-rail="bottom"] .cards:empty { display: none; }+ html[data-reader-rail="bottom"] .node-outline:not([hidden]) {+ display: block;+ grid-area: index;+ padding: 0 1.25rem 0.75rem;+ border: 1px solid var(--panel-border);+ border-radius: 0.75rem;+ background: var(--panel);+ }+ html[data-reader-rail="bottom"] .reader-rail > .rail-controls {+ z-index: 1;+ grid-area: index;+ align-self: start;+ justify-self: end;+ margin: 0.625rem 0.625rem 0 0;+ }+ html[data-reader-rail="bottom"] .node-outline-head { padding: 1rem 2.5rem 0.375rem 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-list {+ columns: 15rem;+ column-gap: 1.75rem;+ padding: 0;+ overflow: visible;+ -webkit-mask-image: none;+ mask-image: none;+ }+ /* Named groups stay whole; a single unnamed group may split across columns,+ where a continuous spine would read as a broken line. */+ html[data-reader-rail="bottom"] .node-outline-group + .node-outline-group { margin-top: 0; }+ html[data-reader-rail="bottom"] .node-outline-group:has(> .node-outline-heading) { break-inside: avoid; padding-bottom: 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-group:not(:has(> .node-outline-heading)) > ul::before { display: none; }+ html[data-reader-rail="bottom"] .node-outline-group li { break-inside: avoid; }+ .rail-controls { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"], [data-reader-rail="bottom"]) .rail-controls {+ display: flex;+ flex: none;+ justify-content: flex-end;+ gap: 0.125rem;+ margin: -0.25rem -0.25rem 0.25rem 0;+ }+ .rail-control {+ display: inline-grid;+ place-items: center;+ width: 1.875rem;+ height: 1.875rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text-faint);+ cursor: pointer;+ transition: background 0.14s ease, color 0.14s ease;+ }+ .rail-control[hidden] { display: none; }+ .rail-control:hover,+ .rail-control:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }+ .rail-control:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: -1.5px; }+ .rail-control-icon,+ .rail-reveal-icon {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ -webkit-mask: var(--rail-glyph) center / contain no-repeat;+ mask: var(--rail-glyph) center / contain no-repeat;+ }+ /* Panel glyphs: a frame with the panel drawn on the side it moves to. */+ .rail-control-icon.placement,+ #rail-placement[data-placement="right"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M2.8 12h14.4'/%3E%3C/g%3E%3C/svg%3E"); }+ #rail-placement[data-placement="bottom"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-control-icon.collapse { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }+ .rail-reveal-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4M14.4 7.2h1M14.4 9.6h1M14.4 12h1'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-reveal[hidden] { display: none; }+ /* The collapsed rail leaves one quiet pill in the canvas corner. */+ .rail-reveal {+ position: absolute;+ z-index: 13;+ top: 0.75rem;+ right: 0.75rem;+ display: inline-flex;+ align-items: center;+ gap: 0.45rem;+ min-height: 2rem;+ padding: 0 0.75rem 0 0.625rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 86%, transparent);+ color: var(--text-muted);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(12px);+ font: inherit;+ font-size: 0.75rem;+ font-weight: 500;+ cursor: pointer;+ transition: color 0.14s ease, background 0.14s ease;+ }+ .rail-reveal:hover,+ .rail-reveal:focus-visible { color: var(--text); background: var(--panel); }+ .rail-reveal:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: 2px; }+ html[data-motion="still"] .reader-rail { animation: none !important; }+ .node-outline-head {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ padding: 1.125rem 0.25rem 0.375rem;+ }+ .node-outline-head strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .node-outline-count {+ min-width: 1.35rem;+ padding: 0.1rem 0.4rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 6%, transparent);+ color: var(--text-muted);+ font-size: 0.6875rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ font-variant-numeric: tabular-nums;+ }+ .node-outline-list {+ flex: 1 1 auto;+ min-height: 0;+ margin: 0 -0.375rem;+ padding: 0 0 1.25rem;+ overflow-y: auto;+ list-style: none;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ }+ .node-outline-list::-webkit-scrollbar { display: none; }+ .node-outline-group + .node-outline-group { margin-top: 0.25rem; }+ .node-outline-group > ul {+ position: relative;+ list-style: none;+ }+ /* A quiet spine ties each group's swatches together like a lane. */+ .node-outline-group > ul::before {+ position: absolute;+ top: 0.95rem;+ bottom: 0.95rem;+ left: calc(0.625rem + 0.3125rem - 0.5px);+ width: 1px;+ background: var(--panel-border);+ content: "";+ }+ .node-outline-heading {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ padding: 0.7rem 0.625rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .node-outline-heading small {+ color: var(--text-dim);+ font-size: 0.6875rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ }+ /* The rail frees the vertical budget, so compact viewports keep the normal+ title spacing instead of the stacked layout's tight stage rail. */+ html[data-reader-rail]:not([data-reader-rail="bottom"]) body { --archify-page-top: 1.5rem; padding-block: 1.5rem; }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .toolbar { top: calc(var(--archify-page-top) - 0.1875rem); }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .header { min-height: 0; margin-bottom: 1.125rem; }+ .node-outline-item {+ position: relative;+ display: grid;+ grid-template-columns: 0.625rem minmax(0, auto) minmax(0, 1fr) 0.75rem;+ align-items: center;+ column-gap: 0.625rem;+ width: 100%;+ min-height: 1.95rem;+ padding: 0.28rem 0.5rem 0.28rem 0.625rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background 0.16s ease;+ }+ /* Trailing chevron hints that a click focuses the node. */+ .node-outline-item::after {+ grid-column: 4;+ width: 0.75rem;+ height: 0.75rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0;+ transform: translateX(-3px);+ transition: opacity 0.16s ease, transform 0.16s ease;+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ }+ .node-outline-item:hover,+ .node-outline-item:focus-visible,+ .node-outline-item[data-previewing] { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .node-outline-item:hover::after,+ .node-outline-item:focus-visible::after { opacity: 0.7; transform: translateX(0); }+ .node-outline-item:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--outline-tone) 60%, transparent); outline-offset: -1.5px; }+ .node-outline-item[aria-current="true"] { background: color-mix(in srgb, var(--outline-tone) 10%, transparent); }+ .node-outline-item[aria-current="true"]::after { opacity: 0; }+ /* Swatches echo the diagram's node cards: tinted fill, hairline stroke. */+ .node-outline-dot {+ width: 0.625rem;+ height: 0.5rem;+ border: 1.25px solid var(--outline-tone);+ border-radius: 0.15rem;+ background: color-mix(in srgb, var(--outline-tone) 16%, var(--bg));+ transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;+ }+ .node-outline-item:hover .node-outline-dot,+ .node-outline-item:focus-visible .node-outline-dot,+ .node-outline-item[data-previewing] .node-outline-dot,+ .node-outline-item[aria-current="true"] .node-outline-dot {+ background: var(--outline-tone);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--outline-tone) 18%, transparent);+ transform: scale(1.08);+ }+ .node-outline-item strong {+ overflow: hidden;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-outline-item[aria-current="true"] strong { font-weight: 600; }+ .node-outline-item small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: right;+ text-overflow: ellipsis;+ white-space: nowrap;+ transition: color 0.16s ease;+ }+ .node-outline-item:hover small,+ .node-outline-item[data-previewing] small,+ .node-outline-item[aria-current="true"] small { color: var(--text-muted); }++ .card-header {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin-bottom: 0.625rem;+ }++ .card-dot {+ flex: none;+ width: 8px;+ height: 8px;+ border-radius: 50%;+ }++ .card-dot.cyan { background: var(--frontend-stroke); }+ .card-dot.emerald { background: var(--backend-stroke); }+ .card-dot.violet { background: var(--database-stroke); }+ .card-dot.amber { background: var(--cloud-stroke); }+ .card-dot.rose { background: var(--security-stroke); }+ .card-dot.orange { background: var(--messagebus-stroke); }+ .card-dot.slate { background: var(--external-stroke); }++ .card h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--text); }++ .card ul {+ list-style: none;+ color: var(--text-muted);+ font-size: 0.8125rem;+ line-height: 1.6;+ }++ .card li {+ position: relative;+ margin-bottom: 0.3rem;+ padding-left: 0.9rem;+ }+ .card li:last-child { margin-bottom: 0; }+ /* Hanging markers take the card's tone so wrapped lines align under text. */+ .card li::before {+ position: absolute;+ top: calc(0.8em - 2px);+ left: 0.2rem;+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: color-mix(in srgb, var(--card-tone, var(--text-muted)) 70%, transparent);+ content: "";+ }+ .card:has(.card-dot.cyan) { --card-tone: var(--frontend-stroke); }+ .card:has(.card-dot.emerald) { --card-tone: var(--backend-stroke); }+ .card:has(.card-dot.violet) { --card-tone: var(--database-stroke); }+ .card:has(.card-dot.amber) { --card-tone: var(--cloud-stroke); }+ .card:has(.card-dot.rose) { --card-tone: var(--security-stroke); }+ .card:has(.card-dot.orange) { --card-tone: var(--messagebus-stroke); }+ .card:has(.card-dot.slate) { --card-tone: var(--external-stroke); }+ .card-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-tone, transparent) 16%, transparent); }++ /* ==========================================================+ Print stylesheet — hide interactive controls, force light,+ drop the grid so the diagram doesn't waste ink, use landscape+ so wide diagrams fit, pack summary cards into 2 columns to+ avoid an orphan card on a trailing page.+ ========================================================== */+ @page { size: landscape; margin: 1.5cm; }++ @media print {+ /* Force the FULL light palette — including component fills/strokes and+ lane/arrow colors — so printing from dark theme doesn't put neon+ strokes and translucent dark fills on white paper. */+ :root, [data-theme="dark"], [data-theme="light"] {+ --bg: #ffffff;+ --grid: transparent;+ --panel: #ffffff;+ --panel-border: #e2e8f0;+ --text: #0f172a;+ --text-muted: #475569;+ --text-dim: #94a3b8;+ --text-faint: #64748b;+ --mask: #ffffff;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;+ --arrow: #94a3b8;+ --arrow-emphasis: #059669;+ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke:#ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;+ }+ body { background: #ffffff !important; padding: 0; }+ .container { max-width: none; }+ .toolbar, .diagram-nav, .focus-chip, .archify-toast, .no-print { display: none !important; }++ .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }+ .diagram-container { --archify-nav-reserve: 0px !important; }+ html[data-preset="signal-flow"] .diagram-container,+ html[data-preset="signal-flow"] .card { background: #ffffff; }+ .cards { grid-template-columns: 1fr 1fr; }+ /* Ensure elements break sensibly across pages */+ .card { break-inside: avoid; page-break-inside: avoid; }+ .diagram-container { break-inside: avoid; page-break-inside: avoid; }+ .diagram-container svg [data-detail] {+ opacity: 1 !important;+ pointer-events: auto !important;+ }+ .diagram-container svg [data-detail-anchor] { transform: none !important; }+ .diagram-container svg[data-lens-active] [data-node-id],+ .diagram-container svg[data-lens-active] [data-edge-from],+ .diagram-container svg[data-legend-preview-active] [data-node-id],+ .diagram-container svg[data-legend-preview-active] [data-edge-from] {+ opacity: 1 !important;+ filter: none !important;+ }+ [data-legend-bridge-runtime] { display: none !important; }+ .semantic-lens-overlay { display: none !important; }+ .relationship-hit-overlay { display: none !important; }+ .relationship-pulse-overlay { display: none !important; }+ .route-probe-overlay, .route-journey-overlay { display: none !important; }+ .diagram-container svg[data-focus-active] [data-node-id],+ .diagram-container svg[data-focus-active] [data-edge-from],+ .diagram-container svg[data-focus-active] [data-graph-role="automatic-crossover-underlay"],+ .diagram-container svg[data-reach-active] [data-node-id],+ .diagram-container svg[data-reach-active] [data-edge-from],+ .diagram-container svg[data-reach-active] [data-graph-role="automatic-crossover-underlay"],+ .diagram-container svg[data-route-active] [data-node-id],+ .diagram-container svg[data-route-active] [data-edge-from],+ .diagram-container svg[data-route-active] [data-graph-role="automatic-crossover-underlay"] {+ opacity: 1 !important;+ filter: none !important;+ animation: none !important;+ }+ h1, .subtitle { color: #0f172a; }+ }++ /* ==========================================================+ TOOLBAR (theme toggle + export menu)+ ========================================================== */+ /* The toolbar tracks the centered reader column and the title row, so+ an adaptive narrow reader does not leave its controls stranded at the+ viewport edge. */+ .toolbar {+ position: absolute;+ top: var(--archify-page-top);+ right: max(1rem, calc((100vw - min(100vw - 4rem, var(--archify-reader-width, 1440px))) / 2));+ display: flex;+ align-items: center;+ gap: 0.125rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;+ z-index: 100;+ }+ /* Ghost controls keep a 44px hit area while the visible pill stays compact;+ Export is the one primary action. */+ .toolbar button {+ position: relative;+ isolation: isolate;+ background: transparent;+ color: var(--text-muted);+ border: 0;+ padding: 0.5rem 0.75rem;+ border-radius: 0.5625rem;+ font-family: inherit;+ font-size: 0.8125rem;+ font-weight: 500;+ cursor: pointer;+ white-space: nowrap;+ box-shadow: none;+ transition: color 0.15s;+ display: inline-flex;+ align-items: center;+ gap: 0.4rem;+ min-height: 2.75rem;+ }+ .toolbar button::before {+ position: absolute;+ z-index: -1;+ inset: 0.375rem 0;+ border-radius: 0.5rem;+ background: transparent;+ content: "";+ transition: background 0.15s, box-shadow 0.15s;+ }+ .toolbar button:hover { color: var(--text); }+ .toolbar button:hover::before { background: color-mix(in srgb, var(--text) 6%, transparent); }+ .toolbar button[aria-expanded="true"],+ .toolbar button[aria-pressed="true"]:not(#btn-theme) { color: var(--text); }+ .toolbar button[aria-expanded="true"]::before,+ .toolbar button[aria-pressed="true"]:not(#btn-theme)::before {+ background: color-mix(in srgb, var(--text) 8%, transparent);+ }+ .toolbar #btn-export {+ margin-left: 0.375rem;+ padding-right: 0.95rem;+ padding-left: 1rem;+ color: var(--bg);+ font-weight: 550;+ }+ .toolbar #btn-export::before {+ background: var(--text);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -8px rgba(15, 23, 42, 0.4);+ }+ .toolbar #btn-export:hover,+ .toolbar #btn-export[aria-expanded="true"] { color: var(--bg); }+ .toolbar #btn-export:hover::before,+ .toolbar #btn-export[aria-expanded="true"]::before { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }+ .toolbar button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -4px;+ }+ .toolbar { gap: 0.5rem; }+ .toolbar #btn-export { margin-left: 0; }+ .toolbar #btn-export::before { inset: 0.25rem 0; border-radius: 0.6875rem; }+ /* Tools share one quiet capsule; the capsule is drawn inside the 44px row+ so the controls keep their hit area without a tall visible box. */+ .toolbar-group {+ position: relative;+ isolation: isolate;+ display: flex;+ align-items: center;+ gap: 0.0625rem;+ padding: 0 0.25rem;+ }+ .toolbar-group::before {+ position: absolute;+ z-index: -1;+ inset: 0.25rem 0;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 0.6875rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.22);+ backdrop-filter: blur(12px);+ content: "";+ }+ .toolbar-group button { padding-inline: 0.625rem; }+ .toolbar-group button::before { inset: 0.5rem 0; border-radius: 0.5rem; }+ /* Theme becomes a sliding switch; its label stays for assistive tech. */+ .toolbar #theme-label,+ .toolbar #present-label {+ position: absolute;+ width: 1px;+ height: 1px;+ overflow: hidden;+ clip: rect(0 0 0 0);+ white-space: nowrap;+ }+ .toolbar #btn-theme {+ width: 3.5rem;+ padding: 0;+ justify-content: center;+ }+ .toolbar #btn-theme::before {+ inset: 0.75rem 0.4375rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 9%, transparent);+ box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);+ }+ .toolbar #btn-theme:hover::before { background: color-mix(in srgb, var(--text) 13%, transparent); }+ .toolbar #btn-theme::after {+ position: absolute;+ z-index: 0;+ top: 50%;+ left: 0.5625rem;+ width: 1.125rem;+ height: 1.125rem;+ border-radius: 50%;+ background: var(--panel);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);+ content: "";+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ .toolbar #theme-icon {+ position: absolute;+ z-index: 1;+ top: 50%;+ left: calc(0.5625rem + 0.1875rem);+ width: 0.75rem;+ height: 0.75rem;+ color: var(--cloud-stroke);+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ [data-theme="dark"] .toolbar #btn-theme::before { background: rgba(148, 163, 184, 0.16); }+ [data-theme="dark"] .toolbar #btn-theme::after { left: calc(100% - 0.5625rem - 1.125rem); background: #3b4a63; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }+ [data-theme="dark"] .toolbar #theme-icon { left: calc(100% - 0.5625rem - 1.125rem + 0.1875rem); color: #c7d2fe; }+ .toolbar #btn-present { width: 2.5rem; padding: 0; justify-content: center; }+ .toolbar #btn-present .toolbar-icon { width: 1rem; height: 1rem; }+ html[data-motion="still"] .toolbar #btn-theme::after,+ html[data-motion="still"] .toolbar #theme-icon { transition: none; }+ html[data-present="true"]:not([data-embed="true"]) .toolbar { right: 1rem; }+ html[data-preset="editorial"] .toolbar { border-radius: 0.45rem; }+ .toolbar #btn-motion[hidden] { display: none !important; }+ .toolbar #btn-motion { min-width: 4.4rem; }+ .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E");+ }+ [data-theme="dark"] #theme-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .toolbar-chevron {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ }+ .toolbar #btn-preset { min-width: 5.4rem; }+ .preset-control-mark {+ width: 0.58rem;+ height: 0.58rem;+ flex: 0 0 auto;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.2rem;+ background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);+ transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;+ }+ #btn-preset[data-preset-option="signal-flow"] .preset-control-mark {+ border-radius: 50%;+ box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);+ }+ #btn-preset[data-preset-option="blueprint"] .preset-control-mark {+ border-radius: 0.06rem;+ background: transparent;+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);+ transform: rotate(45deg) scale(0.84);+ }+ #btn-preset[data-preset-option="editorial"] .preset-control-mark {+ border-color: var(--arrow-emphasis);+ border-radius: 0;+ background: var(--arrow-emphasis);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);+ transform: rotate(45deg) scale(0.72);+ }+ /* Menus anchor to the tools capsule so they open flush under it. */+ .toolbar-group .preset-wrap { position: static; }+ .toolbar .preset-menu {+ position: absolute;+ top: calc(100% + 0.125rem);+ right: 0;+ display: none;+ width: 17.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.375rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 0.875rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ }+ [data-theme="dark"] .toolbar .preset-menu,+ [data-theme="dark"] .toolbar .export-menu {+ border-color: rgba(148, 163, 184, 0.16);+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -12px rgba(0, 0, 0, 0.6);+ }+ /* Menu rows are not toolbar pills: drop the ghost-button pseudo surface. */+ .toolbar .preset-menu button,+ .toolbar .export-menu button { isolation: auto; min-height: 0; }+ .toolbar .preset-menu button::before { display: none; }+ .toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }+ .preset-menu-heading {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.45rem 0.55rem 0.4rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;+ }+ .preset-menu-shortcut {+ display: inline-flex;+ align-items: center;+ gap: 0.35rem;+ font-weight: 500;+ }+ .preset-menu-shortcut kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ }+ .toolbar .preset-option {+ display: grid;+ grid-template-columns: 2.375rem minmax(0, 1fr) 1rem;+ align-items: center;+ gap: 0.75rem;+ width: 100%;+ min-height: 3.125rem;+ margin-top: 0.125rem;+ padding: 0.45rem 0.6rem 0.45rem 0.5rem;+ border: 0;+ border-radius: 0.625rem;+ background: transparent;+ color: var(--text);+ box-shadow: none;+ backdrop-filter: none;+ text-align: left;+ transition: background 0.14s ease;+ }+ .toolbar .preset-option:hover,+ .toolbar .preset-option:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }+ .toolbar .preset-option[aria-checked="true"] { background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent); }+ .toolbar .preset-option:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;+ }+ .preset-option-swatch {+ position: relative;+ width: 2.375rem;+ height: 1.75rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.4375rem;+ background: #0f172a;+ box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 1px 2px rgba(15, 23, 42, 0.12);+ transition: box-shadow 0.14s ease, transform 0.14s ease;+ }+ .toolbar .preset-option:hover .preset-option-swatch { transform: translateY(-1px); }+ .toolbar .preset-option[aria-checked="true"] .preset-option-swatch {+ box-shadow: 0 0 0 2px var(--toolbar-menu-bg), 0 0 0 3.5px var(--frontend-stroke);+ }+ .preset-option-swatch::before,+ .preset-option-swatch::after { position: absolute; content: ""; }+ .preset-option-swatch.classic::before {+ top: 0.42rem;+ right: 0.35rem;+ bottom: 0.42rem;+ left: 0.35rem;+ border: 1px solid #22d3ee;+ border-radius: 0.16rem;+ background: rgba(34, 211, 238, 0.14);+ }+ /* Classic previews the canvas it will actually produce in this theme. */+ [data-theme="light"] .preset-option-swatch.classic {+ background:+ radial-gradient(circle at 1px 1px, #d9dee5 0.6px, transparent 0.9px) 0 0 / 5px 5px,+ #ffffff;+ }+ [data-theme="light"] .preset-option-swatch.classic::before {+ border-color: #1b87a3;+ background: rgba(14, 116, 144, 0.08);+ box-shadow: 0 2px 4px rgba(17, 24, 39, 0.12);+ }+ .preset-option-swatch.signal-flow {+ border-color: #29415f;+ background: linear-gradient(135deg, #07101e 10%, #10243c 100%);+ }+ .preset-option-swatch.signal-flow::before {+ top: 50%;+ right: 0.2rem;+ left: 0.2rem;+ height: 1px;+ background: linear-gradient(90deg, #67e8f9, #c4b5fd);+ box-shadow: 0 0 8px #67e8f9;+ }+ .preset-option-swatch.signal-flow::after {+ top: calc(50% - 0.13rem);+ right: 0.28rem;+ width: 0.26rem;+ height: 0.26rem;+ border-radius: 50%;+ background: #67e8f9;+ box-shadow: 0 0 7px #67e8f9;+ }+ .preset-option-swatch.blueprint {+ border-color: #34799a;+ border-radius: 0.08rem;+ background-color: #0a2031;+ background-image:+ linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),+ linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);+ background-size: 0.42rem 0.42rem;+ }+ .preset-option-swatch.blueprint::before {+ top: 0.34rem;+ right: 0.38rem;+ bottom: 0.34rem;+ left: 0.38rem;+ border: 1px solid #66d9ef;+ }+ .preset-option-swatch.editorial {+ border-color: #b8aa94;+ border-radius: 0.08rem;+ background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);+ }+ .preset-option-swatch.editorial::before {+ top: 0;+ bottom: 0;+ left: 0.42rem;+ width: 1px;+ background: #c9502d;+ opacity: 0.72;+ }+ .preset-option-swatch.editorial::after {+ top: 0.52rem;+ right: 0.45rem;+ width: 0.38rem;+ height: 0.38rem;+ background: #c9502d;+ transform: rotate(45deg);+ }+ .preset-option-copy { min-width: 0; }+ .preset-option-copy strong,+ .preset-option-copy small { display: block; }+ .preset-option-copy strong {+ color: var(--text);+ font-size: 0.8125rem;+ font-weight: 550;+ letter-spacing: -0.005em;+ }+ .toolbar .preset-option[aria-checked="true"] .preset-option-copy strong { font-weight: 650; }+ .preset-option-copy small {+ margin-top: 0.125rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 400;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;+ color: var(--frontend-stroke);+ background: currentColor;+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ opacity: 0;+ }+ .preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }+ html[data-preset="editorial"] .toolbar button,+ html[data-preset="editorial"] .preset-menu,+ html[data-preset="editorial"] .export-menu,+ html[data-preset="editorial"] .overview-map,+ html[data-preset="editorial"] .semantic-lens,+ html[data-preset="editorial"] .route-probe,+ html[data-preset="editorial"] .focus-chip,+ html[data-preset="editorial"] .diagram-guide,+ html[data-preset="editorial"] .node-finder {+ border-radius: 0.3rem;+ }+ .motion-control-dot {+ width: 0.46rem;+ height: 0.46rem;+ flex: 0 0 auto;+ border: 1px solid var(--frontend-stroke);+ border-radius: 50%;+ background: var(--frontend-stroke);+ box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);+ }+ #btn-motion[aria-pressed="false"] .motion-control-dot {+ background: transparent;+ box-shadow: none;+ }+ .toolbar .export-menu {+ position: absolute;+ top: calc(100% + 0.125rem);+ right: 0;+ background: var(--toolbar-menu-bg);+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.375rem;+ display: none;+ flex-direction: column;+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ scrollbar-width: thin;+ }+ .toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.55rem 0.6rem 0.6rem;+ }+ .export-menu-header strong,+ .export-menu-header span { display: block; }+ .export-menu-header strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .export-menu-header span {+ margin-top: 0.15rem;+ color: var(--text-faint);+ font-size: 0.75rem;+ }+ .export-menu-header kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.0625rem;+ }+ .export-menu-section + .export-menu-section {+ margin-top: 0.3rem;+ padding-top: 0.3rem;+ border-top: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.4rem 0.6rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;+ }+ .toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.7rem;+ background: transparent;+ border: 0;+ box-shadow: none;+ backdrop-filter: none;+ width: 100%;+ min-height: 2.5rem;+ text-align: left;+ padding: 0.4rem 0.6rem;+ border-radius: 0.5625rem;+ color: var(--text);+ white-space: nowrap;+ transition: background 0.14s ease;+ }+ .toolbar .export-menu button:hover,+ .toolbar .export-menu button:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }+ .toolbar .export-menu button:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;+ }+ /* Name and format hint share one line, so each row stays compact. */+ .export-item-copy {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 0.75rem;+ min-width: 0;+ }+ .export-item-copy strong {+ overflow: hidden;+ color: inherit;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ flex: none;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 450;+ }+ .toolbar .export-menu button::before {+ position: static;+ z-index: auto;+ inset: auto;+ border-radius: 0;+ display: block;+ width: 1rem;+ height: 1rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0.8;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-format^="svg"]::before,+ .toolbar .export-menu button[data-format="webm"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-action="route-share-card"],+ .toolbar .export-menu button[data-action="reach-share-card"] {+ color: var(--text);+ background: color-mix(in srgb, var(--frontend-stroke) 7%, transparent);+ }+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before { color: var(--frontend-stroke); opacity: 1; }+ .toolbar .export-menu button[hidden] { display: none; }+ .toolbar .export-menu button[data-action="route-share-card"]:hover,+ .toolbar .export-menu button[data-action="reach-share-card"]:hover {+ background: color-mix(in srgb, var(--frontend-stroke) 12%, transparent);+ }+ .toolbar .export-menu button:disabled {+ color: var(--text-faint);+ background: transparent;+ opacity: 0.55;+ cursor: not-allowed;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.6875rem;+ }++ /* Toast — brief feedback for actions like "copied" */+ .archify-toast {+ position: fixed;+ top: 1rem;+ left: 50%;+ transform: translateX(-50%) translateY(-8px);+ background: var(--toolbar-menu-bg);+ color: var(--text);+ border: 1px solid var(--toolbar-border);+ padding: 0.5rem 1rem;+ border-radius: 0.5rem;+ font-family: inherit;+ font-size: 0.75rem;+ opacity: 0;+ transition: opacity 0.2s, transform 0.2s;+ z-index: 200;+ pointer-events: none;+ box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ }+ .archify-toast.show {+ opacity: 1;+ transform: translateX(-50%) translateY(0);+ }++ @media (max-width: 720px) {+ body { padding: 1rem; }+ .toolbar .preset-menu,+ .toolbar .export-menu {+ position: fixed;+ top: 4.5rem;+ right: 1rem;+ left: 1rem;+ width: auto;+ max-width: none;+ }+ .toolbar {+ position: relative;+ top: auto;+ right: auto;+ justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;+ margin-bottom: 1rem;+ }+ .header { margin-bottom: 1.25rem; padding-right: 0; }+ html[data-preset="signal-flow"] .header,+ html[data-preset="blueprint"] .header,+ html[data-preset="editorial"] .header { padding-right: 0; }+ .header-row {+ gap: 0.75rem;+ align-items: flex-start;+ }+ html[data-preset="signal-flow"] .header-row,+ html[data-preset="blueprint"] .header-row,+ html[data-preset="editorial"] .header-row { flex-wrap: wrap; }+ html[data-preset="signal-flow"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ html[data-preset="blueprint"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ html[data-preset="editorial"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ h1 {+ font-size: 1.25rem;+ line-height: 1.25;+ }+ .subtitle {+ margin-left: 0;+ font-size: 0.8125rem;+ line-height: 1.55;+ }+ .diagram-container {+ padding: 0.75rem;+ border-radius: 0.75rem;+ }+ html:not([data-embed="true"]) .diagram-container {+ padding: 0.75rem 0.75rem 4.25rem;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] {+ overflow-x: auto;+ overflow-y: hidden;+ overscroll-behavior-x: contain;+ scrollbar-width: thin;+ scroll-behavior: smooth;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {+ min-width: 720px;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .diagram-nav,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .overview-map,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .focus-chip,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .route-probe,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .semantic-lens,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .diagram-guide,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .node-finder {+ transform: translateX(var(--archify-scroll-x, 0px));+ }+ .diagram-nav { right: 0.5rem; bottom: 0.5rem; }+ .diagram-nav button {+ min-width: 2.75rem;+ height: 2.75rem;+ }+ .diagram-nav [data-view="reset"] { min-width: 3.75rem; }+ .diagram-nav [data-view="reset"][data-detail-visible] { min-width: 4.35rem; }+ .overview-map {+ right: 0.5rem;+ bottom: 3.7rem;+ width: min(10.25rem, calc(100% - 1rem));+ }+ .overview-map[data-docked="true"] {+ right: var(--archify-radar-right, 0.5rem);+ top: var(--archify-radar-top, 0.5rem);+ bottom: auto;+ transform: none !important;+ }+ .overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 0.5rem);+ }+ .overview-map-surface { height: 4rem; }+ .overview-map-feedback { right: 0.5rem; bottom: 3.7rem; }+ .semantic-lens {+ right: 0.5rem;+ bottom: 3.7rem;+ width: calc(100% - 1rem);+ max-height: calc(100% - 4.2rem);+ }+ .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }+ .semantic-lens-kinds { max-height: min(12rem, 34vh); }+ .focus-chip {+ left: 0.5rem;+ top: 0.5rem;+ width: calc(100% - 1rem);+ max-width: none;+ }+ .relationship-lens-head { padding-top: 0.7rem; }+ .relationship-lens-drag-handle { display: none; }+ .relationship-lens-list { max-height: min(12rem, 38vh); }+ .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }+ .focus-chip:not([data-relations-expanded="true"]) .relationship-lens-head { border-bottom-color: transparent; }+ .focus-chip:not([data-relations-expanded="true"]) .relationship-lens-list { display: none; }+ /* While a mobile reader previews one relationship, turn the full Lens+ into a compact peek card. This keeps the exact source and target on+ canvas instead of covering them with a long, scrollable list. */+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-list {+ max-height: none;+ padding: 0.35rem;+ overflow: hidden;+ }+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-group { margin: 0; }+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-group-title,+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-row:not([data-preview-active="true"]) {+ display: none;+ }+ .node-finder {+ top: 0.5rem;+ left: 0.5rem;+ width: min(22rem, calc(100% - 1rem));+ max-height: calc(100% - 1rem);+ }+ .diagram-guide {+ top: 0.5rem;+ right: 0.5rem;+ left: 0.5rem;+ width: auto;+ max-height: calc(100% - 1rem);+ }+ .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }+ .diagram-guide-stats { padding: 0.42rem 0.7rem; }+ .diagram-guide-actions {+ grid-template-columns: 1fr;+ gap: 0.28rem;+ padding: 0.42rem;+ }+ .diagram-guide-action {+ min-height: 3.1rem;+ padding: 0.42rem 0.48rem;+ }+ .diagram-guide-action small {+ display: block;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .diagram-guide-index {+ width: 1.5rem;+ height: 1.5rem;+ }+ .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }+ .diagram-guide-action[data-guide-action="present"] { grid-column: auto; }+ .route-probe[data-guide-open="true"] {+ visibility: hidden;+ pointer-events: none;+ }+ .node-finder-results { max-height: min(16rem, 38vh); }+ .route-probe {+ left: 0.5rem;+ bottom: 3.7rem;+ width: calc(100% - 1rem);+ min-width: 0;+ }+ .route-probe[data-route-dock="top"] {+ top: 0.5rem;+ bottom: auto;+ }+ .route-probe[data-finder-open="true"] {+ visibility: hidden;+ pointer-events: none;+ }+ .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }+ .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }+ .route-probe-node { min-height: 2.75rem !important; }+ .route-journey-controls {+ grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);+ padding: 0.08rem 0.48rem 0.32rem;+ }+ .route-journey-controls button { min-height: 2.75rem; }+ .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }+ .route-probe-node { max-width: 7.5rem; }++++++++++++ html[data-embed="true"][data-share-playback="true"] .diagram-container {+ padding-top: 4.25rem;+ }+ html[data-embed="true"][data-share-moment="true"] .diagram-container {+ padding-top: 4.25rem;+ }++ .cards {+ grid-template-columns: 1fr;+ margin-top: 1rem;+ }+ html[data-present="true"]:not([data-embed="true"]) body { padding: 0.5rem; }+ html[data-present="true"]:not([data-embed="true"]) .container {+ gap: 0.5rem;+ height: calc(100dvh - 1rem);+ }+ html[data-present="true"]:not([data-embed="true"]) .toolbar {+ position: fixed;+ top: 0.5rem;+ right: 0.5rem;+ margin: 0;+ gap: 0.25rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .toolbar button {+ min-height: 2.75rem;+ padding: 0.42rem 0.58rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .header {+ min-height: 2.25rem;+ padding: 3.5rem 0 0;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row {+ min-height: 2.25rem;+ margin: 0;+ align-items: center;+ flex-wrap: nowrap;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row::after,+ html[data-present="true"]:not([data-embed="true"]) .pulse-dot,+ html[data-present="true"]:not([data-embed="true"]) .subtitle { display: none; }+ html[data-present="true"]:not([data-embed="true"]) h1 {+ flex: 1 1 auto;+ min-width: 0;+ max-width: 100%;+ overflow: hidden;+ font-size: 0.875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ html[data-present="true"]:not([data-embed="true"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }+ html[data-present="true"]:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {+ width: 720px;+ height: auto;+ min-width: 720px;+ }+ }++ @media (max-width: 420px) {+ .export-menu-section { grid-template-columns: 1fr; }+ .export-menu-heading,+ .toolbar .export-menu button[data-action="route-share-card"],+ .toolbar .export-menu button[data-action="reach-share-card"] { grid-column: 1; }+ }++ @media (prefers-reduced-motion: reduce) {+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open { animation: none; }+ .toolbar-chevron { transition: none; }+ }++ @media (max-width: 360px) {+ .toolbar { gap: 0.25rem; }+ .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }+ .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }+ #theme-label, #preset-label, #present-label { display: none; }+ }++ /* ==========================================================+ SVG SEMANTIC CLASSES — use these instead of inline fill/stroke+ ========================================================== */+ .c-grid { stroke: var(--grid); fill: none; }+ .c-mask { fill: var(--mask); stroke: none; }+ .c-lane-rule { stroke: var(--lane-stroke); fill: none; opacity: 0.7; }+ .c-lane-wash { fill: var(--lane-fill); stroke: none; }++ .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }+ .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }+ .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }+ .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }+ .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }+ .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }+ .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }++ /* Text helpers */+ .t-primary { fill: var(--text); }+ .t-muted { fill: var(--text-muted); }+ .t-dim { fill: var(--text-dim); }+ .t-frontend { fill: var(--frontend-stroke); }+ .t-backend { fill: var(--backend-stroke); }+ .t-database { fill: var(--database-stroke); }+ .t-cloud { fill: var(--cloud-stroke); }+ .t-security { fill: var(--security-stroke); }+ .t-messagebus { fill: var(--messagebus-stroke); }+ .t-external { fill: var(--external-stroke); }++ /* Relationship labels share the exact color token used by their path. */+ .t-edge-default { fill: var(--arrow); }+ .t-edge-emphasis { fill: var(--arrow-emphasis); }+ .t-edge-security { fill: var(--security-stroke); }+ .t-edge-dashed { fill: var(--database-stroke); }++ /* Classic canvas: a quiet dot field replaces drafting grid lines, and nodes+ read as lifted cards with hairline strokes. Paint only; authored geometry,+ hit areas and exports keep their canonical shapes. */+ html[data-preset="classic"] .diagram-container {+ background:+ radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.4px) 0 0 / 20px 20px,+ var(--panel);+ }+ html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }+ html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ }+ html[data-preset="classic"] .diagram-container > svg [data-edge-from] {+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ html[data-preset="classic"] .diagram-container > svg .c-lane-wash { fill: color-mix(in srgb, var(--text) 2.6%, transparent); }+ html[data-preset="classic"] .diagram-container > svg .c-lane-rule { stroke: var(--panel-border); opacity: 1; }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg .c-lane-rule { stroke: rgba(148, 163, 184, 0.16); }+ html[data-preset="classic"] .diagram-container > svg [data-node-id] {+ transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);+ }+ html[data-preset="classic"]:not([data-motion="still"]) .diagram-container > svg [data-node-id]:hover {+ transform: translateY(-1.5px);+ }++ /* Semantic Sigils are small authored role stamps, not icons from a brand+ pack and not viewer controls. Prefix selectors with svg so the canonical+ export's SVG-only stylesheet collector keeps them automatically. */+ svg .semantic-sigil {+ fill: none;+ stroke: currentColor;+ stroke-width: 1.35;+ stroke-linecap: round;+ stroke-linejoin: round;+ opacity: 0.76;+ pointer-events: none;+ }+ svg .semantic-sigil > * { vector-effect: non-scaling-stroke; }+ svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }+ svg .s-frontend { color: var(--frontend-stroke); }+ svg .s-backend { color: var(--backend-stroke); }+ svg .s-database { color: var(--database-stroke); }+ svg .s-cloud { color: var(--cloud-stroke); }+ svg .s-security { color: var(--security-stroke); }+ svg .s-messagebus { color: var(--messagebus-stroke); }+ svg .s-external { color: var(--external-stroke); }++ /* Brand Marks are authored identity badges. Their color is contained+ inside one neutral plate so vendor color never replaces Archify's+ semantic node and relationship vocabulary. */+ svg .brand-mark { pointer-events: none; }+ svg .brand-mark-badge { fill: #fff; stroke: none; }+ svg .brand-mark-frame {+ fill: none;+ stroke: #cbd5e1;+ stroke-width: 0.8;+ vector-effect: non-scaling-stroke;+ }+ svg .brand-mark-fallback {+ fill: none;+ stroke: #475569;+ stroke-width: 1.15;+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ svg[data-preset="blueprint"] .brand-mark-badge,+ svg[data-preset="blueprint"] .brand-mark-frame { rx: 1px; }++ /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the+ authored structure and primary labels, READ restores relationship labels+ and node context, and FULL restores tags and fine annotations. Semantic+ intent can reveal the relevant detail without moving any geometry. */+ svg [data-detail] { transition: opacity 160ms ease; }+ svg [data-detail-anchor] {+ transform-box: fill-box;+ transform-origin: center;+ transition: transform 160ms ease;+ }+ .diagram-container[data-detail-level="map"] svg [data-detail="context"],+ .diagram-container[data-detail-level="map"] svg [data-detail="fine"],+ .diagram-container[data-detail-level="read"] svg [data-detail="fine"] {+ opacity: 0;+ pointer-events: none;+ }+ .diagram-container[data-detail-level="map"] svg [data-detail-anchor] {+ transform: translateY(8px);+ }++ /* Focus, lens, preview, route, and story states are stronger reader intent than+ the global zoom level. Reveal only their exact semantic matches. */+ svg[data-focus-active] [data-focus-match][data-detail],+ svg[data-focus-active] [data-focus-match] [data-detail],+ svg[data-reach-active] [data-reach-match][data-detail],+ svg[data-reach-active] [data-reach-match] [data-detail],+ svg[data-lens-active] [data-lens-match][data-detail],+ svg[data-lens-active] [data-lens-match] [data-detail],+ svg[data-legend-preview-active] [data-legend-preview-match][data-detail],+ svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],+ svg[data-intent-trace-active] [data-intent-trace-match][data-detail],+ svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],+ svg[data-route-active] [data-route-match][data-detail],+ svg[data-route-active] [data-route-match] [data-detail],+ svg[data-relationship-preview-active] [data-relationship-preview][data-detail],+ svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],+ svg [data-node-id]:hover [data-detail],+ svg [data-node-id]:focus-visible [data-detail] {+ opacity: 1;+ pointer-events: auto;+ }+ svg[data-focus-active] [data-focus-match] [data-detail-anchor],+ svg[data-reach-active] [data-reach-match] [data-detail-anchor],+ svg[data-lens-active] [data-lens-match] [data-detail-anchor],+ svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],+ svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],+ svg[data-route-active] [data-route-match] [data-detail-anchor],+ svg [data-node-id]:hover [data-detail-anchor],+ svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }++ /* Arrows */+ .a-default { stroke: var(--arrow); fill: none; }+ .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }+ .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }+ .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }++ /* Arrowhead markers reference these */+ .m-default { fill: var(--arrow); }+ .m-emphasis { fill: var(--arrow-emphasis); }+ .m-security { fill: var(--security-stroke); }+ .m-dashed { fill: var(--database-stroke); }++ /* Stable semantic exploration hooks emitted by every renderer. */+ svg [data-node-id] {+ cursor: pointer;+ transition: opacity 0.18s ease, fill-opacity 0.18s ease, stroke-opacity 0.18s ease, filter 0.18s ease;+ }+ svg [data-edge-from],+ svg [data-graph-role="automatic-crossover-underlay"] { transition: opacity 0.18s ease, filter 0.18s ease; }+ svg [data-node-id]:hover,+ svg [data-node-id]:focus-visible {+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ outline: none;+ }+ /* Verified Source Beacons are installed at runtime only for nodes whose+ repository evidence passed the local revision/blob/line checks. They+ live inside the owning node so every focus, route, story, and guided+ view keeps one coherent opacity state. Export serialization removes+ them before producing the canonical SVG or any derived visual. */+ .source-evidence-beacon {+ pointer-events: none;+ opacity: 1;+ transition: filter 160ms ease;+ }+ .source-evidence-beacon rect {+ fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));+ stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));+ stroke-width: 1;+ vector-effect: non-scaling-stroke;+ }+ .source-evidence-beacon text {+ fill: var(--backend-stroke);+ font-size: 7px;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-anchor: middle;+ text-transform: uppercase;+ }+ svg [data-node-id]:hover .source-evidence-beacon,+ svg [data-node-id]:focus-visible .source-evidence-beacon,+ svg [data-node-id][data-focus-selected] .source-evidence-beacon {+ opacity: 1;+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));+ }+ svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }+ svg[data-preset="blueprint"] .source-evidence-beacon rect {+ rx: 0.8px;+ filter: none;+ }+ svg [data-legend-kind][role="button"] { cursor: pointer; }+ svg [data-legend-kind]:focus { outline: none; }+ svg [data-legend-hit] {+ fill: transparent;+ stroke: transparent;+ stroke-width: 1.4;+ pointer-events: all;+ vector-effect: non-scaling-stroke;+ transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;+ }+ svg [data-legend-count-badge] { pointer-events: none; }+ svg [data-legend-count-badge] rect {+ fill: var(--mask);+ stroke: var(--panel-border);+ stroke-width: 1;+ vector-effect: non-scaling-stroke;+ }+ svg [data-legend-count-badge] text {+ fill: var(--text-muted);+ font-size: 8px;+ font-weight: 700;+ text-anchor: middle;+ }+ svg [data-legend-kind][role="button"]:hover [data-legend-hit] {+ stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);+ }+ svg [data-legend-kind][role="button"]:focus-visible [data-legend-hit] {+ stroke: var(--frontend-stroke);+ stroke-width: 1.8;+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg [data-legend-kind][data-legend-selected] [data-legend-hit] {+ stroke: var(--database-stroke);+ stroke-width: 2.2;+ stroke-dasharray: 3 2;+ }+ svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {+ stroke: var(--database-stroke);+ stroke-width: 1.8;+ }+ svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }+ svg[data-preset="signal-flow"] [data-legend-kind][data-legend-selected] [data-legend-hit] {+ filter: drop-shadow(0 0 4px var(--database-stroke));+ }+ svg[data-preset="blueprint"] [data-legend-hit],+ svg[data-preset="blueprint"] [data-legend-count-badge] rect { rx: 0; filter: none; }+ svg[data-legend-preview-active] [data-node-id],+ svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }+ svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }+ svg[data-legend-preview-active] [data-legend-preview-selected] {+ filter: drop-shadow(0 0 8px var(--database-stroke));+ }+ svg[data-lens-active] [data-node-id],+ svg[data-lens-active] [data-edge-from] { opacity: 0.11; }+ svg[data-lens-active] [data-lens-match] { opacity: 1; }+ svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }+ svg[data-lens-active] [data-lens-selected] {+ filter: drop-shadow(0 0 10px var(--database-stroke));+ }+ .semantic-lens-overlay { pointer-events: none; }+ .semantic-lens-flow {+ fill: none;+ stroke-width: 3.05;+ stroke-linecap: round;+ stroke-dasharray: 0.075 0.925;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.9;+ animation: archify-semantic-lens-flow 1.35s linear 1 both;+ animation-delay: var(--lens-flow-delay, 0s);+ }+ .semantic-lens-flow[data-direction="out"],+ .semantic-lens-flow[data-direction="forward"] {+ stroke: var(--frontend-stroke);+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ .semantic-lens-flow[data-direction="in"],+ .semantic-lens-flow[data-direction="reverse"] {+ stroke: var(--database-stroke);+ filter: drop-shadow(0 0 3px var(--database-stroke));+ }+ .semantic-lens-flow[data-direction="within"] {+ stroke: var(--messagebus-stroke);+ filter: drop-shadow(0 0 3px var(--messagebus-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow {+ stroke-width: 3.7;+ opacity: 1;+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="out"],+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="forward"] {+ filter: drop-shadow(0 0 6px var(--frontend-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="in"],+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="reverse"] {+ filter: drop-shadow(0 0 6px var(--database-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="within"] {+ filter: drop-shadow(0 0 6px var(--messagebus-stroke));+ }+ svg[data-preset="blueprint"] .semantic-lens-flow {+ stroke-width: 2.45;+ stroke-linecap: square;+ filter: none;+ opacity: 0.78;+ }+ html[data-embed="true"] .semantic-lens-overlay { display: none; }+ /* Automatic crossover masks are visual companions of their one semantic+ edge. Keep the mask free of data-edge-* identity so graph traversal and+ export still observe exactly one edge, then mirror reader emphasis from+ the paired foreground path in this presentation-only wrapper. */+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-match]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-peer]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-peer]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-focus-active] [data-node-id],+ svg[data-focus-active] [data-edge-from] { opacity: 0.13; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.13; }+ svg[data-focus-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-focus-active] [data-focus-match] { opacity: 1; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }++ /* Authored Reachability is a bounded graph query over the relationships+ already present in the artifact. Upstream walks incoming edges;+ downstream walks outgoing edges. It never claims runtime causality and+ changes only viewer emphasis, not canonical geometry or export bytes. */+ svg[data-reach-active] [data-node-id],+ svg[data-reach-active] [data-edge-from] { opacity: 0.09; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.09; }+ svg[data-reach-active] [data-reach-match] { opacity: 1; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"]:has(> [data-reach-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-reach-active="upstream"] [data-reach-origin] {+ filter: drop-shadow(0 0 11px var(--database-stroke));+ }+ svg[data-reach-active="downstream"] [data-reach-origin] {+ filter: drop-shadow(0 0 11px var(--backend-stroke));+ }+ svg[data-reach-active="upstream"] [data-edge-from][data-reach-match] {+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));+ }+ svg[data-reach-active="downstream"] [data-edge-from][data-reach-match] {+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));+ }+ svg[data-preset="blueprint"][data-reach-active] [data-reach-origin],+ svg[data-preset="blueprint"][data-reach-active] [data-edge-from][data-reach-match] {+ filter: none;+ }++ /* Direct Relationship Explorer makes authored paths a real input surface+ without changing their visible stroke or canonical SVG. A transparent+ runtime rail supplies forgiving pointer geometry; the exact authored+ path and endpoints continue to carry every visible state. */+ .relationship-hit-overlay { pointer-events: none; }+ .relationship-hit-target { outline: none; }+ .relationship-hit-rail {+ fill: none;+ stroke: transparent;+ stroke-width: 24;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ pointer-events: stroke;+ cursor: pointer;+ }+ .relationship-focus-rail {+ fill: none;+ stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);+ stroke-width: 6;+ stroke-dasharray: 2 4;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ opacity: 0;+ }+ .relationship-hit-target:focus-visible .relationship-focus-rail {+ opacity: 1;+ }+ svg[data-preset="blueprint"] .relationship-hit-target:focus-visible .relationship-focus-rail {+ stroke-linecap: square;+ filter: none;+ }+ svg[data-relationship-direct-active] [data-node-id],+ svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-relationship-preview],+ svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,+ svg[data-route-picking] .relationship-hit-rail,+ svg[data-route-active] .relationship-hit-rail,+ svg[data-lens-active] .relationship-hit-rail { pointer-events: none; }+ html[data-embed="true"] .relationship-hit-overlay { display: none; }+ @media (hover: none), (pointer: coarse) {+ .relationship-hit-rail { stroke-width: 24; }+ }++ /* Relationship Preview is temporary exploration state layered on top of+ neighborhood focus. It changes emphasis only; exported geometry and the+ relationship's original solid/dashed visual language stay untouched. */+ svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-relationship-preview-active] [data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-relationship-preview-active] [data-relationship-preview] {+ filter: drop-shadow(0 0 5px var(--arrow-emphasis));+ }+ svg[data-relationship-preview-active] [data-relationship-preview] path,+ svg[data-relationship-preview-active] path[data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview] line,+ svg[data-relationship-preview-active] line[data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview] polyline,+ svg[data-relationship-preview-active] polyline[data-relationship-preview] {+ stroke-width: 2.75;+ }+ svg[data-relationship-preview-active] [data-relationship-preview-source] {+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ }+ svg[data-relationship-preview-active] [data-relationship-preview-target] {+ filter: drop-shadow(0 0 7px var(--database-stroke));+ }+ .relationship-pulse-overlay { pointer-events: none; }+ .relationship-flow-pulse {+ fill: none;+ stroke: var(--arrow-emphasis);+ stroke-width: 3.35;+ stroke-linecap: round;+ stroke-dasharray: 0.085 0.915;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0;+ filter: drop-shadow(0 0 4px var(--arrow-emphasis));+ animation: archify-relationship-pulse 1.2s linear 1 both;+ }+ svg[data-preset="signal-flow"] .relationship-flow-pulse {+ stroke: var(--frontend-stroke);+ stroke-width: 3.85;+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"] .relationship-flow-pulse {+ stroke-width: 2.5;+ stroke-linecap: square;+ filter: none;+ }+ svg[data-preset="editorial"] .relationship-flow-pulse {+ stroke: var(--arrow-emphasis);+ stroke-width: 2.75;+ filter: none;+ }+ .semantic-flow-token {+ color: var(--frontend-stroke);+ opacity: 0;+ pointer-events: none;+ }+ .relationship-flow-token {+ animation: archify-relationship-token-life 1.2s linear 1 both;+ }++ .semantic-flow-token-halo {+ fill: var(--mask);+ stroke: currentColor;+ stroke-width: 1.1;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ }+ .relationship-flow-token-shape {+ fill: var(--mask);+ stroke: currentColor;+ stroke-width: 1.35;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ }+ .relationship-flow-token-ink {+ fill: none;+ stroke: currentColor;+ stroke-width: 1.05;+ stroke-linecap: round;+ vector-effect: non-scaling-stroke;+ }+ .relationship-flow-token-dot { fill: currentColor; stroke: none; }+ .semantic-flow-token[data-token-kind="data"] { color: var(--database-stroke); }+ .semantic-flow-token[data-token-kind="event"] { color: var(--messagebus-stroke); }+ .semantic-flow-token[data-token-kind="security"] { color: var(--security-stroke); }+ .semantic-flow-token[data-token-kind="state"] { color: var(--cloud-stroke); }+ svg[data-preset="signal-flow"] .semantic-flow-token {+ filter: drop-shadow(0 0 5px currentColor);+ }+ svg[data-preset="blueprint"] .semantic-flow-token { filter: none; }+ svg[data-preset="editorial"] .semantic-flow-token { filter: none; }+ html[data-embed="true"] .relationship-pulse-overlay { display: none; }++ /* Intent Trace is a temporary, pre-click exploration layer. Related+ topology stays readable while a short viewer-only signal runs over+ cloned edge geometry; the authored edge remains untouched underneath. */+ /* Keep the node's opaque backing mask intact while its visible ink dims.+ Fading the whole group also fades that mask and briefly exposes arrows+ routed underneath the node when the pointer leaves. */+ svg[data-intent-trace-active] [data-node-id] { fill-opacity: 0.2; stroke-opacity: 0.2; }+ svg [data-node-id] > .c-mask { fill-opacity: 1; }+ svg[data-intent-trace-active] [data-node-id][data-intent-trace-match] { fill-opacity: 1; stroke-opacity: 1; }+ svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"]:has(> [data-intent-trace-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-intent-trace-active] [data-intent-trace-selected] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }+ .intent-trace-overlay { pointer-events: none; }+ .intent-trace-flow {+ fill: none;+ stroke-width: 3.1;+ stroke-linecap: round;+ stroke-dasharray: 0.1 0.9;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.94;+ animation: archify-intent-trace-flow 1.15s linear 1 both;+ }+ /* Direction names describe each edge relative to the focused node only.+ The cloned geometry already runs from the authored source to target, so+ incoming and outgoing signals must share the same playback direction. */+ .intent-trace-flow[data-direction="out"] {+ stroke: var(--frontend-stroke);+ filter: drop-shadow(0 0 4px var(--frontend-stroke));+ }+ .intent-trace-flow[data-direction="in"] {+ stroke: var(--database-stroke);+ filter: drop-shadow(0 0 4px var(--database-stroke));+ animation-direction: normal;+ }+ .intent-trace-flow[data-direction="loop"] {+ stroke: var(--security-stroke);+ filter: drop-shadow(0 0 4px var(--security-stroke));+ }+ svg[data-preset="blueprint"] [data-intent-trace-selected],+ svg[data-preset="blueprint"] .intent-trace-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="editorial"] [data-intent-trace-selected],+ svg[data-preset="editorial"] .intent-trace-flow { filter: none; }+ .intent-trace-status {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ clip-path: inset(50%);+ white-space: nowrap;+ border: 0;+ }++ /* Route Probe separates a durable two-point query from selection and+ one-hop hover. Only the chosen shortest directed path stays prominent;+ the traveling signal is cloned viewer geometry and never authored SVG. */+ svg[data-route-picking="target"] [data-node-id] { opacity: 0.24; }+ svg[data-route-picking="target"] [data-route-candidate],+ svg[data-route-picking="target"] [data-route-start] { opacity: 1; }+ svg[data-route-picking] [data-node-id] { cursor: crosshair; }+ svg[data-route-picking] [data-route-start] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }+ svg[data-route-active] [data-node-id],+ svg[data-route-active] [data-edge-from] { opacity: 0.11; }+ svg[data-route-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-route-active] [data-route-match] { opacity: 1; }+ svg[data-route-active] [data-graph-role="automatic-crossover"]:has(> [data-route-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-route-active] [data-route-start] {+ filter: drop-shadow(0 0 11px var(--frontend-stroke));+ }+ svg[data-route-active] [data-route-end] {+ filter: drop-shadow(0 0 11px var(--security-stroke));+ }+ svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {+ filter: drop-shadow(0 0 7px var(--backend-stroke));+ }+ svg[data-route-journey] [data-route-match][data-route-journey-state="past"] { opacity: 0.62; }+ svg[data-route-journey] [data-route-match][data-route-journey-state="future"] { opacity: 0.34; }+ svg[data-route-journey] [data-route-match][data-route-journey-state="current"] { opacity: 1; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="past"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="future"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.34; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="current"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-route-journey] [data-node-id][data-route-journey-current] {+ filter: drop-shadow(0 0 10px var(--backend-stroke));+ }+ svg[data-route-journey] [data-edge-from][data-route-journey-current] {+ opacity: 1;+ filter: drop-shadow(0 0 6px var(--backend-stroke));+ }+ .route-probe-overlay { pointer-events: none; }+ .route-journey-overlay { pointer-events: none; }+ .route-probe-flow {+ fill: none;+ stroke: var(--backend-stroke);+ stroke-width: 3.25;+ stroke-linecap: round;+ stroke-dasharray: 0.085 0.915;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ filter: drop-shadow(0 0 5px var(--backend-stroke));+ animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;+ animation-delay: calc(var(--route-step, 0) * 0.16s);+ }+ .route-journey-flow {+ fill: none;+ stroke: var(--backend-stroke);+ stroke-width: 3.5;+ stroke-linecap: round;+ stroke-dasharray: 0.1 0.9;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0;+ filter: drop-shadow(0 0 6px var(--backend-stroke));+ animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;+ }+ svg[data-preset="blueprint"] [data-route-start],+ svg[data-preset="blueprint"] [data-route-end],+ svg[data-preset="blueprint"] [data-route-step],+ svg[data-preset="blueprint"] .route-probe-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="blueprint"] .route-journey-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="editorial"] [data-route-start],+ svg[data-preset="editorial"] [data-route-end],+ svg[data-preset="editorial"] [data-route-step],+ svg[data-preset="editorial"] .route-probe-flow,+ svg[data-preset="editorial"] .route-journey-flow { filter: none; }++ svg[data-preset="editorial"] .c-grid {+ stroke-dasharray: 1 4;+ opacity: 0.48;+ }+ svg[data-preset="editorial"] .c-region {+ fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);+ stroke-dasharray: 9 4;+ }+ svg[data-preset="editorial"] [data-node-id]:hover,+ svg[data-preset="editorial"] [data-node-id]:focus-visible,+ svg[data-preset="editorial"][data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));+ }++ svg[data-preset="blueprint"] .c-grid {+ stroke-dasharray: 1 3;+ opacity: 0.78;+ }+ svg[data-preset="blueprint"] .c-region {+ fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);+ stroke-dasharray: 12 4 2 4;+ }+ svg[data-preset="blueprint"] .c-security-group,+ svg[data-preset="blueprint"] .c-lane { stroke-dasharray: 7 3; }+ svg[data-preset="blueprint"] [data-node-id]:hover,+ svg[data-preset="blueprint"] [data-node-id]:focus-visible {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"][data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {+ filter: none;+ }+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview],+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview-source],+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview-target] {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }++ /* Dashed boundary variants */+ .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }+ .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }+ .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }++ /* Optional trace animation, enabled only by meta.animation = "trace".+ The ordinary viewer performs one ambient pass and then restores the+ authored solid/security/async line language. WebM samples the same+ authored geometry into an explicit canvas timeline. */+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {+ animation: archify-edge-flow 2.4s linear 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: archify-edge-flow 2.4s linear 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {+ transform-box: fill-box;+ transform-origin: center;+ animation: archify-node-pulse 3.6s ease-in-out 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {+ stroke-linecap: round;+ filter: drop-shadow(0 0 3px var(--arrow-emphasis));+ animation-duration: 1.75s;+ }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation-duration: 3.1s;+ }+ svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {+ stroke-linecap: square;+ filter: none;+ animation-duration: 2.15s;+ }+ svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }+ svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation-name: archify-blueprint-node-pulse;+ animation-duration: 3.8s;+ }+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {+ filter: none;+ animation-duration: 2.2s;+ }+ svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation-name: archify-editorial-node-pulse;+ animation-duration: 3.5s;+ }+ /* Embedded proofs stay static so proof grids are calm instead of leaving+ ambient trace loops on. */+ html[data-embed="true"] svg[data-animation="trace"] [data-animate],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ @keyframes archify-edge-flow {+ 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }+ 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }+ 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }+ 100% { stroke-dashoffset: 0; opacity: 1; }+ }+ @keyframes archify-node-pulse {+ 0%, 72%, 100% { filter: none; stroke-width: 1.5; }+ 18%, 36% {+ filter: drop-shadow(0 0 8px var(--arrow-emphasis));+ stroke-width: 2.4;+ }+ }+ @keyframes archify-blueprint-node-pulse {+ 0%, 72%, 100% { opacity: 1; filter: none; }+ 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }+ }+ @keyframes archify-editorial-node-pulse {+ 0%, 72%, 100% { opacity: 1; filter: none; }+ 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }+ }+ @keyframes archify-signal-scan {+ 0%, 18% { opacity: 1; transform: translateX(-70%); }+ 70% { opacity: 1; transform: translateX(70%); }+ 100% { opacity: 0; transform: translateX(70%); }+ }+ @keyframes archify-radar-live {+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }+ 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }+ }++ @keyframes archify-intent-trace-flow {+ 0% { opacity: 0.28; stroke-dashoffset: 0; }+ 12%, 78% { opacity: 0.94; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-route-probe-flow {+ 0% { stroke-dashoffset: 0; opacity: 0.96; }+ 78% { stroke-dashoffset: -1; opacity: 0.96; }+ 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }+ }+ @keyframes archify-route-journey-flow {+ 0% { opacity: 0.16; stroke-dashoffset: 0; }+ 14%, 76% { opacity: 1; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-semantic-lens-flow {+ 0% { opacity: 0.2; stroke-dashoffset: 0; }+ 12%, 78% { opacity: 0.9; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-relationship-pulse {+ 0% { opacity: 0.18; stroke-dashoffset: 0; }+ 10%, 76% { opacity: 0.98; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-relationship-token-life {+ 0%, 7% { opacity: 0; }+ 13%, 82% { opacity: 1; }+ 100% { opacity: 0; }+ }++ @keyframes archify-share-cue-enter {+ from { opacity: 0; transform: translate(-50%, -0.45rem); }+ to { opacity: 1; transform: translate(-50%, 0); }+ }+ @keyframes archify-share-cue-pulse {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 50% { opacity: 0.48; transform: scale(0.78); }+ }+ @media (prefers-reduced-motion: reduce) {+ html[data-preset="signal-flow"] .diagram-container::before {+ animation: none !important;+ }+ .pulse-dot { animation: none !important; }+ svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ .intent-trace-flow,+ .route-probe-flow,+ .semantic-lens,+ .diagram-guide,+ .overview-map-live { animation: none !important; }++ .intent-trace-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+ }+ .route-probe-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.78;+ }+ .route-journey-overlay { display: none !important; }+ .semantic-lens-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-width: 2.2;+ opacity: 0.34;+ filter: none;+ }+ .relationship-pulse-overlay { display: none !important; }+ .source-evidence-beacon,+ svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }+ }+ </style>+</head>+<body>+ <!-- Toolbar: theme, live visual style, trace motion, presentation stage, and export.+ Motion appears only for trace-enabled artifacts and has no shortcut;+ Keyboard: T toggles theme, S cycles style, F toggles the stage, E opens export. -->+ <div class="toolbar" role="toolbar" aria-label="Diagram actions">+ <div class="toolbar-group">+ <button id="btn-theme" type="button"+ title="Toggle theme (T)"+ aria-label="Toggle color theme"+ aria-pressed="false">+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span>+ <span id="theme-label">Dark</span>+ </button>+ <div class="preset-wrap">+ <button id="btn-preset" type="button"+ title="Choose visual style (S cycles)"+ aria-label="Choose visual style"+ aria-haspopup="menu"+ aria-expanded="false"+ aria-controls="preset-menu"+ aria-keyshortcuts="S">+ <span class="preset-control-mark" aria-hidden="true"></span>+ <span id="preset-label">Style</span>+ <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ </button>+ <div class="preset-menu" id="preset-menu" role="menu" aria-label="Visual style">+ <div class="preset-menu-heading" role="presentation"><span>Visual identity</span><span class="preset-menu-shortcut"><kbd>S</kbd>to cycle</span></div>+ <button class="preset-option" data-preset-value="classic" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch classic" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Classic</strong><small>Stable technical default</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch signal-flow" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch blueprint" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch editorial" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ </div>+ </div>+ <button id="btn-motion" type="button" hidden+ title="Pause motion"+ aria-label="Pause motion"+ aria-pressed="true">+ <span class="motion-control-dot" aria-hidden="true"></span>+ <span id="motion-label">Live</span>+ </button>+ <button id="btn-present" type="button"+ title="Presentation stage (F)"+ aria-label="Enter presentation stage"+ aria-pressed="false">+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span>+ <span id="present-label">Present</span>+ </button>+ </div>+ <div class="export-wrap">+ <button id="btn-export" type="button"+ title="Export diagram (E)"+ aria-label="Export diagram"+ aria-haspopup="menu"+ aria-expanded="false"+ aria-controls="export-menu">+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ </button>+ <div class="export-menu" id="export-menu" role="menu" aria-label="Export">+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </div>+ <div class="export-menu-section" role="group" aria-label="Share">+ <span class="export-menu-heading" aria-hidden="true">Share</span>+ <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Route Share Card</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Reach Share Card</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="copy" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy diagram</strong><small class="hint">PNG to clipboard</small></span></button>+ </div>+ <div class="export-menu-section" role="group" aria-label="Raster images">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </div>+ <div class="export-menu-section" role="group" aria-label="Vector and motion">+ <span class="export-menu-heading" aria-hidden="true">Vector & motion</span>+ <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Auto</strong><small class="hint">Matches host theme</small></span></button>+ <button data-format="svg-light" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Light</strong><small class="hint">Always light</small></span></button>+ <button data-format="svg-dark" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Dark</strong><small class="hint">Always dark</small></span></button>+ <button data-format="webm" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebM</strong><small class="hint">6s motion</small></span></button>+ </div>+ </div>+ </div>+ </div>++ <div class="container">+ <!-- Header -->+ <div class="header">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE">+ <div class="pulse-dot"></div>+ <h1>Order management schema</h1>+ </div>+ </div>+++ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>+ <!-- Main Diagram -->+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 954 488" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">+ <title id="archify-diagram-title">Order management schema</title>+ <desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>+ <!-- Definitions -->+ <defs>+ <marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-default" />+ </marker>+ <marker id="arrowhead-emphasis" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-emphasis" />+ </marker>+ <marker id="arrowhead-security" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-security" />+ </marker>+ <marker id="arrowhead-dashed" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-dashed" />+ </marker>+ <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">+ <path d="M 40 0 L 0 0 0 40" class="c-grid" stroke-width="0.5"/>+ </pattern>+ <!-- Cardinality symbols -->+ <marker id="er-one-end" markerWidth="24" markerHeight="18" refX="22" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 17 1 L 17 15"/>+ </marker>+ <marker id="er-many-start" markerWidth="24" markerHeight="18" refX="0" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 14 8 L 0 1 M 14 8 L 0 8 M 14 8 L 0 15"/>+ </marker>+ <marker id="er-many-optional-start" markerWidth="24" markerHeight="18" refX="0" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 14 8 L 0 1 M 14 8 L 0 8 M 14 8 L 0 15"/>+ <circle cx="18.5" cy="8" r="2.6" class="c-mask"/>+ <circle cx="18.5" cy="8" r="2.6"/>+ </marker>+ </defs>++ <!-- Background Grid -->+ <rect width="100%" height="100%" fill="url(#grid)" />++ <!-- Domain bands (behind the routes so a channel is never washed out) -->+ <g data-domain-band="checkout">+ <rect x="332" y="22" width="603" height="202" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="342" y="35" class="t-muted" font-size="9" font-weight="700">checkout</text>+ </g>+ <g data-domain-band="catalog">+ <rect x="22" y="236" width="584" height="202" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="32" y="249" class="t-muted" font-size="9" font-weight="700">catalog</text>+ </g>++ <!-- Bundled relationship trunks (under the branches: a bus runs close+ to the shared side, so a cardinality glyph that reaches further out+ has to stay readable over it, and the ring's mask has to be able to+ punch through) -->+ <path data-er-trunk="" data-composition-points="660,140;660,320" d="M 660 140 L 660 320" class="a-default" stroke-width="1.5"/>++ <!-- Relationship paths (before entities for correct z-order) -->+ <path data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer" data-composition-points="344,128;308,128;308,98;272,98" d="M 344 128 L 316 128 Q 308 128 308 120 L 308 106 Q 308 98 300 98 L 272 98" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="payment" data-edge-to="order" data-edge-key="1" data-edge-id="payment_order" data-composition-points="683,116;604,116" d="M 683 116 L 604 116" class="a-dashed" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="order_item" data-edge-to="order" data-edge-key="2" data-edge-id="order_item_order" data-composition-points="676,320;660,320;660,140;604,140" d="M 676 320 L 660 320 M 660 140 L 604 140" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="order_item" data-edge-to="product" data-edge-key="3" data-edge-id="order_item_product" data-composition-points="676,344;594,344" d="M 676 344 L 594 344" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="inventory" data-edge-to="product" data-edge-key="4" data-edge-id="inventory_product" data-composition-points="270,332;354,332" d="M 270 332 L 354 332" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>++ <!-- Entities -->+ <g id="node-customer" data-node-id="customer" data-node-label="customer" tabindex="0" role="button" aria-label="Focus customer, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">+ <title>customer · Entity · accounts</title>+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-mask"/>+ <rect x="32" y="40" width="240" height="116" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="152" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">customer</text>+ <text data-detail="context" x="260" y="56" class="t-muted" font-size="10" text-anchor="end">accounts</text>+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="32" y1="70" x2="272" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="74" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="260" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="32" y1="90" x2="272" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="74" y="105" class="t-primary" font-size="11">email</text>+ <text data-detail="context" x="260" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="32" y1="110" x2="272" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="74" y="125" class="t-primary" font-size="11">display_name</text>+ <text data-detail="context" x="260" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="32" y1="130" x2="272" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="74" y="145" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="260" y="145" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-order" data-node-id="order" data-node-label="order" tabindex="0" role="button" aria-label="Focus order, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">+ <title>order · Entity · checkout</title>+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-mask"/>+ <rect x="344" y="40" width="260" height="176" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(350 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="474" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order</text>+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="344" y1="70" x2="604" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="356" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="386" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="592" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="344" y1="90" x2="604" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="356" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="386" y="105" class="t-primary" font-size="11">customer_id</text>+ <text data-detail="context" x="592" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="344" y1="110" x2="604" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="125" class="t-primary" font-size="11">status</text>+ <text data-detail="context" x="592" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="344" y1="130" x2="604" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="145" class="t-primary" font-size="11">total_amount</text>+ <text data-detail="context" x="592" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="344" y1="150" x2="604" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="165" class="t-primary" font-size="11">currency</text>+ <text data-detail="context" x="592" y="165" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="344" y1="170" x2="604" y2="170" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="185" class="t-primary" font-size="11">placed_at</text>+ <text data-detail="context" x="592" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ <g data-detail="context" data-er-row="6">+ <line x1="344" y1="190" x2="604" y2="190" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="386" y="205" class="t-primary" font-size="11">updated_at</text>+ <text data-detail="context" x="592" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-order_item" data-node-id="order_item" data-node-label="order_item" tabindex="0" role="button" aria-label="Focus order_item, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="line items" data-node-context="Entity">+ <title>order_item · Entity · line items</title>+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-mask"/>+ <rect x="676" y="254" width="254" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(682 259) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="803" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">order_item</text>+ <text data-detail="context" x="918" y="270" class="t-muted" font-size="8.6" text-anchor="end">line items</text>+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="676" y1="284" x2="930" y2="284" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="688" y="299" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="718" y="299" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="918" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="676" y1="304" x2="930" y2="304" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="688" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="718" y="319" class="t-primary" font-size="11">order_id</text>+ <text data-detail="context" x="918" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="676" y1="324" x2="930" y2="324" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="688" y="339" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="718" y="339" class="t-primary" font-size="11">product_id</text>+ <text data-detail="context" x="918" y="339" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="676" y1="344" x2="930" y2="344" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="718" y="359" class="t-primary" font-size="11">quantity</text>+ <text data-detail="context" x="918" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="676" y1="364" x2="930" y2="364" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="718" y="379" class="t-primary" font-size="11">unit_price</text>+ <text data-detail="context" x="918" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="676" y1="384" x2="930" y2="384" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="718" y="399" class="t-primary" font-size="11">discount_amount</text>+ <text data-detail="context" x="918" y="399" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ </g>++ <g id="node-product" data-node-id="product" data-node-label="product" tabindex="0" role="button" aria-label="Focus product, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">+ <title>product · Entity · catalog</title>+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-mask"/>+ <rect x="354" y="254" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(360 259) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="474" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">product</text>+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="354" y1="284" x2="594" y2="284" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="366" y="299" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="396" y="299" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="582" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="354" y1="304" x2="594" y2="304" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="366" y="319" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="396" y="319" class="t-primary" font-size="11">sku</text>+ <text data-detail="context" x="582" y="319" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="354" y1="324" x2="594" y2="324" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="339" class="t-primary" font-size="11">name</text>+ <text data-detail="context" x="582" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="354" y1="344" x2="594" y2="344" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="359" class="t-primary" font-size="11">price</text>+ <text data-detail="context" x="582" y="359" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="354" y1="364" x2="594" y2="364" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="379" class="t-primary" font-size="11">cost_amount</text>+ <text data-detail="context" x="582" y="379" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="354" y1="384" x2="594" y2="384" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="399" class="t-primary" font-size="11">active</text>+ <text data-detail="context" x="582" y="399" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>+ </g>+ <g data-detail="context" data-er-row="6">+ <line x1="354" y1="404" x2="594" y2="404" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="396" y="419" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="582" y="419" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-inventory" data-node-id="inventory" data-node-label="inventory" tabindex="0" role="button" aria-label="Focus inventory, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">+ <title>inventory · Entity · catalog</title>+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-mask"/>+ <rect x="34" y="254" width="236" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(40 259) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="152" y="272" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">inventory</text>+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="34" y1="284" x2="270" y2="284" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="46" y="299" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="76" y="299" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="258" y="299" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="34" y1="304" x2="270" y2="304" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="46" y="319" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="76" y="319" class="t-primary" font-size="11">product_id</text>+ <text data-detail="context" x="258" y="319" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="34" y1="324" x2="270" y2="324" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="339" class="t-primary" font-size="11">warehouse_code</text>+ <text data-detail="context" x="258" y="339" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="34" y1="344" x2="270" y2="344" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="359" class="t-primary" font-size="11">quantity</text>+ <text data-detail="context" x="258" y="359" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="34" y1="364" x2="270" y2="364" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="379" class="t-primary" font-size="11">reserved_quantity</text>+ <text data-detail="context" x="258" y="379" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="34" y1="384" x2="270" y2="384" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="76" y="399" class="t-primary" font-size="11">updated_at</text>+ <text data-detail="context" x="258" y="399" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="checkout" data-node-context="Entity">+ <title>payment · Entity · checkout</title>+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-mask"/>+ <rect x="683" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(689 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="803" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="683" y1="70" x2="923" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="695" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="725" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="911" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="683" y1="90" x2="923" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="695" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="725" y="105" class="t-primary" font-size="11">order_id</text>+ <text data-detail="context" x="911" y="105" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="683" y1="110" x2="923" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="125" class="t-primary" font-size="11">method</text>+ <text data-detail="context" x="911" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="683" y1="130" x2="923" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="145" class="t-primary" font-size="11">amount</text>+ <text data-detail="context" x="911" y="145" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="683" y1="150" x2="923" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="165" class="t-primary" font-size="11">paid_at</text>+ <text data-detail="context" x="911" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="683" y1="170" x2="923" y2="170" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="725" y="185" class="t-primary" font-size="11">external_ref</text>+ <text data-detail="context" x="911" y="185" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>+ </g>+ </g>++ <!-- Relationship labels -->+ <g data-detail="context" data-edge-from="order" data-edge-to="customer" data-edge-label="placed by" data-edge-key="0" data-edge-id="order_customer">+ <rect x="277.89" y="93" width="60.22" height="14" rx="3" class="c-mask"/>+ <text x="308" y="103" class="t-muted" font-size="9" text-anchor="middle">placed by</text>+ </g>++ <!-- Legend -->+ <g data-legend="" data-legend-bridge="">+ <text x="24" y="452" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="472" data-legend-width="116">+ <text x="26" y="472" class="t-database" font-size="9" font-weight="700">PK</text>+ <text x="50" y="472" class="t-primary" font-size="12" font-weight="600">Primary key</text>+ </g>+ <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="472" data-legend-width="116">+ <text x="164" y="472" class="t-messagebus" font-size="9" font-weight="700">FK</text>+ <text x="188" y="472" class="t-primary" font-size="12" font-weight="600">Foreign key</text>+ </g>+ <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="472" data-legend-width="109">+ <text x="302" y="472" class="t-muted" font-size="9" font-weight="700">UK</text>+ <text x="326" y="472" class="t-primary" font-size="12" font-weight="600">Unique key</text>+ </g>+ <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="472" data-legend-width="66">+ <path d="M 441 463 L 441 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="457" y="472" class="t-primary" font-size="12" font-weight="600">One</text>+ </g>+ <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="472" data-legend-width="72">+ <path d="M 521 468 L 537 463 M 521 468 L 537 468 M 521 468 L 537 473" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="545" y="472" class="t-primary" font-size="12" font-weight="600">Many</text>+ </g>+ <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="472" data-legend-width="97">+ <circle cx="622" cy="468" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="639" y="472" class="t-primary" font-size="12" font-weight="600">Optional</text>+ </g>+ </g>+ </svg>+ <p class="intent-trace-status no-print" id="intent-trace-status" role="status" aria-live="polite" aria-atomic="true"></p>+ <div class="diagram-guide no-print" id="diagram-guide" hidden role="dialog" aria-modal="false" aria-labelledby="diagram-guide-title">+ <div class="diagram-guide-head">+ <span>+ <span class="diagram-guide-eyebrow">Diagram guide</span>+ <strong class="diagram-guide-title" id="diagram-guide-title">Explore this system</strong>+ </span>+ <button class="diagram-guide-close" id="diagram-guide-close" type="button" aria-label="Close diagram guide">×</button>+ </div>+ <p class="diagram-guide-stats" id="diagram-guide-stats">Inspecting compiled semantics</p>+ <div class="diagram-guide-actions" id="diagram-guide-actions" role="group" aria-label="Diagram exploration actions">+ <button class="diagram-guide-action" type="button" data-guide-action="find" aria-label="Find any node">+ <span class="diagram-guide-index" aria-hidden="true">01</span>+ <span class="diagram-guide-action-copy"><strong>Find any node</strong><small>Search labels, responsibilities, kinds, and stable IDs.</small></span>+ <kbd aria-hidden="true">/</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="route" aria-label="Trace a directed route">+ <span class="diagram-guide-index" aria-hidden="true">02</span>+ <span class="diagram-guide-action-copy"><strong>Trace a route</strong><small>Ask how two semantic nodes connect in authored direction.</small></span>+ <kbd aria-hidden="true">R</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="map" aria-label="See the whole system">+ <span class="diagram-guide-index" aria-hidden="true">03</span>+ <span class="diagram-guide-action-copy"><strong>See the whole system</strong><small>Open Semantic Radar with a live viewport and stable nodes.</small></span>+ <kbd aria-hidden="true">M</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="lens" aria-label="Compare semantic kinds">+ <span class="diagram-guide-index" aria-hidden="true">04</span>+ <span class="diagram-guide-action-copy"><strong>Compare semantic kinds</strong><small>Count roles, reveal their traffic, and compare direct authored links.</small></span>+ <kbd aria-hidden="true">L</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="present" aria-label="Enter presentation stage">+ <span class="diagram-guide-index" aria-hidden="true">05</span>+ <span class="diagram-guide-action-copy"><strong>Enter Presentation Stage</strong><small>Give the live diagram the viewport without changing export.</small></span>+ <kbd aria-hidden="true">F</kbd>+ </button>+ </div>+ <div class="diagram-guide-shortcuts" aria-label="Additional keyboard shortcuts">+ <span><kbd>E</kbd> Export</span><span><kbd>T</kbd> Theme</span><span><kbd>S</kbd> Style</span><span><kbd>0</kbd> Reset</span><span><kbd>+</kbd> Zoom in</span><span><kbd>-</kbd> Zoom out</span><span><kbd>Esc</kbd> Close</span>+ </div>+ <p class="diagram-guide-feedback" id="diagram-guide-feedback" aria-live="polite"></p>+ </div>+ <div class="node-finder no-print" id="node-finder" hidden role="dialog" aria-modal="false" aria-labelledby="node-finder-title">+ <div class="node-finder-head">+ <strong id="node-finder-title">Find a node</strong>+ <button class="node-finder-close" id="node-finder-close" type="button" aria-label="Close node finder">×</button>+ </div>+ <div class="node-finder-search">+ <span aria-hidden="true">⌕</span>+ <input class="node-finder-input" id="node-finder-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search labels or IDs" aria-label="Search diagram nodes" aria-describedby="node-finder-status">+ <kbd aria-hidden="true">/</kbd>+ </div>+ <div class="node-finder-results" id="node-finder-results" role="group" aria-label="Diagram nodes"></div>+ <p class="node-finder-empty" id="node-finder-empty" hidden>No matching nodes</p>+ <p class="node-finder-status" id="node-finder-status" aria-live="polite"></p>+ </div>+ <div class="focus-chip relationship-lens no-print" id="focus-chip" hidden role="region" aria-labelledby="relationship-lens-title">+ <div class="relationship-lens-head">+ <button class="relationship-lens-drag-handle" id="btn-focus-move" type="button" data-focus-drag-handle aria-label="Move semantic passport. Drag, use arrow keys, or press Home to reset." title="Move semantic passport. Drag, use arrow keys, or press Home to reset."></button>+ <div class="relationship-lens-copy">+ <span class="relationship-lens-eyebrow">Semantic passport</span>+ <strong class="relationship-lens-title" id="relationship-lens-title"><span id="focus-label"></span></strong>+ <span class="semantic-passport-detail" id="focus-detail" hidden></span>+ <div class="semantic-passport-meta" id="focus-passport-meta" aria-label="Node metadata">+ <span id="focus-kind" data-passport="kind"></span>+ <span id="focus-context" data-passport="context" hidden></span>+ <span id="focus-tag" data-passport="tag" hidden></span>+ <span id="focus-brand" data-passport="brand" hidden></span>+ <code id="focus-id" data-passport="id"></code>+ </div>+ <div class="semantic-passport-evidence" id="focus-evidence" hidden aria-label="Verified source evidence">+ <div class="semantic-passport-evidence-head">+ <span class="semantic-passport-evidence-status">Verified source</span>+ <a class="semantic-passport-repository" id="focus-repository" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer"></a>+ </div>+ <div class="semantic-passport-evidence-links" id="focus-evidence-links"></div>+ </div>+ <span class="relationship-lens-summary" id="focus-summary" aria-live="polite"></span>+ <div class="semantic-passport-reach" id="focus-reach" hidden>+ <span class="semantic-passport-reach-label">Authored reach</span>+ <div class="semantic-passport-reach-actions" role="group" aria-label="Trace authored reachability">+ <button id="btn-reach-upstream" type="button" aria-label="Trace upstream authored reachability" aria-pressed="false">+ <span>Upstream</span><strong id="focus-reach-upstream-count">0</strong>+ </button>+ <button id="btn-reach-downstream" type="button" aria-label="Trace downstream authored reachability" aria-pressed="false">+ <span>Downstream</span><strong id="focus-reach-downstream-count">0</strong>+ </button>+ </div>+ <small class="semantic-passport-reach-status" id="focus-reach-status" hidden aria-live="polite"></small>+ </div>+ </div>+ <div class="relationship-lens-actions">+ <button id="btn-focus-clear" type="button" aria-label="Close semantic passport" title="Close">×</button>+ <button id="btn-focus-copy" type="button" aria-label="Copy link to focused node">Copy link</button>+ <button id="btn-focus-relations" type="button" aria-label="Show connected relationships" aria-expanded="false" aria-controls="relationship-lens-list">Relations</button>+ </div>+ </div>+ <div class="relationship-lens-list" id="relationship-lens-list" aria-label="Connected relationships"></div>+ </div>+ <div class="route-probe no-print" id="route-probe" hidden role="region" aria-labelledby="route-probe-title" data-state="idle">+ <div class="route-probe-head">+ <span class="route-probe-copy">+ <span class="route-probe-eyebrow">Path</span>+ <strong class="route-probe-title" id="route-probe-title">Click where the path starts</strong>+ </span>+ <span class="route-probe-actions">+ <button class="route-probe-find" id="route-probe-find" type="button" aria-label="Find a route start" data-node-finder-trigger>Find start</button>+ <button class="route-probe-copy-link" id="route-probe-copy" type="button" aria-label="Copy link to traced route" hidden>Copy link</button>+ <button id="route-probe-clear" type="button" aria-label="Clear route probe">Clear</button>+ </span>+ </div>+ <div class="route-probe-path" id="route-probe-path" aria-label="Path">+ <span class="route-probe-placeholder">Click two nodes on the diagram</span>+ </div>+ <div class="route-journey-controls" id="route-journey-controls" hidden role="group" aria-label="Route journey controls" data-playing="false">+ <button id="route-journey-prev" type="button" aria-label="Previous route position" title="Previous route position">←</button>+ <button class="route-journey-play" id="route-journey-play" type="button" aria-label="Play route journey" aria-pressed="false" title="Play route journey">+ <span id="route-journey-play-icon" aria-hidden="true">▶</span>+ <span id="route-journey-play-label">Journey</span>+ </button>+ <button id="route-journey-next" type="button" aria-label="Next route position" title="Next route position">→</button>+ <button class="route-journey-overview" id="route-journey-overview" type="button" aria-label="Show complete route overview" title="Show complete route overview">Overview</button>+ </div>+ <small class="route-probe-status" id="route-probe-status" aria-live="polite">Click a start, then an end. Paths follow the arrows.</small>+ </div>+ <div class="semantic-lens no-print" id="semantic-lens" hidden role="dialog" aria-modal="false" aria-labelledby="semantic-lens-title">+ <div class="semantic-lens-head">+ <span>+ <span class="semantic-lens-eyebrow">Semantic lens</span>+ <strong class="semantic-lens-title" id="semantic-lens-title">Compare system roles</strong>+ </span>+ <button class="semantic-lens-close" id="semantic-lens-close" type="button" aria-label="Close semantic lens">×</button>+ </div>+ <p class="semantic-lens-instruction">Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.</p>+ <div class="semantic-lens-kinds" id="semantic-lens-kinds" role="group" aria-label="Semantic kinds"></div>+ <p class="semantic-lens-status" id="semantic-lens-status" aria-live="polite">Choose a kind to inspect its nodes and touching relationships.</p>+ <div class="semantic-lens-actions">+ <button id="semantic-lens-copy" type="button" aria-label="Copy link to semantic lens" hidden>Copy link</button>+ <button id="semantic-lens-clear" type="button" aria-label="Clear semantic lens">Clear</button>+ </div>+ </div>+ <div class="overview-map no-print" id="overview-map" hidden role="region" aria-labelledby="overview-map-title">+ <div class="overview-map-head">+ <span class="overview-map-live" aria-hidden="true"></span>+ <span class="overview-map-copy">+ <strong id="overview-map-title">Semantic radar</strong>+ <small id="overview-map-status" aria-live="polite">Building overview</small>+ </span>+ <button class="overview-map-expand" id="overview-map-expand" type="button" aria-label="Open full semantic radar">Open radar</button>+ <button class="overview-map-close" id="overview-map-close" type="button" aria-label="Close semantic radar">×</button>+ </div>+ <div class="overview-map-surface" id="overview-map-surface" tabindex="0" role="group" aria-label="Diagram overview. Click a node to focus it, or use arrow keys to pan."></div>+ <div class="overview-map-hint" aria-hidden="true"><span>Click node</span><span>Drag to pan</span></div>+ </div>+ <p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>+ <button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button>+ <div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>+ <button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>+ <button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button>+ <button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button>+ <button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>+ </div>+ </div>++ <aside class="reader-rail" id="reader-rail">+ <div class="rail-controls no-print" role="toolbar" aria-label="Side panel">+ <button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>+ <button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>+ </div>+ <!-- Info Cards -->+ <div class="cards">+ <div class="card">+ <div class="card-header">+ <div class="card-dot cyan"></div>+ <h3>Keys</h3>+ </div>+ <ul>+ <li>Every child carries the parent id as a bigint foreign key.</li>+ <li>order is the hub: order_item and payment each hold an order_id.</li>+ <li>email and sku are unique, so they carry a secondary key marker.</li>+ </ul>+ </div>++ <div class="card">+ <div class="card-header">+ <div class="card-dot amber"></div>+ <h3>Optionality</h3>+ </div>+ <ul>+ <li>An order may exist before any payment attempt, so the payment side is zero or many.</li>+ <li>The payment relationship is non-identifying: it is drawn dashed.</li>+ <li>customer, product, and order_item links are all mandatory.</li>+ </ul>+ </div>++ <div class="card">+ <div class="card-header">+ <div class="card-dot emerald"></div>+ <h3>How the bands read</h3>+ </div>+ <ul>+ <li>The checkout band is the order and the payment that settles it.</li>+ <li>The catalog band is what orders point at: one product, one stock record.</li>+ <li>accounts and line items stand alone; a single-table domain keeps its tag in the table header.</li>+ </ul>+ </div>+ </div>+ <nav class="node-outline no-print" id="node-outline" hidden aria-labelledby="node-outline-title">+ <div class="node-outline-head">+ <strong id="node-outline-title">Node index</strong>+ <span class="node-outline-count" id="node-outline-count"></span>+ </div>+ <ol class="node-outline-list" id="node-outline-list"></ol>+ </nav>+ </aside>++ </div>++ <script>+ var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }++ function hasDrawableGeometry(element) {+ if (!element) return false;+ var geometries = /^(path|line|polyline)$/i.test(element.tagName)+ ? [element]+ : Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));+ return geometries.some(function (geometry) {+ var source = geometry.tagName.toLowerCase() === 'path'+ ? geometry.getAttribute('d')+ : geometry.tagName.toLowerCase() === 'polyline'+ ? geometry.getAttribute('points')+ : [geometry.getAttribute('x1'), geometry.getAttribute('y1'), geometry.getAttribute('x2'), geometry.getAttribute('y2')].join(' ');+ if (!source || /(?:^|[^a-z])(?:nan|infinity)(?:[^a-z]|$)/i.test(source) || typeof geometry.getTotalLength !== 'function') return false;+ try {+ var length = Number(geometry.getTotalLength());+ return Number.isFinite(length) && length > 0;+ } catch (_) {+ return false;+ }+ });+ }++ /* ============================================================+ Visual style try-on — one topology, four bundled presets.+ The reader's choice is intentionally session-only: it updates the+ live page and canonical SVG together, but never rewrites the source,+ URL, or a later diagram's authored default.+ ============================================================ */+ Archify.preset = (function () {+ var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };+ var html = document.documentElement;+ var svg = document.querySelector('.diagram-container svg');+ var btn = document.getElementById('btn-preset');+ var label = document.getElementById('preset-label');+ var menu = document.getElementById('preset-menu');+ var options = function () {+ return Array.prototype.slice.call(menu.querySelectorAll('[data-preset-value]'));+ };+ var authored = PRESETS.indexOf(html.getAttribute('data-preset')) >= 0+ ? html.getAttribute('data-preset')+ : 'classic';++ function current() {+ var value = html.getAttribute('data-preset');+ return PRESETS.indexOf(value) >= 0 ? value : authored;+ }+ function nextAfter(preset) {+ return PRESETS[(PRESETS.indexOf(preset) + 1) % PRESETS.length];+ }+ function apply(preset) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (PRESETS.indexOf(preset) < 0) return false;+ html.setAttribute('data-preset', preset);+ svg.setAttribute('data-preset', preset);+ btn.setAttribute('data-preset-option', preset);+ label.textContent = LABELS[preset];+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');+ options().forEach(function (option) {+ var selected = option.getAttribute('data-preset-value') === preset;+ option.setAttribute('aria-checked', String(selected));+ });+ return true;+ }+ function cycle() { return apply(nextAfter(current())); }++ function isOpen() { return menu.classList.contains('open'); }+ function open(focusLast) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ menu.classList.add('open');+ btn.setAttribute('aria-expanded', 'true');+ var available = options();+ var selected = available.find(function (option) { return option.getAttribute('aria-checked') === 'true'; });+ var target = focusLast ? available[available.length - 1] : (selected || available[0]);+ if (target) target.focus();+ return true;+ }+ function close(focusTrigger) {+ menu.classList.remove('open');+ btn.setAttribute('aria-expanded', 'false');+ if (focusTrigger) btn.focus();+ return false;+ }++ apply(authored);+ btn.addEventListener('click', function (e) {+ e.stopPropagation();+ if (isOpen()) close(false);+ else open(false);+ });+ btn.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault();+ if (!isOpen()) open(e.key === 'ArrowUp');+ }+ });+ document.addEventListener('click', function (e) {+ if (!menu.contains(e.target) && e.target !== btn) close(false);+ });+ menu.addEventListener('click', function (e) {+ var option = e.target.closest('[data-preset-value]');+ if (!option || !menu.contains(option)) return;+ if (apply(option.getAttribute('data-preset-value'))) close(true);+ });+ menu.addEventListener('keydown', function (e) {+ if (e.key === 'Escape') { e.preventDefault(); close(true); return; }+ if (e.key === 'Tab') { close(false); return; }+ var available = options();+ var active = available.indexOf(document.activeElement);+ switch (e.key) {+ case 'ArrowDown':+ e.preventDefault();+ if (available.length) available[(active + 1 + available.length) % available.length].focus();+ break;+ case 'ArrowUp':+ e.preventDefault();+ if (available.length) available[(active - 1 + available.length) % available.length].focus();+ break;+ case 'Home':+ e.preventDefault();+ if (available[0]) available[0].focus();+ break;+ case 'End':+ e.preventDefault();+ if (available.length) available[available.length - 1].focus();+ break;+ }+ });+ return { cycle: cycle, apply: apply, current: current, authored: authored, open: open, close: close, isOpen: isOpen };+ })();++ /* ============================================================+ Theme toggle — persists to localStorage, respects system pref+ ============================================================ */++ Archify.theme = (function () {+ var STORAGE_KEY = 'archify-theme';+ var html = document.documentElement;+ var btn = document.getElementById('btn-theme');+ var label = document.getElementById('theme-label');++ // localStorage can throw (blocked cookies, sandboxed iframes); the whole+ // script element dies on an uncaught error, so guard every access.+ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored(value) {+ try { localStorage.setItem(STORAGE_KEY, value); } catch (_) {}+ }+ function urlOverride() {+ // URL param wins (useful for deterministic screenshots / share links)+ try {+ var param = new URLSearchParams(window.location.search).get('theme');+ if (param === 'light' || param === 'dark') return param;+ } catch (_) {}+ return null;+ }++ function resolveInitial() {+ var fromUrl = urlOverride();+ if (fromUrl) return fromUrl;+ var saved = readStored();+ if (saved === 'light' || saved === 'dark') return saved;+ return window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';+ }++ function apply(theme) {+ html.setAttribute('data-theme', theme);+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');+ btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');+ }++ function toggle() {+ var next = html.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';+ apply(next);+ writeStored(next);+ }++ apply(resolveInitial());+ btn.addEventListener('click', toggle);++ // Follow live OS theme changes while the user has no explicit preference.+ try {+ var media = window.matchMedia('(prefers-color-scheme: light)');+ var onChange = function (e) {+ var saved = readStored();+ if (urlOverride() || saved === 'light' || saved === 'dark') return;+ apply(e.matches ? 'light' : 'dark');+ };+ if (media.addEventListener) media.addEventListener('change', onChange);+ else if (media.addListener) media.addListener(onChange);+ } catch (_) {}++ return { toggle: toggle };+ })();++ /* ============================================================+ Export — Share Card / PNG / JPEG / WebP / SVG / WebM and clipboard++ Raster exports are always rendered at 4x source resolution for+ maximum sharpness. The trick: we set the serialized SVG's+ `width`/`height` to viewBox * 4 so the browser rasterizes the+ vectors at that resolution natively. drawImage then draws at+ the image's natural size (no upscaling = no blur).++ JPEG/WebP paint the current theme's background explicitly since+ those formats have no alpha channel.+ ============================================================ */+ (function () {+ var RASTER_SCALE = 4;+ var MOTION_DURATION = 6000;+ var MOTION_FPS = 30;+ var SHARE_CARD_WIDTH = 1200;+ var SHARE_CARD_HEIGHT = 630;+ var SHARE_CARD_PADDING = 40;+ var SHARE_CARD_HEADER = 124;++ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }++ function diagramFilename() {+ var title = (document.title || 'diagram')+ .replace(/\s+Architecture(\s+Diagram)?$/i, '')+ .replace(/\s+Diagram$/i, '')+ .trim();+ return title.replace(/[^a-z0-9_\-]+/gi, '-')+ .toLowerCase()+ .replace(/^-+|-+$/g, '') || 'diagram';+ }++ function currentBg() {+ return getComputedStyle(document.body).backgroundColor || '#ffffff';+ }++ function cleanExportClone(clone) {+ // View transforms and neighborhood focus are HTML exploration state,+ // never part of a downloaded full-diagram artifact.+ clone.style.removeProperty('transform');+ clone.style.removeProperty('clip-path');+ clone.removeAttribute('data-view-scale');+ clone.removeAttribute('data-focus-active');+ clone.removeAttribute('data-reach-active');+ clone.removeAttribute('data-lens-active');+ clone.removeAttribute('data-lens-flow-count');+ clone.removeAttribute('data-lens-flow-density');+ clone.removeAttribute('data-legend-preview-active');+ clone.removeAttribute('data-relationship-preview-active');+ clone.removeAttribute('data-relationship-direct-active');+ clone.removeAttribute('data-relationship-pin-active');+ clone.removeAttribute('data-intent-trace-active');+ clone.removeAttribute('data-route-picking');+ clone.removeAttribute('data-route-active');+ clone.removeAttribute('data-route-journey');+ clone.removeAttribute('data-share-route');+ clone.removeAttribute('data-share-reach');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-probe-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-journey-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-semantic-lens-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-bridge-runtime]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {+ el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');+ el.removeAttribute('data-legend-count');+ el.removeAttribute('data-legend-zero');+ el.removeAttribute('data-legend-selected');+ el.removeAttribute('role');+ el.removeAttribute('tabindex');+ el.removeAttribute('aria-label');+ el.removeAttribute('aria-pressed');+ el.removeAttribute('aria-haspopup');+ el.removeAttribute('aria-controls');+ el.removeAttribute('aria-expanded');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-bridge]'), function (el) {+ el.removeAttribute('data-legend-bridge');+ el.removeAttribute('role');+ el.removeAttribute('aria-label');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-pulse-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-hit-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-beacon]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {+ var originalLabel = el.getAttribute('data-source-evidence-original-label');+ if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ else el.setAttribute('aria-label', originalLabel);+ el.removeAttribute('data-source-evidence-count');+ el.removeAttribute('data-source-evidence-original-label');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-focus-match], [data-focus-selected]'), function (el) {+ el.removeAttribute('data-focus-match');+ el.removeAttribute('data-focus-selected');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reach-match], [data-reach-origin], [data-reach-depth]'), function (el) {+ el.removeAttribute('data-reach-match');+ el.removeAttribute('data-reach-origin');+ el.removeAttribute('data-reach-depth');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-lens-match], [data-lens-selected], [data-lens-peer]'), function (el) {+ el.removeAttribute('data-lens-match');+ el.removeAttribute('data-lens-selected');+ el.removeAttribute('data-lens-peer');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer]'), function (el) {+ el.removeAttribute('data-legend-preview-match');+ el.removeAttribute('data-legend-preview-selected');+ el.removeAttribute('data-legend-preview-peer');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target]'), function (el) {+ el.removeAttribute('data-relationship-preview');+ el.removeAttribute('data-relationship-preview-node');+ el.removeAttribute('data-relationship-preview-source');+ el.removeAttribute('data-relationship-preview-target');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-match], [data-intent-trace-selected]'), function (el) {+ el.removeAttribute('data-intent-trace-match');+ el.removeAttribute('data-intent-trace-selected');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current]'), function (el) {+ el.removeAttribute('data-route-match');+ el.removeAttribute('data-route-start');+ el.removeAttribute('data-route-end');+ el.removeAttribute('data-route-step');+ el.removeAttribute('data-route-candidate');+ el.removeAttribute('data-route-journey-state');+ el.removeAttribute('data-route-journey-current');+ el.style.removeProperty('--route-step');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle]'), function (el) {+ el.removeAttribute('data-share-route-match');+ el.removeAttribute('data-share-route-step');+ el.removeAttribute('data-share-route-start');+ el.removeAttribute('data-share-route-end');+ el.removeAttribute('data-share-route-middle');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth]'), function (el) {+ el.removeAttribute('data-share-reach-match');+ el.removeAttribute('data-share-reach-origin');+ el.removeAttribute('data-share-reach-depth');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-detail], [data-detail-anchor]'), function (el) {+ el.removeAttribute('data-detail');+ el.removeAttribute('data-detail-anchor');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {+ el.setAttribute('aria-pressed', 'false');+ });+ return !clone.hasAttribute('data-view-scale') &&+ !clone.hasAttribute('data-focus-active') &&+ !clone.hasAttribute('data-reach-active') &&+ !clone.hasAttribute('data-lens-active') &&+ !clone.hasAttribute('data-lens-flow-count') &&+ !clone.hasAttribute('data-lens-flow-density') &&+ !clone.hasAttribute('data-legend-preview-active') &&+ !clone.hasAttribute('data-relationship-preview-active') &&+ !clone.hasAttribute('data-relationship-direct-active') &&+ !clone.hasAttribute('data-intent-trace-active') &&+ !clone.hasAttribute('data-route-picking') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ !clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-share-reach') &&+ !clone.style.getPropertyValue('transform') &&+ !clone.style.getPropertyValue('clip-path') &&+ clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ }+++ /**+ * Serialize the main SVG into a standalone document.+ *+ * Two modes:+ * - Default (opts.autoTheme=false) — locks the serialized SVG to the+ * viewer's current theme. Used by the raster pipeline+ * (PNG/JPEG/WebP/clipboard) because canvas rasterization needs+ * deterministic colors; a raster cannot react to+ * prefers-color-scheme after encoding.+ * - theme=auto — emits BOTH dark and light variable sets plus a+ * `@media (prefers-color-scheme)` rule so the resulting SVG+ * self-themes when embedded in GitHub READMEs or other hosts that+ * expose a color scheme. Used for the default "Download SVG".+ * - theme=light|dark — locks the standalone SVG to the requested+ * theme, independently of its source Viewer and host OS themes.+ */+ function applyRouteSnapshot(clone, snapshot) {+ if (!snapshot || !Array.isArray(snapshot.nodeIds) || !Array.isArray(snapshot.edges) ||+ snapshot.nodeIds.length < 2 || snapshot.edges.length !== snapshot.nodeIds.length - 1 ||+ snapshot.hops !== snapshot.edges.length ||+ !snapshot.source || !snapshot.target ||+ snapshot.source.id !== snapshot.nodeIds[0] ||+ snapshot.target.id !== snapshot.nodeIds[snapshot.nodeIds.length - 1]) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId]) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ nodeMatches.push(matchedNodes);+ }++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ var fromId = snapshot.nodeIds[edgeIndex];+ var toId = snapshot.nodeIds[edgeIndex + 1];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ edge.from !== fromId || edge.to !== toId) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push(matchedEdges);+ }++ clone.setAttribute('data-share-route', '');+ nodeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ if (step === 0) element.setAttribute('data-share-route-start', '');+ else if (step === snapshot.nodeIds.length - 1) element.setAttribute('data-share-route-end', '');+ else element.setAttribute('data-share-route-middle', '');+ });+ });+ edgeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ });+ });++ return clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ clone.querySelectorAll('[data-animate], [data-route-match], [data-route-step], [data-route-start], [data-route-end], [data-route-journey-state], [data-route-journey-current], [data-route-journey-overlay]').length === 0 &&+ clone.querySelectorAll('[data-share-route-match]').length ===+ nodeMatches.reduce(function (count, matches) { return count + matches.length; }, 0) ++ edgeMatches.reduce(function (count, matches) { return count + matches.length; }, 0);+ }++ function applyReachSnapshot(clone, snapshot) {+ if (!snapshot || (snapshot.direction !== 'upstream' && snapshot.direction !== 'downstream') ||+ !snapshot.origin || typeof snapshot.origin.id !== 'string' || !snapshot.origin.id ||+ typeof snapshot.origin.label !== 'string' || !snapshot.origin.label.trim() ||+ !Array.isArray(snapshot.nodeIds) || snapshot.nodeIds.length < 2 ||+ !Array.isArray(snapshot.edges) || !snapshot.edges.length ||+ !snapshot.depths || typeof snapshot.depths !== 'object' ||+ !Number.isInteger(snapshot.maxDepth) || snapshot.maxDepth < 1 ||+ snapshot.nodeIds[0] !== snapshot.origin.id) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];+ var measuredMaxDepth = 0;++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ var depth = snapshot.depths[nodeId];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId] ||+ !Number.isInteger(depth) || depth < 0 || depth > snapshot.maxDepth ||+ (nodeId === snapshot.origin.id ? depth !== 0 : depth < 1)) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ nodeMatches.push({ elements: matchedNodes, id: nodeId, depth: depth });+ }+ if (measuredMaxDepth !== snapshot.maxDepth) return false;++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ !nodeIds[edge.from] || !nodeIds[edge.to] ||+ !Number.isInteger(edge.depth) || edge.depth < 1 || edge.depth > snapshot.maxDepth ||+ edge.depth !== Math.max(snapshot.depths[edge.from], snapshot.depths[edge.to])) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push({ elements: matchedEdges, depth: edge.depth });+ }++ clone.setAttribute('data-share-reach', snapshot.direction);+ nodeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ if (match.id === snapshot.origin.id) element.setAttribute('data-share-reach-origin', '');+ });+ });+ edgeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ });+ });++ return clone.getAttribute('data-share-reach') === snapshot.direction &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-reach-active') &&+ clone.querySelectorAll('[data-animate], [data-reach-match], [data-reach-origin], [data-reach-depth]').length === 0 &&+ clone.querySelectorAll('[data-share-reach-origin]').length === 1 &&+ clone.querySelectorAll('[data-share-reach-match]').length ===+ nodeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0) ++ edgeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0);+ }++ function serializeSvg(scale, opts) {+ // scale: multiplier (integer unless the figure is oversized) for intrinsic SVG pixel dimensions used by+ // the raster path. Defaults to 1 (natural size) for SVG download.+ scale = scale || 1;+ opts = opts || {};+ var requestedTheme = opts.theme || (opts.autoTheme === true ? 'auto' : null);+ if (requestedTheme && requestedTheme !== 'auto' && requestedTheme !== 'light' && requestedTheme !== 'dark') {+ throw new Error('Unsupported SVG theme: ' + requestedTheme);+ }+ var autoTheme = requestedTheme === 'auto';+ var svg = document.querySelector('.diagram-container svg');+ var clone = svg.cloneNode(true);++ var canonicalStateClean = cleanExportClone(clone);++ var vb = svg.viewBox.baseVal;+ var finiteSvgDimensions = Number.isFinite(vb.x) && Number.isFinite(vb.y) &&+ Number.isFinite(vb.width) && Number.isFinite(vb.height) && vb.width > 0 && vb.height > 0;+ var routeStateClean = opts.routeSnapshot+ ? canonicalStateClean && finiteSvgDimensions && applyRouteSnapshot(clone, opts.routeSnapshot)+ : null;+ var reachStateClean = opts.reachSnapshot+ ? canonicalStateClean && finiteSvgDimensions && !opts.routeSnapshot && applyReachSnapshot(clone, opts.reachSnapshot)+ : null;+ // Scale width/height so the browser rasterizes the vectors at target+ // resolution directly. viewBox stays unchanged so coordinates don't+ // shift. This is the key to sharp rasters — do NOT scale later via+ // canvas upscaling.+ clone.setAttribute('width', vb.width * scale);+ clone.setAttribute('height', vb.height * scale);+ // Keep copied Viewer layout rules from overriding the export's size.+ clone.style.width = vb.width * scale + 'px';+ clone.style.height = vb.height * scale + 'px';+ clone.style.minWidth = '0';+ clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');++ // Only the SVG-relevant rules: semantic classes, markers, and the+ // theme variable blocks. Toolbar/cards/print CSS can never apply+ // inside a standalone SVG and would only bloat the export.+ var hostStyle = (function () {+ var out = [];+ Array.prototype.forEach.call(document.styleSheets, function (sheet) {+ var rules;+ try { rules = sheet.cssRules; } catch (_) { return; } // cross-origin+ if (!rules) return;+ Array.prototype.forEach.call(rules, function (rule) {+ if (rule.type === 7 && /^archify-/.test(rule.name || '')) {+ out.push(rule.cssText);+ return;+ }+ if (rule.type !== 1) return; // plain style rules only+ var sel = rule.selectorText || '';+ if (/(^|,)\s*(svg|:root|\[data-theme|\[data-preset|\.c-|\.t-|\.a-|\.m-)/.test(sel)) {+ out.push(rule.cssText);+ } else if (opts.figure && sel.indexOf('.diagram-container > svg') !== -1) {+ // Figures look like the Viewer canvas: keep its preset/theme paint+ // (quiet grid, lifted nodes) by rescoping matching rules to svg.+ var scoped = sel.split(',').map(function (part) {+ var at = part.indexOf('.diagram-container > svg');+ if (at === -1) return null;+ var prefix = part.slice(0, at).trim();+ try { if (prefix && !document.documentElement.matches(prefix)) return null; } catch (_) { return null; }+ return 'svg' + part.slice(at + '.diagram-container > svg'.length);+ }).filter(Boolean);+ if (scoped.length) out.push(scoped.join(', ') + ' { ' + rule.style.cssText + ' }');+ }+ });+ });+ return out.join('\n');+ })();++ // Derive the variable list from the stylesheet so newly added theme+ // variables can never be missed by the export pipeline again+ // (--lane-fill/--lane-stroke once were).+ var varNames = (function () {+ var seen = {};+ var names = [];+ (hostStyle.match(/--[a-zA-Z0-9-]+(?=\s*:)/g) || []).forEach(function (n) {+ if (!seen[n]) { seen[n] = true; names.push(n); }+ });+ return names;+ })();++ // Resolve the full variable set for a given data-theme via an+ // off-DOM probe, independent of what the viewer is currently set to.+ function resolveVars(themeAttr) {+ var probe = document.createElement('div');+ probe.setAttribute('data-theme', themeAttr);+ probe.setAttribute('data-preset', document.documentElement.getAttribute('data-preset') || 'classic');+ probe.style.cssText = 'position:absolute;width:0;height:0;visibility:hidden;';+ document.body.appendChild(probe);+ try {+ var c = getComputedStyle(probe);+ return {+ background: c.getPropertyValue('--bg').trim(),+ vars: varNames.map(function (n) {+ return n + ': ' + c.getPropertyValue(n).trim() + ';';+ }).join(' ')+ };+ } finally {+ document.body.removeChild(probe);+ }+ }++ // Keep the same font bytes, character coverage, and attribution in+ // standalone SVGs and the SVG images used by every raster export.+ var fontCss = document.getElementById('archify-fonts').textContent;++ var style = document.createElementNS('http://www.w3.org/2000/svg', 'style');+ var bgRect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');+ // Cover the real viewBox: auto-cropped canvases start below y=0, and a+ // 100% rect anchored at the origin left an unpainted band at the bottom.+ bgRect.setAttribute('x', vb.x);+ bgRect.setAttribute('y', vb.y);+ bgRect.setAttribute('width', vb.width);+ bgRect.setAttribute('height', vb.height);++ if (autoTheme) {+ // Dual-theme SVG. Dark is the default (so hosts without+ // prefers-color-scheme still render), light swaps in via media+ // query, and svg[data-theme="..."] still lets downstream+ // consumers force a specific theme.+ var darkTheme = resolveVars('dark');+ var lightTheme = resolveVars('light');++ style.textContent =+ fontCss + "\n" ++ "svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" ++ hostStyle + "\n" ++ ":root, svg { " + darkTheme.vars + " }\n" ++ "@media (prefers-color-scheme: light) { :root, svg { " + lightTheme.vars + " } }\n" ++ "svg[data-theme=\"light\"] { " + lightTheme.vars + " }\n" ++ "svg[data-theme=\"dark\"] { " + darkTheme.vars + " }\n" ++ "rect.c-bg-rect { fill: var(--bg); }\n";++ // Don't lock the serialized SVG to the viewer's current theme.+ clone.removeAttribute('data-theme');+ // Background follows the CSS variable, not a fixed color, so it+ // swaps with the media query.+ bgRect.setAttribute('class', 'c-bg-rect');+ } else {+ // Raster exports keep the viewer's current theme. Explicit SVG+ // exports instead select their own stable light/dark source.+ var lockedTheme = requestedTheme || document.documentElement.getAttribute('data-theme') || 'dark';+ var resolvedTheme = requestedTheme && resolveVars(lockedTheme);+ var computed = getComputedStyle(document.documentElement);+ var vars = resolvedTheme ? resolvedTheme.vars : varNames.map(function (n) {+ return n + ': ' + computed.getPropertyValue(n).trim() + ';';+ }).join(' ');++ // IMPORTANT: inject the resolved variables AFTER hostStyle,+ // otherwise hostStyle's ":root, [data-theme=\"dark\"] { ... }" rule+ // overrides our chosen theme via later-in-cascade equal-specificity.+ // Keep this order.+ style.textContent =+ fontCss + "\n" ++ "svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" ++ hostStyle + "\n" ++ ":root, svg { " + vars + " }\n";++ if (requestedTheme) clone.setAttribute('data-theme', lockedTheme);+ bgRect.setAttribute('fill', (resolvedTheme ? resolvedTheme.background : computed.getPropertyValue('--bg').trim()) || '#ffffff');+ }++ if (opts.routeSnapshot) {+ style.textContent += "\nsvg[data-share-route] [data-node-id], svg[data-share-route] [data-edge-from], svg[data-share-route] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.18; }\n" ++ "svg[data-share-route] [data-share-route-match], svg[data-share-route] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-route-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" ++ "svg[data-share-route] [data-share-route-start] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3; stroke-dasharray: 5 3; }\n" ++ "svg[data-share-route] [data-share-route-middle] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 2.2; }\n" ++ "svg[data-share-route] [data-share-route-end] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3.4; stroke-dasharray: 1 0; }\n";+ }+ if (opts.reachSnapshot) {+ style.textContent += "\nsvg[data-share-reach] [data-node-id], svg[data-share-reach] [data-edge-from], svg[data-share-reach] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.14; }\n" ++ "svg[data-share-reach] [data-share-reach-match], svg[data-share-reach] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-reach-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" ++ "svg[data-share-reach] [data-edge-from][data-share-reach-match] { stroke-width: 1.55; }\n" ++ "svg[data-share-reach=\"upstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--database-stroke); stroke-width: 3.4; stroke-dasharray: 5 3; }\n" ++ "svg[data-share-reach=\"downstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--backend-stroke); stroke-width: 3.4; stroke-dasharray: 1 0; }\n" ++ "svg[data-preset=\"blueprint\"][data-share-reach] [data-share-reach-origin], svg[data-preset=\"blueprint\"][data-share-reach] [data-edge-from][data-share-reach-match] { filter: none; }\n";+ }++ // Figures draw the diagram on a painted canvas card, like the Viewer.+ if (opts.figure) bgRect.setAttribute('fill', 'none');++ clone.insertBefore(style, clone.firstChild);+ clone.insertBefore(bgRect, style.nextSibling);++ // The XML declaration pins UTF-8: without it, consumers that guess an+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.+ return {+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' ++ new XMLSerializer().serializeToString(clone),+ width: vb.width * scale,+ height: vb.height * scale,+ canonicalStateClean: canonicalStateClean,+ routeStateClean: routeStateClean,+ reachStateClean: reachStateClean+ };+ }++ function download(blob, filename) {+ var url = URL.createObjectURL(blob);+ var a = document.createElement('a');+ a.href = url;+ a.download = filename;+ document.body.appendChild(a);+ a.click();+ a.remove();+ setTimeout(function () { URL.revokeObjectURL(url); }, 1000);+ }++ // Conservative upper bound on total canvas pixels. Older Safari on iOS+ // silently produces a blank canvas above ~16 Mpx; Chrome / Firefox /+ // desktop Safari are far higher but start failing on memory-constrained+ // devices. We pick the largest integer scale in {4,3,2,1} whose target+ // pixel count fits under this cap; a figure too large even at 1x is+ // downscaled to fit rather than allocating an oversized canvas.+ var MAX_CANVAS_PIXELS = 16 * 1024 * 1024;++ function pickSafeScale(vbW, vbH) {+ for (var s = RASTER_SCALE; s >= 1; s--) {+ if (vbW * s * vbH * s <= MAX_CANVAS_PIXELS) return s;+ }+ return Math.sqrt(MAX_CANVAS_PIXELS / (vbW * vbH)) * 0.999;+ }++ // Raster exports reproduce the Viewer page without its controls: the+ // title row with its accent dot, then the diagram on the same rounded+ // canvas card (fill, hairline, shadow, dot field). CSS pixels.+ var FIGURE_MARGIN = 28;+ var FIGURE_CARD_PADDING = 24;+ var FIGURE_TITLE_SIZE = 24;+ var FIGURE_SUBTITLE_SIZE = 14;++ function figureLayout(vb) {+ var titleNode = document.querySelector('.header h1');+ var subtitleNode = document.querySelector('.header .subtitle');+ var container = document.querySelector('.diagram-container');+ var root = getComputedStyle(document.documentElement);+ var card = container ? getComputedStyle(container) : null;+ var title = titleNode ? titleNode.textContent.trim() : '';+ var subtitle = subtitleNode ? subtitleNode.textContent.trim() : '';+ var header = title ? 32 + (subtitle ? 24 : 0) + 18 : 0;+ var cardWidth = vb.width + FIGURE_CARD_PADDING * 2;+ var cardHeight = vb.height + FIGURE_CARD_PADDING * 2;+ var cardFill = card && card.backgroundColor && !/rgba\(0, 0, 0, 0\)|transparent/.test(card.backgroundColor)+ ? card.backgroundColor : (root.getPropertyValue('--panel').trim() || 'transparent');+ return {+ title: title,+ subtitle: subtitle,+ family: titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif',+ text: root.getPropertyValue('--text').trim() || '#111827',+ muted: root.getPropertyValue('--text-muted').trim() || '#64748b',+ accent: root.getPropertyValue('--frontend-stroke').trim() || '#0891b2',+ bg: root.getPropertyValue('--bg').trim() || currentBg(),+ cardFill: cardFill,+ cardBorder: root.getPropertyValue('--panel-border').trim() || 'transparent',+ dot: card && /radial-gradient/.test(card.backgroundImage) ? (root.getPropertyValue('--canvas-dot').trim() || '') : '',+ light: (document.documentElement.getAttribute('data-theme') || 'dark') === 'light',+ header: header,+ cardWidth: cardWidth,+ cardHeight: cardHeight,+ width: cardWidth + FIGURE_MARGIN * 2,+ height: cardHeight + FIGURE_MARGIN * 2 + header+ };+ }++ function paintFigure(ctx, layout) {+ var m = FIGURE_MARGIN;+ ctx.fillStyle = layout.bg;+ ctx.fillRect(0, 0, layout.width, layout.height);+ if (layout.title) {+ var titleMid = m + 16;+ ctx.fillStyle = layout.accent;+ ctx.globalAlpha = 0.16;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 9, 0, Math.PI * 2); ctx.fill();+ ctx.globalAlpha = 1;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 5, 0, Math.PI * 2); ctx.fill();+ ctx.textBaseline = 'middle';+ ctx.fillStyle = layout.text;+ ctx.fillText(fitCanvasText(ctx, layout.title, layout.width - m * 2 - 22, FIGURE_TITLE_SIZE, 14, '650', layout.family), m + 22, titleMid + 1);+ if (layout.subtitle) {+ ctx.fillStyle = layout.muted;+ ctx.fillText(fitCanvasText(ctx, layout.subtitle, layout.width - m * 2, FIGURE_SUBTITLE_SIZE, 11, '400', layout.family), m, titleMid + 30);+ }+ ctx.textBaseline = 'alphabetic';+ }+ var x = m, y = m + layout.header, w = layout.cardWidth, h = layout.cardHeight, r = 16;+ function cardPath() {+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(x, y, w, h, r);+ else ctx.rect(x, y, w, h);+ }+ ctx.save();+ if (layout.light) {+ ctx.shadowColor = 'rgba(15, 23, 42, 0.08)';+ ctx.shadowBlur = 28;+ ctx.shadowOffsetY = 10;+ }+ cardPath();+ ctx.fillStyle = layout.bg;+ ctx.fill();+ ctx.restore();+ cardPath();+ ctx.fillStyle = layout.cardFill;+ ctx.fill();+ if (layout.dot) {+ ctx.save();+ cardPath();+ ctx.clip();+ ctx.fillStyle = layout.dot;+ for (var dy = y + 1; dy < y + h; dy += 20) {+ for (var dx = x + 1; dx < x + w; dx += 20) {+ ctx.beginPath(); ctx.arc(dx, dy, 1, 0, Math.PI * 2); ctx.fill();+ }+ }+ ctx.restore();+ }+ cardPath();+ ctx.strokeStyle = layout.cardBorder;+ ctx.lineWidth = 1;+ ctx.stroke();+ return { x: x + FIGURE_CARD_PADDING, y: y + FIGURE_CARD_PADDING };+ }++ function rasterize(format) {+ // Serialize at a safe scale (RASTER_SCALE=4 by default, reduced if the+ // resulting canvas would exceed MAX_CANVAS_PIXELS). The SVG itself is+ // rasterized at target resolution natively; drawImage draws at natural+ // size — no upsampling blur.+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var layout = figureLayout(vb);+ var scale = pickSafeScale(layout.width, layout.height);+ var data = serializeSvg(scale, { figure: true });+ var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });+ var svgUrl = URL.createObjectURL(svgBlob);++ return new Promise(function (resolve, reject) {+ var img = new Image();+ img.onload = function () {+ try {+ var canvas = document.createElement('canvas');+ canvas.width = Math.round(layout.width * scale);+ canvas.height = Math.round(layout.height * scale);+ var ctx = canvas2dOrThrow(canvas, format);+ // Paint in CSS pixels; the SVG image is already rendered at scale,+ // so drawing it at CSS size under this transform stays 1:1.+ ctx.setTransform(scale, 0, 0, scale, 0, 0);+ var origin = paintFigure(ctx, layout);+ ctx.drawImage(img, origin.x, origin.y, vb.width, vb.height);+ ctx.setTransform(1, 0, 0, 1, 0, 0);+ URL.revokeObjectURL(svgUrl);+ var mime = format === 'jpeg' ? 'image/jpeg' :+ format === 'webp' ? 'image/webp' : 'image/png';+ var quality = format === 'png' ? undefined : 0.95;+ canvas.toBlob(function (blob) {+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));+ else resolve(blob);+ }, mime, quality);+ } catch (error) {+ URL.revokeObjectURL(svgUrl);+ reject(error);+ }+ };+ img.onerror = function (e) {+ URL.revokeObjectURL(svgUrl);+ reject(e);+ };+ img.src = svgUrl;+ });+ }++ function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight, fontFamily) {+ var value = String(text || '').trim();+ var size = startSize;+ var family = fontFamily || "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ while (size > minSize) {+ ctx.font = (weight || '600') + ' ' + size + 'px ' + family;+ if (ctx.measureText(value).width <= maxWidth) return value;+ size -= 1;+ }+ ctx.font = (weight || '600') + ' ' + minSize + 'px ' + family;+ if (ctx.measureText(value).width <= maxWidth) return value;+ var suffix = '\u2026';+ while (value.length > 1 && ctx.measureText(value + suffix).width > maxWidth) {+ value = value.slice(0, -1);+ }+ return value + suffix;+ }++ function canvas2dOrThrow(canvas, label) {+ if (!canvas || typeof canvas.getContext !== 'function') {+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });+ }+ var ctx = canvas.getContext('2d');+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });+ return ctx;+ }++ function renderShareCard(options) {+ var routeSnapshot = options.routeSnapshot || null;+ var reachSnapshot = options.reachSnapshot || null;+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));+ var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot, figure: true });+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));+ var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });+ var svgUrl = URL.createObjectURL(svgBlob);++ return new Promise(function (resolve, reject) {+ var img = new Image();+ img.onload = function () {+ try {+ var canvas = document.createElement('canvas');+ canvas.width = SHARE_CARD_WIDTH;+ canvas.height = SHARE_CARD_HEIGHT;+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));+ var computed = getComputedStyle(document.documentElement);+ var bg = computed.getPropertyValue('--bg').trim() || currentBg();+ var text = computed.getPropertyValue('--text').trim() || '#ffffff';+ var muted = computed.getPropertyValue('--text-muted').trim() || '#94a3b8';+ var border = computed.getPropertyValue('--panel-border').trim() || '#334155';+ var accentProperty = reachSnapshot+ ? (reachSnapshot.direction === 'upstream' ? '--database-stroke' : '--backend-stroke')+ : '--frontend-stroke';+ var accent = computed.getPropertyValue(accentProperty).trim() || '#22d3ee';+ var titleNode = document.querySelector('.header h1');+ var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';+ var subtitle = routeSnapshot+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ })+ : viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ });+ var cardLabel = routeSnapshot+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ })+ : viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() });++ var family = titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif';+ var panelFill = bg;++ ctx.fillStyle = bg;+ ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);++ // Header: a short accent rule and badge over the title and summary.+ ctx.fillStyle = accent;+ ctx.fillRect(SHARE_CARD_PADDING, 34, 28, 3);+ ctx.textBaseline = 'alphabetic';+ ctx.font = '600 12px ' + family;+ ctx.textAlign = 'right';+ ctx.fillStyle = muted;+ ctx.fillText(cardLabel, SHARE_CARD_WIDTH - SHARE_CARD_PADDING, 40);+ ctx.textAlign = 'left';++ ctx.fillStyle = text;+ var fittedTitle = fitCanvasText(ctx, title, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2 - 260, 30, 18, '650', family);+ ctx.fillText(fittedTitle, SHARE_CARD_PADDING, 74);++ ctx.fillStyle = muted;+ var fittedSubtitle = fitCanvasText(ctx, subtitle, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2, 15, 12, '400', family);+ ctx.fillText(fittedSubtitle, SHARE_CARD_PADDING, 99);++ // The diagram sits on one soft rounded panel with an even inset.+ var panelX = SHARE_CARD_PADDING;+ var panelY = SHARE_CARD_HEADER;+ var panelWidth = SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2;+ var panelHeight = SHARE_CARD_HEIGHT - SHARE_CARD_HEADER - SHARE_CARD_PADDING;+ var inset = 18;+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(panelX, panelY, panelWidth, panelHeight, 14);+ else ctx.rect(panelX, panelY, panelWidth, panelHeight);+ ctx.fillStyle = panelFill;+ ctx.fill();+ ctx.strokeStyle = border;+ ctx.lineWidth = 1;+ ctx.stroke();++ var availableWidth = panelWidth - inset * 2;+ var availableHeight = panelHeight - inset * 2;+ var fit = Math.min(availableWidth / data.width, availableHeight / data.height);+ var drawWidth = data.width * fit;+ var drawHeight = data.height * fit;+ var drawX = panelX + inset + (availableWidth - drawWidth) / 2;+ var drawY = panelY + inset + (availableHeight - drawHeight) / 2;+ ctx.drawImage(img, drawX, drawY, drawWidth, drawHeight);+ URL.revokeObjectURL(svgUrl);++ canvas.toBlob(function (blob) {+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));+ else resolve(blob);+ }, 'image/png');+ } catch (error) {+ URL.revokeObjectURL(svgUrl);+ reject(error);+ }+ };+ img.onerror = function (e) {+ URL.revokeObjectURL(svgUrl);+ reject(e);+ };+ img.src = svgUrl;+ });+ }++ function rasterizeShareCard(options) {+ options = options || {};+ if (options.variant !== 'route' && options.variant !== 'reach') {+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));+ }+ if (options.variant === 'route') {+ var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));+ return renderShareCard({ routeSnapshot: routeSnapshot });+ }+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));+ return renderShareCard({ reachSnapshot: snapshot });+ }++ function motionMimeType() {+ if (typeof MediaRecorder === 'undefined') return '';+ var candidates = [+ 'video/webm;codecs=vp9',+ 'video/webm;codecs=vp8',+ 'video/webm'+ ];+ for (var i = 0; i < candidates.length; i++) {+ if (!MediaRecorder.isTypeSupported || MediaRecorder.isTypeSupported(candidates[i])) return candidates[i];+ }+ return '';+ }++ function canRecordMotion() {+ var svg = document.querySelector('.diagram-container svg');+ return !!(svg && svg.getAttribute('data-animation') === 'trace' &&+ typeof MediaRecorder !== 'undefined' && motionMimeType() &&+ typeof HTMLCanvasElement !== 'undefined' &&+ typeof HTMLCanvasElement.prototype.captureStream === 'function');+ }++ // Record the live CSS animation without Puppeteer, ffmpeg, or a network+ // dependency. SVG files loaded through Image are commonly rasterized as+ // one cached bitmap, so repeatedly drawing that Image does not reliably+ // advance its CSS animation. Keep one crisp static SVG background, then+ // render an explicit time-varying signal scene over the real authored+ // relationship geometry on every captured canvas frame.+ function recordWebm(options) {+ options = options || {};+ if (!canRecordMotion()) {+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));+ }+ var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);+ var fps = Math.max(1, Number(options.fps) || MOTION_FPS);+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var scale = Math.min(1, 1280 / vb.width);+ var data = serializeSvg(scale);+ var sourceUrl = URL.createObjectURL(new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' }));++ function createMotionScene(root) {+ var rootMatrix = root.getCTM ? root.getCTM() : null;++ function pointInRoot(element, point) {+ if (!rootMatrix || !element.getCTM || !point.matrixTransform) return { x: point.x, y: point.y };+ try {+ var elementMatrix = element.getCTM();+ if (!elementMatrix) return { x: point.x, y: point.y };+ var mapped = point.matrixTransform(rootMatrix.inverse().multiply(elementMatrix));+ return { x: mapped.x, y: mapped.y };+ } catch (_) {+ return { x: point.x, y: point.y };+ }+ }++ function samplesFor(element) {+ if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var length;+ try { length = element.getTotalLength(); } catch (_) { return []; }+ if (!Number.isFinite(length) || length <= 0) return [];+ var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));+ var points = [];+ for (var i = 0; i <= count; i++) {+ points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ }+ return points;+ }++ function authoredStep(element, fallback) {+ var raw = element.style.getPropertyValue('--step') || getComputedStyle(element).getPropertyValue('--step');+ var value = Number(raw);+ return Number.isFinite(value) ? value : fallback;+ }++ var edges = Array.prototype.slice.call(root.querySelectorAll('[data-animate="edge"]')).map(function (element, index) {+ var computed = getComputedStyle(element);+ return {+ points: samplesFor(element),+ color: computed.stroke && computed.stroke !== 'none' ? computed.stroke : '#22d3ee',+ width: Math.max(1.5, parseFloat(computed.strokeWidth) || 1.5),+ delay: Math.min(12, authoredStep(element, index)) * 0.16+ };+ }).filter(function (edge) { return edge.points.length > 1; });++ var nodes = Array.prototype.slice.call(root.querySelectorAll('[data-node-id][data-animate="node"]')).map(function (element, index) {+ var box;+ try { box = element.getBBox(); } catch (_) { return null; }+ var painted = element.querySelector('[class*="c-"]') || element;+ var computed = getComputedStyle(painted);+ return {+ x: box.x,+ y: box.y,+ width: box.width,+ height: box.height,+ color: computed.stroke && computed.stroke !== 'none' ? computed.stroke : '#22d3ee',+ delay: Math.min(12, authoredStep(element, index)) * 0.16+ };+ }).filter(Boolean);++ return { edges: edges, nodes: nodes, x: vb.x, y: vb.y, width: vb.width, height: vb.height };+ }++ function pointAlong(points, progress) {+ var scaled = Math.max(0, Math.min(1, progress)) * (points.length - 1);+ var index = Math.min(points.length - 2, Math.floor(scaled));+ var mix = scaled - index;+ return {+ x: points[index].x + (points[index + 1].x - points[index].x) * mix,+ y: points[index].y + (points[index + 1].y - points[index].y) * mix+ };+ }++ function roundedRectPath(ctx, x, y, width, height, radius) {+ var r = Math.max(0, Math.min(radius, width / 2, height / 2));+ ctx.beginPath();+ ctx.moveTo(x + r, y);+ ctx.lineTo(x + width - r, y);+ ctx.quadraticCurveTo(x + width, y, x + width, y + r);+ ctx.lineTo(x + width, y + height - r);+ ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);+ ctx.lineTo(x + r, y + height);+ ctx.quadraticCurveTo(x, y + height, x, y + height - r);+ ctx.lineTo(x, y + r);+ ctx.quadraticCurveTo(x, y, x + r, y);+ ctx.closePath();+ }++ function drawMotionFrame(ctx, backgroundImage, motionScene, elapsed) {+ ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);+ ctx.drawImage(backgroundImage, 0, 0, ctx.canvas.width, ctx.canvas.height);+ ctx.save();+ ctx.scale(ctx.canvas.width / motionScene.width, ctx.canvas.height / motionScene.height);+ ctx.translate(-motionScene.x, -motionScene.y);++ motionScene.edges.forEach(function (edge) {+ var duration = 1.75;+ var progress = (elapsed - edge.delay) / duration;+ if (progress < 0 || progress > 1) return;+ var head = Math.max(0, Math.min(1, progress));+ var tail = Math.max(0, head - 0.24);+ var opacity = Math.sin(Math.PI * Math.min(1, progress));++ ctx.save();+ ctx.strokeStyle = edge.color;+ ctx.fillStyle = edge.color;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ ctx.lineWidth = Math.max(3.2, edge.width * 2.2);+ ctx.globalAlpha = 0.42 + opacity * 0.5;+ ctx.shadowColor = edge.color;+ ctx.shadowBlur = 10;+ ctx.beginPath();+ for (var i = 0; i <= 14; i++) {+ var trailPoint = pointAlong(edge.points, tail + (head - tail) * i / 14);+ if (i === 0) ctx.moveTo(trailPoint.x, trailPoint.y);+ else ctx.lineTo(trailPoint.x, trailPoint.y);+ }+ ctx.stroke();++ var point = pointAlong(edge.points, head);+ ctx.globalAlpha = 0.95;+ ctx.beginPath();+ ctx.arc(point.x, point.y, 4.8, 0, Math.PI * 2);+ ctx.fill();+ ctx.restore();+ });++ motionScene.nodes.forEach(function (node) {+ var progress = (elapsed - node.delay) / 2.6;+ if (progress < 0 || progress > 1) return;+ var pulse = Math.sin(Math.PI * progress);+ if (pulse <= 0.02) return;+ ctx.save();+ ctx.strokeStyle = node.color;+ ctx.lineWidth = 1.4 + pulse * 1.8;+ ctx.globalAlpha = pulse * 0.5;+ ctx.shadowColor = node.color;+ ctx.shadowBlur = 12 * pulse;+ var inset = 2 + pulse * 3;+ roundedRectPath(ctx, node.x - inset, node.y - inset, node.width + inset * 2, node.height + inset * 2, 8);+ ctx.stroke();+ ctx.restore();+ });++ ctx.restore();+ }++ var motionScene = createMotionScene(svg);++ return new Promise(function (resolve, reject) {+ var backgroundImage = new Image();+ backgroundImage.onload = function () {+ var canvas = document.createElement('canvas');+ canvas.width = Math.max(2, Math.round(data.width / 2) * 2);+ canvas.height = Math.max(2, Math.round(data.height / 2) * 2);+ var ctx = canvas.getContext('2d');+ var stream = canvas.captureStream(fps);+ var mime = motionMimeType();+ var recorder;+ try {+ recorder = new MediaRecorder(stream, { mimeType: mime, videoBitsPerSecond: 6000000 });+ } catch (err) {+ URL.revokeObjectURL(sourceUrl);+ stream.getTracks().forEach(function (track) { track.stop(); });+ reject(err);+ return;+ }+ var chunks = [];+ var raf = 0;+ var stopped = false;+ var startedAt = performance.now();+ function cleanup() {+ if (stopped) return;+ stopped = true;+ cancelAnimationFrame(raf);+ URL.revokeObjectURL(sourceUrl);+ stream.getTracks().forEach(function (track) { track.stop(); });+ }+ function draw(now) {+ var elapsed = Math.max(0, ((Number(now) || performance.now()) - startedAt) / 1000);+ drawMotionFrame(ctx, backgroundImage, motionScene, elapsed);+ raf = requestAnimationFrame(draw);+ }+ recorder.ondataavailable = function (event) {+ if (event.data && event.data.size) chunks.push(event.data);+ };+ recorder.onerror = function (event) {+ cleanup();+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));+ };+ recorder.onstop = function () {+ cleanup();+ var blob = new Blob(chunks, { type: recorder.mimeType || mime });+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));+ else resolve(blob);+ };+ drawMotionFrame(ctx, backgroundImage, motionScene, 0);+ recorder.start(250);+ startedAt = performance.now();+ raf = requestAnimationFrame(draw);+ setTimeout(function () {+ if (recorder.state === 'inactive') return;+ // Chromium normally emits the final chunk during stop(), but+ // some embedded browser shells need an explicit encoder flush+ // first. Keep the short grace window bounded and harmless for+ // browsers that already delivered timeslice chunks.+ try { recorder.requestData(); } catch (_) {}+ setTimeout(function () {+ if (recorder.state !== 'inactive') recorder.stop();+ }, 120);+ }, duration);+ };+ backgroundImage.onerror = function () {+ URL.revokeObjectURL(sourceUrl);+ reject(exportError('viewer.export.error.webmBackground'));+ };+ backgroundImage.src = sourceUrl;+ });+ }++ var menu = document.getElementById('export-menu');+ var btn = document.getElementById('btn-export');+ var routeShareItem = menu.querySelector('button[data-action="route-share-card"]');+ var reachShareItem = menu.querySelector('button[data-action="reach-share-card"]');+ var items = function () {+ return Array.prototype.slice.call(menu.querySelectorAll('button[role="menuitem"]'));+ };++ function syncRouteShareItem() {+ var snapshot = Archify.routeProbe && typeof Archify.routeProbe.exportSnapshot === 'function'+ ? Archify.routeProbe.exportSnapshot()+ : null;+ routeShareItem.hidden = !snapshot;+ routeShareItem.disabled = !snapshot;+ return snapshot;+ }++ function syncReachShareItem() {+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ reachShareItem.hidden = !snapshot;+ reachShareItem.disabled = !snapshot;+ return snapshot;+ }++ // ---- Clipboard support ----------------------------------------------+ function canCopyImage() {+ return typeof ClipboardItem !== 'undefined' &&+ navigator.clipboard &&+ typeof navigator.clipboard.write === 'function';+ }++ // ---- Raster format detection ----------------------------------------+ // canvas.toBlob('image/webp') silently returns a PNG on browsers without+ // WebP encoding (older Safari), so detect explicitly.+ function supports(format) {+ if (format === 'svg' || format === 'svg-light' || format === 'svg-dark' || format === 'png') return true;+ if (format === 'webm') return canRecordMotion();+ var mime = format === 'jpeg' ? 'image/jpeg' : 'image/webp';+ try {+ var c = document.createElement('canvas');+ c.width = c.height = 2;+ return c.toDataURL(mime).indexOf('data:' + mime) === 0;+ } catch (_) { return false; }+ }++ // Gray out unsupported items.+ items().forEach(function (it) {+ if (it.dataset.format && !supports(it.dataset.format)) {+ it.disabled = true;+ it.title = viewerText('viewer.export.unsupported');+ }+ if (it.dataset.action === 'copy' && !canCopyImage()) {+ it.disabled = true;+ it.title = viewerText('viewer.export.clipboardUnsupported');+ }+ });++ // ---- Toast ----------------------------------------------------------+ // A live region only announces CHANGES to an existing node, so the toast+ // element is created once up front and updated in place.+ var toastEl = document.createElement('div');+ toastEl.className = 'archify-toast';+ toastEl.setAttribute('role', 'status');+ document.body.appendChild(toastEl);+ var toastTimer = null;++ function toast(msg) {+ toastEl.textContent = '';+ requestAnimationFrame(function () {+ toastEl.textContent = msg;+ toastEl.classList.add('show');+ });+ clearTimeout(toastTimer);+ toastTimer = setTimeout(function () { toastEl.classList.remove('show'); }, 1500);+ }++ function open(focusLast) {+ if (Archify.preset && Archify.preset.isOpen()) Archify.preset.close(false);+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ syncRouteShareItem();+ syncReachShareItem();+ menu.classList.add('open');+ btn.setAttribute('aria-expanded', 'true');+ var available = items().filter(function (i) { return !i.hidden && !i.disabled; });+ var target = focusLast ? available[available.length - 1] : available[0];+ if (target) target.focus();+ }+ function close(focusTrigger) {+ menu.classList.remove('open');+ btn.setAttribute('aria-expanded', 'false');+ if (focusTrigger) btn.focus();+ }+ function isOpen() { return menu.classList.contains('open'); }++ btn.addEventListener('click', function (e) {+ e.stopPropagation();+ if (isOpen()) close(false);+ else open();+ });+ // APG menu-button pattern: ArrowDown/ArrowUp on the trigger opens the menu.+ btn.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault();+ if (!isOpen()) open(e.key === 'ArrowUp');+ }+ });+ document.addEventListener('click', function (e) {+ if (!menu.contains(e.target) && e.target !== btn) close(false);+ });++ // Keyboard navigation inside the menu.+ // Menu items: Up/Down, Home/End.+ // Esc closes + returns focus to trigger; Tab closes.+ menu.addEventListener('keydown', function (e) {+ if (e.key === 'Escape') { e.preventDefault(); close(true); return; }+ if (e.key === 'Tab') { close(false); return; }++ var available = items().filter(function (i) { return !i.hidden && !i.disabled; });+ var current = available.indexOf(document.activeElement);+ switch (e.key) {+ case 'ArrowDown':+ e.preventDefault();+ if (available.length) available[(current + 1 + available.length) % available.length].focus();+ break;+ case 'ArrowUp':+ e.preventDefault();+ if (available.length) available[(current - 1 + available.length) % available.length].focus();+ break;+ case 'Home':+ e.preventDefault();+ if (available[0]) available[0].focus();+ break;+ case 'End':+ e.preventDefault();+ if (available.length) available[available.length - 1].focus();+ break;+ }+ });++ function runExport(format) {+ if (['svg', 'svg-light', 'svg-dark', 'png', 'jpeg', 'webp', 'webm'].indexOf(format) === -1) {+ return Promise.reject(exportError('viewer.export.unsupported'));+ }+ var base = diagramFilename();+ var svgTheme = format === 'svg' ? 'auto' :+ format === 'svg-light' ? 'light' :+ format === 'svg-dark' ? 'dark' : null;+ close(true);+ clearExportReceipt();+ if (format === 'webm') toast(viewerText('viewer.export.recording'));+ return (svgTheme+ ? Promise.resolve(serializeSvg(1, { theme: svgTheme })).then(function (d) {+ var blob = new Blob([d.svgString], { type: 'image/svg+xml;charset=utf-8' });+ recordExportReceipt('svg', blob, d.canonicalStateClean);+ download(blob, base + (svgTheme === 'auto' ? '' : '-' + svgTheme) + '.svg');+ })+ : format === 'webm'+ ? recordWebm().then(function (blob) {+ document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));+ recordExportReceipt('webm', blob, true);+ download(blob, base + '.webm');+ toast(viewerText('viewer.export.downloadedWebm'));+ })+ : rasterize(format).then(function (blob) {+ recordExportReceipt(format, blob, true);+ download(blob, base + '.' + format);+ })+ ).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', format);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {+ var motionItem = menu.querySelector('button[data-format="webm"]');+ if (motionItem) {+ motionItem.disabled = true;+ motionItem.title = viewerText('viewer.export.motionUnavailable');+ motionItem.style.opacity = '0.5';+ }+ toast(viewerText('viewer.export.webmUnavailable'));+ return;+ }+ alert(viewerText('viewer.export.failed', { message: message }));+ });+ }++ function runRouteShareCard() {+ close(false);+ clearExportReceipt();+ var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();+ var blobPromise = snapshot+ ? renderShareCard({ routeSnapshot: snapshot })+ : Promise.reject(exportError('viewer.export.routeRequired'));+ return blobPromise.then(function (blob) {+ recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);+ download(blob, diagramFilename() + '-route-share-card.png');+ toast(viewerText('viewer.export.downloadedRoute'));+ return blob;+ }).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', 'share-card');+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));+ });+ }++ function runReachShareCard() {+ close(false);+ clearExportReceipt();+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ var blobPromise = snapshot+ ? renderShareCard({ reachSnapshot: snapshot })+ : Promise.reject(exportError('viewer.export.reachRequired'));+ return blobPromise.then(function (blob) {+ recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);+ download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');+ toast(viewerText('viewer.export.downloadedReach'));+ return blob;+ }).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', 'share-card');+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));+ });+ }++ // A compact, machine-readable receipt for local QA and generated proof+ // galleries. It exposes no diagram contents, only the completed format,+ // byte count, and whether temporary viewer state was excluded.+ function recordExportReceipt(format, blob, canonical, dimensions, variant, routeStateClean, reachStateClean) {+ document.documentElement.setAttribute('data-last-export-format', format);+ document.documentElement.setAttribute('data-last-export-bytes', String(blob.size));+ document.documentElement.setAttribute('data-last-export-canonical', canonical ? 'true' : 'false');+ if (variant) {+ document.documentElement.setAttribute('data-last-export-variant', variant);+ } else {+ document.documentElement.removeAttribute('data-last-export-variant');+ }+ if (routeStateClean === true) {+ document.documentElement.setAttribute('data-last-export-route-state-clean', 'true');+ } else {+ document.documentElement.removeAttribute('data-last-export-route-state-clean');+ }+ if (reachStateClean === true) {+ document.documentElement.setAttribute('data-last-export-reach-state-clean', 'true');+ } else {+ document.documentElement.removeAttribute('data-last-export-reach-state-clean');+ }+ if (dimensions) {+ document.documentElement.setAttribute('data-last-export-width', String(dimensions.width));+ document.documentElement.setAttribute('data-last-export-height', String(dimensions.height));+ } else {+ document.documentElement.removeAttribute('data-last-export-width');+ document.documentElement.removeAttribute('data-last-export-height');+ }+ }++ function clearExportReceipt() {+ document.documentElement.removeAttribute('data-last-export-format');+ document.documentElement.removeAttribute('data-last-export-bytes');+ document.documentElement.removeAttribute('data-last-export-canonical');+ document.documentElement.removeAttribute('data-last-export-width');+ document.documentElement.removeAttribute('data-last-export-height');+ document.documentElement.removeAttribute('data-last-export-variant');+ document.documentElement.removeAttribute('data-last-export-route-state-clean');+ document.documentElement.removeAttribute('data-last-export-reach-state-clean');+ document.documentElement.removeAttribute('data-last-export-error-format');+ document.documentElement.removeAttribute('data-last-export-error');+ }++ function writePngToClipboard(blobPromise) {+ // WebKit requires ClipboardItem to be constructed synchronously inside+ // the user gesture. Chromium accepts the same pending Promise<Blob>;+ // engines that reject promise values fall back to an awaited Blob.+ try {+ return navigator.clipboard.write([new ClipboardItem({ 'image/png': blobPromise })]);+ } catch (_) {+ return blobPromise.then(function (blob) {+ return navigator.clipboard.write([new ClipboardItem({ 'image/png': blob })]);+ });+ }+ }++ function runCopy() {+ close(true);+ clearExportReceipt();+ if (!canCopyImage()) {+ alert(viewerText('viewer.export.clipboardUnsupported.short'));+ return;+ }+ var blobPromise = rasterize('png');+ return writePngToClipboard(blobPromise).then(function () {+ toast(viewerText('viewer.export.copiedPng'));+ }).catch(function (err) {+ console.error(err);+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));+ });+ }++ menu.addEventListener('click', function (e) {+ var routeShareCardBtn = e.target.closest('button[data-action="route-share-card"]');+ if (routeShareCardBtn && !routeShareCardBtn.disabled && !routeShareCardBtn.hidden) { runRouteShareCard(); return; }++ var reachShareCardBtn = e.target.closest('button[data-action="reach-share-card"]');+ if (reachShareCardBtn && !reachShareCardBtn.disabled && !reachShareCardBtn.hidden) { runReachShareCard(); return; }++ var copyBtn = e.target.closest('button[data-action="copy"]');+ if (copyBtn && !copyBtn.disabled) { runCopy(); return; }++ var formatBtn = e.target.closest('button[data-format]');+ if (formatBtn && !formatBtn.disabled) { runExport(formatBtn.dataset.format); }+ });++ Archify.motion = { canRecord: canRecordMotion, recordWebm: recordWebm };+ Archify.exportMenu = {+ open: open,+ close: close,+ isOpen: isOpen,+ run: runExport,+ shareCard: rasterizeShareCard,+ downloadRouteShareCard: runRouteShareCard,+ downloadReachShareCard: runReachShareCard,+ syncRouteShare: syncRouteShareItem,+ syncReachShare: syncReachShareItem+ };++ // Auto-open on page load for demo/screenshot purposes: ?openExport=1+ // Wait for fonts (so the menu doesn't flash before typography lands)+ // and paint before opening. Fallback timeout for browsers without the+ // Font Loading API.+ try {+ if (new URLSearchParams(window.location.search).get('openExport') === '1') {+ var openWhenReady = function () {+ requestAnimationFrame(function () { requestAnimationFrame(open); });+ };+ if (document.fonts && document.fonts.ready) {+ document.fonts.ready.then(openWhenReady);+ } else {+ setTimeout(openWhenReady, 200);+ }+ }+ } catch (_) {}+ })();+++ /* ============================================================+ Motion Governor — one reader switch and one motion budget. Ambient+ trace yields to the strongest semantic owner; Still also parks bounded+ viewer signals without discarding their static meaning.+ ============================================================ */+ Archify.motionGovernor = (function () {+ var STORAGE_KEY = 'archify-motion';+ var html = document.documentElement;+ var svg = document.querySelector('.diagram-container svg');+ var btn = document.getElementById('btn-motion');+ var label = document.getElementById('motion-label');+ var motionQuery = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;+ var capable = !!(svg && svg.getAttribute('data-animation') === 'trace');+ var readerPaused = false;+ var suspensions = Object.create(null);+ var explicitOwner = '';+ var owner = '';+ var ownerToken = 0;+ var ownerCleanup = null;+ var lastEffectivePaused = null;+ var ambientStarted = false;+ var ambientPending = new Set();++ function detachAmbientBoundary() {+ if (!svg) return;+ svg.removeEventListener('animationend', onAmbientBoundary, true);+ svg.removeEventListener('animationcancel', onAmbientBoundary, true);+ }+ function settleAmbient(reason) {+ if (!capable) return false;+ ambientStarted = true;+ ambientPending.clear();+ detachAmbientBoundary();+ html.setAttribute('data-ambient-motion', 'settled');+ html.setAttribute('data-ambient-settle-reason', reason || 'complete');+ return true;+ }+ function onAmbientBoundary(event) {+ if (!ambientPending.has(event.target)) return;+ ambientPending.delete(event.target);+ if (!ambientPending.size) settleAmbient('complete');+ }+ function startAmbient() {+ if (ambientStarted || !capable) return false;+ ambientStarted = true;+ ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));+ if (!ambientPending.size) return settleAmbient('empty');+ svg.addEventListener('animationend', onAmbientBoundary, true);+ svg.addEventListener('animationcancel', onAmbientBoundary, true);+ html.setAttribute('data-ambient-motion', 'running');+ html.removeAttribute('data-ambient-settle-reason');+ return true;+ }++ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored() {+ try {+ if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');+ else localStorage.removeItem(STORAGE_KEY);+ } catch (_) {}+ }+ function reducedMotion() {+ return !!(motionQuery && motionQuery.matches);+ }+ function hasSuspension() {+ return Object.keys(suspensions).length > 0;+ }+ function effectivePaused() {+ return readerPaused || reducedMotion() || hasSuspension();+ }+ function ownerLabel(value) {+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');+ }+ function render() {+ if (!capable) return;+ var systemPaused = reducedMotion();+ var paused = effectivePaused();+ html.setAttribute('data-motion', paused ? 'still' : 'live');+ if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {+ settleAmbient('suppressed');+ } else if (!ambientStarted) {+ startAmbient();+ }+ btn.setAttribute('aria-pressed', paused ? 'false' : 'true');+ btn.disabled = systemPaused;+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');+ if (paused && lastEffectivePaused !== true && Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: systemPaused ? 'reduced-motion' : (hasSuspension() ? 'hidden' : 'still') });+ }+ lastEffectivePaused = paused;+ if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();+ if (systemPaused) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');+ } else if (hasSuspension()) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');+ } else if (paused) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');+ } else if (owner) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });+ } else {+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');+ }+ }+ function setPaused(next, options) {+ options = options || {};+ readerPaused = !!next;+ if (options.persist !== false) writeStored();+ render();+ return readerPaused;+ }+ function publishOwner() {+ owner = explicitOwner || deriveOwner();+ if (owner) html.setAttribute('data-motion-owner', owner);+ else html.removeAttribute('data-motion-owner');+ render();+ return owner;+ }+ function deriveOwner() {+ if (!svg) return '';+ if (svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active')) return 'route';+ if (svg.hasAttribute('data-lens-active')) return 'lens';+ if (svg.hasAttribute('data-relationship-preview-active')) return 'relationship';+ if (svg.hasAttribute('data-intent-trace-active')) return 'intent';+ if (svg.hasAttribute('data-focus-active')) return 'focus';+ if (svg.hasAttribute('data-legend-preview-active')) return 'legend';+ return '';+ }+ function clearClaim(preempted) {+ var cleanup = ownerCleanup;+ ownerCleanup = null;+ explicitOwner = '';+ if (preempted && cleanup) {+ try { cleanup(); } catch (_) {}+ }+ }+ function claim(next, cleanup) {+ if (!capable || !next) return 0;+ clearClaim(true);+ ownerToken += 1;+ explicitOwner = next;+ ownerCleanup = typeof cleanup === 'function' ? cleanup : null;+ publishOwner();+ return ownerToken;+ }+ function release(token) {+ if (!capable || token !== ownerToken || !explicitOwner) return false;+ clearClaim(false);+ ownerToken += 1;+ publishOwner();+ return true;+ }+ function suspend(reason) {+ var key = String(reason || 'runtime');+ var active = true;+ suspensions[key] = (suspensions[key] || 0) + 1;+ render();+ return function () {+ if (!active) return false;+ active = false;+ if (suspensions[key] > 1) suspensions[key] -= 1;+ else delete suspensions[key];+ render();+ return true;+ };+ }+ function syncVisibility() {+ if (document.hidden) {+ suspensions.visibility = true;+ html.setAttribute('data-document-hidden', 'true');+ } else {+ delete suspensions.visibility;+ html.removeAttribute('data-document-hidden');+ }+ render();+ }++ if (!capable) {+ btn.hidden = true;+ html.removeAttribute('data-motion-capable');+ html.removeAttribute('data-motion');+ html.removeAttribute('data-motion-owner');+ html.removeAttribute('data-ambient-motion');+ html.removeAttribute('data-ambient-settle-reason');+ return {+ capable: false,+ pause: function () { return false; },+ resume: function () { return false; },+ toggle: function () { return false; },+ setMode: function () { return 'still'; },+ mode: function () { return 'still'; },+ claim: function () { return 0; },+ release: function () { return false; },+ suspend: function () { return function () { return false; }; },+ isPaused: function () { return true; },+ owner: function () { return ''; }+ };+ }++ html.setAttribute('data-motion-capable', 'true');+ btn.hidden = false;+ readerPaused = readStored() === 'still';+ btn.addEventListener('click', function () { setPaused(!readerPaused); });+ if (motionQuery) {+ if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);+ else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);+ }+ document.addEventListener('visibilitychange', syncVisibility);+ if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {+ var ownerObserver = new MutationObserver(function () { publishOwner(); });+ ownerObserver.observe(svg, {+ attributes: true,+ attributeFilter: [+ 'data-route-picking', 'data-route-active',+ 'data-lens-active', 'data-relationship-preview-active', 'data-intent-trace-active',+ 'data-focus-active', 'data-legend-preview-active'+ ]+ });+ }+ syncVisibility();+ publishOwner();+ render();++ return {+ capable: true,+ pause: function () { return setPaused(true); },+ resume: function () { return setPaused(false); },+ toggle: function () { return setPaused(!readerPaused); },+ setMode: function (next, options) {+ setPaused(next === 'still', options);+ return effectivePaused() ? 'still' : 'live';+ },+ mode: function () { return effectivePaused() ? 'still' : 'live'; },+ claim: claim,+ release: release,+ suspend: suspend,+ isPaused: effectivePaused,+ owner: function () { return owner; }+ };+ })();++ /* Verified repository evidence is emitted only after the renderer checks+ the authored GitHub revision, source blobs, and optional line ranges+ against the explicit --repo-root. It remains outside the SVG so every+ canonical visual export stays free of repository paths. */+ Archify.sourceEvidence = (function () {+ var element = document.getElementById('archify-source-evidence-data');+ var payload = null;+ var svgNamespace = 'http://www.w3.org/2000/svg';+ if (element) {+ try {+ var parsed = JSON.parse(element.textContent || 'null');+ if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;+ } catch (_) {}+ }+ function installBeacons() {+ if (!payload) return 0;+ var svg = document.querySelector('.diagram-container svg');+ if (!svg) return 0;+ var installed = 0;+ Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ var id = node.getAttribute('data-node-id');+ var sources = payload.nodes[id];+ if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;+ var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');+ var box;+ try { box = (shape || node).getBBox(); } catch (_) { return; }+ if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;++ var count = sources.length;+ var label = viewerCount('viewer.passport.beacon', count);+ var beacon = document.createElementNS(svgNamespace, 'g');+ beacon.classList.add('source-evidence-beacon');+ beacon.setAttribute('data-source-evidence-beacon', '');+ beacon.setAttribute('aria-hidden', 'true');+ var brandOffset = node.hasAttribute('data-node-brand') ? 22 : 0;+ var title = document.createElementNS(svgNamespace, 'title');+ title.textContent = label;+ var plate = document.createElementNS(svgNamespace, 'rect');+ plate.setAttribute('height', '13');+ plate.setAttribute('rx', '6.5');+ var text = document.createElementNS(svgNamespace, 'text');+ text.setAttribute('y', '9.4');+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;+ beacon.appendChild(title);+ beacon.appendChild(plate);+ beacon.appendChild(text);+ node.appendChild(beacon);++ // Measure the real glyph advance, then clamp the plate between 24+ // and 36px; a still-wider label is squeezed with textLength so the+ // badge never overlaps the neighbouring brand mark or sigil.+ var textWidth = 16;+ try {+ var measured = text.getComputedTextLength();+ if (Number.isFinite(measured) && measured > 0) textWidth = measured;+ } catch (_) {}+ var plateWidth = Math.min(36, Math.max(24, textWidth + 8));+ if (textWidth > plateWidth - 8) {+ text.setAttribute('textLength', String(plateWidth - 8));+ text.setAttribute('lengthAdjust', 'spacingAndGlyphs');+ }+ plate.setAttribute('width', String(plateWidth));+ text.setAttribute('x', String(plateWidth / 2));+ beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 6 - brandOffset - plateWidth) + ' ' + (box.y + 4.5) + ')');++ var originalLabel = node.getAttribute('aria-label') || '';+ node.setAttribute('data-source-evidence-count', String(count));+ node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));+ installed += 1;+ });+ return installed;+ }+ return {+ available: function () { return Boolean(payload); },+ repository: function () { return payload ? payload.repository : null; },+ node: function (id) {+ var sources = payload && payload.nodes ? payload.nodes[id] : null;+ return Array.isArray(sources) ? sources.slice() : [];+ },+ installBeacons: installBeacons+ };+ })();+ Archify.sourceEvidence.installBeacons();++ /* ============================================================+ Explore — stable-ID neighborhood focus + dependency-free pan/zoom.+ Renderer IDs become deep-linkable semantic hooks without turning the+ standalone artifact into a canvas editor.+ ============================================================ */+ Archify.focus = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var chip = document.getElementById('focus-chip');+ var label = document.getElementById('focus-label');+ var detail = document.getElementById('focus-detail');+ var kind = document.getElementById('focus-kind');+ var context = document.getElementById('focus-context');+ var tag = document.getElementById('focus-tag');+ var semanticId = document.getElementById('focus-id');+ var evidence = document.getElementById('focus-evidence');+ var repositoryLink = document.getElementById('focus-repository');+ var evidenceLinks = document.getElementById('focus-evidence-links');+ var summary = document.getElementById('focus-summary');+ var reachSection = document.getElementById('focus-reach');+ var reachStatus = document.getElementById('focus-reach-status');+ var upstreamBtn = document.getElementById('btn-reach-upstream');+ var downstreamBtn = document.getElementById('btn-reach-downstream');+ var upstreamCount = document.getElementById('focus-reach-upstream-count');+ var downstreamCount = document.getElementById('focus-reach-downstream-count');+ var relationshipList = document.getElementById('relationship-lens-list');+ var copyBtn = document.getElementById('btn-focus-copy');+ var relationsBtn = document.getElementById('btn-focus-relations');+ var clearBtn = document.getElementById('btn-focus-clear');+ var moveBtn = document.getElementById('btn-focus-move');+ var activeIds = [];+ var hoveredRelationship = null;+ var focusedRelationship = null;+ var pinnedRelationship = null;+ var pinnedRelationshipKey = null;+ var activeRelationshipPreview = null;+ var relationshipHitOverlay = null;+ var relationshipHitTargets = [];+ var directPreviewTimer = null;+ var lensDrag = null;+ var lensDragClickPointer = null;+ var manualLensPosition = null;+ var reachabilityMode = null;+ var activeReachability = null;+ var svgNamespace = 'http://www.w3.org/2000/svg';+ var reducedMotionQuery = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;+ var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') || (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '');+ }+ function reachabilityRelationships() {+ var seen = Object.create(null);+ var relationships = [];+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!from || !to || seen[key]) return;+ seen[key] = true;+ relationships.push({ key: key, from: from, to: to });+ });+ return relationships;+ }+ function computeReachability(originId, direction, relationships) {+ if (typeof originId !== 'string' || !originId ||+ (direction !== 'upstream' && direction !== 'downstream') ||+ !Array.isArray(relationships)) return null;+ var records = [];+ var seenKeys = Object.create(null);+ relationships.forEach(function (relationship, index) {+ if (!relationship || typeof relationship.from !== 'string' || !relationship.from ||+ typeof relationship.to !== 'string' || !relationship.to) return;+ var key = typeof relationship.key === 'string' && relationship.key+ ? relationship.key : String(index);+ if (seenKeys[key]) return;+ seenKeys[key] = true;+ records.push({ key: key, from: relationship.from, to: relationship.to });+ });++ var depths = Object.create(null);+ var order = [];+ var queue = [originId];+ depths[originId] = 0;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var current = queue[cursor];+ records.forEach(function (relationship) {+ var next = null;+ if (direction === 'downstream' && relationship.from === current) next = relationship.to;+ else if (direction === 'upstream' && relationship.to === current) next = relationship.from;+ if (next == null || Object.prototype.hasOwnProperty.call(depths, next)) return;+ depths[next] = depths[current] + 1;+ queue.push(next);+ });+ }+ queue.forEach(function (id) { order.push(id); });++ var edgeKeys = [];+ records.forEach(function (relationship) {+ if (Object.prototype.hasOwnProperty.call(depths, relationship.from) &&+ Object.prototype.hasOwnProperty.call(depths, relationship.to)) edgeKeys.push(relationship.key);+ });+ var maxDepth = order.reduce(function (maximum, id) {+ return Math.max(maximum, depths[id]);+ }, 0);+ return {+ direction: direction,+ originId: originId,+ nodeIds: order,+ edgeKeys: edgeKeys,+ depths: depths,+ maxDepth: maxDepth+ };+ }+ function reachabilityFor(id, direction) {+ return computeReachability(id, direction, reachabilityRelationships());+ }+ function resetReachabilityButtons() {+ upstreamBtn.setAttribute('aria-pressed', 'false');+ downstreamBtn.setAttribute('aria-pressed', 'false');+ }+ function clearReachability(options) {+ options = options || {};+ reachabilityMode = null;+ activeReachability = null;+ svg.removeAttribute('data-reach-active');+ chip.removeAttribute('data-reach-mode');+ nodes().forEach(function (node) {+ node.removeAttribute('data-reach-match');+ node.removeAttribute('data-reach-origin');+ node.removeAttribute('data-reach-depth');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-reach-match');+ edge.removeAttribute('data-reach-depth');+ });+ resetReachabilityButtons();+ reachStatus.textContent = '';+ reachStatus.hidden = true;+ if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {+ Archify.exportMenu.syncReachShare();+ }+ if (options.updateUrl === true && activeIds.length === 1) {+ try {+ history.replaceState(null, '', location.pathname + location.search + '#focus=' + encodeURIComponent(activeIds[0]));+ } catch (_) {}+ }+ }+ function renderReachabilityControls(id) {+ var upstream = reachabilityFor(id, 'upstream');+ var downstream = reachabilityFor(id, 'downstream');+ var upstreamReach = upstream ? Math.max(0, upstream.nodeIds.length - 1) : 0;+ var downstreamReach = downstream ? Math.max(0, downstream.nodeIds.length - 1) : 0;+ upstreamCount.textContent = String(upstreamReach);+ downstreamCount.textContent = String(downstreamReach);+ upstreamBtn.disabled = upstreamReach === 0;+ downstreamBtn.disabled = downstreamReach === 0;+ upstreamBtn.setAttribute('aria-label', upstreamReach+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));+ downstreamBtn.setAttribute('aria-label', downstreamReach+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));+ reachSection.hidden = false;+ }+ function applyReachability(direction, options) {+ options = options || {};+ if (activeIds.length !== 1 || (direction !== 'upstream' && direction !== 'downstream')) return false;+ if (reachabilityMode === direction && options.toggle !== false) {+ clearReachability({ updateUrl: options.updateUrl !== false });+ return true;+ }+ var result = reachabilityFor(activeIds[0], direction);+ if (!result || result.nodeIds.length <= 1) return false;+ clearRelationshipPreview({ clearPin: true });+ clearReachability({ updateUrl: false });+ reachabilityMode = direction;+ activeReachability = result;+ var edgeKeySet = Object.create(null);+ result.edgeKeys.forEach(function (key) { edgeKeySet[key] = true; });+ svg.setAttribute('data-reach-active', direction);+ chip.setAttribute('data-reach-mode', direction);+ nodes().forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ if (!Object.prototype.hasOwnProperty.call(result.depths, id)) return;+ node.setAttribute('data-reach-match', '');+ node.setAttribute('data-reach-depth', String(result.depths[id]));+ if (id === result.originId) node.setAttribute('data-reach-origin', '');+ });+ edges().forEach(function (edge) {+ var key = edge.getAttribute('data-edge-key') || (+ edge.getAttribute('data-edge-from') + '\u0000' ++ edge.getAttribute('data-edge-to') + '\u0000' ++ (edge.getAttribute('data-edge-label') || '')+ );+ if (!edgeKeySet[key]) return;+ edge.setAttribute('data-reach-match', '');+ var fromDepth = result.depths[edge.getAttribute('data-edge-from')];+ var toDepth = result.depths[edge.getAttribute('data-edge-to')];+ edge.setAttribute('data-reach-depth', String(Math.max(fromDepth || 0, toDepth || 0)));+ });+ resetReachabilityButtons();+ var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;+ activeButton.setAttribute('aria-pressed', 'true');+ var reachableCount = result.nodeIds.length - 1;+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });+ reachStatus.hidden = false;+ if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {+ Archify.exportMenu.syncReachShare();+ }+ if (options.updateUrl !== false) {+ try {+ history.replaceState(null, '', location.pathname + location.search + '#focus=' ++ encodeURIComponent(activeIds[0]) + '&reach=' + direction);+ } catch (_) {}+ }+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });+ }+ placeRelationshipLens();+ return true;+ }+ function reachabilitySnapshot() {+ if (!activeReachability || activeIds.length !== 1 ||+ (reachabilityMode !== 'upstream' && reachabilityMode !== 'downstream') ||+ activeReachability.direction !== reachabilityMode ||+ activeReachability.originId !== activeIds[0] ||+ svg.getAttribute('data-reach-active') !== reachabilityMode) return null;++ var originId = activeReachability.originId;+ var nodeIds = activeReachability.nodeIds.slice();+ var edgeKeys = activeReachability.edgeKeys.slice();+ if (nodeIds.length < 2 || nodeIds[0] !== originId || !edgeKeys.length ||+ !activeReachability.depths || !Number.isInteger(activeReachability.maxDepth) ||+ activeReachability.maxDepth < 1) return null;++ var allNodes = nodes();+ var allEdges = edges();+ var seenNodeIds = Object.create(null);+ var seenEdgeKeys = Object.create(null);+ var nodeIdSet = Object.create(null);+ var depths = Object.create(null);+ var originNode = null;+ var measuredMaxDepth = 0;++ if (nodeIds.some(function (id) {+ var depth = activeReachability.depths[id];+ var matches = allNodes.filter(function (node) {+ return node.getAttribute('data-node-id') === id;+ });+ if (typeof id !== 'string' || !id || seenNodeIds[id] || matches.length !== 1 ||+ !matches[0].hasAttribute('data-reach-match') ||+ !Number.isInteger(depth) || depth < 0 || depth > activeReachability.maxDepth ||+ (id === originId+ ? (!matches[0].hasAttribute('data-reach-origin') || depth !== 0)+ : depth < 1)) return true;+ seenNodeIds[id] = true;+ nodeIdSet[id] = true;+ depths[id] = depth;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ if (id === originId) originNode = matches[0];+ return false;+ }) || !originNode || measuredMaxDepth !== activeReachability.maxDepth ||+ allNodes.filter(function (node) { return node.hasAttribute('data-reach-match'); }).length !== nodeIds.length) return null;++ var edgeRecords = [];+ if (edgeKeys.some(function (key) {+ if (typeof key !== 'string' || !key || seenEdgeKeys[key]) return true;+ var fragments = allEdges.filter(function (edge) {+ return edge.getAttribute('data-edge-key') === key;+ });+ var drawableFragments = fragments.filter(hasDrawableGeometry);+ if (!fragments.length || drawableFragments.length !== 1 ||+ !fragments.every(function (fragment) { return fragment.hasAttribute('data-reach-match'); })) return true;+ var first = fragments[0];+ var from = first.getAttribute('data-edge-from');+ var to = first.getAttribute('data-edge-to');+ var id = first.getAttribute('data-edge-id') || '';+ var labelValue = first.getAttribute('data-edge-label') || '';+ if (!nodeIdSet[from] || !nodeIdSet[to] || !fragments.every(function (fragment) {+ return fragment.getAttribute('data-edge-from') === from &&+ fragment.getAttribute('data-edge-to') === to &&+ (fragment.getAttribute('data-edge-id') || '') === id;+ })) return true;+ seenEdgeKeys[key] = true;+ edgeRecords.push({+ key: key,+ id: id,+ from: from,+ to: to,+ label: labelValue,+ depth: Math.max(depths[from], depths[to])+ });+ return false;+ })) return null;++ var liveEdgeKeys = Object.create(null);+ if (allEdges.some(function (edge) {+ if (!edge.hasAttribute('data-reach-match')) return false;+ var key = edge.getAttribute('data-edge-key');+ if (!key || !seenEdgeKeys[key]) return true;+ liveEdgeKeys[key] = true;+ return false;+ }) || Object.keys(liveEdgeKeys).length !== edgeKeys.length) return null;++ return {+ direction: reachabilityMode,+ origin: { id: originId, label: nodeLabel(originNode, originId) },+ nodeIds: nodeIds,+ depths: depths,+ maxDepth: activeReachability.maxDepth,+ edges: edgeRecords+ };+ }+ function setPassportValue(element, value) {+ var normalized = value == null ? '' : String(value).trim();+ element.textContent = normalized;+ element.hidden = !normalized;+ }+ function renderSourceEvidence(id) {+ evidenceLinks.textContent = '';+ repositoryLink.removeAttribute('href');+ repositoryLink.removeAttribute('aria-label');+ repositoryLink.textContent = '';+ var sources = Archify.sourceEvidence.node(id);+ var repository = Archify.sourceEvidence.repository();+ if (!repository || !sources.length) {+ evidence.hidden = true;+ return;+ }+ repositoryLink.textContent = repository.label + ' @ ' + repository.shortRevision;+ if (repository.href) {+ repositoryLink.href = repository.href;+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));+ }+ evidence.title = viewerText('viewer.passport.verificationScope');+ sources.forEach(function (source) {+ var link = document.createElement(source.href ? 'a' : 'div');+ link.className = 'semantic-passport-source';+ if (source.href) {+ link.href = source.href;+ link.target = '_blank';+ link.rel = 'noopener noreferrer';+ link.referrerPolicy = 'no-referrer';+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));+ }+ var name = document.createElement('strong');+ name.textContent = source.label || source.path.split('/').pop() || source.path;+ var location = document.createElement('code');+ location.textContent = source.line+ ? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + (source.href ? ' ↗' : '')+ : source.href ? viewerText('viewer.passport.source.openLink') : '';+ var sourcePath = document.createElement('small');+ sourcePath.textContent = source.path;+ link.appendChild(name);+ link.appendChild(location);+ link.appendChild(sourcePath);+ evidenceLinks.appendChild(link);+ });+ evidence.hidden = false;+ }+ function renderPassport(id, node) {+ setPassportValue(detail, node.getAttribute('data-node-sublabel'));+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));+ setPassportValue(context, node.getAttribute('data-node-context'));+ setPassportValue(tag, node.getAttribute('data-node-tag'));+ setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));+ semanticId.textContent = id;+ semanticId.hidden = false;+ renderSourceEvidence(id);+ }+ function relationshipsFor(id, byId) {+ var seen = {};+ var relationships = [];+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (from !== id && to !== id) return;+ var edgeLabel = edge.getAttribute('data-edge-label') || '';+ var edgeKey = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + edgeLabel);+ var edgeId = edge.getAttribute('data-edge-id') || '';+ if (seen[edgeKey]) return;+ seen[edgeKey] = true;+ var direction = from === id && to === id ? 'loop' : (from === id ? 'out' : 'in');+ var neighborId = direction === 'in' ? from : to;+ var neighbor = byId[neighborId];+ relationships.push({+ key: edgeKey,+ id: edgeId,+ from: from,+ to: to,+ direction: direction,+ neighborId: neighborId,+ neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')+ });+ });+ return relationships;+ }+ function relationshipEdgeShapes(edge) {+ if (!edge) return [];+ if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function relationshipHitRecords() {+ var recordsByKey = {};+ var recordsById = Object.create(null);+ var byId = Object.create(null);+ nodes().forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var records = [];+ edges().forEach(function (edge) {+ var shapes = relationshipEdgeShapes(edge);+ if (!shapes.length) return;+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var labelValue = edge.getAttribute('data-edge-label') || '';+ var edgeId = edge.getAttribute('data-edge-id') || '';+ var key = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + labelValue);+ var existing = recordsByKey[key];+ if (existing) {+ if (existing.from !== from || existing.to !== to || existing.labelValue !== labelValue || existing.id !== edgeId) {+ existing.invalid = true;+ return;+ }+ shapes.forEach(function (shape) {+ if (existing.shapes.indexOf(shape) === -1) existing.shapes.push(shape);+ });+ return;+ }+ var record = {+ key: key,+ id: edgeId,+ from: from,+ to: to,+ fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,+ toLabel: byId[to] ? nodeLabel(byId[to], to) : to,+ labelValue: labelValue,+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),+ edge: edge,+ shapes: shapes,+ invalid: false+ };+ recordsByKey[key] = record;+ if (edgeId) {+ if (recordsById[edgeId]) {+ recordsById[edgeId].invalid = true;+ record.invalid = true;+ } else {+ recordsById[edgeId] = record;+ }+ }+ records.push(record);+ });+ return records.filter(function (record) { return !record.invalid && record.from && record.to; });+ }+ function relationshipRecordForKey(key) {+ return relationshipHitRecords().find(function (record) { return record.key === key; }) || null;+ }+ function pinnedRelationshipRecord() {+ return pinnedRelationshipKey ? relationshipRecordForKey(pinnedRelationshipKey) : null;+ }+ function renderRelationshipCopyAction() {+ var record = pinnedRelationshipRecord();+ if (record && record.id) {+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));+ } else if (pinnedRelationshipKey) {+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));+ } else {+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ }+ }+ function relationshipHitGeometry(shape, className) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('filter');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('tabindex');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.setAttribute('class', className || 'relationship-hit-rail');+ return clone;+ }+ function removeRelationshipPulse() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-relationship-pulse-overlay]'), function (element) {+ element.remove();+ });+ }+ function relationshipPulseGeometry(shape) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('transform');+ clone.removeAttribute('filter');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('tabindex');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-focus-match');+ clone.removeAttribute('data-relationship-preview');+ clone.setAttribute('class', 'relationship-flow-pulse');+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function relationshipTokenKind(edge) {+ var shapes = relationshipEdgeShapes(edge);+ var classEvidence = [edge.getAttribute('class') || ''].concat(shapes.map(function (shape) {+ return shape.getAttribute('class') || '';+ })).join(' ');+ var from = edge.getAttribute('data-edge-from') || '';+ var to = edge.getAttribute('data-edge-to') || '';+ var source = nodes().find(function (node) { return node.getAttribute('data-node-id') === from; });+ var target = nodes().find(function (node) { return node.getAttribute('data-node-id') === to; });+ var sourceKind = source ? source.getAttribute('data-node-kind') || 'neutral' : 'neutral';+ var targetKind = target ? target.getAttribute('data-node-kind') || 'neutral' : 'neutral';+ if (/\ba-security\b/.test(classEvidence) || sourceKind === 'security' || targetKind === 'security' || targetKind === 'failure') return 'security';+ if (/\ba-dashed\b/.test(classEvidence) || sourceKind === 'messagebus' || targetKind === 'messagebus') return 'event';+ if (sourceKind === 'database' || targetKind === 'database') return 'data';+ if (targetKind === 'waiting' || targetKind === 'success') return 'state';+ return 'call';+ }+ function relationshipTokenPath(shape) {+ if (!shape) return '';+ var tagName = String(shape.tagName || '').toLowerCase();+ if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'line') {+ return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') ++ ' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');+ }+ if (tagName === 'polyline' && shape.points && shape.points.numberOfItems > 1) {+ var commands = [];+ for (var i = 0; i < shape.points.numberOfItems; i += 1) {+ var point = shape.points.getItem(i);+ commands.push((i === 0 ? 'M ' : 'L ') + point.x + ' ' + point.y);+ }+ return commands.join(' ');+ }+ return '';+ }+ function relationshipTokenPart(tagName, className, attrs) {+ var part = document.createElementNS(svgNamespace, tagName);+ part.setAttribute('class', className);+ Object.keys(attrs || {}).forEach(function (name) { part.setAttribute(name, attrs[name]); });+ return part;+ }+ function relationshipTokenGeometry(shape, kind, key, options) {+ options = options || {};+ var pathData = relationshipTokenPath(shape);+ if (!pathData) return null;+ var token = document.createElementNS(svgNamespace, 'g');+ token.setAttribute('class', 'semantic-flow-token ' + (options.className || 'relationship-flow-token'));+ token.setAttribute('data-token-kind', kind);+ token.setAttribute('data-token-edge-key', key);+ token.setAttribute('aria-hidden', 'true');+ token.appendChild(relationshipTokenPart('circle', 'semantic-flow-token-halo', { cx: '0', cy: '0', r: '7' }));+ if (kind === 'data') {+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-5', y: '-4', width: '10', height: '8', rx: '2' }));+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'M -2.8 -1.2 h 5.6 M -2.8 1.4 h 3.8' }));+ } else if (kind === 'event') {+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-7', y: '-3', width: '4', height: '6', rx: '1' }));+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-2', y: '-3', width: '4', height: '6', rx: '1' }));+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '3', y: '-3', width: '4', height: '6', rx: '1' }));+ } else if (kind === 'security') {+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-shape', { d: 'M 0 -5 L 4 -3.4 V 0 c 0 3 -1.6 4.5 -4 5.5 C -2.4 4.5 -4 3 -4 0 v -3.4 Z' }));+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'm -2 .2 1.4 1.4 L 2 -1.4' }));+ } else if (kind === 'state') {+ token.appendChild(relationshipTokenPart('circle', 'relationship-flow-token-shape', { cx: '0', cy: '0', r: '5' }));+ token.appendChild(relationshipTokenPart('circle', 'relationship-flow-token-dot', { cx: '0', cy: '0', r: '1.35' }));+ } else {+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'M -5 -3 L -1 0 L -5 3 M 0 -3 L 4 0 L 0 3' }));+ }+ var motion = document.createElementNS(svgNamespace, 'animateMotion');+ motion.setAttribute('path', pathData);+ motion.setAttribute('dur', options.duration || '1.2s');+ motion.setAttribute('begin', '0s');+ motion.setAttribute('fill', 'freeze');+ motion.setAttribute('rotate', 'auto');+ motion.setAttribute('calcMode', 'spline');+ motion.setAttribute('keyTimes', '0;1');+ motion.setAttribute('keySplines', '.2 0 .2 1');+ token.appendChild(motion);+ return token;+ }+ function createSemanticFlowToken(edge, shape, options) {+ if (!edge || !shape) return null;+ var key = edge.getAttribute('data-edge-key') || (+ edge.getAttribute('data-edge-from') + '\u0000' ++ edge.getAttribute('data-edge-to') + '\u0000' ++ (edge.getAttribute('data-edge-label') || '')+ );+ return relationshipTokenGeometry(shape, relationshipTokenKind(edge), key, options);+ }+ Archify.flowTokens = {+ create: createSemanticFlowToken,+ kind: function (edge) { return relationshipTokenKind(edge); },+ path: relationshipTokenPath+ };+ function renderRelationshipPulse(key) {+ removeRelationshipPulse();+ if (!key || document.documentElement.getAttribute('data-embed') === 'true') return false;+ if (document.hidden || (Archify.motionGovernor && Archify.motionGovernor.isPaused())) return false;+ if (reducedMotionQuery && reducedMotionQuery.matches) return false;+ var matchingEdges = edges().filter(function (edge) {+ return edge.getAttribute('data-edge-key') === key;+ });+ if (!matchingEdges.length) return false;+ var overlay = document.createElementNS(svgNamespace, 'g');+ overlay.setAttribute('class', 'relationship-pulse-overlay');+ overlay.setAttribute('data-relationship-pulse-overlay', '');+ overlay.setAttribute('data-relationship-pulse-key', key);+ overlay.setAttribute('aria-hidden', 'true');+ var tokenAdded = false;+ matchingEdges.forEach(function (edge) {+ var wrapper = document.createElementNS(svgNamespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ var shapes = relationshipEdgeShapes(edge);+ shapes.forEach(function (shape) {+ wrapper.appendChild(relationshipPulseGeometry(shape));+ });+ if (!tokenAdded && shapes.length) {+ var tokenKind = relationshipTokenKind(edge);+ var token = relationshipTokenGeometry(shapes[0], tokenKind, key);+ if (token) {+ wrapper.appendChild(token);+ overlay.setAttribute('data-relationship-token-kind', tokenKind);+ tokenAdded = true;+ }+ }+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ if (!overlay.childNodes.length) return false;+ var finishPulse = function () {+ if (overlay.parentNode) overlay.remove();+ };+ overlay.addEventListener('animationend', finishPulse, { once: true });+ overlay.addEventListener('animationcancel', finishPulse, { once: true });+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ return true;+ }+ function clearRelationshipPreview(options) {+ options = options || {};+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ directPreviewTimer = null;+ removeRelationshipPulse();+ activeRelationshipPreview = null;+ svg.removeAttribute('data-relationship-preview-active');+ svg.removeAttribute('data-relationship-direct-active');+ if (options.clearPin === true) {+ pinnedRelationship = null;+ pinnedRelationshipKey = null;+ svg.removeAttribute('data-relationship-pin-active');+ }+ chip.removeAttribute('data-relationship-previewing');+ edges().forEach(function (edge) { edge.removeAttribute('data-relationship-preview'); });+ nodes().forEach(function (node) {+ node.removeAttribute('data-relationship-preview-node');+ node.removeAttribute('data-relationship-preview-source');+ node.removeAttribute('data-relationship-preview-target');+ });+ Array.prototype.forEach.call(relationshipList.querySelectorAll('[data-preview-active]'), function (button) {+ button.removeAttribute('data-preview-active');+ });+ relationshipHitTargets.forEach(function (target) {+ target.setAttribute('aria-pressed', pinnedRelationshipKey && target.getAttribute('data-relationship-key') === pinnedRelationshipKey ? 'true' : 'false');+ target.removeAttribute('data-preview-active');+ });+ renderRelationshipCopyAction();+ placeRelationshipLens();+ }+ function previewRelationship(button, options) {+ options = options || {};+ if (pinnedRelationshipKey && pinnedRelationship && button !== pinnedRelationship) return;+ clearRelationshipPreview();+ if (!button) return;+ var key = button.getAttribute('data-relationship-key');+ var from = button.getAttribute('data-relationship-from');+ var to = button.getAttribute('data-relationship-to');+ if (!key || !from || !to) return;+ svg.setAttribute('data-relationship-preview-active', key);+ if (options.direct === true) svg.setAttribute('data-relationship-direct-active', key);+ edges().forEach(function (edge) {+ if (edge.getAttribute('data-edge-key') === key) edge.setAttribute('data-relationship-preview', '');+ });+ nodes().forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ if (id !== from && id !== to) return;+ node.setAttribute('data-relationship-preview-node', '');+ if (id === from) node.setAttribute('data-relationship-preview-source', '');+ if (id === to) node.setAttribute('data-relationship-preview-target', '');+ });+ button.setAttribute('data-preview-active', 'true');+ if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');+ activeRelationshipPreview = button;+ renderRelationshipPulse(key);+ placeRelationshipLens();+ }+ function syncRelationshipPreview() {+ var next = pinnedRelationship || focusedRelationship || hoveredRelationship;+ if (next === activeRelationshipPreview) return;+ previewRelationship(next, { direct: !!(next && next.hasAttribute('data-relationship-hit-key')) });+ }+ function directRelationshipBlocked() {+ return html.getAttribute('data-embed') === 'true' ||+ html.getAttribute('data-guide-open') === 'true' ||+ container.classList.contains('is-panning') ||+ (activeIds.length > 0 && !pinnedRelationshipKey) ||+ svg.hasAttribute('data-route-picking') ||+ svg.hasAttribute('data-route-active') ||+ svg.hasAttribute('data-lens-active');+ }+ function scheduleDirectRelationshipPreview(target) {+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ if (pinnedRelationshipKey) return;+ directPreviewTimer = window.setTimeout(function () {+ directPreviewTimer = null;+ if (pinnedRelationshipKey || hoveredRelationship !== target || directRelationshipBlocked()) return;+ previewRelationship(target, { direct: true });+ }, reducedMotionQuery && reducedMotionQuery.matches ? 0 : 90);+ }+ function relationshipHitTarget(key) {+ return relationshipHitTargets.find(function (target) {+ return target.getAttribute('data-relationship-key') === key;+ }) || null;+ }+ function revealPinnedRelationship(record) {+ function reveal() {+ if (!record || pinnedRelationshipKey !== record.key) return true;+ if (!Archify.view || typeof Archify.view.reveal !== 'function') return false;+ Archify.view.reveal([record.from, record.to], { reason: 'relationship-direct' });+ return true;+ }+ if (!reveal()) requestAnimationFrame(reveal);+ }+ function inspectRelationship(key, options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ directPreviewTimer = null;+ hoveredRelationship = null;+ focusedRelationship = null;+ if (pinnedRelationshipKey === key) {+ if (options.toggle === false) return true;+ clear({ updateUrl: options.updateUrl !== false });+ return true;+ }+ var record = relationshipRecordForKey(key);+ if (!record) return false;+ set(record.from, { toggle: false, updateUrl: false });+ var row = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-key]')).find(function (candidate) {+ return candidate.getAttribute('data-relationship-key') === key;+ });+ if (!row) return false;+ previewRelationship(row);+ pinnedRelationship = row;+ pinnedRelationshipKey = key;+ svg.setAttribute('data-relationship-pin-active', key);+ var target = relationshipHitTarget(key);+ if (target) target.setAttribute('aria-pressed', 'true');+ renderRelationshipCopyAction();+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });+ revealPinnedRelationship(record);+ if (options.updateUrl !== false && record.id) {+ try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}+ }+ return true;+ }+ function inspectRelationshipById(id, options) {+ var record = relationshipHitRecords().find(function (item) { return item.id === id; });+ return record ? inspectRelationship(record.key, options) : false;+ }+ function installRelationshipHitTargets() {+ if (html.getAttribute('data-embed') === 'true') return 0;+ var records = relationshipHitRecords();+ if (!records.length) return 0;+ relationshipHitOverlay = document.createElementNS(svgNamespace, 'g');+ relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');+ relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');+ relationshipHitOverlay.setAttribute('role', 'group');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));+ var relationshipHelp = document.createElementNS(svgNamespace, 'desc');+ relationshipHelp.id = 'archify-relationship-help';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');+ relationshipHitOverlay.appendChild(relationshipHelp);+ records.forEach(function (record, index) {+ var target = document.createElementNS(svgNamespace, 'g');+ target.setAttribute('class', 'relationship-hit-target');+ target.setAttribute('data-relationship-hit-key', record.key);+ target.setAttribute('data-relationship-key', record.key);+ target.setAttribute('data-relationship-from', record.from);+ target.setAttribute('data-relationship-to', record.to);+ if (record.id) target.setAttribute('data-relationship-id', record.id);+ target.setAttribute('role', 'button');+ target.setAttribute('tabindex', index === 0 ? '0' : '-1');+ target.setAttribute('aria-pressed', 'false');+ target.setAttribute('aria-describedby', relationshipHelp.id);+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });+ target.setAttribute('aria-label', description);+ var title = document.createElementNS(svgNamespace, 'title');+ title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;+ target.appendChild(title);+ record.shapes.forEach(function (shape) {+ target.appendChild(relationshipHitGeometry(shape));+ target.appendChild(relationshipHitGeometry(shape, 'relationship-focus-rail'));+ });+ if (target.childNodes.length > 1) {+ relationshipHitTargets.push(target);+ relationshipHitOverlay.appendChild(target);+ }+ });+ if (!relationshipHitTargets.length) return 0;+ var firstNode = svg.querySelector('[data-node-id]');+ var nodeLayer = firstNode;+ while (nodeLayer && nodeLayer.parentNode && nodeLayer.parentNode !== svg) nodeLayer = nodeLayer.parentNode;+ if (nodeLayer && nodeLayer.parentNode === svg) svg.insertBefore(relationshipHitOverlay, nodeLayer);+ else svg.appendChild(relationshipHitOverlay);++ relationshipHitOverlay.addEventListener('pointerdown', function (event) {+ if (event.target.closest('[data-relationship-hit-key]')) event.stopPropagation();+ });+ relationshipHitOverlay.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch') return;+ if (finePointerQuery && !finePointerQuery.matches) return;+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked() || pinnedRelationshipKey) return;+ if (event.relatedTarget && target.contains(event.relatedTarget)) return;+ hoveredRelationship = target;+ scheduleDirectRelationshipPreview(target);+ });+ relationshipHitOverlay.addEventListener('pointerout', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || (event.relatedTarget && target.contains(event.relatedTarget))) return;+ if (hoveredRelationship === target) hoveredRelationship = null;+ syncRelationshipPreview();+ });+ relationshipHitOverlay.addEventListener('focusin', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked()) return;+ focusedRelationship = target;+ if (!pinnedRelationshipKey) previewRelationship(target, { direct: true });+ });+ relationshipHitOverlay.addEventListener('focusout', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || (event.relatedTarget && target.contains(event.relatedTarget))) return;+ if (focusedRelationship === target) focusedRelationship = null;+ syncRelationshipPreview();+ });+ relationshipHitOverlay.addEventListener('click', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked()) return;+ event.preventDefault();+ event.stopPropagation();+ focusedRelationship = null;+ hoveredRelationship = null;+ inspectRelationship(target.getAttribute('data-relationship-key'));+ });+ relationshipHitOverlay.addEventListener('keydown', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target) return;+ if (event.key === 'Escape' && pinnedRelationshipKey) {+ event.preventDefault();+ clear({ updateUrl: false });+ return;+ }+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ focusedRelationship = null;+ hoveredRelationship = null;+ inspectRelationship(target.getAttribute('data-relationship-key'));+ return;+ }+ if (event.key !== 'ArrowRight' && event.key !== 'ArrowLeft' && event.key !== 'ArrowDown' && event.key !== 'ArrowUp' && event.key !== 'Home' && event.key !== 'End') return;+ var index = relationshipHitTargets.indexOf(target);+ if (event.key === 'Home') index = 0;+ else if (event.key === 'End') index = relationshipHitTargets.length - 1;+ else if (event.key === 'ArrowRight' || event.key === 'ArrowDown') index = (index + 1) % relationshipHitTargets.length;+ else index = (index - 1 + relationshipHitTargets.length) % relationshipHitTargets.length;+ event.preventDefault();+ relationshipHitTargets.forEach(function (item, itemIndex) { item.setAttribute('tabindex', itemIndex === index ? '0' : '-1'); });+ try { relationshipHitTargets[index].focus({ preventScroll: true }); }+ catch (_) { try { relationshipHitTargets[index].focus(); } catch (_) {} }+ });+ return relationshipHitTargets.length;+ }+ function renderRelationshipLens(id, byId) {+ hoveredRelationship = null;+ focusedRelationship = null;+ clearRelationshipPreview({ clearPin: true });+ renderPassport(id, byId[id]);+ var relationships = relationshipsFor(id, byId);+ chip.removeAttribute('data-relations-expanded');+ relationsBtn.setAttribute('aria-expanded', 'false');+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));+ var counts = { out: 0, in: 0, loop: 0 };+ relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });+ renderReachabilityControls(id);+ relationshipList.textContent = '';+ if (!relationships.length) {+ var empty = document.createElement('p');+ empty.className = 'relationship-lens-empty';+ empty.textContent = viewerText('viewer.passport.relationship.none');+ relationshipList.appendChild(empty);+ return;+ }++ [+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }+ ].forEach(function (group) {+ var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });+ if (!items.length) return;+ var section = document.createElement('div');+ section.className = 'relationship-lens-group';+ var heading = document.createElement('span');+ heading.className = 'relationship-lens-group-title';+ heading.textContent = group.label + ' · ' + items.length;+ section.appendChild(heading);+ items.forEach(function (relationship) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'relationship-lens-row';+ button.setAttribute('data-direction', relationship.direction);+ button.setAttribute('data-relationship-target', relationship.neighborId);+ button.setAttribute('data-relationship-key', relationship.key);+ button.setAttribute('data-relationship-from', relationship.from);+ button.setAttribute('data-relationship-to', relationship.to);+ if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));+ var direction = document.createElement('span');+ direction.className = 'relationship-lens-direction';+ direction.setAttribute('aria-hidden', 'true');+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');+ var target = document.createElement('strong');+ target.textContent = relationship.neighborLabel;+ var relation = document.createElement('small');+ relation.textContent = relationship.label;+ button.appendChild(direction);+ button.appendChild(target);+ button.appendChild(relation);+ section.appendChild(button);+ });+ relationshipList.appendChild(section);+ });+ }+ function lensPlacementBounds() {+ var containerRect = container.getBoundingClientRect();+ if (containerRect.width <= 0 || containerRect.height <= 0 || chip.offsetWidth <= 0 || chip.offsetHeight <= 0) return null;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleLeft = Math.max(padding, -containerRect.left + padding);+ var visibleRight = Math.min(+ container.clientWidth - padding,+ window.innerWidth - containerRect.left - padding+ );+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(+ container.clientHeight - padding,+ window.innerHeight - containerRect.top - padding+ );+ var minLeft = visibleLeft;+ var minTop = Math.min(visibleTop, Math.max(padding, visibleBottom - chip.offsetHeight));+ return {+ containerRect: containerRect,+ minLeft: minLeft,+ maxLeft: Math.max(minLeft, visibleRight - chip.offsetWidth),+ minTop: minTop,+ maxTop: Math.max(minTop, visibleBottom - chip.offsetHeight)+ };+ }+ function manualLensPlacementAvailable() {+ return window.innerWidth > 720 && (!finePointerQuery || finePointerQuery.matches);+ }+ function clampLensPosition(position, bounds) {+ if (!position || !bounds) return null;+ return {+ left: Math.max(bounds.minLeft, Math.min(bounds.maxLeft, position.left)),+ top: Math.max(bounds.minTop, Math.min(bounds.maxTop, position.top))+ };+ }+ function currentLensPosition() {+ var bounds = lensPlacementBounds();+ if (!bounds) return null;+ var rect = chip.getBoundingClientRect();+ return clampLensPosition({+ left: rect.left - bounds.containerRect.left,+ top: rect.top - bounds.containerRect.top+ }, bounds);+ }+ function applyManualLensPosition(position) {+ if (!manualLensPlacementAvailable()) return false;+ var bounds = lensPlacementBounds();+ var clamped = clampLensPosition(position, bounds);+ if (!clamped) return false;+ manualLensPosition = clamped;+ chip.setAttribute('data-manual-placement', 'true');+ chip.style.left = Math.round(clamped.left) + 'px';+ chip.style.top = Math.round(clamped.top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ return true;+ }+ function resetLensPlacement(options) {+ options = options || {};+ manualLensPosition = null;+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (options.reposition !== false && !chip.hidden) requestLensPlacement();+ }+ function beginLensDrag(event) {+ if (!manualLensPlacementAvailable() || event.button !== 0 || lensDrag) return;+ var start = currentLensPosition();+ if (!start) return;+ event.preventDefault();+ event.stopPropagation();+ lensDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: start,+ previousManual: manualLensPosition ? { left: manualLensPosition.left, top: manualLensPosition.top } : null,+ moved: false+ };+ chip.setAttribute('data-panel-dragging', 'true');+ try { moveBtn.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function moveLensDrag(event) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ var dx = event.clientX - lensDrag.originX;+ var dy = event.clientY - lensDrag.originY;+ if (!lensDrag.moved && Math.hypot(dx, dy) <= 3) return;+ lensDrag.moved = true;+ event.preventDefault();+ event.stopPropagation();+ applyManualLensPosition({ left: lensDrag.start.left + dx, top: lensDrag.start.top + dy });+ }+ function finishLensDrag(event, cancel) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = lensDrag;+ lensDrag = null;+ if (activeDrag.moved) lensDragClickPointer = activeDrag.pointerId;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(event.pointerId); } catch (_) {}+ if (!cancel) return;+ manualLensPosition = activeDrag.previousManual+ ? { left: activeDrag.previousManual.left, top: activeDrag.previousManual.top }+ : null;+ if (manualLensPosition && manualLensPlacementAvailable()) {+ applyManualLensPosition(manualLensPosition);+ } else {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (!chip.hidden) requestLensPlacement();+ }+ }+ function moveLensWithKeyboard(event) {+ if (event.key === 'Home') {+ event.preventDefault();+ resetLensPlacement();+ return;+ }+ if (event.metaKey || event.ctrlKey || event.altKey || !manualLensPlacementAvailable()) return;+ var directions = {+ ArrowLeft: [-1, 0],+ ArrowRight: [1, 0],+ ArrowUp: [0, -1],+ ArrowDown: [0, 1]+ };+ var direction = directions[event.key];+ if (!direction) return;+ event.preventDefault();+ var current = manualLensPosition || currentLensPosition();+ if (!current) return;+ var distance = event.shiftKey ? 4 : 16;+ applyManualLensPosition({+ left: current.left + direction[0] * distance,+ top: current.top + direction[1] * distance+ });+ }+ var lensFrame = 0;+ function placeRelationshipLens() {+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }+ if (chip.hidden || activeIds.length !== 1) return;+ var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');+ if (!node) return;+ var containerRect = container.getBoundingClientRect();+ var nodeRect = node.getBoundingClientRect();+ if (containerRect.bottom <= 0 || containerRect.top >= window.innerHeight) return;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(containerRect.height - padding, window.innerHeight - containerRect.top - padding);+ var maxTop = Math.max(padding, visibleBottom - chip.offsetHeight);+ var minTop = Math.min(visibleTop, maxTop);+ var mobile = window.innerWidth <= 720;+ if (!manualLensPlacementAvailable()) {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ } else if (manualLensPosition) {+ applyManualLensPosition(manualLensPosition);+ return;+ }+ var nodeCenter = nodeRect.top - containerRect.top + nodeRect.height / 2;+ var previewingOnMobile = mobile && chip.getAttribute('data-relationship-previewing') === 'true';+ var compactOnMobile = mobile && chip.getAttribute('data-relations-expanded') !== 'true';+ var preferred;+ if (compactOnMobile) {+ var nodeTop = nodeRect.top - containerRect.top;+ var nodeBottom = nodeRect.bottom - containerRect.top;+ var gap = 10;+ var above = nodeTop - chip.offsetHeight - gap;+ var below = nodeBottom + gap;+ if (above >= visibleTop) preferred = above;+ else if (below + chip.offsetHeight <= visibleBottom - 56) preferred = below;+ else preferred = nodeCenter < (visibleTop + visibleBottom) / 2+ ? Math.max(minTop, visibleBottom - chip.offsetHeight - 56)+ : visibleTop;+ } else if (previewingOnMobile) {+ var pinnedTop = visibleTop;+ var pinnedBottom = Math.max(minTop, visibleBottom - chip.offsetHeight - 56);+ preferred = nodeCenter < (visibleTop + visibleBottom) / 2 ? pinnedBottom : pinnedTop;+ } else {+ preferred = nodeCenter - chip.offsetHeight / 2;+ }+ var top = Math.max(minTop, Math.min(maxTop, preferred));+ var chipRect = chip.getBoundingClientRect();+ var safeGap = 10;+ var protectViewerChrome = !mobile || compactOnMobile || previewingOnMobile;+ var protectedRects = (protectViewerChrome+ ? [svg.querySelector('[data-legend]'), container.querySelector('.diagram-nav')]+ : [])+ .filter(function (element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ })+ .map(function (element) { return element.getBoundingClientRect(); })+ .filter(function (rect) {+ return rect.width > 0 && rect.height > 0 &&+ chipRect.left < rect.right + safeGap && chipRect.right > rect.left - safeGap;+ });+ if (protectedRects.length) {+ var candidates = [top, minTop, maxTop];+ protectedRects.forEach(function (rect) {+ candidates.push(+ rect.top - containerRect.top - chip.offsetHeight - safeGap,+ rect.bottom - containerRect.top + safeGap+ );+ });+ var valid = candidates.map(function (candidate) {+ return Math.max(minTop, Math.min(maxTop, candidate));+ }).filter(function (candidate, index, all) {+ if (all.indexOf(candidate) !== index) return false;+ var candidateTop = containerRect.top + candidate;+ var candidateBottom = candidateTop + chip.offsetHeight;+ return protectedRects.every(function (rect) {+ return candidateBottom <= rect.top - safeGap || candidateTop >= rect.bottom + safeGap;+ });+ });+ valid.sort(function (first, second) {+ return Math.abs(first - preferred) - Math.abs(second - preferred);+ });+ if (valid.length) top = valid[0];+ }+ chip.style.top = Math.round(top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ }+ function requestLensPlacement() {+ if (lensFrame) return;+ lensFrame = requestAnimationFrame(placeRelationshipLens);+ }+ function clear(options) {+ options = options || {};+ if (lensDrag) {+ var dragPointerId = lensDrag.pointerId;+ lensDrag = null;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(dragPointerId); } catch (_) {}+ }+ var restoreNode = options.restoreFocus === true && activeIds.length === 1+ ? svg.querySelector('[data-node-id="' + activeIds[0] + '"]')+ : null;+ clearReachability({ updateUrl: false });+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {+ Archify.intentTrace.clear({ announce: false });+ }+ hoveredRelationship = null;+ focusedRelationship = null;+ clearRelationshipPreview({ clearPin: true });+ activeIds = [];+ svg.removeAttribute('data-focus-active');+ nodes().forEach(function (node) {+ node.removeAttribute('data-focus-match');+ node.removeAttribute('data-focus-selected');+ node.setAttribute('aria-pressed', 'false');+ });+ edges().forEach(function (edge) { edge.removeAttribute('data-focus-match'); });+ chip.hidden = true;+ label.textContent = '';+ detail.textContent = '';+ detail.hidden = true;+ kind.textContent = '';+ kind.hidden = true;+ context.textContent = '';+ context.hidden = true;+ tag.textContent = '';+ tag.hidden = true;+ semanticId.textContent = '';+ semanticId.hidden = true;+ evidence.hidden = true;+ evidenceLinks.textContent = '';+ repositoryLink.removeAttribute('href');+ repositoryLink.textContent = '';+ summary.textContent = '';+ reachSection.hidden = true;+ upstreamCount.textContent = '0';+ downstreamCount.textContent = '0';+ upstreamBtn.disabled = true;+ downstreamBtn.disabled = true;+ relationshipList.textContent = '';+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));+ relationsBtn.setAttribute('aria-expanded', 'false');+ chip.removeAttribute('data-relations-expanded');+ if (options.preserveLensPlacement !== true) resetLensPlacement({ reposition: false });+ if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.updateUrl !== false) {+ try { history.replaceState(null, '', location.pathname + location.search); } catch (_) {}+ }+ if (restoreNode) {+ try { restoreNode.focus({ preventScroll: true }); }+ catch (_) { try { restoreNode.focus(); } catch (_) {} }+ }+ }++ function setMany(ids, options) {+ options = options || {};+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.active()) {+ Archify.semanticLens.clear({ updateUrl: false, preserveView: true, closePanel: true });+ }+ if (options.preserveRoute !== true && Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {+ Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });+ }+ var nodeList = nodes();+ var byId = Object.create(null);+ nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var normalized = [];+ (ids || []).forEach(function (id) {+ if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);+ });+ if (!normalized.length) return false;+ if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {+ clear();+ return true;+ }++ var preserveLensPlacement = activeIds.length === 1 && normalized.length === 1 && !chip.hidden;+ clear({ updateUrl: false, preserveView: true, preserveLensPlacement: preserveLensPlacement });+ activeIds = normalized;+ var selected = Object.create(null);+ var related = Object.create(null);+ var seenEdges = {};+ var matchedEdges = 0;+ normalized.forEach(function (id) { selected[id] = true; related[id] = true; });+ var selectionMode = options.mode === 'selection' || normalized.length > 1;++ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var match = selectionMode ? selected[from] && selected[to] : selected[from] || selected[to];+ if (!match) return;+ edge.setAttribute('data-focus-match', '');+ if (!selectionMode) { related[from] = true; related[to] = true; }+ var edgeKey = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!seenEdges[edgeKey]) { seenEdges[edgeKey] = true; matchedEdges += 1; }+ });+ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-focus-match', '');+ if (selected[nodeId]) {+ node.setAttribute('data-focus-selected', '');+ node.setAttribute('aria-pressed', 'true');+ }+ });+ svg.setAttribute('data-focus-active', normalized.join(' '));+ var defaultLabel = normalized.length === 1+ ? nodeLabel(byId[normalized[0]], normalized[0])+ : viewerText('viewer.focus.selectedNodes', { count: normalized.length });+ label.textContent = options.label || defaultLabel;+ chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;+ if (!chip.hidden) {+ renderRelationshipLens(normalized[0], byId);+ placeRelationshipLens();+ }+ if (options.updateUrl !== false) {+ var key = options.urlKey || 'focus';+ var value = options.urlValue || normalized[0];+ try { history.replaceState(null, '', location.pathname + location.search + '#' + key + '=' + encodeURIComponent(value)); } catch (_) {}+ }+ return true;+ }++ function set(id, options) {+ options = options || {};+ options.mode = 'neighborhood';+ return setMany([id], options);+ }++ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }++ function copyFocusLink() {+ if (activeIds.length !== 1) return Promise.resolve(false);+ var record = pinnedRelationshipRecord();+ var relationId = record && record.id;+ var value = location.href.replace(/#.*$/, '') + (relationId+ ? '#relation=' + encodeURIComponent(relationId)+ : '#focus=' + encodeURIComponent(activeIds[0]) + (reachabilityMode ? '&reach=' + reachabilityMode : ''));+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', copied+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));+ window.setTimeout(function () {+ renderRelationshipCopyAction();+ }, 1600);+ return copied;+ });+ }++ svg.addEventListener('click', function (event) {+ if (container.getAttribute('data-just-panned') === 'true') return;+ var node = event.target.closest('[data-node-id]');+ if (node) {+ var id = node.getAttribute('data-node-id');+ set(id);+ if (activeIds.indexOf(id) !== -1 && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });+ }+ }+ else if (activeIds.length) clear();+ });+ svg.addEventListener('keydown', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.key !== 'Enter' && event.key !== ' ')) return;+ event.preventDefault();+ var id = node.getAttribute('data-node-id');+ set(id);+ if (activeIds.indexOf(id) !== -1 && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });+ }+ });+ moveBtn.addEventListener('pointerdown', beginLensDrag);+ moveBtn.addEventListener('pointermove', moveLensDrag);+ moveBtn.addEventListener('pointerup', function (event) { finishLensDrag(event, false); });+ moveBtn.addEventListener('pointercancel', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('lostpointercapture', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('dblclick', function (event) {+ event.preventDefault();+ event.stopPropagation();+ resetLensPlacement();+ });+ moveBtn.addEventListener('keydown', moveLensWithKeyboard);+ clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });+ copyBtn.addEventListener('click', copyFocusLink);+ upstreamBtn.addEventListener('click', function () { applyReachability('upstream'); });+ downstreamBtn.addEventListener('click', function () { applyReachability('downstream'); });+ relationsBtn.addEventListener('click', function () {+ var expanded = chip.getAttribute('data-relations-expanded') === 'true';+ if (expanded) chip.removeAttribute('data-relations-expanded');+ else chip.setAttribute('data-relations-expanded', 'true');+ relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));+ placeRelationshipLens();+ });+ relationshipList.addEventListener('click', function (event) {+ var button = event.target.closest('[data-relationship-target]');+ if (!button) return;+ var id = button.getAttribute('data-relationship-target');+ set(id, { toggle: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'relationship' });+ }+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ try { node.focus({ preventScroll: true }); } catch (_) { try { node.focus(); } catch (_) {} }+ }+ });+ relationshipList.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch') return;+ if (finePointerQuery && !finePointerQuery.matches) return;+ var button = event.target.closest('[data-relationship-key]');+ if (!button || !relationshipList.contains(button)) return;+ if (event.relatedTarget && button.contains(event.relatedTarget)) return;+ hoveredRelationship = button;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('pointerout', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;+ if (hoveredRelationship === button) hoveredRelationship = null;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('focusin', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button) return;+ focusedRelationship = button;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('focusout', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;+ if (focusedRelationship === button) focusedRelationship = null;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('keydown', function (event) {+ if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp' && event.key !== 'Home' && event.key !== 'End') return;+ var buttons = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-target]'));+ if (!buttons.length) return;+ var index = buttons.indexOf(document.activeElement);+ if (event.key === 'Home') index = 0;+ else if (event.key === 'End') index = buttons.length - 1;+ else if (event.key === 'ArrowDown') index = Math.min(buttons.length - 1, Math.max(0, index + 1));+ else index = Math.max(0, index < 0 ? 0 : index - 1);+ event.preventDefault();+ buttons[index].focus();+ });+ document.addEventListener('pointerdown', function () {+ lensDragClickPointer = null;+ }, true);+ document.addEventListener('click', function (event) {+ // Losing capture (for example when a resize hides the handle) can+ // retarget this drag's final click to the page. It is not dismissal.+ // A new pointerdown releases the guard; keyboard clicks remain live.+ if (lensDragClickPointer != null && event.detail > 0 &&+ (event.pointerId == null || event.pointerId === lensDragClickPointer)) {+ lensDragClickPointer = null;+ event.preventDefault();+ event.stopPropagation();+ return;+ }+ var target = event.target;+ if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;+ if (container.getAttribute('data-just-panned') === 'true') return;+ if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map')) return;+ clear();+ }, true);+ window.addEventListener('scroll', requestLensPlacement, { passive: true });+ window.addEventListener('resize', requestLensPlacement);+ container.addEventListener('scroll', requestLensPlacement, { passive: true });+ document.addEventListener('visibilitychange', function () {+ if (document.hidden) removeRelationshipPulse();+ });+ function syncRelationshipMotionPreference(event) {+ if (event.matches) removeRelationshipPulse();+ }+ if (reducedMotionQuery) {+ if (typeof reducedMotionQuery.addEventListener === 'function') {+ reducedMotionQuery.addEventListener('change', syncRelationshipMotionPreference);+ } else if (typeof reducedMotionQuery.addListener === 'function') {+ reducedMotionQuery.addListener(syncRelationshipMotionPreference);+ }+ }++ installRelationshipHitTargets();++ function syncFocusFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var relation = params.get('relation');+ var initial = params.get('focus');+ var reach = params.get('reach');+ if (relation) {+ if (html.getAttribute('data-embed') === 'true' ||+ !inspectRelationshipById(relation, { updateUrl: false, toggle: false })) clear({ updateUrl: false });+ }+ else if (initial) {+ if (set(initial, { updateUrl: false, toggle: false }) &&+ (reach === 'upstream' || reach === 'downstream')) {+ applyReachability(reach, { updateUrl: false, toggle: false, reveal: false });+ }+ }+ else clear({ updateUrl: false });+ } catch (_) {}+ }++ window.addEventListener('hashchange', syncFocusFromHash);+ syncFocusFromHash();++ return {+ set: set,+ setMany: setMany,+ clear: clear,+ copyLink: copyFocusLink,+ reach: applyReachability,+ clearReach: clearReachability,+ reachabilitySnapshot: reachabilitySnapshot,+ inspectRelationship: inspectRelationship,+ inspectRelationshipById: inspectRelationshipById,+ reposition: placeRelationshipLens,+ relationship: function () {+ var record = pinnedRelationshipRecord();+ return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;+ },+ reachability: function () {+ return activeReachability ? {+ direction: activeReachability.direction,+ originId: activeReachability.originId,+ nodeIds: activeReachability.nodeIds.slice(),+ edgeKeys: activeReachability.edgeKeys.slice(),+ maxDepth: activeReachability.maxDepth+ } : null;+ },+ active: function () { return activeIds.length === 0 ? null : (activeIds.length === 1 ? activeIds[0] : activeIds.slice()); }+ };+ })();+++ /* ============================================================+ Intent Trace — temporary one-hop topology before durable focus.+ Fine-pointer hover and keyboard focus share the same stable-ID preview;+ touch continues directly to the existing click-to-focus contract.+ ============================================================ */+ Archify.intentTrace = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var status = document.getElementById('intent-trace-status');+ var namespace = 'http://www.w3.org/2000/svg';+ var activeId = null;+ var hoveredNode = null;+ var focusedNode = null;+ var enterTimer = null;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function finePointer() {+ return !window.matchMedia || window.matchMedia('(hover: hover) and (pointer: fine)').matches;+ }+ function reducedMotion() {+ return !!(window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches);+ }+ function blocked() {+ return html.getAttribute('data-embed') === 'true' ||+ html.getAttribute('data-guide-open') === 'true' ||+ container.classList.contains('is-panning') ||+ svg.hasAttribute('data-lens-active') ||+ svg.hasAttribute('data-relationship-preview-active') ||+ !!(Archify.routeProbe && typeof Archify.routeProbe.active === 'function' && Archify.routeProbe.active()) ||+ !!(Archify.focus && typeof Archify.focus.active === 'function' && Archify.focus.active());+ }+ function edgeShapes(edge) {+ if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function removeOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {+ overlay.remove();+ });+ }+ function clear(options) {+ options = options || {};+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = null;+ activeId = null;+ svg.removeAttribute('data-intent-trace-active');+ removeOverlay();+ nodes().forEach(function (node) {+ node.removeAttribute('data-intent-trace-match');+ node.removeAttribute('data-intent-trace-selected');+ });+ edges().forEach(function (edge) { edge.removeAttribute('data-intent-trace-match'); });+ if (options.announce !== false) status.textContent = '';+ }+ function traceGeometry(shape, direction) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-intent-trace-match');+ clone.removeAttribute('data-intent-trace-selected');+ clone.setAttribute('class', 'intent-trace-flow');+ clone.setAttribute('data-direction', direction);+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function show(id, options) {+ options = options || {};+ if (!id || blocked()) {+ clear({ announce: false });+ return false;+ }+ if (activeId === id) return true;+ clear({ announce: false });+ var nodeList = nodes();+ var edgeList = edges();+ var byId = Object.create(null);+ nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var selected = byId[id];+ if (!selected) return false;++ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'intent-trace-overlay');+ overlay.setAttribute('data-intent-trace-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ var related = Object.create(null);+ var seen = {};+ var counts = { out: 0, in: 0, loop: 0 };+ related[id] = true;++ edgeList.forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (from !== id && to !== id) return;+ var direction = from === id && to === id ? 'loop' : (from === id ? 'out' : 'in');+ var key = edge.getAttribute('data-edge-key') ||+ (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!seen[key]) {+ seen[key] = true;+ counts[direction] += 1;+ }+ related[from] = true;+ related[to] = true;+ edge.setAttribute('data-intent-trace-match', '');+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) {+ wrapper.appendChild(traceGeometry(shape, direction));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });++ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-intent-trace-match', '');+ if (nodeId === id) node.setAttribute('data-intent-trace-selected', '');+ });+ if (overlay.childNodes.length) {+ var firstEdge = edgeList[0];+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstEdge && firstEdge.parentNode) firstEdge.parentNode.insertBefore(overlay, firstEdge);+ else if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ activeId = id;+ svg.setAttribute('data-intent-trace-active', id);+ if (options.announce === true) {+ var total = counts.out + counts.in + counts.loop;+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });+ }+ return true;+ }+ function schedule(node) {+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = window.setTimeout(function () {+ enterTimer = null;+ if (hoveredNode === node) show(node.getAttribute('data-node-id'), { announce: false });+ }, reducedMotion() ? 0 : 90);+ }+ function sync() {+ var candidate = focusedNode || hoveredNode;+ if (!candidate) {+ clear();+ return;+ }+ show(candidate.getAttribute('data-node-id'), { announce: candidate === focusedNode });+ }++ svg.addEventListener('pointerover', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || !finePointer() || event.pointerType === 'touch') return;+ if (event.relatedTarget && node.contains(event.relatedTarget)) return;+ hoveredNode = node;+ schedule(node);+ });+ svg.addEventListener('pointerout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (hoveredNode === node) hoveredNode = null;+ sync();+ });+ svg.addEventListener('focusin', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ focusedNode = node;+ show(node.getAttribute('data-node-id'), { announce: true });+ });+ svg.addEventListener('focusout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (focusedNode === node) focusedNode = null;+ sync();+ });+ container.addEventListener('pointerdown', function (event) {+ if (!event.target.closest('[data-node-id]')) clear({ announce: false });+ });+ window.addEventListener('blur', function () { clear({ announce: false }); });++ return {+ show: show,+ clear: clear,+ active: function () { return activeId; }+ };+ })();++ /* ============================================================+ Adaptive Reader Shell — one diagram across laptop and monitor.+ The canonical SVG and viewBox never change. On ordinary desktop pages,+ wide diagrams and measured intrinsic tall workflows receive enough outer width to use the available+ height without pushing summary cards below the viewport. Mobile,+ embed, presentation, print, and unmarked non-wide diagrams retain their own+ established layout contracts.+ ============================================================ */+ // Fixed script-private participants; the CLI sees only the joint wait below.+ const archifyLayoutOwners = { reader: null, viewerChrome: null };+ Archify.waitForStableLayout = function (options) {+ options = options || {};+ var maximumFrames = Math.max(1, Number(options.maximumFrames) || 240);+ var fontsReady = document.fonts && document.fonts.ready+ ? document.fonts.ready.catch(function () {})+ : Promise.resolve();+ return fontsReady.then(function () {+ if (typeof options.schedule === 'function') options.schedule();+ return new Promise(function (resolve, reject) {+ var previous = '';+ var stableFrames = 0;+ var sampledFrames = 0;+ function sample() {+ sampledFrames += 1;+ if (typeof options.pending === 'function' && options.pending()) {+ previous = '';+ stableFrames = 0;+ } else {+ var current = typeof options.snapshot === 'function' ? options.snapshot() : '';+ if (current === previous) stableFrames += 1;+ else {+ previous = current;+ stableFrames = 0;+ }+ if (stableFrames >= 3) {+ resolve({ stable: true, snapshot: current, sampledFrames: sampledFrames });+ return;+ }+ }+ if (sampledFrames >= maximumFrames) {+ reject(new Error(options.timeoutMessage || 'Layout did not reach stable dimensions.'));+ return;+ }+ requestAnimationFrame(sample);+ }+ requestAnimationFrame(sample);+ });+ });+ };++ Archify.readerLayout = (function () {+ var html = document.documentElement;+ var body = document.body;+ var shell = document.querySelector('.container');+ var diagram = document.querySelector('.diagram-container');+ var svg = diagram && diagram.querySelector(':scope > svg');+ var header = shell && shell.querySelector('.header');+ var cards = shell && shell.querySelector('.cards');+ var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;+ var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;+ var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';+ var frame = 0;+ var settleFrame = 0;+ var lastWidth = 0;+ // Widest reader the overflow settle has accepted for this viewport (0 =+ // uncapped). Card copy rewraps as the reader narrows, so recomputing+ // from fixed heights alone would widen again and oscillate; only a+ // resize lifts the cap.+ var settledCap = 0;+ var WIDE_RATIO = 1.55;+ var MIN_DESKTOP_WIDTH = 1024;+ var MIN_READER_WIDTH = 960;+ var MAX_READER_WIDTH = 1920;+ var MIN_PROJECTED_NODE_TEXT_PX = 6;+ var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;+ var requestedMinimumText = Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_PROJECTED_NODE_TEXT_PX, declaredMinimumText)+ : MIN_PROJECTED_NODE_TEXT_PX;+ var declaredPrimaryText = svg ? parseFloat(svg.getAttribute('data-reader-primary-text') || '') : null;+ var SAFE_BOTTOM_GAP = 12;+ // Wide viewports move summary cards beside the diagram, so the height+ // budget belongs to the diagram and spare width holds the notes.+ var RAIL_MIN_VIEWPORT = 1280;+ var RAIL_WIDTH = 288;+ var RAIL_GAP = 20;+ // A default rail must leave primary node labels comfortably readable;+ // otherwise it starts collapsed and the reader can still open it.+ var RAIL_COMFORT_PRIMARY_PX = 12;+ var railPanel = shell && shell.querySelector('.reader-rail');+ var railReveal = document.getElementById('rail-reveal');+ var railCollapse = document.getElementById('rail-collapse');+ var railPlacement = document.getElementById('rail-placement');+ var RAIL_COLLAPSED_KEY = 'archify-rail-collapsed';+ var RAIL_PLACEMENT_KEY = 'archify-rail-placement';+ // Memory is the page's source of truth; storage only carries the choice+ // to later artifacts, so a blocked or full localStorage cannot freeze it.+ var preferences = Object.create(null);+ function readPreference(key) {+ if (key in preferences) return preferences[key];+ try { return localStorage.getItem(key); } catch (_) { return null; }+ }+ function writePreference(key, value) {+ preferences[key] = value;+ try { localStorage.setItem(key, value); } catch (_) {}+ }++ if (diagram && ratio >= WIDE_RATIO) {+ diagram.setAttribute('data-wide-diagram', 'true');+ html.setAttribute('data-diagram-shape', 'wide');+ }++ function number(value) {+ var parsed = parseFloat(value);+ return Number.isFinite(parsed) ? parsed : 0;+ }+ function visible(element) {+ return Boolean(element && !element.hidden && window.getComputedStyle(element).display !== 'none');+ }+ function outerHeight(element) {+ if (!visible(element)) return 0;+ var style = window.getComputedStyle(element);+ return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);+ }+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.+ function minimumReadableScale() {+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);+ }+ });+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;+ }+ var sourcePrimary = null;+ if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {+ var size = parseFloat(text.getAttribute('font-size') || '');+ if (Number.isFinite(size) && size > 0) sourcePrimary = sourcePrimary == null ? size : Math.max(sourcePrimary, size);+ });+ // SVG width at which the largest node label renders at targetPx. Every+ // renderer writes label font sizes, so the rail comfort check works for+ // all diagram types; only the renderer-declared floor needs metadata.+ function labelWidth(targetPx) {+ return sourcePrimary == null || !viewBox ? 0 : viewBox.width * targetPx / sourcePrimary;+ }+ function primaryReadingWidth() {+ if (!measuredHeightFit || !Number.isFinite(declaredPrimaryText) || declaredPrimaryText <= 0) return 0;+ // Primary labels should remain comfortable to read when cards or+ // auxiliary rows make a one-screen fit too small. Ordinary page+ // scroll preserves that reading size; viewport width still caps it.+ // A long title may already use a smaller fitted font. Preserve that+ // hierarchy rather than enlarging every other node to compensate.+ return labelWidth(declaredPrimaryText);+ }+ function eligible() {+ return Boolean(+ shell && diagram && svg && (ratio >= WIDE_RATIO || measuredHeightFit) &&+ window.innerWidth >= MIN_DESKTOP_WIDTH &&+ html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches)+ );+ }+ function clear() {+ html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ html.removeAttribute('data-reader-layout');+ html.removeAttribute('data-reader-overflow');+ setRail(false);+ lastWidth = 0;+ settledCap = 0;+ }+ // Rail modes: "true" docks beside the diagram, "collapsed" leaves only the+ // reveal control, "overlay" opens a drawer when docking would break the+ // readable floor, and "bottom" stacks notes and index below the diagram.+ function setRail(mode) {+ if (mode) {+ html.setAttribute('data-reader-rail', mode);+ html.style.setProperty('--archify-rail-width', RAIL_WIDTH + 'px');+ html.style.setProperty('--archify-rail-gap', RAIL_GAP + 'px');+ } else {+ html.removeAttribute('data-reader-rail');+ html.style.removeProperty('--archify-rail-width');+ html.style.removeProperty('--archify-rail-gap');+ }+ if (railReveal) railReveal.hidden = mode !== 'collapsed';+ if (railCollapse) {+ railCollapse.hidden = mode !== 'true' && mode !== 'overlay';+ railCollapse.setAttribute('aria-expanded', String(mode === 'true' || mode === 'overlay'));+ }+ if (railPlacement) {+ railPlacement.hidden = !mode || mode === 'collapsed' || (mode === 'bottom' && window.innerWidth < RAIL_MIN_VIEWPORT);+ railPlacement.setAttribute('data-placement', mode === 'bottom' ? 'bottom' : 'right');+ railPlacement.setAttribute('aria-label', viewerText(mode === 'bottom' ? 'viewer.rail.right' : 'viewer.rail.bottom'));+ railPlacement.title = railPlacement.getAttribute('aria-label');+ }+ }+ var outline = document.getElementById('node-outline');+ function hasCards() {+ return Boolean((cards && cards.children.length && !cards.hidden) || (outline && !outline.hidden));+ }+ // Bottom notes and index are reading material below the fold: the first+ // screen belongs to the interactive diagram and its controls.+ function belowFold() {+ return html.getAttribute('data-reader-rail') === 'bottom' ? outerHeight(railPanel) : 0;+ }+ // A docked rail may run past a short diagram down to the viewport floor,+ // so the index uses that space instead of scrolling inside the diagram's+ // height; it never pushes the page into overflow.+ function fitDockedRail() {+ if (html.getAttribute('data-reader-rail') !== 'true' || !railPanel) return;+ var top = railPanel.getBoundingClientRect().top + window.scrollY;+ var floor = window.innerHeight - number(window.getComputedStyle(body).paddingBottom) - top;+ html.style.setProperty('--archify-rail-max', Math.max(diagram.getBoundingClientRect().height, floor) + 'px');+ }+ function chromeMetrics() {+ var bodyStyle = window.getComputedStyle(body);+ var diagramStyle = window.getComputedStyle(diagram);+ return {+ bodyX: number(bodyStyle.paddingLeft) + number(bodyStyle.paddingRight),+ bodyY: number(bodyStyle.paddingTop) + number(bodyStyle.paddingBottom),+ diagramX: number(diagramStyle.paddingLeft) + number(diagramStyle.paddingRight) ++ number(diagramStyle.borderLeftWidth) + number(diagramStyle.borderRightWidth),+ diagramY: number(diagramStyle.paddingTop) + number(diagramStyle.paddingBottom) ++ number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)+ };+ }+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.+ function applyWidth(width, minWidth) {+ var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));+ if (Math.abs(rounded - lastWidth) < 1) return false;+ lastWidth = rounded;+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ if (rounded < shellFloor) {+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }+ html.setAttribute('data-reader-layout', 'adaptive');+ return true;+ }+ function settleOverflow(minWidth) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ if (!eligible() || !lastWidth) return;+ fitDockedRail();+ var overflow = Math.max(+ document.documentElement.scrollHeight,+ document.body.scrollHeight+ ) - window.innerHeight - belowFold();+ if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {+ applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);+ settledCap = lastWidth;+ html.setAttribute('data-reader-overflow', 'reduced');+ } else if (overflow > 1) {+ html.setAttribute('data-reader-overflow', 'authored');+ } else {+ html.removeAttribute('data-reader-overflow');+ }+ });+ }+ function measure() {+ frame = 0;+ if (!eligible()) {+ clear();+ return null;+ }+ var chrome = chromeMetrics();+ var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);+ var readableWidth = viewBox && viewBox.width > 0+ ? viewBox.width * minimumReadableScale() + chrome.diagramX+ : MIN_READER_WIDTH;+ var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);+ var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO+ ? readableWidth+ : measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_READER_WIDTH, readableWidth)+ : MIN_READER_WIDTH;+ var minWidth;+ if (measuredHeightFit && ratio < WIDE_RATIO) {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ } else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ }+ var primaryWidth = primaryReadingWidth();+ var railExtra = RAIL_WIDTH + RAIL_GAP;+ var mode = null;+ // Notes default below the diagram; the right rail is the reader's+ // opt-in and needs a wide viewport.+ if (hasCards() && (readPreference(RAIL_PLACEMENT_KEY) !== 'right' || window.innerWidth < RAIL_MIN_VIEWPORT)) {+ mode = 'bottom';+ } else if (hasCards()) {+ var fitsReadable = readableMinimumWidth + railExtra <= maxWidth;+ var comfortWidth = labelWidth(RAIL_COMFORT_PRIMARY_PX);+ var comfortable = fitsReadable && (!comfortWidth || comfortWidth + chrome.diagramX + railExtra <= maxWidth);+ var collapsedPreference = readPreference(RAIL_COLLAPSED_KEY);+ if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';+ else mode = fitsReadable ? 'true' : 'overlay';+ }+ // With notes below the fold, the first screen belongs to the whole+ // diagram and its controls: it may shrink past the comfortable primary+ // size down to the renderer's readable text floor, and zoom restores+ // detail. Only a graph taller than that floor allows still scrolls.+ if (mode === 'bottom') primaryWidth = 0;+ if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));+ var docked = mode === 'true';+ setRail(mode);+ chrome = chromeMetrics();+ if (docked) minWidth = Math.min(maxWidth, minWidth + railExtra);+ var stackedBelow = mode === 'bottom' ? 0 : docked ? 0 : outerHeight(cards);+ var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP ++ outerHeight(header) + stackedBelow;+ var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);+ var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));+ applyWidth(width, minWidth);+ settleOverflow(minWidth);+ return {+ ratio: ratio,+ width: lastWidth,+ availableSvgHeight: Math.round(availableSvgHeight),+ fixedHeight: Math.round(fixedHeight)+ };+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var shellRect = shell ? shell.getBoundingClientRect() : { width: 0, height: 0 };+ var diagramRect = diagram ? diagram.getBoundingClientRect() : { width: 0, height: 0 };+ return [+ lastWidth,+ html.getAttribute('data-reader-layout') || '',+ html.getAttribute('data-reader-overflow') || '',+ Math.ceil(document.documentElement.scrollWidth),+ Math.ceil(document.documentElement.scrollHeight),+ Math.ceil(document.body.scrollWidth),+ Math.ceil(document.body.scrollHeight),+ Math.round(shellRect.width * 100) / 100,+ Math.round(shellRect.height * 100) / 100,+ Math.round(diagramRect.width * 100) / 100,+ Math.round(diagramRect.height * 100) / 100+ ].join('|');+ }+ function layoutPending() { return Boolean(frame || settleFrame); }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: layoutPending,+ snapshot: stableSnapshot,+ timeoutMessage: 'Adaptive reader layout did not reach stable dimensions.'+ });+ }+ archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };++ window.addEventListener('resize', function () {+ settledCap = 0;+ schedule();+ }, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [header, cards].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(schedule);+ if (cards) contentObserver.observe(cards, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ // Reader choices persist across artifacts; a resize-style remeasure+ // applies them without reloading.+ function chooseRail(key, value) {+ writePreference(key, value);+ settledCap = 0;+ schedule();+ }+ function collapseRail() {+ chooseRail(RAIL_COLLAPSED_KEY, '1');+ if (railReveal) requestAnimationFrame(function () { try { railReveal.focus({ preventScroll: true }); } catch (_) {} });+ }+ if (railReveal) railReveal.addEventListener('click', function () { chooseRail(RAIL_COLLAPSED_KEY, '0'); });+ if (railCollapse) railCollapse.addEventListener('click', collapseRail);+ if (railPlacement) railPlacement.addEventListener('click', function () {+ var toBottom = html.getAttribute('data-reader-rail') !== 'bottom';+ if (!toBottom) writePreference(RAIL_COLLAPSED_KEY, '0');+ chooseRail(RAIL_PLACEMENT_KEY, toBottom ? 'bottom' : 'right');+ });+ document.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' && html.getAttribute('data-reader-rail') === 'overlay') collapseRail();+ });+ document.addEventListener('pointerdown', function (event) {+ if (html.getAttribute('data-reader-rail') !== 'overlay' || !railPanel) return;+ if (!railPanel.contains(event.target) && !(railReveal && railReveal.contains(event.target))) chooseRail(RAIL_COLLAPSED_KEY, '1');+ });+ if (typeof ResizeObserver === 'function' && railPanel) new ResizeObserver(schedule).observe(railPanel);+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ whenStable: whenStable,+ active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },+ receipt: function () { return { ratio: ratio, width: lastWidth }; }+ };+ })();++ /* ============================================================+ Viewer Chrome Layout — keep HTML controls clear of the canonical SVG+ stage without changing authored geometry. The dock keeps its floating+ appearance while a small bottom stage rail becomes part of the reader+ budget whenever its zero-reserve position would enter the stage.+ ============================================================ */+ Archify.viewerChromeLayout = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container && container.querySelector(':scope > svg');+ var nav = container && container.querySelector('.diagram-nav');+ var legend = svg && svg.querySelector('[data-legend]');+ var frame = 0;+ var settleFrame = 0;+ var reserve = 0;+ var railLatched = false;+ var probingBaseline = false;+ var probePromise = null;+ var baselineIntersectionArea = 0;+ var baselineStageGap = null;+ var restorableReserve = 0;+ var probeFallbackReserve = 0;+ var lastReceipt = null;+ var SAFE_GAP = 10;++ function visible(element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ }+ function usable(rect) {+ return Boolean(rect && rect.width > 0 && rect.height > 0);+ }+ function intersectionArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function protectedStageRect() {+ if (!svg) return null;+ var rect = svg.getBoundingClientRect();+ var transform = '';+ try { transform = window.getComputedStyle(svg).transform || ''; } catch (_) {}+ var scaleX = 1;+ var scaleY = 1;+ var translateX = 0;+ var translateY = 0;+ var matrix = transform.match(/^matrix\(([^)]+)\)$/);+ var matrix3d = transform.match(/^matrix3d\(([^)]+)\)$/);+ if (matrix) {+ var values = matrix[1].split(',').map(Number);+ if (values.length === 6 && values.every(Number.isFinite)) {+ scaleX = Math.abs(values[0]) || 1;+ scaleY = Math.abs(values[3]) || 1;+ translateX = values[4];+ translateY = values[5];+ }+ } else if (matrix3d) {+ var values3d = matrix3d[1].split(',').map(Number);+ if (values3d.length === 16 && values3d.every(Number.isFinite)) {+ scaleX = Math.abs(values3d[0]) || 1;+ scaleY = Math.abs(values3d[5]) || 1;+ translateX = values3d[12];+ translateY = values3d[13];+ }+ }+ var width = rect.width / scaleX;+ var height = rect.height / scaleY;+ var left = rect.left - translateX;+ var top = rect.top - translateY;+ return {+ x: left,+ y: top,+ left: left,+ top: top,+ right: left + width,+ bottom: top + height,+ width: width,+ height: height+ };+ }+ function eligible() {+ return Boolean(+ container && svg && nav &&+ window.innerWidth > 720 &&+ html.getAttribute('data-embed') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches) &&+ visible(nav)+ );+ }+ function cameraAtBaseline() {+ var scale = Number(svg && svg.getAttribute('data-view-scale'));+ return !Number.isFinite(scale) || Math.abs(scale - 1) < 0.001;+ }+ function writeReserve(next, options) {+ options = options || {};+ next = Math.max(0, Math.ceil(next));+ if (Math.abs(next - reserve) < 1) return false;+ reserve = next;+ if (reserve) {+ if (options.remember !== false) restorableReserve = reserve;+ container.style.setProperty('--archify-nav-reserve', reserve + 'px');+ container.setAttribute('data-nav-stage-rail', 'true');+ html.setAttribute('data-nav-stage-rail', 'true');+ } else {+ container.style.removeProperty('--archify-nav-reserve');+ container.removeAttribute('data-nav-stage-rail');+ html.removeAttribute('data-nav-stage-rail');+ }+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') {+ Archify.readerLayout.schedule();+ }+ if (options.quiet !== true) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ schedule();+ });+ }+ return true;+ }+ function clear(options) {+ options = options || {};+ railLatched = false;+ if (options.preserveBaseline !== true) {+ baselineIntersectionArea = 0;+ baselineStageGap = null;+ restorableReserve = 0;+ }+ writeReserve(0, { quiet: probingBaseline });+ lastReceipt = {+ eligible: false,+ active: false,+ reserve: 0,+ gap: SAFE_GAP,+ baselineStageGap: null,+ stageGap: null,+ stageIntersectionArea: 0,+ baselineIntersectionArea: 0,+ intersectionArea: 0+ };+ return lastReceipt;+ }+ /* When the stage runs below the viewport, the dock lifts to the viewport+ floor so its controls stay reachable while reading. Stage-rail+ decisions and receipts use its resting position, so the lift never+ feeds back into layout. */+ var lift = 0;+ var liftFrame = 0;+ function restingNavRect() {+ var rect = nav.getBoundingClientRect();+ if (!lift) return rect;+ return { x: rect.x, y: rect.y + lift, left: rect.left, right: rect.right, top: rect.top + lift, bottom: rect.bottom + lift, width: rect.width, height: rect.height };+ }+ function updateLift() {+ liftFrame = 0;+ var next = 0;+ if (eligible()) {+ var rest = restingNavRect();+ var box = container.getBoundingClientRect();+ next = Math.round(Math.max(0, Math.min(rest.bottom - (window.innerHeight - 16), rest.top - box.top - 16)));+ }+ if (next === lift) return;+ lift = next;+ if (lift) container.style.setProperty('--archify-dock-lift', lift + 'px');+ else container.style.removeProperty('--archify-dock-lift');+ }+ function scheduleLift() {+ if (!liftFrame) liftFrame = requestAnimationFrame(updateLift);+ }+ function measure() {+ frame = 0;+ scheduleLift();+ if (probingBaseline) return null;+ if (!eligible()) return clear({ preserveBaseline: !cameraAtBaseline() });++ /* Camera transforms enlarge and translate authored paint inside the+ fixed, clipped root SVG viewport. They must not redefine the+ reader's baseline rail.+ Restore that baseline after temporary mobile/embed/print states.+ Camera Reset preserves the established rail while viewport, mode,+ and content changes remain responsible for baseline reprobes. */+ if (!cameraAtBaseline()) {+ if (reserve === 0 && restorableReserve > 0) {+ if (writeReserve(restorableReserve)) return null;+ }+ var cameraNavRect = restingNavRect();+ var cameraLegendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ var cameraStageRect = protectedStageRect();+ var cameraIntersectionArea = usable(cameraLegendRect) && intersectionArea(cameraNavRect, cameraStageRect) > 0+ ? intersectionArea(cameraNavRect, cameraLegendRect)+ : 0;+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineStageGap: baselineStageGap == null ? null : Math.round(baselineStageGap * 100) / 100,+ stageGap: Math.round((cameraNavRect.top - cameraStageRect.bottom) * 100) / 100,+ stageIntersectionArea: Math.round(intersectionArea(cameraNavRect, cameraStageRect) * 100) / 100,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round(cameraIntersectionArea * 100) / 100+ };+ return lastReceipt;+ }++ var navRect = restingNavRect();+ var legendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ var stageRect = protectedStageRect();+ if (!usable(navRect) || !usable(stageRect)) return clear();++ var actualIntersectionArea = usable(legendRect) ? intersectionArea(navRect, legendRect) : 0;+ var stageGap = navRect.top - stageRect.bottom;+ if (!railLatched && reserve === 0) {+ baselineIntersectionArea = actualIntersectionArea;+ baselineStageGap = stageGap;+ if (stageGap < SAFE_GAP) {+ railLatched = true;+ if (writeReserve(Math.max(0, SAFE_GAP - stageGap))) return null;+ }+ } else if (railLatched && reserve > 0 && stageGap < SAFE_GAP) {+ /* Keep the decision latched while Adaptive Reader incorporates the+ rail. Presentation and rounded layout values can require one+ bounded follow-up before the full stage gap is established. */+ var remaining = Math.max(1, SAFE_GAP - stageGap);+ if (writeReserve(reserve + remaining)) return null;+ }++ navRect = restingNavRect();+ legendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ stageRect = protectedStageRect();+ stageGap = navRect.top - stageRect.bottom;+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineStageGap: baselineStageGap == null ? null : Math.round(baselineStageGap * 100) / 100,+ stageGap: Math.round(stageGap * 100) / 100,+ stageIntersectionArea: Math.round(intersectionArea(navRect, stageRect) * 100) / 100,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round((usable(legendRect) ? intersectionArea(navRect, legendRect) : 0) * 100) / 100+ };+ return lastReceipt;+ }+ function reprobe() {+ if (probingBaseline) return probePromise || Promise.resolve(false);+ if (!cameraAtBaseline()) {+ schedule();+ return Promise.resolve(false);+ }+ if (!reserve && !railLatched && !restorableReserve) {+ schedule();+ return Promise.resolve(false);+ }+ probeFallbackReserve = restorableReserve || reserve;+ probingBaseline = true;+ railLatched = false;+ baselineIntersectionArea = 0;+ baselineStageGap = null;+ restorableReserve = 0;+ writeReserve(0, { quiet: true });+ var readerReady = Archify.readerLayout && typeof Archify.readerLayout.whenStable === 'function'+ ? Archify.readerLayout.whenStable().catch(function () {})+ : Promise.resolve();+ probePromise = readerReady.then(function () {+ probingBaseline = false;+ probePromise = null;+ if (!cameraAtBaseline() && probeFallbackReserve > 0) {+ restorableReserve = probeFallbackReserve;+ }+ probeFallbackReserve = 0;+ schedule();+ return true;+ });+ return probePromise;+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var containerRect = container ? container.getBoundingClientRect() : { width: 0, height: 0 };+ var navRect = nav ? restingNavRect() : { top: 0, left: 0 };+ var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };+ return [+ reserve,+ Math.round(containerRect.width * 100) / 100,+ Math.round(containerRect.height * 100) / 100,+ Math.round(navRect.left * 100) / 100,+ Math.round(navRect.top * 100) / 100,+ Math.round(legendRect.left * 100) / 100,+ Math.round(legendRect.top * 100) / 100,+ railLatched ? 'latched' : 'clear',+ lastReceipt ? lastReceipt.stageGap : ''+ ].join('|');+ }+ function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: layoutPending,+ snapshot: stableSnapshot,+ timeoutMessage: 'Viewer chrome layout did not reach stable dimensions.'+ });+ }+ archifyLayoutOwners.viewerChrome = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };++ window.addEventListener('resize', reprobe, { passive: true });+ window.addEventListener('scroll', scheduleLift, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', schedule);+ window.addEventListener('afterprint', reprobe);+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(reprobe).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(function (records) {+ // A theme switch changes paint, not the stage geometry. Reprobing+ // drops the bottom rail for several frames and makes the diagram jump.+ var viewerModeChanged = records.some(function (record) {+ return record.target === html && record.attributeName !== 'data-theme';+ });+ if (viewerModeChanged) reprobe();+ else schedule();+ });+ if (legend) contentObserver.observe(legend, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, {+ attributes: true,+ attributeFilter: ['data-embed', 'data-present', 'data-preset', 'data-theme']+ });+ }+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ reprobe: reprobe,+ whenStable: whenStable,+ stageRect: protectedStageRect,+ dockRect: function () { return nav ? restingNavRect() : null; },+ active: function () { return reserve > 0; },+ receipt: function () { return lastReceipt || measure(); }+ };+ })();++ Archify.layoutStability = {+ whenStable: function () {+ var reader = archifyLayoutOwners.reader;+ var chrome = archifyLayoutOwners.viewerChrome;+ if (!reader || !chrome) {+ return Promise.reject(new Error('Joint layout owners are unavailable.'));+ }+ var observedFontsReady = document.fonts && document.fonts.ready;+ var fontCyclePending = false;+ var fontGeneration = 0;+ function scheduleOwners() { reader.schedule(); chrome.schedule(); }+ function fontsPending() {+ var fonts = document.fonts;+ var ready = fonts && fonts.ready;+ if (ready && (ready !== observedFontsReady || (fonts.status === 'loading' && !fontCyclePending))) {+ observedFontsReady = ready;+ fontCyclePending = true;+ var generation = ++fontGeneration;+ ready.catch(function () {}).then(function () {+ if (generation !== fontGeneration) return;+ fontCyclePending = false;+ scheduleOwners();+ });+ }+ return fontCyclePending || Boolean(fonts && fonts.status === 'loading');+ }+ return Archify.waitForStableLayout({+ maximumFrames: 960,+ schedule: scheduleOwners,+ pending: function () {+ // Recapture readiness for font cycles that begin during sampling.+ return fontsPending() || reader.pending() || chrome.pending();+ },+ snapshot: function () {+ return JSON.stringify([+ ['reader', reader.snapshot()],+ ['viewerChrome', chrome.snapshot()]+ ]);+ },+ timeoutMessage: 'Joint reader and viewer chrome layout did not reach stable dimensions.'+ });+ }+ };+ Archify.view = (function () {+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var outBtn = container.querySelector('[data-view="out"]');+ var resetBtn = container.querySelector('[data-view="reset"]');+ var resetDetailLabel = resetBtn.querySelector('[data-view-detail]');+ var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');+ var inBtn = container.querySelector('[data-view="in"]');+ var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var drag = null;+ var cameraTimer = null;+ var cameraFrame = null;+ var cameraGeneration = 0;+ var cameraTransaction = null;+ var clipFrame = 0;+ var resizeFrame = 0;+ var autoScrollUntil = 0;++ var viewBox = svg.viewBox && svg.viewBox.baseVal;++ function clamp() {+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ state.x = Math.min(0, Math.max(width - width * state.scale, state.x));+ state.y = Math.min(0, Math.max(height - height * state.scale, state.y));+ }+ function reducedMotion() {+ return window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;+ }+ function contentMetrics() {+ if (!viewBox || viewBox.width <= 0 || viewBox.height <= 0) return null;+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ var scale = Math.min(width / viewBox.width, height / viewBox.height);+ return {+ width: width,+ height: height,+ scale: scale,+ offsetX: (width - viewBox.width * scale) / 2,+ offsetY: (height - viewBox.height * scale) / 2+ };+ }+ function logicalViewport() {+ var metrics = contentMetrics();+ if (!metrics) return null;+ var x;+ var y;+ var width;+ var height;+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ x = viewBox.x + container.scrollLeft / metrics.scale;+ y = viewBox.y;+ width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));+ height = viewBox.height;+ } else {+ x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;+ width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);+ }+ width = Math.max(1, Math.min(viewBox.width, width));+ height = Math.max(1, Math.min(viewBox.height, height));+ x = Math.max(viewBox.x, Math.min(viewBox.x + viewBox.width - width, x));+ y = Math.max(viewBox.y, Math.min(viewBox.y + viewBox.height - height, y));+ return { x: x, y: y, width: width, height: height, scale: state.scale };+ }+ function detailLevel() {+ if (state.mode === 'semantic') return 'full';+ if (state.scale >= 1.75) return 'full';+ if (state.scale >= 1) return 'read';+ return 'map';+ }+ function renderControls() {+ var semantic = state.mode === 'semantic' && state.scale > 1.01;+ var detail = detailLevel();+ var percent = Math.round(state.scale * 100) + '%';+ var levelLabel = viewerText('viewer.nav.level.' + detail);+ var detailHint = detail === 'map'+ ? viewerText('viewer.nav.detail.map')+ : detail === 'read'+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';+ if (resetDetailLabel) {+ resetDetailLabel.textContent = resolvedLevel;+ resetDetailLabel.hidden = !showDetailLevel;+ }+ if (resetPercentLabel) resetPercentLabel.textContent = percent;+ resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));+ resetBtn.setAttribute('data-detail-level', detail);+ container.setAttribute('data-detail-level', detail);+ container.setAttribute('data-camera-mode', state.mode);+ container.setAttribute('data-camera-indicator', semantic ? 'true' : 'false');+ }+ function clipToViewport(camera) {+ camera = camera || state;+ if (camera.scale <= 1.001) {+ svg.style.removeProperty('clip-path');+ return;+ }+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ var scale = camera.scale;+ var top = Math.max(0, Math.min(height, -camera.y / scale));+ var left = Math.max(0, Math.min(width, -camera.x / scale));+ var right = Math.max(0, Math.min(width, width - (width - camera.x) / scale));+ var bottom = Math.max(0, Math.min(height, height - (height - camera.y) / scale));+ svg.style.clipPath = 'inset(' + [top, right, bottom, left].map(function (value) {+ return Math.round(value * 1000) / 1000 + 'px';+ }).join(' ') + ')';+ }+ function cameraSettled(rendered) {+ return Math.abs(rendered.scale - state.scale) < 0.001 &&+ Math.abs(rendered.x - state.x) < 0.05 &&+ Math.abs(rendered.y - state.y) < 0.05;+ }+ function syncViewportClip() {+ if (clipFrame) cancelAnimationFrame(clipFrame);+ clipFrame = 0;+ function sample() {+ clipFrame = 0;+ var rendered = sampleRenderedState();+ clipToViewport(rendered);+ if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);+ }+ sample();+ }+ function apply() {+ clamp();+ svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ syncViewportClip();+ renderControls();+ outBtn.disabled = state.scale <= 1;+ inBtn.disabled = state.scale >= 3;+ container.classList.toggle('is-pannable', state.scale > 1);+ svg.setAttribute('data-view-scale', String(state.scale));+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {+ Archify.viewerChromeLayout.schedule();+ }+ }+ function sampleRenderedState() {+ var transform = '';+ try { transform = getComputedStyle(svg).transform || ''; } catch (_) {}+ var match = transform.match(/^matrix\(([^)]+)\)$/);+ if (!match) return { scale: state.scale, x: state.x, y: state.y, mode: state.mode };+ var values = match[1].split(',').map(Number);+ if (values.length !== 6 || !values.every(Number.isFinite)) {+ return { scale: state.scale, x: state.x, y: state.y, mode: state.mode };+ }+ return { scale: values[0], x: values[4], y: values[5], mode: state.mode };+ }+ function finishCameraTransaction(transaction, outcome) {+ if (!transaction || transaction.settled) return false;+ transaction.settled = true;+ transaction.state = outcome || 'complete';+ if (transaction.frame) cancelAnimationFrame(transaction.frame);+ if (transaction.timer) clearTimeout(transaction.timer);+ transaction.frame = null;+ transaction.timer = null;+ if (cameraTransaction === transaction) cameraTransaction = null;+ cameraFrame = null;+ cameraTimer = null;+ container.classList.remove('is-camera-moving');+ container.classList.remove('is-camera-transaction');+ container.removeAttribute('data-camera-transaction');+ if (Archify.focus && Archify.focus.reposition) Archify.focus.reposition();+ transaction.resolve({ id: transaction.id, state: transaction.state });+ return true;+ }+ function cameraReceipt(target, options) {+ var resolver;+ var transaction = {+ id: ++cameraGeneration,+ state: 'running',+ target: target,+ settled: false,+ frame: null,+ timer: null,+ finished: new Promise(function (resolve) { resolver = resolve; }),+ resolve: resolver,+ cancel: function (reason, commitTarget) {+ if (transaction.settled) return false;+ if (commitTarget && transaction.target) {+ if (Object.prototype.hasOwnProperty.call(transaction.target, 'scrollLeft')) {+ container.scrollLeft = transaction.target.scrollLeft;+ } else {+ state = {+ scale: transaction.target.scale,+ x: transaction.target.x,+ y: transaction.target.y,+ mode: transaction.target.mode+ };+ apply();+ }+ }+ return finishCameraTransaction(transaction, reason || 'cancelled');+ }+ };+ return transaction;+ }+ function stopCameraMotion(reason, commitTarget) {+ if (cameraTransaction && !cameraTransaction.settled) {+ cameraTransaction.cancel(reason || 'cancelled', commitTarget === true);+ return;+ }+ if (cameraTimer) clearTimeout(cameraTimer);+ if (cameraFrame) cancelAnimationFrame(cameraFrame);+ cameraTimer = null;+ cameraFrame = null;+ container.classList.remove('is-camera-moving');+ container.classList.remove('is-camera-transaction');+ container.removeAttribute('data-camera-transaction');+ }+ function interruptCamera(reason) {+ var rendered = sampleRenderedState();+ stopCameraMotion(reason || 'manual', false);+ state = rendered;+ state.mode = 'manual';+ apply();+ renderControls();+ if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: reason || 'manual' });+ }+ }+ function zoom(next, options) {+ options = options || {};+ if (options.manual !== false) interruptCamera();+ var previous = state.scale;+ next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ if (next === previous) return;+ var centerX = (svg.clientWidth || 1) / 2;+ var centerY = (svg.clientHeight || 1) / 2;+ var contentX = (centerX - state.x) / previous;+ var contentY = (centerY - state.y) / previous;+ state.scale = next;+ state.x = centerX - contentX * next;+ state.y = centerY - contentY * next;+ apply();+ }+ function reset(options) {+ options = options || {};+ if (options.automatic !== true) interruptCamera();+ else stopCameraMotion('reset', false);+ state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ apply();+ }+ function centerAt(logicalX, logicalY, options) {+ options = options || {};+ logicalX = Number(logicalX);+ logicalY = Number(logicalY);+ var metrics = contentMetrics();+ if (!metrics || !Number.isFinite(logicalX) || !Number.isFinite(logicalY)) return false;+ interruptCamera();+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ state.scale = 1;+ state.x = 0;+ state.y = 0;+ state.mode = 'manual';+ apply();+ var mobileTarget = (logicalX - viewBox.x) * metrics.scale - container.clientWidth / 2;+ mobileTarget = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, mobileTarget));+ autoScrollUntil = Date.now() + 80;+ try { container.scrollTo({ left: mobileTarget, behavior: options.instant ? 'auto' : 'smooth' }); }+ catch (_) { container.scrollLeft = mobileTarget; }+ return true;+ }+ var minimumScale = Math.max(1, Math.min(3, Number(options.minimumScale) || 1));+ var requestedScale = Number(options.scale);+ state.scale = Math.max(minimumScale, Math.min(3, Number.isFinite(requestedScale) ? requestedScale : state.scale));+ var contentX = metrics.offsetX + (logicalX - viewBox.x) * metrics.scale;+ var contentY = metrics.offsetY + (logicalY - viewBox.y) * metrics.scale;+ state.x = metrics.width / 2 - contentX * state.scale;+ state.y = metrics.height / 2 - contentY * state.scale;+ state.mode = 'manual';+ apply();+ if (Archify.focus && Archify.focus.reposition) Archify.focus.reposition();+ return true;+ }+ function semanticIds(ids, includeNeighbors) {+ var seeds = Object.create(null);+ var wanted = Object.create(null);+ (ids || []).forEach(function (id) { seeds[id] = true; wanted[id] = true; });+ if (includeNeighbors) {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (seeds[from] || seeds[to]) { wanted[from] = true; wanted[to] = true; }+ });+ }+ return wanted;+ }+ function boxesFor(ids, includeNeighbors) {+ var wanted = semanticIds(ids, includeNeighbors);+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'))+ .filter(function (node) { return wanted[node.getAttribute('data-node-id')]; })+ .map(function (node) {+ try { return node.getBBox(); } catch (_) { return null; }+ })+ .filter(Boolean);+ }+ function frameDesktop(ids, options) {+ options = options || {};+ var boxes = boxesFor(ids, options.includeNeighbors === true);+ if (!boxes.length || !viewBox || viewBox.width <= 0 || viewBox.height <= 0) return false;+ var svgWidth = svg.clientWidth || 1;+ var svgHeight = svg.clientHeight || 1;+ var contentScale = Math.min(svgWidth / viewBox.width, svgHeight / viewBox.height);+ var contentOffsetX = (svgWidth - viewBox.width * contentScale) / 2;+ var contentOffsetY = (svgHeight - viewBox.height * contentScale) / 2;+ var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));+ var minY = Math.min.apply(Math, boxes.map(function (box) { return box.y; }));+ var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));+ var maxY = Math.max.apply(Math, boxes.map(function (box) { return box.y + box.height; }));+ var bounds = {+ x: contentOffsetX + (minX - viewBox.x) * contentScale,+ y: contentOffsetY + (minY - viewBox.y) * contentScale,+ width: Math.max(1, (maxX - minX) * contentScale),+ height: Math.max(1, (maxY - minY) * contentScale)+ };+ var padding = options.padding || 48;+ var left = padding;+ var right = svgWidth - padding;+ var top = padding;+ var bottom = svgHeight - Math.max(padding, 72);+ var containerRect = container.getBoundingClientRect();+ var visibleTop = Math.max(0, -containerRect.top);+ var visibleBottom = Math.min(svgHeight, window.innerHeight - containerRect.top);+ if (visibleBottom - visibleTop >= 240) {+ top = Math.max(top, visibleTop + padding);+ bottom = Math.min(bottom, visibleBottom - Math.max(padding, 72));+ }+ var chip = document.getElementById('focus-chip');+ if (chip && !chip.hidden) {+ var lensEnd = chip.offsetLeft + chip.offsetWidth + 24 - (svg.offsetLeft || 0);+ left = Math.max(left, Math.min(svgWidth * 0.42, lensEnd));+ }+ var routeReceipt = document.getElementById('route-probe');+ if (routeReceipt && !routeReceipt.hidden && routeReceipt.hasAttribute('data-route-journey')) {+ var receiptTop = routeReceipt.offsetTop;+ var receiptBottom = receiptTop + routeReceipt.offsetHeight;+ if (receiptTop < svgHeight / 2) top = Math.max(top, receiptBottom + 24);+ else bottom = Math.min(bottom, receiptTop - 24);+ }+ if (right <= left || bottom <= top) return false;+ var maxScale = options.maxScale || (options.includeNeighbors ? 1.9 : 2.15);+ var targetScale = Math.min((right - left) / bounds.width, (bottom - top) / bounds.height) * 0.9;+ targetScale = Math.max(1, Math.min(maxScale, targetScale));+ if (targetScale < 1.08) targetScale = 1;+ var target = {+ scale: Math.round(targetScale * 100) / 100,+ x: 0,+ y: 0,+ mode: 'semantic'+ };+ target.x = (left + right) / 2 - (bounds.x + bounds.width / 2) * target.scale;+ target.y = (top + bottom) / 2 - (bounds.y + bounds.height / 2) * target.scale;+ var start = sampleRenderedState();+ stopCameraMotion('replaced', false);+ var transaction = cameraReceipt(target, options);+ cameraTransaction = transaction;+ var instant = options.instant === true || reducedMotion() || document.hidden;+ if (instant) {+ state = target;+ apply();+ finishCameraTransaction(transaction, reducedMotion() ? 'reduced-motion' : (document.hidden ? 'hidden' : 'complete'));+ return transaction;+ }+ var duration = Math.max(180, Math.min(520, Number(options.duration) || 420));+ var startedAt = 0;+ state = start;+ state.mode = 'semantic';+ apply();+ container.classList.add('is-camera-moving');+ container.classList.add('is-camera-transaction');+ container.setAttribute('data-camera-transaction', String(transaction.id));+ var step = function (timestamp) {+ if (cameraTransaction !== transaction || transaction.settled) return;+ if (!startedAt) startedAt = timestamp;+ var fraction = Math.max(0, Math.min(1, (timestamp - startedAt) / duration));+ var eased = 1 - Math.pow(1 - fraction, 3);+ state = {+ scale: start.scale + (target.scale - start.scale) * eased,+ x: start.x + (target.x - start.x) * eased,+ y: start.y + (target.y - start.y) * eased,+ mode: 'semantic'+ };+ apply();+ if (fraction < 1) {+ transaction.frame = requestAnimationFrame(step);+ cameraFrame = transaction.frame;+ } else {+ state = target;+ apply();+ finishCameraTransaction(transaction, 'complete');+ }+ };+ transaction.frame = requestAnimationFrame(step);+ cameraFrame = transaction.frame;+ return transaction;+ }+ function reveal(ids, options) {+ options = options || {};+ if (window.innerWidth > 720) return frameDesktop(ids, options);+ stopCameraMotion('replaced', false);+ state.scale = 1;+ state.x = 0;+ state.y = 0;+ state.mode = 'semantic';+ apply();+ if (!container.hasAttribute('data-wide-diagram')) {+ var contained = cameraReceipt({ scale: 1, x: 0, y: 0, mode: 'semantic' }, options);+ cameraTransaction = contained;+ finishCameraTransaction(contained, 'complete');+ return contained;+ }+ var boxes = boxesFor(ids, options.includeNeighbors === true);+ if (!boxes.length || !viewBox || viewBox.width <= 0) return false;+ var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));+ var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));+ var center = (((minX + maxX) / 2 - viewBox.x) / viewBox.width) * (svg.clientWidth || 1);+ var target = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, center - container.clientWidth / 2));+ var transaction = cameraReceipt({ scrollLeft: target }, options);+ cameraTransaction = transaction;+ var instant = options.instant === true || reducedMotion() || document.hidden;+ autoScrollUntil = Date.now() + (instant ? 50 : 470);+ try { container.scrollTo({ left: target, behavior: instant ? 'auto' : 'smooth' }); }+ catch (_) { container.scrollLeft = target; }+ if (instant) finishCameraTransaction(transaction, reducedMotion() ? 'reduced-motion' : (document.hidden ? 'hidden' : 'complete'));+ else {+ transaction.timer = setTimeout(function () { finishCameraTransaction(transaction, 'complete'); }, 460);+ cameraTimer = transaction.timer;+ container.classList.add('is-camera-moving');+ container.setAttribute('data-camera-transaction', String(transaction.id));+ }+ return transaction;+ }+ function syncSemantic() {+ var active = Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null;+ if (typeof active === 'string') return reveal([active], { includeNeighbors: true, reason: 'focus-sync' });+ if (Array.isArray(active) && active.length) return reveal(active, { reason: 'selection-sync' });+ return false;+ }+ function pinControls() {+ container.style.setProperty('--archify-scroll-x', container.scrollLeft + 'px');+ }+ function onScroll() {+ pinControls();+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && Date.now() > autoScrollUntil) {+ interruptCamera();+ }+ }+ function onPointerEnd(event) {+ if (!drag) return;+ var moved = drag.moved;+ drag = null;+ container.classList.remove('is-panning');+ try { container.releasePointerCapture(event.pointerId); } catch (_) {}+ if (moved) {+ container.setAttribute('data-just-panned', 'true');+ setTimeout(function () { container.removeAttribute('data-just-panned'); }, 80);+ }+ }++ inBtn.addEventListener('click', function () { zoom(state.scale + 0.25); });+ outBtn.addEventListener('click', function () { zoom(state.scale - 0.25); });+ resetBtn.addEventListener('click', reset);+ container.addEventListener('pointerdown', function (event) {+ if (state.scale <= 1 || event.button !== 0 || event.target.closest('.diagram-nav, .focus-chip, .node-finder, .diagram-guide, .overview-map, .route-probe, .semantic-lens') || event.target.closest('[data-node-id]') || event.target.closest('[data-relationship-hit-key]')) return;+ interruptCamera();+ drag = { startX: event.clientX, startY: event.clientY, x: state.x, y: state.y, moved: false };+ container.classList.add('is-panning');+ try { container.setPointerCapture(event.pointerId); } catch (_) {}+ });+ container.addEventListener('pointermove', function (event) {+ if (!drag) return;+ var dx = event.clientX - drag.startX;+ var dy = event.clientY - drag.startY;+ if (Math.abs(dx) + Math.abs(dy) > 3) drag.moved = true;+ state.x = drag.x + dx;+ state.y = drag.y + dy;+ apply();+ });+ container.addEventListener('pointerup', onPointerEnd);+ container.addEventListener('pointercancel', onPointerEnd);+ container.addEventListener('scroll', onScroll, { passive: true });+ window.addEventListener('resize', function () {+ if (resizeFrame) cancelAnimationFrame(resizeFrame);+ resizeFrame = requestAnimationFrame(function () {+ resizeFrame = 0;+ if (state.mode === 'semantic') syncSemantic();+ else apply();+ });+ });+ window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });+ apply();+ pinControls();+ requestAnimationFrame(syncSemantic);++ return {+ zoomIn: function () { zoom(state.scale + 0.25); },+ zoomOut: function () { zoom(state.scale - 0.25); },+ reset: reset,+ reveal: reveal,+ centerAt: centerAt,+ logicalViewport: logicalViewport,+ sync: syncSemantic,+ state: function () { return { scale: state.scale, x: state.x, y: state.y, mode: state.mode }; }+ };+ })();++ /* ============================================================+ Semantic Radar — simplified semantic bounds + live viewport.+ The radar is built at runtime so the checked artifact still contains+ one canonical SVG block, and export serialization remains untouched.+ ============================================================ */+ Archify.radar = (function () {+ var container = document.querySelector('.diagram-container');+ var diagram = container.querySelector(':scope > svg');+ var panel = document.getElementById('overview-map');+ var panelHead = panel.querySelector('.overview-map-head');+ var surface = document.getElementById('overview-map-surface');+ var status = document.getElementById('overview-map-status');+ var trigger = document.getElementById('btn-overview-map');+ var closeBtn = document.getElementById('overview-map-close');+ var expandBtn = document.getElementById('overview-map-expand');+ var feedback = document.getElementById('overview-map-feedback');+ var navigation = container.querySelector('.diagram-nav');+ var passport = document.getElementById('focus-chip');+ var namespace = 'http://www.w3.org/2000/svg';+ var viewBox = diagram.viewBox && diagram.viewBox.baseVal;+ var mapSvg = document.createElementNS(namespace, 'svg');+ var nodeLayer = document.createElementNS(namespace, 'g');+ var viewport = document.createElementNS(namespace, 'rect');+ var nodes = [];+ var viewportDrag = null;+ var panelDrag = null;+ var manualPosition = null;+ var lastPlacement = null;+ var requestedOpen = false;+ var passportYielded = false;+ var passportPreviousAriaHidden = null;+ var syncFrame = 0;+ var spaceRetryTimer = 0;+ var spaceRetryCount = 0;+ var placementGap = 16;++ mapSvg.setAttribute('role', 'group');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));+ mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');+ nodeLayer.setAttribute('class', 'overview-map-nodes');+ viewport.setAttribute('class', 'overview-map-viewport');+ viewport.setAttribute('rx', '3');+ viewport.setAttribute('ry', '3');+ mapSvg.appendChild(nodeLayer);+ mapSvg.appendChild(viewport);+ surface.appendChild(mapSvg);++ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function build() {+ if (!viewBox || viewBox.width <= 0 || viewBox.height <= 0) return false;+ mapSvg.setAttribute('viewBox', [viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' '));+ nodeLayer.textContent = '';+ nodes = [];+ Array.prototype.forEach.call(diagram.querySelectorAll('[data-node-id]'), function (node) {+ var box;+ try { box = node.getBBox(); } catch (_) { box = null; }+ if (!box || box.width <= 0 || box.height <= 0) return;+ var id = node.getAttribute('data-node-id');+ var rect = document.createElementNS(namespace, 'rect');+ rect.setAttribute('class', 'overview-map-node');+ rect.setAttribute('x', String(box.x));+ rect.setAttribute('y', String(box.y));+ rect.setAttribute('width', String(Math.max(3, box.width)));+ rect.setAttribute('height', String(Math.max(3, box.height)));+ rect.setAttribute('rx', String(Math.max(2, Math.min(8, Math.min(box.width, box.height) * 0.1))));+ rect.setAttribute('data-radar-node-id', id);+ rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');+ rect.setAttribute('tabindex', '0');+ rect.setAttribute('role', 'button');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));+ nodeLayer.appendChild(rect);+ nodes.push({ id: id, node: node, rect: rect });+ });+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });+ return true;+ }+ function visibleRect(element) {+ if (!element || element.hidden) return null;+ var rect = element.getBoundingClientRect();+ if (rect.width <= 0 || rect.height <= 0 || rect.right <= 0 || rect.bottom <= 0 || rect.left >= window.innerWidth || rect.top >= window.innerHeight) return null;+ return { left: rect.left, top: rect.top, right: rect.right, bottom: rect.bottom, width: rect.width, height: rect.height };+ }+ function panelRectAt(position) {+ return {+ left: position.left,+ top: position.top,+ right: position.left + panel.offsetWidth,+ bottom: position.top + panel.offsetHeight,+ width: panel.offsetWidth,+ height: panel.offsetHeight+ };+ }+ function rectsIntersect(first, second, gap) {+ gap = Number(gap) || 0;+ return first.left < second.right + gap &&+ first.right > second.left - gap &&+ first.top < second.bottom + gap &&+ first.bottom > second.top - gap;+ }+ function intersectionArea(first, second) {+ var width = Math.max(0, Math.min(first.right, second.right) - Math.max(first.left, second.left));+ var height = Math.max(0, Math.min(first.bottom, second.bottom) - Math.max(first.top, second.top));+ return width * height;+ }+ function clamp(value, minimum, maximum) {+ if (maximum < minimum) return minimum;+ return Math.max(minimum, Math.min(maximum, value));+ }+ function placementContext() {+ var containerRect = visibleRect(container);+ if (!containerRect) return null;+ var controlRect = visibleRect(navigation);+ var left = Math.max(placementGap, containerRect.left + placementGap);+ var top = Math.max(placementGap, containerRect.top + placementGap);+ var right = Math.min(window.innerWidth - placementGap, containerRect.right - placementGap);+ var bottom = Math.min(window.innerHeight - placementGap, containerRect.bottom - placementGap);+ if (controlRect) bottom = Math.min(bottom, controlRect.top - placementGap);+ var lens = document.getElementById('focus-chip');+ var lensRect = visibleRect(lens);+ var legendRect = visibleRect(diagram.querySelector('[data-legend]'));+ var active = diagram.querySelector('[data-focus-selected]');+ var activeRect = visibleRect(active);+ return {+ bounds: { left: left, top: top, right: right, bottom: bottom },+ hardBlockers: [lensRect, controlRect, legendRect].filter(Boolean),+ softBlockers: [activeRect].filter(Boolean),+ preferredSide: !activeRect || activeRect.left + activeRect.width / 2 > window.innerWidth / 2 ? 'left' : 'right'+ };+ }+ function positionIsValid(position, context) {+ if (!position || !context) return false;+ var rect = panelRectAt(position);+ var bounds = context.bounds;+ if (rect.left < bounds.left || rect.top < bounds.top || rect.right > bounds.right || rect.bottom > bounds.bottom) return false;+ return context.hardBlockers.every(function (blocker) { return !rectsIntersect(rect, blocker, placementGap); });+ }+ function cornerCandidates(context) {+ var bounds = context.bounds;+ var left = bounds.left;+ var right = Math.max(left, bounds.right - panel.offsetWidth);+ var top = bounds.top;+ var bottom = Math.max(top, bounds.bottom - panel.offsetHeight);+ var preferredLeft = context.preferredSide === 'left' ? left : right;+ var alternateLeft = context.preferredSide === 'left' ? right : left;+ return [+ { left: preferredLeft, top: bottom },+ { left: alternateLeft, top: bottom },+ { left: preferredLeft, top: top },+ { left: alternateLeft, top: top }+ ].filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function nearbyCandidates(context, reference) {+ var bounds = context.bounds;+ var maximumLeft = bounds.right - panel.offsetWidth;+ var maximumTop = bounds.bottom - panel.offsetHeight;+ var requested = reference ? {+ left: clamp(reference.left, bounds.left, maximumLeft),+ top: clamp(reference.top, bounds.top, maximumTop)+ } : null;+ var horizontal = [bounds.left, maximumLeft];+ var vertical = [bounds.top, maximumTop];+ if (requested) {+ horizontal.push(requested.left);+ vertical.push(requested.top);+ }+ context.hardBlockers.forEach(function (blocker) {+ horizontal.push(+ blocker.left - placementGap - panel.offsetWidth,+ blocker.right + placementGap+ );+ vertical.push(+ blocker.top - placementGap - panel.offsetHeight,+ blocker.bottom + placementGap+ );+ });+ horizontal = horizontal.map(function (left) { return clamp(left, bounds.left, maximumLeft); });+ vertical = vertical.map(function (top) { return clamp(top, bounds.top, maximumTop); });+ var candidates = [];+ horizontal.forEach(function (left) {+ vertical.forEach(function (top) { candidates.push({ left: left, top: top }); });+ });+ return candidates.filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function placementScore(position, context, reference, softWeight) {+ var rect = panelRectAt(position);+ var referenceLeft = reference ? reference.left : (context.preferredSide === 'left' ? context.bounds.left : context.bounds.right - panel.offsetWidth);+ var referenceTop = reference ? reference.top : context.bounds.bottom - panel.offsetHeight;+ var distance = Math.pow(position.left - referenceLeft, 2) + Math.pow(position.top - referenceTop, 2);+ var softOverlap = context.softBlockers.reduce(function (total, blocker) { return total + intersectionArea(rect, blocker); }, 0);+ return distance + softOverlap * softWeight;+ }+ function chooseRadarPlacement(context, reference, options) {+ options = options || {};+ var softWeight = Number.isFinite(options.softWeight) ? options.softWeight : 100;+ var candidates = nearbyCandidates(context, reference).concat(cornerCandidates(context));+ var valid = candidates.filter(function (candidate) { return positionIsValid(candidate, context); });+ valid.sort(function (first, second) {+ return placementScore(first, context, reference, softWeight) - placementScore(second, context, reference, softWeight);+ });+ return valid.length ? valid[0] : null;+ }+ function applyPlacement(position, remember) {+ var useLeft = position.left + panel.offsetWidth / 2 <= window.innerWidth / 2;+ panel.setAttribute('data-docked', 'true');+ panel.setAttribute('data-dock-side', useLeft ? 'left' : 'right');+ if (useLeft) {+ panel.style.setProperty('--archify-radar-left', Math.round(position.left) + 'px');+ panel.style.removeProperty('--archify-radar-right');+ } else {+ panel.style.setProperty('--archify-radar-right', Math.round(window.innerWidth - position.left - panel.offsetWidth) + 'px');+ panel.style.removeProperty('--archify-radar-left');+ }+ panel.style.setProperty('--archify-radar-top', Math.round(position.top) + 'px');+ if (remember !== false) lastPlacement = { left: position.left, top: position.top };+ }+ function resetDockingStyles() {+ panel.removeAttribute('data-docked');+ panel.removeAttribute('data-dock-side');+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('data-compact');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ panel.style.removeProperty('--archify-radar-right');+ panel.style.removeProperty('--archify-radar-left');+ panel.style.removeProperty('--archify-radar-top');+ }+ function updateDocking() {+ var options = arguments[0] || {};+ if (panel.hidden) return false;+ if (panelDrag) return true;+ panel.removeAttribute('data-compact');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ var context = placementContext();+ if (!context) {+ resetDockingStyles();+ return false;+ }+ var reference = manualPosition || lastPlacement;+ var placementOptions = { softWeight: manualPosition ? 0 : 100 };+ var placement = manualPosition && positionIsValid(manualPosition, context)+ ? manualPosition+ : chooseRadarPlacement(context, reference, placementOptions);+ var compact = false;+ if (!placement && options.allowCompact !== false) {+ compact = true;+ panel.setAttribute('data-compact', 'true');+ panel.setAttribute('data-placement-degraded', 'true');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));+ context = placementContext();+ placement = chooseRadarPlacement(context, reference, placementOptions);+ }+ if (!placement) {+ resetDockingStyles();+ panel.setAttribute('data-placement-unavailable', 'true');+ return false;+ }+ if (manualPosition && !compact) manualPosition = { left: placement.left, top: placement.top };+ applyPlacement(placement, true);+ return true;+ }+ function clearSpaceRetry() {+ if (spaceRetryTimer) window.clearTimeout(spaceRetryTimer);+ spaceRetryTimer = 0;+ }+ function yieldPassport() {+ if (!passport || passport.hidden || passportYielded) return passportYielded;+ passportPreviousAriaHidden = passport.getAttribute('aria-hidden');+ passportYielded = true;+ passport.setAttribute('data-radar-yielded', 'true');+ passport.setAttribute('aria-hidden', 'true');+ return true;+ }+ function restorePassport() {+ if (!passport || !passportYielded) return;+ passportYielded = false;+ passport.removeAttribute('data-radar-yielded');+ if (passportPreviousAriaHidden === null) passport.removeAttribute('aria-hidden');+ else passport.setAttribute('aria-hidden', passportPreviousAriaHidden);+ passportPreviousAriaHidden = null;+ }+ function reflectVisible() {+ panel.hidden = false;+ panel.removeAttribute('data-placement-unavailable');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');+ feedback.hidden = true;+ }+ function scheduleSpaceRetry() {+ if (!requestedOpen || spaceRetryTimer || spaceRetryCount >= 4) return;+ spaceRetryCount += 1;+ spaceRetryTimer = window.setTimeout(function () {+ spaceRetryTimer = 0;+ attemptRequestedOpen();+ }, 60);+ }+ function reflectUnavailable() {+ restorePassport();+ panel.hidden = true;+ panel.setAttribute('data-placement-unavailable', 'true');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));+ trigger.setAttribute('data-radar-space-limited', 'true');+ trigger.title = viewerText('viewer.radar.needsSpace');+ feedback.hidden = false;+ scheduleSpaceRetry();+ }+ function attemptRequestedOpen(options) {+ options = options || {};+ if (!requestedOpen) return false;+ panel.hidden = false;+ if (!updateDocking(options)) {+ reflectUnavailable();+ return false;+ }+ clearSpaceRetry();+ spaceRetryCount = 0;+ reflectVisible();+ sync();+ if (options.focus === true && !panel.hasAttribute('data-compact')) surface.focus();+ return true;+ }+ function expandCompactRadar() {+ if (!requestedOpen || panel.hidden || !panel.hasAttribute('data-compact')) return false;+ yieldPassport();+ if (!updateDocking({ allowCompact: false })) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return false;+ }+ }+ reflectVisible();+ sync();+ if (!panel.hasAttribute('data-compact')) surface.focus();+ return !panel.hasAttribute('data-compact');+ }+ function syncNow() {+ syncFrame = 0;+ if (panel.hidden || !Archify.view || typeof Archify.view.logicalViewport !== 'function') return;+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ if (passportYielded && panel.hasAttribute('data-compact')) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ }+ reflectVisible();+ var visible = Archify.view.logicalViewport();+ if (!visible) return;+ viewport.setAttribute('x', String(visible.x));+ viewport.setAttribute('y', String(visible.y));+ viewport.setAttribute('width', String(visible.width));+ viewport.setAttribute('height', String(visible.height));+ var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;+ var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');+ var viewportCopy = full+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });+ nodes.forEach(function (item) {+ var active = item.node.hasAttribute('data-focus-selected');+ if (active) item.rect.setAttribute('data-radar-active', 'true');+ else item.rect.removeAttribute('data-radar-active');+ });+ }+ function sync() {+ if (requestedOpen && panel.hidden) {+ attemptRequestedOpen();+ return;+ }+ if (syncFrame) return;+ syncFrame = requestAnimationFrame(syncNow);+ }+ function setOpen(next, options) {+ options = options || {};+ next = Boolean(next);+ if (next && Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (next && Archify.semanticLens && Archify.semanticLens.isOpen()) {+ Archify.semanticLens.close({ restoreFocus: false });+ }+ requestedOpen = next;+ if (next) {+ clearSpaceRetry();+ spaceRetryCount = 0;+ trigger.setAttribute('data-radar-requested', 'true');+ build();+ attemptRequestedOpen(options);+ } else {+ clearSpaceRetry();+ spaceRetryCount = 0;+ viewportDrag = null;+ panelDrag = null;+ container.classList.remove('is-panning');+ panel.hidden = true;+ resetDockingStyles();+ restorePassport();+ feedback.hidden = true;+ // Focus before collapsing: the dock hides this trigger at 100% unless it holds focus.+ if (options.restoreFocus === true) trigger.focus();+ trigger.setAttribute('aria-expanded', 'false');+ trigger.removeAttribute('data-radar-requested');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');+ }+ return next;+ }+ function toggle() { return setOpen(!requestedOpen, { focus: false }); }+ function close(options) { return setOpen(false, options); }+ function bringNodeIntoWindow(node) {+ var delay = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 0 : 540;+ window.setTimeout(function () {+ var rect = node.getBoundingClientRect();+ var safeTop = 64;+ var safeBottom = window.innerHeight - 64;+ if (rect.top >= safeTop && rect.bottom <= safeBottom) return;+ var top = Math.max(0, window.scrollY + rect.top + rect.height / 2 - window.innerHeight / 2);+ try { window.scrollTo({ top: top, behavior: delay ? 'smooth' : 'auto' }); }+ catch (_) { window.scrollTo(0, top); }+ }, delay);+ }+ function focusNode(id) {+ var main = diagram.querySelector('[data-node-id="' + id + '"]');+ if (!main) return false;+ if (Archify.focus && typeof Archify.focus.set === 'function') {+ Archify.focus.set(id, { toggle: false });+ }+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'radar' });+ }+ bringNodeIntoWindow(main);+ try { main.focus({ preventScroll: true }); } catch (_) { try { main.focus(); } catch (_) {} }+ sync();+ return true;+ }+ function diagramPoint(event) {+ var matrix = mapSvg.getScreenCTM();+ if (!matrix) return null;+ var point = mapSvg.createSVGPoint();+ point.x = event.clientX;+ point.y = event.clientY;+ return point.matrixTransform(matrix.inverse());+ }+ function navigate(event) {+ var point = diagramPoint(event);+ if (!point || !Archify.view || typeof Archify.view.centerAt !== 'function') return;+ Archify.view.centerAt(point.x, point.y, { minimumScale: 1.5, instant: true });+ sync();+ }+ function endViewportDrag(event) {+ if (!viewportDrag) return;+ viewportDrag = null;+ panel.removeAttribute('data-dragging');+ container.classList.remove('is-panning');+ try { surface.releasePointerCapture(event.pointerId); } catch (_) {}+ }+ function beginPanelDrag(event) {+ if (event.button !== 0 || event.target.closest('button, a, input, [role="button"]')) return;+ var context = placementContext();+ if (!context) return;+ var rect = panel.getBoundingClientRect();+ event.preventDefault();+ event.stopPropagation();+ panelDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: { left: rect.left, top: rect.top },+ current: { left: rect.left, top: rect.top },+ previousManual: manualPosition ? { left: manualPosition.left, top: manualPosition.top } : null+ };+ panel.setAttribute('data-panel-dragging', 'true');+ try { panelHead.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function movePanelDrag(event) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ var context = placementContext();+ if (!context) return;+ event.preventDefault();+ event.stopPropagation();+ var bounds = context.bounds;+ var position = {+ left: clamp(panelDrag.start.left + event.clientX - panelDrag.originX, bounds.left, bounds.right - panel.offsetWidth),+ top: clamp(panelDrag.start.top + event.clientY - panelDrag.originY, bounds.top, bounds.bottom - panel.offsetHeight)+ };+ panelDrag.current = position;+ if (positionIsValid(position, context)) panel.removeAttribute('data-placement-invalid');+ else panel.setAttribute('data-placement-invalid', 'true');+ applyPlacement(position, false);+ }+ function finishPanelDrag(event, cancel) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = panelDrag;+ panelDrag = null;+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ try { panelHead.releasePointerCapture(event.pointerId); } catch (_) {}+ var context = placementContext();+ if (!context) return;+ if (cancel) {+ manualPosition = activeDrag.previousManual;+ lastPlacement = { left: activeDrag.start.left, top: activeDrag.start.top };+ updateDocking();+ return;+ }+ var requested = activeDrag.current;+ manualPosition = { left: requested.left, top: requested.top };+ updateDocking();+ }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close({ restoreFocus: true }); });+ expandBtn.addEventListener('click', expandCompactRadar);+ panelHead.addEventListener('pointerdown', beginPanelDrag);+ panelHead.addEventListener('pointermove', movePanelDrag);+ panelHead.addEventListener('pointerup', function (event) { finishPanelDrag(event, false); });+ panelHead.addEventListener('pointercancel', function (event) { finishPanelDrag(event, true); });+ surface.addEventListener('pointerdown', function (event) {+ if (event.button !== 0 || event.target.closest('[data-radar-node-id]')) return;+ event.preventDefault();+ viewportDrag = { pointerId: event.pointerId };+ panel.setAttribute('data-dragging', 'true');+ container.classList.add('is-panning');+ try { surface.setPointerCapture(event.pointerId); } catch (_) {}+ navigate(event);+ });+ surface.addEventListener('pointermove', function (event) {+ if (!viewportDrag || viewportDrag.pointerId !== event.pointerId) return;+ navigate(event);+ });+ surface.addEventListener('pointerup', endViewportDrag);+ surface.addEventListener('pointercancel', endViewportDrag);+ surface.addEventListener('click', function (event) {+ var node = event.target.closest('[data-radar-node-id]');+ if (node) focusNode(node.getAttribute('data-radar-node-id'));+ });+ surface.addEventListener('keydown', function (event) {+ if (event.key === 'Escape') {+ event.preventDefault();+ event.stopPropagation();+ close({ restoreFocus: true });+ return;+ }+ var node = event.target.closest('[data-radar-node-id]');+ if (node && (event.key === 'Enter' || event.key === ' ')) {+ event.preventDefault();+ focusNode(node.getAttribute('data-radar-node-id'));+ return;+ }+ if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight' && event.key !== 'ArrowUp' && event.key !== 'ArrowDown') return;+ var visible = Archify.view && Archify.view.logicalViewport ? Archify.view.logicalViewport() : null;+ if (!visible) return;+ event.preventDefault();+ var x = visible.x + visible.width / 2;+ var y = visible.y + visible.height / 2;+ var stepX = Math.max(12, visible.width * 0.24);+ var stepY = Math.max(12, visible.height * 0.24);+ if (event.key === 'ArrowLeft') x -= stepX;+ else if (event.key === 'ArrowRight') x += stepX;+ else if (event.key === 'ArrowUp') y -= stepY;+ else y += stepY;+ Archify.view.centerAt(x, y, { minimumScale: 1.5, instant: true });+ sync();+ });+ document.addEventListener('keydown', function (event) {+ if (!panelDrag || event.key !== 'Escape') return;+ finishPanelDrag({+ pointerId: panelDrag.pointerId,+ preventDefault: function () { event.preventDefault(); },+ stopPropagation: function () { event.stopPropagation(); }+ }, true);+ }, true);+ function reflow() {+ if (!requestedOpen) return;+ clearSpaceRetry();+ spaceRetryCount = 0;+ sync();+ }+ window.addEventListener('resize', reflow);+ window.addEventListener('scroll', reflow, { passive: true });+ if (typeof ResizeObserver === 'function') {+ var radarResizeObserver = new ResizeObserver(function (entries) {+ if (!requestedOpen) return;+ if (panel.hidden && entries.every(function (entry) { return entry.target === panel; })) return;+ reflow();+ });+ [container, navigation, document.getElementById('focus-chip'), panel].filter(Boolean).forEach(function (element) {+ radarResizeObserver.observe(element);+ });+ }+ requestAnimationFrame(build);++ return {+ open: function () { return setOpen(true); },+ close: close,+ toggle: toggle,+ sync: sync,+ focus: focusNode,+ isOpen: function () { return requestedOpen; },+ count: function () { return nodes.length; }+ };+ })();++ /* ============================================================+ Presentation Stage — a shareable, viewport-filling live view.+ It changes only HTML layout and URL state; SVG semantics and export+ serialization remain untouched. Escape first clears an active+ focus, then exits the stage.+ ============================================================ */+ Archify.presentation = (function () {+ var html = document.documentElement;+ var btn = document.getElementById('btn-present');+ var label = document.getElementById('present-label');+ var previousScrollY = 0;++ function active() { return html.getAttribute('data-present') === 'true'; }++ function updateUrl(next) {+ try {+ var url = new URL(window.location.href);+ if (next) url.searchParams.set('present', '1');+ else url.searchParams.delete('present');+ history.replaceState(null, '', url.pathname + url.search + url.hash);+ } catch (_) {}+ }++ function render(next) {+ btn.setAttribute('aria-pressed', next ? 'true' : 'false');+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');+ }++ function setActive(next, options) {+ options = options || {};+ next = Boolean(next);+ if (next === active()) {+ render(next);+ return next;+ }+ if (next) {+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ previousScrollY = window.scrollY || 0;+ html.setAttribute('data-present', 'true');+ try { window.scrollTo(0, 0); } catch (_) {}+ } else {+ html.removeAttribute('data-present');+ }+ render(next);+ if (options.updateUrl !== false) updateUrl(next);+ requestAnimationFrame(function () {+ if (Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ requestAnimationFrame(function () {+ if (Archify.view && typeof Archify.view.sync === 'function') Archify.view.sync();+ });+ }+ if (!next && previousScrollY) {+ try { window.scrollTo(0, previousScrollY); } catch (_) {}+ }+ });+ return next;+ }++ function toggle() { return setActive(!active()); }++ render(active());+ btn.addEventListener('click', toggle);++ return {+ enter: function () { return setActive(true); },+ exit: function () { return setActive(false); },+ toggle: toggle,+ active: active+ };+ })();++ /* ============================================================+ Node Finder — stable-ID search over the existing semantic SVG.+ Search never changes the IR or SVG geometry: selecting a result resets+ the viewport and delegates to semantic focus.+ ============================================================ */+ Archify.finder = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var trigger = document.getElementById('btn-node-finder');+ var panel = document.getElementById('node-finder');+ var heading = document.getElementById('node-finder-title');+ var closeBtn = document.getElementById('node-finder-close');+ var input = document.getElementById('node-finder-input');+ var results = document.getElementById('node-finder-results');+ var empty = document.getElementById('node-finder-empty');+ var status = document.getElementById('node-finder-status');+ var visibleItems = [];++ function defaultContext() {+ return {+ kind: 'focus',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),+ allowedIds: null,+ badges: null+ };+ }++ var context = defaultContext();++ function semanticType(node) {+ var authored = node.getAttribute('data-node-kind');+ if (authored) return authored;+ var types = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ return types.find(function (type) { return node.querySelector('.c-' + type); }) || 'node';+ }++ function connectionsFor(id) {+ var count = 0;+ var seen = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = from + '\u0000' + to;+ if ((from === id || to === id) && !seen[key]) {+ seen[key] = true;+ count += 1;+ }+ });+ return count;+ }++ var items = Array.prototype.map.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ var id = node.getAttribute('data-node-id');+ var label = node.getAttribute('data-node-label') || (node.getAttribute('aria-label') || id).replace(/^Focus\s+/, '');+ var text = (node.textContent || '').replace(/\s+/g, ' ').trim();+ var sublabel = node.getAttribute('data-node-sublabel') || '';+ var context = node.getAttribute('data-node-context') || '';+ var tag = node.getAttribute('data-node-tag') || '';+ var brand = node.getAttribute('data-node-brand') || '';+ var type = semanticType(node);+ var sources = Archify.sourceEvidence.node(id);+ var sourceSearch = sources.map(function (source) {+ return [source.path, source.label, source.line, source.endLine].filter(Boolean).join(' ');+ }).join(' ');+ return {+ id: id,+ label: label,+ type: type,+ sublabel: sublabel,+ context: context,+ tag: tag,+ brand: brand,+ sources: sources,+ links: connectionsFor(id),+ search: (id + ' ' + label + ' ' + type + ' ' + sublabel + ' ' + context + ' ' + tag + ' ' + sourceSearch + ' ' + text).toLowerCase() + ' ' + brand.toLowerCase(),+ node: node+ };+ });++ function resultButtons() {+ return Array.prototype.slice.call(results.querySelectorAll('.node-finder-result'));+ }++ function resolveContext(options) {+ var requested = options && options.context ? options.context : null;+ if (!requested && Archify.routeProbe && typeof Archify.routeProbe.finderContext === 'function') {+ requested = Archify.routeProbe.finderContext();+ }+ if (!requested) return defaultContext();+ var resolved = defaultContext();+ Object.keys(requested).forEach(function (key) { resolved[key] = requested[key]; });+ return resolved;+ }++ function availableItems() {+ if (!context.allowedIds) return items.slice();+ return items.filter(function (item) { return context.allowedIds.indexOf(item.id) !== -1; });+ }++ function applyContext() {+ panel.setAttribute('data-context', context.kind);+ heading.textContent = context.title;+ input.placeholder = context.placeholder;+ empty.textContent = context.empty;+ results.setAttribute('aria-label', context.resultsLabel);+ }++ function select(id) {+ var item = items.find(function (candidate) { return candidate.id === id; });+ if (!item) return false;+ var routeSelection = context.kind === 'route-source' || context.kind === 'route-target';+ if (routeSelection) {+ if (!Archify.routeProbe || typeof Archify.routeProbe.choose !== 'function' || !Archify.routeProbe.choose(id)) return false;+ if (Archify.routeProbe.active() === 'target' && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'route-pick' });+ }+ close({ restoreFocus: false });+ try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }+ return true;+ }+ if (Archify.view && typeof Archify.view.reset === 'function') Archify.view.reset({ automatic: true });+ Archify.focus.set(id, { toggle: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'finder' });+ }+ close({ restoreFocus: false });+ try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }+ return true;+ }++ function render(query) {+ query = (query || '').trim().toLowerCase();+ var available = availableItems();+ visibleItems = available.filter(function (item) { return !query || item.search.indexOf(query) !== -1; });+ results.textContent = '';+ visibleItems.forEach(function (item) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-finder-result';+ button.setAttribute('data-node-id', item.id);+ var badge = context.badges && context.badges[item.id]+ ? context.badges[item.id]+ : context.kind === 'focus'+ ? viewerCount('viewer.finder.link', item.links)+ : String(item.links);+ var action = context.kind === 'route-source'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label })+ : context.kind === 'route-target'+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });+ button.setAttribute('aria-label', action);++ var name = document.createElement('strong');+ name.textContent = item.label;+ var links = document.createElement('em');+ links.textContent = badge;+ links.title = context.kind === 'focus' ? badge : action;+ var meta = document.createElement('small');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ button.appendChild(name);+ button.appendChild(links);+ button.appendChild(meta);+ button.addEventListener('click', function () { select(item.id); });+ results.appendChild(button);+ });+ empty.hidden = visibleItems.length !== 0;+ status.textContent = query+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });+ }++ function open(options) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ context = resolveContext(options || {});+ applyContext();+ panel.hidden = false;+ trigger.setAttribute('aria-expanded', 'true');+ if (context.kind.indexOf('route-') === 0 && Archify.routeProbe && typeof Archify.routeProbe.finderOpening === 'function') {+ Archify.routeProbe.finderOpening();+ }+ input.value = '';+ render('');+ requestAnimationFrame(function () { input.focus(); });+ return true;+ }++ function close(options) {+ options = options || {};+ var routeContext = context.kind.indexOf('route-') === 0;+ panel.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ input.value = '';+ if (routeContext && Archify.routeProbe && typeof Archify.routeProbe.finderClosed === 'function') {+ Archify.routeProbe.finderClosed({ restoreFocus: options.restoreFocus !== false });+ } else if (options.restoreFocus !== false) {+ trigger.focus();+ }+ }++ function toggle() { return panel.hidden ? open() : (close(), false); }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close(); });+ input.addEventListener('input', function () { render(input.value); });+ input.addEventListener('keydown', function (event) {+ var buttons = resultButtons();+ if (event.key === 'ArrowDown' && buttons.length) {+ event.preventDefault();+ buttons[0].focus();+ } else if (event.key === 'Enter' && visibleItems.length) {+ event.preventDefault();+ select(visibleItems[0].id);+ }+ });+ results.addEventListener('keydown', function (event) {+ var buttons = resultButtons();+ var index = buttons.indexOf(document.activeElement);+ if (index < 0 || !buttons.length) return;+ var next = null;+ if (event.key === 'ArrowDown') next = (index + 1) % buttons.length;+ else if (event.key === 'ArrowUp') next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = buttons.length - 1;+ if (next !== null) {+ event.preventDefault();+ buttons[next].focus();+ }+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key !== 'Escape') return;+ event.preventDefault();+ event.stopPropagation();+ close();+ });+ document.addEventListener('click', function (event) {+ if (!panel.hidden && !panel.contains(event.target) && !event.target.closest('[data-node-finder-trigger]')) close({ restoreFocus: false });+ });++ render('');+ return {+ open: open,+ close: close,+ toggle: toggle,+ select: select,+ isOpen: function () { return !panel.hidden; },+ context: function () { return context.kind; },+ count: items.length+ };+ })();++ /* ============================================================+ Node Outline — a rail index of the semantic nodes, grouped by their+ authored context. Hover previews neighbors through Intent Trace;+ selection delegates to the Finder's focus-and-reveal path. It reads+ the canonical SVG and never changes geometry or export state.+ ============================================================ */+ Archify.outline = (function () {+ var panel = document.getElementById('node-outline');+ var list = document.getElementById('node-outline-list');+ var count = document.getElementById('node-outline-count');+ var svg = document.querySelector('.diagram-container > svg');+ if (!panel || !list || !svg) return { count: 0 };+ var TONES = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ var nodes = Array.from(svg.querySelectorAll('[data-node-id]')).filter(function (node) {+ return !node.closest('[data-legend-hit], .legend') && node.getAttribute('data-node-label');+ });+ var buttons = Object.create(null);++ function tone(node) {+ var shape = node.querySelector('[class*="c-"]:not(.c-mask)');+ var match = shape && /(?:^|\s)c-([a-z]+)/.exec(shape.getAttribute('class') || '');+ return match && TONES.indexOf(match[1]) !== -1 ? match[1] : 'external';+ }+ function preview(id) {+ if (Archify.intentTrace && typeof Archify.intentTrace.show === 'function') Archify.intentTrace.show(id);+ }+ function clearPreview() {+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ }+ function select(id) {+ clearPreview();+ var finder = Archify.finder;+ if (finder && typeof finder.select === 'function') {+ if (finder.select(id)) return;+ var routeMode = Archify.routeProbe && typeof Archify.routeProbe.active === 'function' ? Archify.routeProbe.active() : 'idle';+ // Only an active endpoint picker owns a refused selection.+ if (routeMode === 'source' || routeMode === 'target') return;+ }+ if (Archify.focus && typeof Archify.focus.set === 'function') Archify.focus.set(id, { toggle: false });+ }++ var groups = [];+ var byContext = Object.create(null);+ nodes.forEach(function (node) {+ // Group by the outermost context (lane or stage); deeper segments+ // such as workflow groups and columns would split the index into+ // one-node sections.+ var context = (node.getAttribute('data-node-context') || '').split(' \u203a ')[0];+ if (!byContext[context]) {+ byContext[context] = { label: context, nodes: [] };+ groups.push(byContext[context]);+ }+ byContext[context].nodes.push(node);+ });++ groups.forEach(function (group) {+ var section = document.createElement('li');+ section.className = 'node-outline-group';+ if (groups.length > 1 && group.label) {+ var heading = document.createElement('span');+ heading.className = 'node-outline-heading';+ var headingLabel = document.createElement('span');+ headingLabel.textContent = group.label;+ var headingCount = document.createElement('small');+ headingCount.textContent = String(group.nodes.length);+ heading.appendChild(headingLabel);+ heading.appendChild(headingCount);+ section.appendChild(heading);+ }+ var items = document.createElement('ul');+ group.nodes.forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ var item = document.createElement('li');+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-outline-item';+ button.setAttribute('data-outline-node', id);+ button.style.setProperty('--outline-tone', 'var(--' + tone(node) + '-stroke)');+ var dot = document.createElement('span');+ dot.className = 'node-outline-dot';+ dot.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = node.getAttribute('data-node-label');+ button.appendChild(dot);+ button.appendChild(label);+ var sublabel = node.getAttribute('data-node-sublabel');+ if (sublabel) {+ var detail = document.createElement('small');+ detail.textContent = sublabel;+ button.appendChild(detail);+ }+ button.addEventListener('pointerenter', function () { preview(id); });+ button.addEventListener('focus', function () { preview(id); });+ button.addEventListener('pointerleave', clearPreview);+ button.addEventListener('blur', clearPreview);+ button.addEventListener('click', function () { select(id); });+ buttons[id] = button;+ item.appendChild(button);+ items.appendChild(item);+ });+ section.appendChild(items);+ list.appendChild(section);+ });++ var previewing = null;+ function syncCurrent() {+ nodes.forEach(function (node) {+ var button = buttons[node.getAttribute('data-node-id')];+ if (!button) return;+ if (node.getAttribute('aria-pressed') === 'true') button.setAttribute('aria-current', 'true');+ else button.removeAttribute('aria-current');+ });+ // Mirror a diagram-side hover so the index answers "where is this?".+ var active = buttons[svg.getAttribute('data-intent-trace-active') || ''] || null;+ if (active === previewing) return;+ if (previewing) previewing.removeAttribute('data-previewing');+ previewing = active;+ if (!active) return;+ active.setAttribute('data-previewing', '');+ if (!active.matches(':hover') && panel.offsetParent) {+ var box = list.getBoundingClientRect();+ var item = active.getBoundingClientRect();+ if (item.top < box.top || item.bottom > box.bottom - 24) {+ list.scrollTop += item.top - box.top - box.height / 2 + item.height / 2;+ }+ }+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(syncCurrent).observe(svg, { attributes: true, subtree: true, attributeFilter: ['aria-pressed', 'data-intent-trace-active'] });+ }+ if (count) count.textContent = String(nodes.length);+ panel.hidden = nodes.length < 2;+ syncCurrent();+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') Archify.readerLayout.schedule();++ return { count: nodes.length, select: select };+ })();+++ /* ============================================================+ Route Probe — shortest directed path over compiled semantics.+ The graph is read from renderer-owned stable IDs and relationship+ endpoints. BFS order follows authored DOM edge order, so equal-length+ choices are deterministic without adding weights or a graph runtime.+ ============================================================ */+ Archify.routeProbe = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-route-probe');+ var panel = document.getElementById('route-probe');+ var title = document.getElementById('route-probe-title');+ var path = document.getElementById('route-probe-path');+ var status = document.getElementById('route-probe-status');+ var findBtn = document.getElementById('route-probe-find');+ var copyBtn = document.getElementById('route-probe-copy');+ var clearBtn = document.getElementById('route-probe-clear');+ var journeyControls = document.getElementById('route-journey-controls');+ var journeyPrevBtn = document.getElementById('route-journey-prev');+ var journeyPlayBtn = document.getElementById('route-journey-play');+ var journeyPlayIcon = document.getElementById('route-journey-play-icon');+ var journeyPlayLabel = document.getElementById('route-journey-play-label');+ var journeyNextBtn = document.getElementById('route-journey-next');+ var journeyOverviewBtn = document.getElementById('route-journey-overview');+ var namespace = 'http://www.w3.org/2000/svg';+ var mode = 'idle';+ var startId = null;+ var endId = null;+ var activeNodeIds = [];+ var activeEdges = [];+ var journeyIndex = -1;+ var journeyPlaying = false;+ var journeyComplete = false;+ var journeyGeneration = 0;+ var journeyTimer = null;+ var journeyStartedAt = 0;+ var journeyElapsedMs = 0;+ var journeyOwnerToken = 0;+ var JOURNEY_DWELL_MS = 1100;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodesById() {+ var out = Object.create(null);+ nodes().forEach(function (node) { out[node.getAttribute('data-node-id')] = node; });+ return out;+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function exportSnapshot() {+ if (mode !== 'result' || activeNodeIds.length < 2 || activeEdges.length !== activeNodeIds.length - 1) return null;+ var allNodes = nodes();+ var byId = nodesById();+ var seenNodeIds = Object.create(null);+ var seenEdgeKeys = Object.create(null);+ if (startId !== activeNodeIds[0] || endId !== activeNodeIds[activeNodeIds.length - 1] ||+ activeNodeIds.some(function (id) {+ if (seenNodeIds[id] || allNodes.filter(function (node) {+ return node.getAttribute('data-node-id') === id;+ }).length !== 1) return true;+ seenNodeIds[id] = true;+ return !byId[id];+ }) ||+ activeEdges.some(function (edge, index) {+ if (!edge || !svg.contains(edge)) return true;+ var edgeKey = edge.getAttribute('data-edge-key');+ var edgeId = edge.getAttribute('data-edge-id') || '';+ if (!edgeKey || seenEdgeKeys[edgeKey]) return true;+ seenEdgeKeys[edgeKey] = true;+ var fragments = Array.prototype.slice.call(svg.querySelectorAll('[data-edge-key]')).filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edgeKey;+ });+ var drawableFragments = fragments.filter(hasDrawableGeometry);+ return !fragments.length || !fragments.every(function (fragment) {+ return fragment.getAttribute('data-edge-from') === activeNodeIds[index] &&+ fragment.getAttribute('data-edge-to') === activeNodeIds[index + 1] &&+ (fragment.getAttribute('data-edge-id') || '') === edgeId;+ }) || drawableFragments.length !== 1 || drawableFragments[0] !== edge ||+ edge.getAttribute('data-edge-from') !== activeNodeIds[index] ||+ edge.getAttribute('data-edge-to') !== activeNodeIds[index + 1];+ })) return null;+ return {+ source: { id: startId, label: nodeLabel(byId[startId], startId) },+ target: { id: endId, label: nodeLabel(byId[endId], endId) },+ nodeIds: activeNodeIds.slice(),+ hops: activeEdges.length,+ edges: activeEdges.map(function (edge) {+ return {+ key: edge.getAttribute('data-edge-key'),+ id: edge.getAttribute('data-edge-id') || '',+ from: edge.getAttribute('data-edge-from'),+ to: edge.getAttribute('data-edge-to'),+ label: edge.getAttribute('data-edge-label') || ''+ };+ })+ };+ }+ function edgeShapes(edge) {+ if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function removeOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {+ overlay.remove();+ });+ }+ function removeJourneyPulse(options) {+ options = options || {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-route-journey-overlay]'), function (overlay) {+ overlay.remove();+ });+ if (journeyOwnerToken && options.release !== false && Archify.motionGovernor) {+ var token = journeyOwnerToken;+ journeyOwnerToken = 0;+ Archify.motionGovernor.release(token);+ }+ }+ function stopJourneyTimer(options) {+ options = options || {};+ journeyGeneration += 1;+ if (journeyTimer) {+ if (options.preserveElapsed === true && journeyStartedAt) {+ journeyElapsedMs = Math.min(JOURNEY_DWELL_MS, journeyElapsedMs + Math.max(0, Date.now() - journeyStartedAt));+ }+ window.clearTimeout(journeyTimer);+ }+ journeyTimer = null;+ journeyStartedAt = 0;+ if (options.preserveElapsed !== true) journeyElapsedMs = 0;+ }+ function clearJourneyPresentation(options) {+ options = options || {};+ removeJourneyPulse();+ svg.removeAttribute('data-route-journey');+ panel.removeAttribute('data-route-journey');+ nodes().forEach(function (node) {+ node.removeAttribute('data-route-journey-state');+ node.removeAttribute('data-route-journey-current');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-route-journey-state');+ edge.removeAttribute('data-route-journey-current');+ });+ Array.prototype.forEach.call(path.querySelectorAll('[data-route-journey-index]'), function (button, index) {+ button.removeAttribute('data-route-journey-state');+ button.removeAttribute('aria-current');+ button.setAttribute('tabindex', index === 0 ? '0' : '-1');+ });+ if (options.keepControls !== true) journeyControls.hidden = true;+ journeyControls.setAttribute('data-playing', 'false');+ }+ function resetJourneyState() {+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ journeyIndex = -1;+ clearJourneyPresentation();+ }+ function cleanSvgState() {+ resetJourneyState();+ svg.removeAttribute('data-route-picking');+ svg.removeAttribute('data-route-active');+ removeOverlay();+ nodes().forEach(function (node) {+ node.removeAttribute('data-route-match');+ node.removeAttribute('data-route-start');+ node.removeAttribute('data-route-end');+ node.removeAttribute('data-route-step');+ node.removeAttribute('data-route-candidate');+ node.style.removeProperty('--route-step');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-route-match');+ edge.removeAttribute('data-route-step');+ edge.style.removeProperty('--route-step');+ });+ panel.removeAttribute('data-route-dock');+ }+ function replaceRouteHash(value) {+ try {+ history.replaceState(null, '', location.pathname + location.search + (value ? '#route=' + value : ''));+ } catch (_) {}+ }+ function renderPlaceholder(copy) {+ path.textContent = '';+ var placeholder = document.createElement('span');+ placeholder.className = 'route-probe-placeholder';+ placeholder.textContent = copy;+ path.appendChild(placeholder);+ }+ function renderPath(ids, options) {+ options = options || {};+ var byId = nodesById();+ path.textContent = '';+ ids.forEach(function (id, index) {+ if (index) {+ var arrow = document.createElement('span');+ arrow.className = 'route-probe-arrow';+ arrow.setAttribute('aria-hidden', 'true');+ arrow.textContent = '\u2192';+ path.appendChild(arrow);+ }+ var item = document.createElement(options.interactive === true ? 'button' : 'span');+ if (options.interactive === true) {+ item.type = 'button';+ item.setAttribute('data-route-journey-index', String(index));+ item.setAttribute('data-route-node-id', id);+ item.setAttribute('tabindex', index === 0 ? '0' : '-1');+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));+ }+ item.className = 'route-probe-node';+ item.textContent = nodeLabel(byId[id], id);+ item.title = nodeLabel(byId[id], id) + ' · ' + id;+ if (index === 0) item.setAttribute('data-endpoint', 'start');+ if (index === ids.length - 1 && ids.length > 1) item.setAttribute('data-endpoint', 'end');+ path.appendChild(item);+ });+ }+ function setTrigger(active) {+ trigger.setAttribute('aria-pressed', active ? 'true' : 'false');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));+ }+ function clear(options) {+ options = options || {};+ var wasActive = mode !== 'idle';+ if (Archify.finder && Archify.finder.isOpen() && typeof Archify.finder.context === 'function' && Archify.finder.context().indexOf('route-') === 0) {+ Archify.finder.close({ restoreFocus: false });+ }+ mode = 'idle';+ startId = null;+ endId = null;+ activeNodeIds = [];+ activeEdges = [];+ cleanSvgState();+ panel.hidden = true;+ panel.setAttribute('data-state', 'idle');+ panel.removeAttribute('data-finder-open');+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');+ findBtn.hidden = true;+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));+ copyBtn.hidden = true;+ copyBtn.textContent = viewerText('viewer.route.copy');+ if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();+ setTrigger(false);+ if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.updateUrl !== false) replaceRouteHash('');+ if (options.restoreFocus === true) trigger.focus();+ }+ function outgoingByNode() {+ var byId = nodesById();+ var outgoing = Object.create(null);+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (!byId[from] || !byId[to] || from === to) return;+ if (!outgoing[from]) outgoing[from] = [];+ outgoing[from].push({ edge: edge, to: to });+ });+ return outgoing;+ }+ function reachableFrom(source) {+ var outgoing = outgoingByNode();+ var reached = Object.create(null);+ var queue = [source];+ reached[source] = true;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.forEach(function (link) {+ if (reached[link.to]) return;+ reached[link.to] = true;+ queue.push(link.to);+ });+ }+ return reached;+ }+ function hopDistancesFrom(source) {+ var outgoing = outgoingByNode();+ var distances = Object.create(null);+ var queue = [source];+ distances[source] = 0;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.forEach(function (link) {+ if (Object.prototype.hasOwnProperty.call(distances, link.to)) return;+ distances[link.to] = distances[queue[cursor]] + 1;+ queue.push(link.to);+ });+ }+ return distances;+ }+ function shortestDirectedPath(source, target) {+ if (source === target) return null;+ var outgoing = outgoingByNode();+ var previous = Object.create(null);+ var queue = [source];+ previous[source] = null;+ for (var cursor = 0; cursor < queue.length && !Object.prototype.hasOwnProperty.call(previous, target); cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.some(function (link) {+ if (Object.prototype.hasOwnProperty.call(previous, link.to)) return false;+ previous[link.to] = { from: queue[cursor], edge: link.edge };+ queue.push(link.to);+ return link.to === target;+ });+ }+ if (!Object.prototype.hasOwnProperty.call(previous, target)) return null;+ var nodeIds = [target];+ var routeEdges = [];+ var current = target;+ while (current !== source) {+ var step = previous[current];+ if (!step) return null;+ routeEdges.unshift(step.edge);+ nodeIds.unshift(step.from);+ current = step.from;+ }+ return { nodes: nodeIds, edges: routeEdges };+ }+ function traceGeometry(shape, step) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-route-match');+ clone.removeAttribute('data-route-step');+ clone.setAttribute('class', 'route-probe-flow');+ clone.setAttribute('pathLength', '1');+ clone.style.setProperty('--route-step', String(step));+ return clone;+ }+ function renderOverlay(routeEdges) {+ removeOverlay();+ if (!routeEdges.length) return;+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'route-probe-overlay');+ overlay.setAttribute('data-route-probe-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ routeEdges.forEach(function (edge, step) {+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) { wrapper.appendChild(traceGeometry(shape, step)); });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ function journeyButtons() {+ return Array.prototype.slice.call(path.querySelectorAll('[data-route-journey-index]'));+ }+ function journeyMotionAllowed() {+ return html.getAttribute('data-embed') !== 'true' &&+ !document.hidden &&+ Archify.motionGovernor &&+ Archify.motionGovernor.capable === true &&+ !Archify.motionGovernor.isPaused();+ }+ function routeOverviewStatus() {+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });+ }+ function centerJourneyButton(button) {+ if (!button) return;+ var target = button.offsetLeft - Math.max(0, (path.clientWidth - button.offsetWidth) / 2);+ path.scrollLeft = Math.max(0, target);+ }+ function focusJourneyButton(index) {+ var buttons = journeyButtons();+ if (!buttons.length) return false;+ var next = Math.max(0, Math.min(buttons.length - 1, index));+ buttons.forEach(function (button, buttonIndex) {+ button.setAttribute('tabindex', buttonIndex === next ? '0' : '-1');+ });+ try { buttons[next].focus({ preventScroll: true }); } catch (_) { buttons[next].focus(); }+ centerJourneyButton(buttons[next]);+ return true;+ }+ function renderJourneyControls() {+ var hasRoute = mode === 'result' && activeNodeIds.length > 1;+ var canPlay = hasRoute && journeyMotionAllowed();+ journeyControls.hidden = !hasRoute;+ journeyControls.setAttribute('data-playing', journeyPlaying ? 'true' : 'false');+ journeyPrevBtn.disabled = !hasRoute || journeyIndex <= 0;+ journeyNextBtn.disabled = !hasRoute || journeyIndex >= activeNodeIds.length - 1;+ journeyOverviewBtn.disabled = !hasRoute || journeyIndex < 0;+ journeyPlayBtn.disabled = !canPlay;+ journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');+ if (journeyPlaying) {+ journeyPlayIcon.textContent = '\u275a\u275a';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');+ } else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {+ journeyPlayIcon.textContent = '\u21bb';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');+ } else {+ journeyPlayIcon.textContent = '\u25b6';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');+ }+ }+ function journeyGeometry(shape) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-route-match');+ clone.removeAttribute('data-route-step');+ clone.removeAttribute('data-route-journey-state');+ clone.removeAttribute('data-route-journey-current');+ clone.setAttribute('class', 'route-journey-flow');+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function renderJourneyPulse(edge) {+ removeJourneyPulse();+ if (!edge || !journeyMotionAllowed()) return false;+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'route-journey-overlay');+ overlay.setAttribute('data-route-journey-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) { wrapper.appendChild(journeyGeometry(shape)); });+ if (!wrapper.childNodes.length) return false;+ overlay.appendChild(wrapper);+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ if (Archify.motionGovernor && Archify.motionGovernor.capable) {+ var token = 0;+ token = Archify.motionGovernor.claim('route', function () {+ if (journeyOwnerToken === token) journeyOwnerToken = 0;+ removeJourneyPulse({ release: false });+ });+ journeyOwnerToken = token;+ }+ overlay.addEventListener('animationend', function () {+ if (overlay.isConnected) removeJourneyPulse();+ }, { once: true });+ window.setTimeout(function () {+ if (overlay.isConnected) removeJourneyPulse();+ }, 860);+ return true;+ }+ function applyJourneyState(index, options) {+ options = options || {};+ if (mode !== 'result' || !activeNodeIds.length) return false;+ var byId = nodesById();+ journeyIndex = Math.max(0, Math.min(activeNodeIds.length - 1, index));+ removeJourneyPulse();+ svg.setAttribute('data-route-journey', (journeyIndex + 1) + '/' + activeNodeIds.length);+ panel.setAttribute('data-route-journey', String(journeyIndex));+ activeNodeIds.forEach(function (id, step) {+ var node = byId[id];+ if (!node) return;+ var state = step < journeyIndex ? 'past' : (step === journeyIndex ? 'current' : 'future');+ node.setAttribute('data-route-journey-state', state);+ if (step === journeyIndex) node.setAttribute('data-route-journey-current', '');+ else node.removeAttribute('data-route-journey-current');+ });+ activeEdges.forEach(function (edge, step) {+ var destination = step + 1;+ var state = destination < journeyIndex ? 'past' : (destination === journeyIndex ? 'current' : 'future');+ edge.setAttribute('data-route-journey-state', state);+ if (destination === journeyIndex) edge.setAttribute('data-route-journey-current', '');+ else edge.removeAttribute('data-route-journey-current');+ });+ var buttons = journeyButtons();+ buttons.forEach(function (button, step) {+ var state = step < journeyIndex ? 'past' : (step === journeyIndex ? 'current' : 'future');+ button.setAttribute('data-route-journey-state', state);+ button.setAttribute('tabindex', step === journeyIndex ? '0' : '-1');+ if (step === journeyIndex) button.setAttribute('aria-current', 'step');+ else button.removeAttribute('aria-current');+ });+ if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });+ if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {+ includeNeighbors: false,+ reason: 'route-journey',+ maxScale: 1.65,+ padding: 64,+ duration: 360,+ instant: !journeyMotionAllowed()+ });+ }+ renderJourneyControls();+ requestDocking();+ return true;+ }+ function pauseJourney(options) {+ options = options || {};+ if (!journeyPlaying && options.complete !== true) {+ renderJourneyControls();+ return false;+ }+ stopJourneyTimer({ preserveElapsed: options.complete !== true && options.preserveElapsed !== false });+ journeyPlaying = false;+ journeyComplete = options.complete === true;+ if (journeyComplete) journeyElapsedMs = 0;+ removeJourneyPulse();+ if (journeyIndex >= 0) applyJourneyState(journeyIndex, { center: false, pulse: false, reveal: false });+ else renderJourneyControls();+ return true;+ }+ function selectJourneyIndex(index) {+ if (mode !== 'result') return false;+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ return applyJourneyState(index, { pulse: true, reveal: true });+ }+ function showJourneyOverview(options) {+ options = options || {};+ if (mode !== 'result') return false;+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ journeyIndex = -1;+ clearJourneyPresentation({ keepControls: true });+ status.textContent = routeOverviewStatus();+ renderJourneyControls();+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(activeNodeIds, { includeNeighbors: false, reason: 'route', instant: !journeyMotionAllowed() });+ }+ requestDocking();+ return true;+ }+ function scheduleJourney() {+ if (!journeyPlaying || !journeyMotionAllowed()) {+ pauseJourney({ preserveElapsed: true });+ return false;+ }+ var generation = ++journeyGeneration;+ var remaining = Math.max(0, JOURNEY_DWELL_MS - journeyElapsedMs);+ journeyStartedAt = Date.now();+ journeyTimer = window.setTimeout(function () {+ if (generation !== journeyGeneration || !journeyPlaying) return;+ journeyTimer = null;+ journeyStartedAt = 0;+ journeyElapsedMs = 0;+ if (journeyIndex >= activeNodeIds.length - 1) {+ pauseJourney({ complete: true, preserveElapsed: false });+ return;+ }+ applyJourneyState(journeyIndex + 1, { pulse: true, reveal: true });+ // Camera and motion-owner handoff are allowed to synchronously+ // settle the previous step. The new step always starts with a fresh+ // dwell; never carry cleanup time into the next scheduler lease.+ journeyElapsedMs = 0;+ journeyStartedAt = 0;+ scheduleJourney();+ }, remaining);+ return true;+ }+ function playJourney() {+ if (mode !== 'result' || activeNodeIds.length < 2 || !journeyMotionAllowed()) {+ renderJourneyControls();+ return false;+ }+ if (journeyPlaying) return true;+ if (journeyComplete || journeyIndex >= activeNodeIds.length - 1) {+ journeyIndex = -1;+ journeyElapsedMs = 0;+ journeyComplete = false;+ }+ journeyPlaying = true;+ if (journeyIndex < 0) applyJourneyState(0, { pulse: false, reveal: true });+ else applyJourneyState(journeyIndex, { center: false, pulse: false, reveal: false });+ scheduleJourney();+ return true;+ }+ function toggleJourney() {+ return journeyPlaying ? pauseJourney({ preserveElapsed: true }) : playJourney();+ }+ function previousJourney() {+ return selectJourneyIndex(Math.max(0, journeyIndex < 0 ? 0 : journeyIndex - 1));+ }+ function nextJourney() {+ return selectJourneyIndex(Math.min(activeNodeIds.length - 1, journeyIndex + 1));+ }+ function overlapArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function updateDocking() {+ if (panel.hidden) {+ panel.removeAttribute('data-route-dock');+ return;+ }+ var containerRect = container.getBoundingClientRect();+ var width = panel.offsetWidth;+ var height = panel.offsetHeight;+ if (!width || !height) return;+ var currentRect = panel.getBoundingClientRect();+ var left = currentRect.left;+ var topCandidate = {+ left: left,+ right: left + width,+ top: containerRect.top + 8,+ bottom: containerRect.top + 8 + height+ };+ var nav = container.querySelector('.diagram-nav');+ var navRect = nav ? nav.getBoundingClientRect() : null;+ var bottom = navRect ? navRect.top - 9 : containerRect.bottom - 8;+ var bottomCandidate = {+ left: left,+ right: left + width,+ top: bottom - height,+ bottom: bottom+ };+ var byId = nodesById();+ var relevant = activeNodeIds.length ? activeNodeIds : (startId ? [startId] : []);+ var blockers = relevant.map(function (id) { return byId[id]; }).filter(Boolean).map(function (node) {+ return node.getBoundingClientRect();+ });+ function score(candidate) {+ var value = blockers.reduce(function (sum, rect) { return sum + overlapArea(candidate, rect); }, 0);+ if (navRect) value += overlapArea(candidate, navRect) * 4;+ if (candidate.top < containerRect.top || candidate.bottom > containerRect.bottom) value += 1000000;+ return value;+ }+ if (score(topCandidate) <= score(bottomCandidate)) panel.setAttribute('data-route-dock', 'top');+ else panel.setAttribute('data-route-dock', 'bottom');+ }+ function requestDocking() {+ requestAnimationFrame(updateDocking);+ window.setTimeout(updateDocking, 120);+ window.setTimeout(updateDocking, 560);+ }+ function chooseStart(id) {+ var byId = nodesById();+ if (!byId[id]) return false;+ cleanSvgState();+ startId = id;+ endId = null;+ mode = 'target';+ var reached = reachableFrom(id);+ byId[id].setAttribute('data-route-start', '');+ byId[id].setAttribute('data-route-match', '');+ Object.keys(reached).forEach(function (candidateId) {+ if (candidateId !== id && byId[candidateId]) byId[candidateId].setAttribute('data-route-candidate', '');+ });+ svg.setAttribute('data-route-picking', 'target');+ panel.setAttribute('data-state', 'target');+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });+ renderPath([id]);+ var count = Math.max(0, Object.keys(reached).length - 1);+ status.textContent = count+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');+ findBtn.hidden = false;+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));+ requestDocking();+ return true;+ }+ function showResult(result, options) {+ options = options || {};+ var byId = nodesById();+ cleanSvgState();+ mode = 'result';+ startId = result.nodes[0];+ endId = result.nodes[result.nodes.length - 1];+ activeNodeIds = result.nodes.slice();+ activeEdges = result.edges.slice();+ result.nodes.forEach(function (id, step) {+ var node = byId[id];+ if (!node) return;+ node.setAttribute('data-route-match', '');+ node.setAttribute('data-route-step', String(step));+ node.style.setProperty('--route-step', String(step));+ if (step === 0) node.setAttribute('data-route-start', '');+ if (step === result.nodes.length - 1) node.setAttribute('data-route-end', '');+ });+ result.edges.forEach(function (edge, step) {+ edge.setAttribute('data-route-match', '');+ edge.setAttribute('data-route-step', String(step));+ edge.style.setProperty('--route-step', String(step));+ });+ svg.setAttribute('data-route-active', startId + '~' + endId);+ renderOverlay(result.edges);+ renderPath(result.nodes, { interactive: true });+ panel.setAttribute('data-state', 'result');+ panel.hidden = false;+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });+ findBtn.hidden = true;+ copyBtn.hidden = false;+ setTrigger(true);+ if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();+ if (options.updateUrl !== false) {+ replaceRouteHash(encodeURIComponent(startId) + '~' + encodeURIComponent(endId));+ }+ showJourneyOverview({ reveal: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(result.nodes, { includeNeighbors: false, reason: 'route' });+ }+ return true;+ }+ function choose(id, options) {+ options = options || {};+ var byId = nodesById();+ if (!byId[id]) return false;+ if (mode === 'source') return chooseStart(id);+ if (mode !== 'target') return false;+ if (id === startId) {+ panel.setAttribute('data-state', 'error');+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');+ return false;+ }+ var result = shortestDirectedPath(startId, id);+ if (!result) {+ panel.setAttribute('data-state', 'error');+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });+ return false;+ }+ return showResult(result, options);+ }+ function begin(options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.active()) {+ Archify.semanticLens.clear({ updateUrl: false, preserveView: true, closePanel: true });+ }+ var focused = options.source || (Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null);+ if (Array.isArray(focused)) focused = null;+ clear({ updateUrl: false, preserveView: true, restoreFocus: false });+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ if (Archify.focus && typeof Archify.focus.clear === 'function') {+ Archify.focus.clear({ updateUrl: false, preserveView: true });+ }+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ mode = 'source';+ panel.hidden = false;+ panel.setAttribute('data-state', 'source');+ svg.setAttribute('data-route-picking', 'source');+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');+ findBtn.hidden = false;+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));+ copyBtn.hidden = true;+ setTrigger(true);+ if (focused && nodesById()[focused]) chooseStart(focused);+ if (options.focusNode === true && !focused) {+ var first = nodes()[0];+ if (first) {+ try { first.focus({ preventScroll: true }); } catch (_) { try { first.focus(); } catch (_) {} }+ }+ }+ return true;+ }+ function toggle(options) {+ if (mode !== 'idle') {+ clear({ restoreFocus: true });+ return false;+ }+ return begin(options);+ }+ function finderContext() {+ var byId = nodesById();+ if (mode === 'source') {+ var outgoing = outgoingByNode();+ var sourceIds = nodes().map(function (node) { return node.getAttribute('data-node-id'); }).filter(function (id) {+ return outgoing[id] && outgoing[id].length;+ });+ var sourceBadges = Object.create(null);+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });+ return {+ kind: 'route-source',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),+ allowedIds: sourceIds,+ badges: sourceBadges+ };+ }+ if (mode === 'target' && startId && byId[startId]) {+ var distances = hopDistancesFrom(startId);+ var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });+ var targetBadges = Object.create(null);+ targetIds.forEach(function (id) {+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);+ });+ return {+ kind: 'route-target',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),+ allowedIds: targetIds,+ badges: targetBadges+ };+ }+ return null;+ }+ function finderOpening() {+ panel.setAttribute('data-finder-open', 'true');+ }+ function finderClosed(options) {+ options = options || {};+ panel.removeAttribute('data-finder-open');+ requestDocking();+ if (options.restoreFocus === true && !findBtn.hidden) findBtn.focus();+ }+ function openFinder() {+ var context = finderContext();+ if (!context || !Archify.finder) return false;+ return Archify.finder.open({ context: context });+ }+ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }+ function copyLink() {+ if (mode !== 'result') return Promise.resolve(false);+ var value = location.href.replace(/#.*$/, '') + '#route=' + encodeURIComponent(startId) + '~' + encodeURIComponent(endId);+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));+ window.setTimeout(function () {+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));+ }, 1600);+ return copied;+ });+ }+ function interceptSelection(event) {+ if (mode !== 'source' && mode !== 'target') return;+ if (container.getAttribute('data-just-panned') === 'true') return;+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ if (event.type === 'keydown' && event.key !== 'Enter' && event.key !== ' ') return;+ event.preventDefault();+ event.stopImmediatePropagation();+ choose(node.getAttribute('data-node-id'));+ }+ function syncFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var route = params.get('route');+ if (!route) {+ if (mode !== 'idle') clear({ updateUrl: false, restoreFocus: false });+ return;+ }+ var parts = route.split('~');+ if (parts.length !== 2) return;+ var byId = nodesById();+ if (!byId[parts[0]] || !byId[parts[1]]) return;+ begin({ source: parts[0], focusNode: false });+ choose(parts[1], { updateUrl: false });+ } catch (_) {}+ }+ function escapeRoute(options) {+ options = options || {};+ if (journeyPlaying) {+ pauseJourney({ preserveElapsed: true });+ if (options.restoreFocus === true) journeyPlayBtn.focus();+ return 'paused';+ }+ if (journeyIndex >= 0) {+ showJourneyOverview({ reveal: true });+ if (options.restoreFocus === true) journeyOverviewBtn.focus();+ return 'overview';+ }+ clear({ restoreFocus: options.restoreFocus === true });+ return 'cleared';+ }+ function syncJourneyMotion() {+ if (journeyPlaying && !journeyMotionAllowed()) pauseJourney({ preserveElapsed: true });+ renderJourneyControls();+ return journeyMotionAllowed();+ }++ trigger.addEventListener('click', function () { toggle({ focusNode: false }); });+ findBtn.addEventListener('click', openFinder);+ clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });+ copyBtn.addEventListener('click', copyLink);+ journeyPrevBtn.addEventListener('click', previousJourney);+ journeyPlayBtn.addEventListener('click', toggleJourney);+ journeyNextBtn.addEventListener('click', nextJourney);+ journeyOverviewBtn.addEventListener('click', function () { showJourneyOverview({ reveal: true }); });+ path.addEventListener('click', function (event) {+ var button = event.target.closest('[data-route-journey-index]');+ if (!button) return;+ selectJourneyIndex(Number(button.getAttribute('data-route-journey-index')));+ });+ path.addEventListener('focusin', function (event) {+ if (journeyPlaying && event.target.closest('[data-route-journey-index]')) pauseJourney({ preserveElapsed: true });+ });+ path.addEventListener('keydown', function (event) {+ var button = event.target.closest('[data-route-journey-index]');+ if (!button) return;+ var index = Number(button.getAttribute('data-route-journey-index'));+ var next = null;+ if (event.key === 'ArrowRight') next = Math.min(activeNodeIds.length - 1, index + 1);+ else if (event.key === 'ArrowLeft') next = Math.max(0, index - 1);+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = activeNodeIds.length - 1;+ if (next !== null) {+ event.preventDefault();+ focusJourneyButton(next);+ return;+ }+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ selectJourneyIndex(index);+ }+ });+ svg.addEventListener('click', interceptSelection, true);+ svg.addEventListener('keydown', interceptSelection, true);+ container.addEventListener('scroll', updateDocking, { passive: true });+ window.addEventListener('resize', requestDocking);+ window.addEventListener('beforeprint', function () {+ if (journeyPlaying) pauseJourney({ preserveElapsed: true, reason: 'print' });+ else removeJourneyPulse();+ });+ window.addEventListener('hashchange', function () { requestAnimationFrame(syncFromHash); });+ syncFromHash();++ return {+ begin: begin,+ choose: choose,+ clear: clear,+ toggle: toggle,+ escape: escapeRoute,+ copyLink: copyLink,+ playJourney: playJourney,+ pauseJourney: pauseJourney,+ showOverview: showJourneyOverview,+ selectJourneyIndex: selectJourneyIndex,+ syncMotion: syncJourneyMotion,+ isJourneyPlaying: function () { return journeyPlaying; },+ finderContext: finderContext,+ finderOpening: finderOpening,+ finderClosed: finderClosed,+ openFinder: openFinder,+ exportSnapshot: exportSnapshot,+ active: function () { return mode === 'idle' ? null : mode; },+ result: function () {+ return mode === 'result'+ ? { source: startId, target: endId, nodes: activeNodeIds.slice(), hops: activeEdges.length, journey: journeyIndex, playing: journeyPlaying }+ : null;+ }+ };+ })();++ /* ============================================================+ Semantic Lens — a counted, viewer-only legend over data-node-kind.+ One selected kind reveals every authored relationship touching it.+ Two selected kinds compare only direct cross-kind relationships while+ preserving the full diagram as a dimmed spatial reference.+ ============================================================ */+ Archify.semanticLens = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-semantic-lens');+ var panel = document.getElementById('semantic-lens');+ var closeBtn = document.getElementById('semantic-lens-close');+ var kindsRoot = document.getElementById('semantic-lens-kinds');+ var status = document.getElementById('semantic-lens-status');+ var copyBtn = document.getElementById('semantic-lens-copy');+ var clearBtn = document.getElementById('semantic-lens-clear');+ var legendBridge = svg.querySelector('[data-legend-bridge]');+ var legendEntries = [];+ var hoveredLegendEntry = null;+ var focusedLegendEntry = null;+ var activeLegendPreview = null;+ var lensOpener = trigger;+ var selectedKinds = [];+ var namespace = 'http://www.w3.org/2000/svg';+ var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;+ var MAX_LENS_FLOW_EDGES = 24;++ function nodesById() {+ var byId = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {+ var id = node.getAttribute('data-node-id');+ if (id && !byId[id]) byId[id] = node;+ });+ return byId;+ }+ function collectKinds() {+ var kinds = {};+ var byId = nodesById();+ Object.keys(byId).forEach(function (id) {+ var node = byId[id];+ var value = node.getAttribute('data-node-kind') || 'neutral';+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });+ kind.nodes.push(node);+ });+ return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {+ return b.nodes.length - a.nodes.length || a.label.localeCompare(b.label);+ });+ }+ function edgeGroups() {+ var groups = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = edge.getAttribute('data-edge-key') || [from, to, edge.getAttribute('data-edge-label') || ''].join('\u0000');+ if (!groups[key]) groups[key] = { key: key, from: from, to: to, members: [] };+ groups[key].members.push(edge);+ });+ return Object.keys(groups).map(function (key) { return groups[key]; });+ }+ function edgeShapes(edge) {+ if (!edge) return [];+ if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function legendSourceBounds(entry) {+ var bounds = null;+ Array.prototype.forEach.call(entry.children, function (child) {+ if (child.hasAttribute('data-legend-bridge-runtime')) return;+ var box;+ try { box = child.getBBox(); } catch (_) { return; }+ if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y)) return;+ var next = { left: box.x, top: box.y, right: box.x + box.width, bottom: box.y + box.height };+ if (!bounds) bounds = next;+ else {+ bounds.left = Math.min(bounds.left, next.left);+ bounds.top = Math.min(bounds.top, next.top);+ bounds.right = Math.max(bounds.right, next.right);+ bounds.bottom = Math.max(bounds.bottom, next.bottom);+ }+ });+ return bounds;+ }+ function layoutLegendEntry(entry) {+ var bounds = legendSourceBounds(entry);+ var hit = entry.querySelector('[data-legend-hit]');+ var badge = entry.querySelector('[data-legend-count-badge]');+ if (!bounds || !hit || !badge) return false;+ var count = entry.getAttribute('data-legend-count') || '0';+ var centerY = (bounds.top + bounds.bottom) / 2;+ var badgeWidth = Math.max(14, count.length * 5 + 8);+ var badgeX = bounds.right + 3;+ var hitX = bounds.left - 5;+ var hitRight = badgeX + badgeWidth + 4;+ hit.setAttribute('x', hitX.toFixed(2));+ hit.setAttribute('y', (centerY - 12).toFixed(2));+ hit.setAttribute('width', Math.max(24, hitRight - hitX).toFixed(2));+ hit.setAttribute('height', '24');+ hit.setAttribute('rx', '4');+ var badgeRect = badge.querySelector('rect');+ var badgeText = badge.querySelector('text');+ badgeRect.setAttribute('x', badgeX.toFixed(2));+ badgeRect.setAttribute('y', (centerY - 7).toFixed(2));+ badgeRect.setAttribute('width', badgeWidth.toFixed(2));+ badgeRect.setAttribute('height', '14');+ badgeRect.setAttribute('rx', '7');+ badgeText.setAttribute('x', (badgeX + badgeWidth / 2).toFixed(2));+ badgeText.setAttribute('y', (centerY + 2.5).toFixed(2));+ return true;+ }+ function layoutLegendBridge() {+ legendEntries.forEach(layoutLegendEntry);+ if (!legendBridge) return;+ Array.prototype.forEach.call(legendBridge.querySelectorAll('[data-legend-zero]'), layoutLegendEntry);+ }+ function decorateLegendBridge() {+ legendEntries = [];+ if (!legendBridge || html.getAttribute('data-embed') === 'true') return false;+ var facts = {};+ collectKinds().forEach(function (kind) { facts[kind.id] = kind; });+ Array.prototype.forEach.call(legendBridge.querySelectorAll('[data-legend-kind]'), function (entry) {+ var kind = entry.getAttribute('data-legend-kind');+ var fact = facts[kind];+ var count = fact ? fact.nodes.length : 0;+ entry.setAttribute('data-legend-count', String(count));+ var hit = document.createElementNS(namespace, 'rect');+ hit.setAttribute('data-legend-bridge-runtime', '');+ hit.setAttribute('data-legend-hit', '');+ hit.setAttribute('aria-hidden', 'true');+ entry.insertBefore(hit, entry.firstChild);+ var badge = document.createElementNS(namespace, 'g');+ badge.setAttribute('data-legend-bridge-runtime', '');+ badge.setAttribute('data-legend-count-badge', '');+ badge.setAttribute('aria-hidden', 'true');+ badge.appendChild(document.createElementNS(namespace, 'rect'));+ var countText = document.createElementNS(namespace, 'text');+ countText.textContent = String(count);+ badge.appendChild(countText);+ entry.appendChild(badge);+ if (!fact || !count) {+ entry.setAttribute('data-legend-zero', '');+ return;+ }+ entry.setAttribute('role', 'button');+ entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));+ entry.setAttribute('aria-pressed', 'false');+ entry.setAttribute('aria-haspopup', 'dialog');+ entry.setAttribute('aria-controls', 'semantic-lens');+ entry.setAttribute('aria-expanded', 'false');+ legendEntries.push(entry);+ });+ if (!legendEntries.length) return false;+ legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));+ syncLegendBridge();+ layoutLegendBridge();+ try {+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(layoutLegendBridge);+ } catch (_) {}+ return true;+ }+ function syncLegendBridge() {+ legendEntries.forEach(function (entry) {+ var selected = selectedKinds.indexOf(entry.getAttribute('data-legend-kind')) >= 0;+ entry.setAttribute('aria-pressed', selected ? 'true' : 'false');+ entry.setAttribute('aria-expanded', !panel.hidden && lensOpener === entry ? 'true' : 'false');+ if (selected) entry.setAttribute('data-legend-selected', '');+ else entry.removeAttribute('data-legend-selected');+ });+ }+ function clearLegendPreview() {+ activeLegendPreview = null;+ svg.removeAttribute('data-legend-preview-active');+ Array.prototype.forEach.call(svg.querySelectorAll('[data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer]'), function (element) {+ element.removeAttribute('data-legend-preview-match');+ element.removeAttribute('data-legend-preview-selected');+ element.removeAttribute('data-legend-preview-peer');+ });+ }+ function strongerLegendOwnerActive() {+ return selectedKinds.length > 0 || !panel.hidden || html.getAttribute('data-present') === 'true' ||+ svg.hasAttribute('data-focus-active') || svg.hasAttribute('data-intent-trace-active') ||+ svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active') ||+ svg.hasAttribute('data-relationship-preview-active');+ }+ function previewLegendKind(entry) {+ clearLegendPreview();+ if (!entry || strongerLegendOwnerActive()) return false;+ var kind = entry.getAttribute('data-legend-kind');+ var byId = nodesById();+ var matches = Object.keys(byId).filter(function (id) {+ return (byId[id].getAttribute('data-node-kind') || 'neutral') === kind;+ });+ if (!matches.length) return false;+ var chosen = Object.create(null);+ matches.forEach(function (id) {+ chosen[id] = true;+ byId[id].setAttribute('data-legend-preview-match', '');+ byId[id].setAttribute('data-legend-preview-selected', '');+ });+ edgeGroups().forEach(function (edge) {+ if (!chosen[edge.from] && !chosen[edge.to]) return;+ edge.members.forEach(function (member) { member.setAttribute('data-legend-preview-match', ''); });+ [edge.from, edge.to].forEach(function (id) {+ if (!byId[id] || chosen[id]) return;+ byId[id].setAttribute('data-legend-preview-match', '');+ byId[id].setAttribute('data-legend-preview-peer', '');+ });+ });+ svg.setAttribute('data-legend-preview-active', kind);+ activeLegendPreview = entry;+ return true;+ }+ function syncLegendPreview() {+ var next = focusedLegendEntry || hoveredLegendEntry;+ if (next === activeLegendPreview) return;+ clearLegendPreview();+ if (next) previewLegendKind(next);+ }+ function activateLegendEntry(entry) {+ if (!entry || entry.getAttribute('role') !== 'button') return false;+ clearLegendPreview();+ select(entry.getAttribute('data-legend-kind'));+ return open({ opener: entry });+ }+ function removeFlowOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-semantic-lens-overlay]'), function (element) {+ element.remove();+ });+ svg.removeAttribute('data-lens-flow-count');+ svg.removeAttribute('data-lens-flow-density');+ }+ function flowGeometry(shape, direction, step) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-lens-match');+ clone.setAttribute('class', 'semantic-lens-flow');+ clone.setAttribute('data-direction', direction);+ clone.setAttribute('pathLength', '1');+ clone.style.setProperty('--lens-flow-delay', (step * 0.08).toFixed(2) + 's');+ return clone;+ }+ function renderFlowOverlay(entries) {+ removeFlowOverlay();+ svg.setAttribute('data-lens-flow-count', String(entries.length));+ if (!entries.length || html.getAttribute('data-embed') === 'true') return false;+ if (entries.length > MAX_LENS_FLOW_EDGES) {+ svg.setAttribute('data-lens-flow-density', 'quiet');+ return false;+ }+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'semantic-lens-overlay');+ overlay.setAttribute('data-semantic-lens-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ entries.forEach(function (entry, step) {+ var wrapper = document.createElementNS(namespace, 'g');+ if (entry.edge.members[0].hasAttribute('transform')) {+ wrapper.setAttribute('transform', entry.edge.members[0].getAttribute('transform'));+ }+ edgeShapes(entry.edge.members[0]).forEach(function (shape) {+ wrapper.appendChild(flowGeometry(shape, entry.direction, step));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ if (!overlay.childNodes.length) return false;+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ return true;+ }+ function cleanSvgState() {+ removeFlowOverlay();+ svg.removeAttribute('data-lens-active');+ Array.prototype.forEach.call(svg.querySelectorAll('[data-lens-match], [data-lens-selected], [data-lens-peer]'), function (element) {+ element.removeAttribute('data-lens-match');+ element.removeAttribute('data-lens-selected');+ element.removeAttribute('data-lens-peer');+ });+ }+ function renderKinds() {+ kindsRoot.textContent = '';+ collectKinds().forEach(function (kind) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'semantic-lens-kind';+ button.setAttribute('data-kind', kind.id);+ button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));+ button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;+ var swatch = document.createElement('span');+ swatch.className = 'semantic-lens-swatch';+ swatch.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = kind.label;+ var count = document.createElement('em');+ count.textContent = String(kind.nodes.length);+ button.appendChild(swatch);+ button.appendChild(label);+ button.appendChild(count);+ kindsRoot.appendChild(button);+ });+ }+ function updateHash() {+ try {+ var hash = selectedKinds.length+ ? '#lens=' + selectedKinds.map(encodeURIComponent).join('~')+ : '';+ history.replaceState(null, '', location.pathname + location.search + hash);+ } catch (_) {}+ }+ function updateTrigger() {+ var active = selectedKinds.length > 0;+ trigger.setAttribute('aria-pressed', active ? 'true' : 'false');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));+ copyBtn.hidden = !active;+ syncLegendBridge();+ }+ function overlapArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function dockPanel(byId) {+ panel.removeAttribute('data-dock-side');+ if (panel.hidden || window.innerWidth <= 720) return 'right';+ var panelRect = panel.getBoundingClientRect();+ var containerRect = container.getBoundingClientRect();+ if (!panelRect.width || !panelRect.height) return 'right';+ var selectedRects = Object.keys(byId).filter(function (id) {+ return selectedKinds.indexOf(byId[id].getAttribute('data-node-kind') || 'neutral') >= 0;+ }).map(function (id) { return byId[id].getBoundingClientRect(); });+ var top = panelRect.top;+ var width = panelRect.width;+ var leftCandidate = { left: containerRect.left + 16, right: containerRect.left + 16 + width, top: top, bottom: panelRect.bottom };+ var rightCandidate = { left: containerRect.right - 16 - width, right: containerRect.right - 16, top: top, bottom: panelRect.bottom };+ var leftScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(leftCandidate, rect); }, 0);+ var rightScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(rightCandidate, rect); }, 0);+ var legend = svg.querySelector('[data-legend]');+ var nav = container.querySelector('.diagram-nav');+ var protectedRects = [legend, nav].filter(function (element) {+ return element && !element.hidden && window.getComputedStyle(element).display !== 'none';+ }).map(function (element) { return element.getBoundingClientRect(); });+ leftScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(leftCandidate, rect) * 1000;+ }, 0);+ rightScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(rightCandidate, rect) * 1000;+ }, 0);+ var side = leftScore < rightScore ? 'left' : 'right';+ panel.setAttribute('data-dock-side', side);+ return side;+ }+ function applySelection(options) {+ options = options || {};+ cleanSvgState();+ var byId = nodesById();+ var nodeKind = Object.create(null);+ Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });+ if (!selectedKinds.length) {+ status.textContent = viewerText('viewer.lens.choose');+ updateTrigger();+ renderKinds();+ dockPanel(byId);+ if (options.updateUrl !== false) updateHash();+ return false;+ }++ var chosen = {};+ selectedKinds.forEach(function (kind) { chosen[kind] = true; });+ Object.keys(byId).forEach(function (id) {+ if (!chosen[nodeKind[id]]) return;+ byId[id].setAttribute('data-lens-match', '');+ byId[id].setAttribute('data-lens-selected', '');+ });++ var touching = 0;+ var forward = 0;+ var reverse = 0;+ var crossKind = selectedKinds.length === 2;+ var matchedFlow = [];+ edgeGroups().forEach(function (edge) {+ var fromKind = nodeKind[edge.from];+ var toKind = nodeKind[edge.to];+ var match = false;+ if (crossKind) {+ if (fromKind === selectedKinds[0] && toKind === selectedKinds[1]) { match = true; forward += 1; }+ if (fromKind === selectedKinds[1] && toKind === selectedKinds[0]) { match = true; reverse += 1; }+ } else if (fromKind === selectedKinds[0] || toKind === selectedKinds[0]) {+ match = true;+ touching += 1;+ }+ if (!match) return;+ var direction = 'within';+ if (crossKind) {+ direction = fromKind === selectedKinds[0] ? 'forward' : 'reverse';+ } else {+ direction = fromKind === selectedKinds[0] && toKind !== selectedKinds[0] ? 'out'+ : (toKind === selectedKinds[0] && fromKind !== selectedKinds[0] ? 'in' : 'within');+ }+ matchedFlow.push({ edge: edge, direction: direction });+ edge.members.forEach(function (member) { member.setAttribute('data-lens-match', ''); });+ if (!crossKind) {+ [edge.from, edge.to].forEach(function (id) {+ if (!byId[id]) return;+ byId[id].setAttribute('data-lens-match', '');+ if (!chosen[nodeKind[id]]) byId[id].setAttribute('data-lens-peer', '');+ });+ }+ });++ svg.setAttribute('data-lens-active', selectedKinds.join(' '));+ renderFlowOverlay(matchedFlow);+ if (crossKind) {+ var total = forward + reverse;+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });+ } else {+ var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });+ }+ updateTrigger();+ renderKinds();+ dockPanel(byId);+ if (options.updateUrl !== false) updateHash();+ return true;+ }+ function prepareForLens() {+ clearLegendPreview();+ if (Archify.focus && typeof Archify.focus.clear === 'function') {+ Archify.focus.clear({ updateUrl: false, preserveView: true });+ }+ if (Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {+ Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });+ }+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {+ Archify.intentTrace.clear({ announce: false });+ }+ }+ function select(kind, options) {+ options = options || {};+ clearLegendPreview();+ var exists = collectKinds().some(function (entry) { return entry.id === kind; });+ if (!exists) return false;+ var index = selectedKinds.indexOf(kind);+ if (index >= 0) selectedKinds.splice(index, 1);+ else {+ if (selectedKinds.length >= 2) return false;+ if (!selectedKinds.length) prepareForLens();+ selectedKinds.push(kind);+ }+ return applySelection(options);+ }+ function close(options) {+ options = options || {};+ panel.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ updateTrigger();+ if (options.restoreFocus !== false && lensOpener && typeof lensOpener.focus === 'function') lensOpener.focus();+ return false;+ }+ function open(options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ lensOpener = options.opener || trigger;+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ if (Archify.guide && Archify.guide.isOpen()) Archify.guide.close({ restoreFocus: false });+ renderKinds();+ panel.hidden = false;+ trigger.setAttribute('aria-expanded', 'true');+ updateTrigger();+ requestAnimationFrame(function () {+ dockPanel(nodesById());+ var activeButton = kindsRoot.querySelector('[aria-pressed="true"]');+ var firstButton = activeButton || kindsRoot.querySelector('button:not(:disabled)');+ if (firstButton) firstButton.focus();+ });+ return true;+ }+ function toggle() { return panel.hidden ? open({ opener: trigger }) : close(); }+ function clear(options) {+ options = options || {};+ selectedKinds = [];+ cleanSvgState();+ panel.removeAttribute('data-dock-side');+ updateTrigger();+ renderKinds();+ status.textContent = viewerText('viewer.lens.choose');+ if (options.updateUrl !== false) updateHash();+ if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.closePanel === true) close({ restoreFocus: false });+ return false;+ }+ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }+ function copyLink() {+ if (!selectedKinds.length) return Promise.resolve(false);+ var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);+ return copied;+ });+ }+ function syncFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var value = params.get('lens');+ if (!value) {+ if (selectedKinds.length) clear({ updateUrl: false, preserveView: true });+ return;+ }+ var available = collectKinds().map(function (kind) { return kind.id; });+ var requested = value.split('~').filter(function (kind, index, list) {+ return available.indexOf(kind) >= 0 && list.indexOf(kind) === index;+ }).slice(0, 2);+ if (!requested.length) return;+ prepareForLens();+ selectedKinds = requested;+ applySelection({ updateUrl: false });+ } catch (_) {}+ }++ trigger.addEventListener('click', toggle);+ if (decorateLegendBridge()) {+ legendBridge.addEventListener('click', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (entry) activateLegendEntry(entry);+ });+ legendBridge.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch' || (finePointerQuery && !finePointerQuery.matches)) return;+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ hoveredLegendEntry = entry;+ syncLegendPreview();+ });+ legendBridge.addEventListener('pointerout', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ if (hoveredLegendEntry === entry) hoveredLegendEntry = null;+ syncLegendPreview();+ });+ legendBridge.addEventListener('focusin', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry) return;+ focusedLegendEntry = entry;+ legendEntries.forEach(function (candidate) {+ candidate.setAttribute('tabindex', candidate === entry ? '0' : '-1');+ });+ syncLegendPreview();+ });+ legendBridge.addEventListener('focusout', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ if (focusedLegendEntry === entry) focusedLegendEntry = null;+ syncLegendPreview();+ });+ legendBridge.addEventListener('keydown', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry) return;+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ activateLegendEntry(entry);+ return;+ }+ var index = legendEntries.indexOf(entry);+ var next = null;+ if (event.key === 'ArrowRight') next = (index + 1) % legendEntries.length;+ else if (event.key === 'ArrowLeft') next = (index - 1 + legendEntries.length) % legendEntries.length;+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = legendEntries.length - 1;+ if (next === null) return;+ event.preventDefault();+ legendEntries.forEach(function (candidate, candidateIndex) {+ candidate.setAttribute('tabindex', candidateIndex === next ? '0' : '-1');+ });+ legendEntries[next].focus();+ });+ }+ closeBtn.addEventListener('click', function () { close(); });+ clearBtn.addEventListener('click', function () { clear({ preserveView: true }); });+ copyBtn.addEventListener('click', copyLink);+ kindsRoot.addEventListener('click', function (event) {+ var button = event.target.closest('[data-kind]');+ if (!button || button.disabled) return;+ select(button.getAttribute('data-kind'));+ });+ kindsRoot.addEventListener('keydown', function (event) {+ var buttons = Array.prototype.slice.call(kindsRoot.querySelectorAll('button:not(:disabled)'));+ var index = buttons.indexOf(document.activeElement);+ var next = null;+ if (index >= 0 && (event.key === 'ArrowRight' || event.key === 'ArrowDown')) next = (index + 1) % buttons.length;+ else if (index >= 0 && (event.key === 'ArrowLeft' || event.key === 'ArrowUp')) next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home' && buttons.length) next = 0;+ else if (event.key === 'End' && buttons.length) next = buttons.length - 1;+ if (next !== null) { event.preventDefault(); buttons[next].focus(); }+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key !== 'Escape') return;+ event.preventDefault();+ event.stopPropagation();+ close();+ });+ document.addEventListener('click', function (event) {+ var eventPath = typeof event.composedPath === 'function' ? event.composedPath() : [];+ var clickedInside = eventPath.indexOf(panel) >= 0 || panel.contains(event.target);+ var clickedLauncher = event.target === trigger || legendEntries.some(function (entry) {+ return event.target === entry || entry.contains(event.target);+ });+ if (!panel.hidden && !clickedInside && !clickedLauncher) close({ restoreFocus: false });+ });+ window.addEventListener('hashchange', syncFromHash);+ window.addEventListener('resize', function () {+ if (!panel.hidden && selectedKinds.length) dockPanel(nodesById());+ layoutLegendBridge();+ });+ renderKinds();+ syncFromHash();++ return {+ open: open,+ close: close,+ toggle: toggle,+ clear: clear,+ clearPreview: clearLegendPreview,+ select: select,+ copyLink: copyLink,+ isOpen: function () { return !panel.hidden; },+ active: function () { return selectedKinds.length ? selectedKinds.slice() : null; },+ kinds: function () { return collectKinds().map(function (kind) { return { id: kind.id, count: kind.nodes.length }; }); }+ };+ })();++ /* ============================================================+ Diagram Guide — a factual command deck over existing interactions.+ Counts come from compiled semantics; actions delegate to Finder, Route+ Probe, Semantic Radar, Semantic Lens, Presentation, theme, export, and+ camera without adding a second command implementation or SVG state.+ ============================================================ */+ Archify.guide = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-diagram-guide');+ var panel = document.getElementById('diagram-guide');+ var closeBtn = document.getElementById('diagram-guide-close');+ var stats = document.getElementById('diagram-guide-stats');+ var actions = document.getElementById('diagram-guide-actions');+ var feedback = document.getElementById('diagram-guide-feedback');+ var routePanel = document.getElementById('route-probe');+ var returnFocus = null;++ function relationshipCount() {+ var seen = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var key = edge.getAttribute('data-edge-key') || [+ edge.getAttribute('data-edge-from'),+ edge.getAttribute('data-edge-to'),+ edge.getAttribute('data-edge-label') || ''+ ].join('\u0000');+ seen[key] = true;+ });+ return Object.keys(seen).length;+ }+ function renderFacts() {+ var nodes = svg.querySelectorAll('[data-node-id]').length;+ var relationships = relationshipCount();+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships)+ });+ }+ function actionButtons() {+ return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));+ }+ function close(options) {+ options = options || {};+ panel.hidden = true;+ html.removeAttribute('data-guide-open');+ routePanel.removeAttribute('data-guide-open');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));+ feedback.textContent = '';+ if (options.restoreFocus !== false) {+ var target = trigger.hidden ? returnFocus : trigger;+ if (target && typeof target.focus === 'function') target.focus();+ }+ return false;+ }+ function open() {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: 'guide' });+ }+ returnFocus = document.activeElement;+ renderFacts();+ panel.hidden = false;+ html.setAttribute('data-guide-open', 'true');+ routePanel.setAttribute('data-guide-open', 'true');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));+ feedback.textContent = '';+ requestAnimationFrame(function () {+ var first = actionButtons()[0];+ if (first) first.focus();+ });+ return true;+ }+ function toggle() { return panel.hidden ? open() : close(); }+ function execute(action) {+ feedback.textContent = '';+ close({ restoreFocus: false });+ if (action === 'find') return Archify.finder.open();+ if (action === 'route') return Archify.routeProbe.begin({ focusNode: true });+ if (action === 'map') return Archify.radar.open();+ if (action === 'lens') return Archify.semanticLens.open();+ if (action === 'present') return Archify.presentation.enter();+ if (action === 'export') return Archify.exportMenu.open();+ if (action === 'theme') return Archify.theme.toggle();+ if (action === 'preset') return Archify.preset.cycle();+ if (action === 'reset') return Archify.view.reset();+ if (action === 'zoom-in') return Archify.view.zoomIn();+ if (action === 'zoom-out') return Archify.view.zoomOut();+ return false;+ }+ function actionForKey(key) {+ return {+ '/': 'find',+ r: 'route',+ m: 'map',+ l: 'lens',+ f: 'present',+ e: 'export',+ t: 'theme',+ s: 'preset',+ '0': 'reset',+ '+': 'zoom-in',+ '=': 'zoom-in',+ '-': 'zoom-out'+ }[key] || null;+ }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close(); });+ actions.addEventListener('click', function (event) {+ var button = event.target.closest('[data-guide-action]');+ if (!button || button.disabled) return;+ event.stopPropagation();+ execute(button.getAttribute('data-guide-action'));+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' || event.key === '?') {+ event.preventDefault();+ event.stopPropagation();+ close();+ return;+ }+ var buttons = actionButtons();+ var index = buttons.indexOf(document.activeElement);+ var next = null;+ if (index >= 0 && event.key === 'ArrowRight') next = (index + 1) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowDown') next = (index + 1) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowLeft') next = (index - 1 + buttons.length) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowUp') next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home' && buttons.length) next = 0;+ else if (event.key === 'End' && buttons.length) next = buttons.length - 1;+ if (next !== null) {+ event.preventDefault();+ event.stopPropagation();+ buttons[next].focus();+ return;+ }+ var action = actionForKey(event.key.length === 1 ? event.key.toLowerCase() : event.key);+ if (!action) return;+ event.preventDefault();+ event.stopPropagation();+ execute(action);+ });+ document.addEventListener('click', function (event) {+ if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ });++ renderFacts();+ return {+ open: open,+ close: close,+ toggle: toggle,+ execute: execute,+ isOpen: function () { return !panel.hidden; },+ facts: function () {+ return {+ nodes: svg.querySelectorAll('[data-node-id]').length,+ relationships: relationshipCount()+ };+ }+ };+ })();++ /* ============================================================+ Global keyboard shortcuts+ ? -> open Diagram Guide+ T -> toggle theme+ S -> cycle visual style+ E -> open export menu+ F -> toggle presentation stage+ M -> toggle Semantic Radar+ L -> toggle Semantic Lens+ R -> start/clear Route Probe+ / -> open node finder or the active route endpoint picker+ + / - -> zoom, 0 -> reset view+ Escape -> clear temporary trace/focus/view first, then exit presentation+ Ignored when focus is inside an input/textarea/contenteditable.+ ============================================================ */+ document.addEventListener('keydown', function (e) {+ if (e.metaKey || e.ctrlKey || e.altKey) return;+ if (e.defaultPrevented) return;+ var t = e.target;+ if (t && (t.tagName === 'INPUT' || t.tagName === 'TEXTAREA' || t.isContentEditable)) return;+ if (Archify.preset && Archify.preset.isOpen() && e.key !== 'Escape' && e.key !== 's' && e.key !== 'S') {+ Archify.preset.close(false);+ }+ if (e.key === '?') {+ e.preventDefault();+ Archify.guide.toggle();+ } else if (e.key === '/') {+ e.preventDefault();+ Archify.finder.open();+ } else if (e.key === 't' || e.key === 'T') {+ e.preventDefault();+ Archify.theme.toggle();+ } else if (e.key === 's' || e.key === 'S') {+ e.preventDefault();+ Archify.preset.cycle();+ } else if (e.key === 'e' || e.key === 'E') {+ e.preventDefault();+ if (!Archify.exportMenu.isOpen()) Archify.exportMenu.open();+ } else if (e.key === 'f' || e.key === 'F') {+ e.preventDefault();+ Archify.presentation.toggle();+ } else if (e.key === 'm' || e.key === 'M') {+ e.preventDefault();+ Archify.radar.toggle();+ } else if (e.key === 'l' || e.key === 'L') {+ e.preventDefault();+ Archify.semanticLens.toggle();+ } else if (e.key === 'r' || e.key === 'R') {+ e.preventDefault();+ Archify.routeProbe.toggle({ focusNode: true });+ } else if (e.key === '+' || e.key === '=') {+ e.preventDefault();+ Archify.view.zoomIn();+ } else if (e.key === '-') {+ e.preventDefault();+ Archify.view.zoomOut();+ } else if (e.key === '0') {+ e.preventDefault();+ Archify.view.reset();+ } else if (e.key === 'Escape' && Archify.preset.isOpen()) {+ e.preventDefault();+ Archify.preset.close(true);+ } else if (e.key === 'Escape' && Archify.semanticLens.isOpen()) {+ e.preventDefault();+ Archify.semanticLens.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.semanticLens.active()) {+ e.preventDefault();+ Archify.semanticLens.clear({ preserveView: true });+ } else if (e.key === 'Escape' && Archify.guide.isOpen()) {+ e.preventDefault();+ Archify.guide.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.radar.isOpen()) {+ e.preventDefault();+ Archify.radar.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.routeProbe.active()) {+ e.preventDefault();+ Archify.routeProbe.escape({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.intentTrace.active()) {+ e.preventDefault();+ Archify.intentTrace.clear();+ } else if (e.key === 'Escape' && Archify.focus.active()) {+ e.preventDefault();+ Archify.focus.clear({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.presentation.active()) {+ e.preventDefault();+ Archify.presentation.exit();+ }+ });+ </script>+</body>+</html>diff --git a/examples/subscription-billing-rendered.html b/examples/subscription-billing-rendered.htmlnew file mode 100644index 00000000..1c4e5d29--- /dev/null+++ b/examples/subscription-billing-rendered.html@@ -0,0 +1,14167 @@+<!DOCTYPE html>+<html lang="en" data-theme="dark" data-preset="classic">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta name="generator" content="archify 3.0.2-dev.1">+ <meta name="archify-reader-contract" content="declared-wide-v1">+ <title>Subscription billing schema Diagram</title>+ <script>+ // Resolve the theme before first paint so light-preference users don't+ // see a dark flash. The toolbar script below re-applies with UI state.+ (function () {+ try {+ var theme = null;+ try {+ var param = new URLSearchParams(window.location.search).get('theme');+ if (param === 'light' || param === 'dark') theme = param;+ if (new URLSearchParams(window.location.search).get('embed') === '1') {+ document.documentElement.setAttribute('data-embed', 'true');+ }+ if (new URLSearchParams(window.location.search).get('present') === '1') {+ document.documentElement.setAttribute('data-present', 'true');+ }+ } catch (_) {}+ if (!theme) {+ try { theme = localStorage.getItem('archify-theme'); } catch (_) {}+ }+ if (theme !== 'light' && theme !== 'dark') {+ theme = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';+ }+ document.documentElement.setAttribute('data-theme', theme);+ } catch (_) {}+ })();+ </script>+ <style id="archify-fonts">+/*+JetBrains Mono variable WOFF2 subsets from Google Fonts service revision v24.+These fixed bytes are shared by the viewer and its SVG/raster exports.+No local() source: an installed copy must not override the bundled font.+Uncovered characters (including CJK) still use the system fallback stack.+Upstream: https://github.com/JetBrains/JetBrainsMono++cyrillic-ext 1664 bytes sha256 9343de2ca5d9549f792e7962375af8efb0f320c7643bfd36c884b5a30e5c396f+cyrillic 8892 bytes sha256 4995a9a43ac659ec32fcd8b463755cd6a07b31a6e6b3894a6a153b661cf490e2+greek 6800 bytes sha256 49c3da6c9a2b279b0f1f860f5cfb1f5dc38d88a5c7be9c9b1837bbc4e3db6111+vietnamese 5872 bytes sha256 d44eb1936043a56038eb02dd70b243f379bef65783f94ec12f277550720411f1+latin-ext 11596 bytes sha256 9c38cb2d0d2d93c1ee6e21fa78db76f13ea7e15e15cc64214c7ca89b6aaa35c4+latin 31340 bytes sha256 2c32b9b3ee358c119e210f6f5195f9bd34894d78a785ff2e95d60e718e400af4++Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+https://openfontlicense.org+++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION & CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.+*/+ /* cyrillic-ext */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAAaAABIAAAAADMwAAAYdAAEAAAAAAAAAAA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');+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }+ /* cyrillic */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAACK8ABIAAAAARmAAACJTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoE1G4JgHIFaBmA/U1RBVIEgJx4AgkwvTBEICrporgMLggoAMKw6ATYCJAOEBAQgBYdGB4kHG7Q9RQdy2DiAAS7vZkS1alhU/18T1IqxA6flgFcrUbKj5VbNnlXLwaeDwbp1QnuC56gjzYrVYUfM09q5suLaHUkQV50dVYOIj26jU47IlZS6HX26O7S6VQJNqV6RcRcvsUAQII6oCK8Iu2mJiGj0lbNNfv915sno33zICElmoYK1snoO9x4ZgoQycWQEkjCsiF3igH/+3aw/UUIgZoRc8CIaKNsy7I6Id8U6+0QMmicmH98m2lGjQsWg7fC4rX/GRXlV6hVOVBAYeQzG3oA5QhhREzZSDsy8ai/KX1lexQ/5fdfe77h/t2zmAwnMQNS8XJNTe71y53BmES9PtGhcdjddmYF5Hvnplektv8fZF9WsH3X2PpAUWbLj5IgLgGPnKbJze4ety/rXAlKO0AEFDOJ5270/ol1gXWCBR5AATa2Byydp0/756aEcCuM5BMYhlMWoWVg4td0VrEW873we4D6NuDiaDTigbNtFBA01zRucdKtyYsbau/Ylw818WV/15quCBtElSPDFNq1gu4PrCh3/MpoYAQSwsw76HuYAm+/vVdX1P0E4ga5gKphK+cI7pGsY08qWYSxrnz7wBZKfn7QAUHJA0XQIi76AKhdQ8l3pcEVabVO+qBTbaVJKLWMrU+3rlnFM5vD81z3j5r+Di4FRsw+auZu0mKdlKUaQMGUyVONOtki2UuHREIwdOn6N/8daxcfsuGwuatyWeAwS/gwJkdjWvc6rQxDIip5TBBqvgGEfo3k41TziVqCQURGjeeJomYwOU85jm4boTuboAdboYY7oce7oWUH6BOQ8ntYQfVacvgoY0d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SwVULKmvIESVKVI220cb3arUQwNLoJQ5UJnoSUkjVOWthSjbob20ZyKRdSN7osOfBGp/zbeWfb5Sv2IZTse/ye/d7w+gv/rv08vPufXPP/uL/xRy/vzPXhAAAA) format('woff2');+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }+ /* greek */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAABqQABIAAAAANggAABopAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnwbHhyBWgZgP1NUQVSBICceAIFiL0wRCAqrfKMTC4FmADCgXAE2AiQDg0QEIAWHRgeHQRt7L1UHctg4AONHDw/J/98StCEx8OvQuaoS6nSKOb1TAFiw0Fg4OrHmUFx9lE0RHuCAwNZTYLzu0qIYrA2BIRRRhOaLtZ08a/sp9zYCdQA8KAuMM8JgShJLBIph0a9CVKNU5Kz3C6kz9f9u+04Z3maEJLM+PW3a+3+XBRaLKxEnQkSEEoEu1rSppBKruKauuYp7ciJWOcmUo7nhJS8iHiFtjmq7+WH3ih3OVZkJbJviPSALIQK9R2ufHSCVMDwf3t6dTUbxJMCBZZzEHGDq/dW5+BuhCCwAyNGp7Qbfqz4neKAyTZqkGLqcOXD2yAf6S9CXBKjiYHe7/6RBBJEETaIBSYQfAEpOU/IgUnwldDH6e5eQmMaEF7GNOjhvxlN4rPb8O1d9ZTAkFFEhK06K6oYYy9vXX9FcKceGqruiyWE2JCclRgHFyIg66EQRUWcsdUzg/vg/XWk7f2d14NAqqA3ePkfv6RIuurMrd3UqjTRrwUg5rbL7vDodg9Y+ExzrQgidzOugHCAuSqIOqEyXok1RVKmsstSQWe1WWYkPCB2v22Tun9a18LCMh7GGEmM6XPw5a4EAkANqUzghYDwPnpH3EcgHC+HV1Hy4cD5SFB8jho+XzGulG7k3nqCAJyjlCap5At3xCRr0RWDiCSxAMgAPn2dCCl+VdZCABQC7HQBgbrxidHmvu3FUC5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NaSIxtmLxjw87D7CcEUimzvvaMvQrJFKh7a1EbtzkWYfimFpr8hyr45Oui+xmCPB3eWBTeU+o5OrU93h2NEvITau+GBRDsuKMALQvvoAkNj4q2dvy3Ke6yaDMys/Qwoi8pK6qmG6ZlO67H6xOACsKEhEXgCCQKjcHiRMXw4nr16Tdg0JBhI0aNGTdh0pSEpJQjjjqWDVKdcNIpp51x1jnnmSw2h8vjC0xMzczjqILfNVWWYchvbWNrlyXqHBydnBV3qZnh3f0d16+pTEpINJPFu2uS/MS8Qb8i0iS/+nIJ6sO2VW86iWlDK7vsmdZjJ9d7Dru33D7feGRCPjiD86zYfOUR6rZCC42WGp2Rr74P/2ntaI14mx90h8NW4T18/HC+ErzOJ2xnfb1Hu/LzJJ6C/g40HY9xqtYYAmrJlEsKybqgNeHDCbrq5rthkzAXbafuP620/ZELm2jHHQUmhQtPhImM0Z9ZKPBkmvhDglUC8R0/KNYW8jX00uiLnKg5WNisEz8mklcAFKeBQUTuLiXKiySyC2PPZ8UaekxY87W9XgiaVew0K9qvrECVdCYFgs+TcAnl0F4oSOHb75vWbuJ7krbIHBWfF6H29siCNkklk/eLT5Ur/3XvXTqIvrf733vVumw7TrFoj1RDrZ1tGQAAAAA=) format('woff2');+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }+ /* vietnamese */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAABbwABIAAAAAP8wAABaJAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoEYG4YcHIIWBmA/U1RBVIEgJx4AgwQvTBEICrBAp3ILgjgAMKEmATYCJAOEKAQgBYdGB4xOGw05JeOYFbBxAJizfwap/v9LAidj5+rgVi2AmnKs4xCdVNzZFtedQQYTHrvu9fJjcffSRGkQNsblzkX3scG0IVTkKwtieRAjQYIYSTEMHWyen+61Gx9Jw60vaxE6DsqpIySZ9eH5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C6xGCoRFFlidTBvinumYRq+w6laz1LxPCLfgVlMKAA==) format('woff2');+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }+ /* latin-ext */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAC1MABIAAAAAdAQAACzjAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoJLG4ouHIM+BmA/U1RBVIEgJx4AhTovTBEICuBkzjkLhAwAMMVKATYCJAOIEgQgBYdGB5FVG4xnNXjTMeV2EEi463Muilo1Semz//9z0jFkDP0YgPnK6IQkTGZVRXZVMlEhJrRAsqq2tIQeZfVhf0qr17jt0HuNqAthhO/aPDdxgAtjFWuBDJd7eOb6YRSNJoVoApre9AOKGEQaSY8rp20yx+r3B4Hkct+7VO3Onuv/+YAPXOfnBs8qtx2hsU9yefja7/Xc3RdkVWJUX5VYkkJyGd/6WgQhy5Id2YSPp239PNYAjDwbxACVEIlell0QRUDBVRRXQsTC6Dvvzqv2Ir0q735l86PrKmfZPa2RRiPZsr1aIK9rHQD6vvBFAm8If3mFf6n8EJ/hI9IBycnKMJYsS0OVDWB1zZ5HgCbgDBZFPEEghCf+1Qv/yj3z5lYfxMrYvmGFEV9x+aJ60/v4+cvh/v9VTMYcW0jrpEBaSFtCG/6f/mLn/l20wDJOmkkpsBQCfpM6Uw7asmUZSLLAsULPPBWmXuduU/JK5/W/CDCwbW7Xcpypj4o2uhqCyR6/WcNmLn0v+dIKKAZhUJLB4f//XPlewNw7f0vMwjTwM7zAM7O65cRm7CKosuqpqmbFy6Z2L/vKAs0FmaRg/Pwezl1hck9JvEXu1hBAMR2P3M1zALeHgi9dmWql02gsBVEO8uBbqF74x3so+nQBUlV4b6L7IPqPdmcADBa7ABdLQgQBUgLN3YHHM6C7B89yA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Iqig1E3ncu51JUjrQ/W0rrU1j8rOcFKfL5Bxrf8aXJPP3iaX1i0Ihw6kKYDnce9AfzTHTFfu6lvhQPZR5M4rZuhwqPFgFV0KlVaKQlulXgkirmUDaoala1JyTN3TqfoWaNOMRN/2iLoKnb6XQraK3Wg4hQ7jMl9CXWSd6a5iEbGnlRCSghYiJiYg4qcaMyMlETGBi1o0ylisERGjxGPQSDimWTiUoQaGKMnzs9h6MKm+f8RNGov+fXlcDk9YnTRa2LK8TLnGZ008ikV7Zc+z6JmtbqhfmXHENXoPXxwy5Oo+gY4XBGfo0xu1LT3KPcdlY0CXQigBACAYBBEBwgvMRP/Me5xP6e6wMPqEQaEUF/7yfJXYxebBAYljzdjbyeTFusYyVmX1Ya8dwgc/MvjOZWsRpiyKdvjCHM1ZS6232xGr+PZkqh0XP0ej2eAf7ZPn93+ckEiEFNfwpMlPBEfyV67F8ss2EiBE7fuj6fq3NhFEGJcjoBxj9jZvRG7RWB2JkzXGa0k2KmyAMyiBFVx3kFV+F3BrwwJOs/obXzjaMTPJNjD2pwjDZBQAAAA==) format('woff2');+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }+ /* latin */+ @font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;+ src: url(data:font/woff2;base64,d09GMgABAAAAAHpsABIAAAABMqgAAHoCAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoE4G4caHIGacgZgP1NUQVSBICceAIUiL0wRCAqB3DiBrC4LhhYAMIGcXgE2AiQDjBoEIAWHRgejDFtJFnGBsU2lnge5WVVyxx2bn8k4NuF2FGQmX4ZnRm0XabU42f//JyUdMjTEGqDSdar2O+SQccghITKCZESYriN72BqZaY6RUJB0uPlEx4STwvdg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iyNR+YDlsaUY5FRaj24gUEjEKOdx0jUMjS152iOKAi6znN5ClY6+aQGyg/PmzqAppe/TplnFb8KaaqRSFIlDk7YDUIXBwkk7bzRe6U8VZufX2Us2C8eHJ+lwrxATkSNdSQUPNF4pwDVKYv2Pr1LO4dn6JR/Jn+eoq7ltPCnngDq88an2NdKoXqdm0GGBl9oD+iCgJquEFpPPT4IlJVxt2bVNyhnIDb79BtuqmL0/UC4p84EzV3O04zpcu2hHTvclQQHPraEFXLbC3gTNBbCw81EPB6YbgVhi7SQq59Ez3MnLKitWcJJJOl9CMpn2ngu6AGy9lEF+k1iAM4nyWBwIEwpxODYS0qRUgMnuo2+S0bUJGj9PBNnBZeVsBozZ/wB2g69LwLrOVINXQ3jP3/Vw71ve2/7zs=) format('woff2');+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }+ </style>+ <style>+ /* ==========================================================+ THEME VARIABLES — switch by toggling [data-theme] on <html>+ ========================================================== */+ :root,+ [data-theme="dark"] {+ --bg: #020617;+ --grid: #1e293b;+ --canvas-dot: rgba(148, 163, 184, 0.16);+ --text: #ffffff;+ --text-muted: #94a3b8;+ --text-dim: #475569;+ /* UI chrome and menu hints need more contrast than SVG .t-dim accents */+ --text-faint: #7d8da1;++ --panel: rgba(15, 23, 42, 0.5);+ --panel-border: #1e293b;+ --lane-fill: rgba(15, 23, 42, 0.22);+ --lane-stroke: #334155;++ --arrow: #64748b;+ --arrow-emphasis: #34d399;++ /* Opaque mask color used behind semi-transparent component fills+ so the arrows drawn underneath are properly hidden. */+ --mask: #0f172a;++ --frontend-fill: rgba(8, 51, 68, 0.4);+ --frontend-stroke: #22d3ee;+ --backend-fill: rgba(6, 78, 59, 0.4);+ --backend-stroke: #34d399;+ --database-fill: rgba(76, 29, 149, 0.4);+ --database-stroke: #a78bfa;+ --cloud-fill: rgba(120, 53, 15, 0.3);+ --cloud-stroke: #fbbf24;+ --security-fill: rgba(136, 19, 55, 0.4);+ --security-stroke: #fb7185;+ --messagebus-fill: rgba(251, 146, 60, 0.3);+ --messagebus-stroke:#fb923c;+ --external-fill: rgba(30, 41, 59, 0.5);+ --external-stroke: #94a3b8;++ --toolbar-bg: rgba(15, 23, 42, 0.8);+ --toolbar-border: #334155;+ --toolbar-text: #e2e8f0;+ --toolbar-hover: rgba(15, 23, 42, 0.95);+ --toolbar-menu-bg: #0f172a;+ }++ [data-theme="light"] {+ --bg: #f4f5f7;+ --grid: #e9edf2;+ --canvas-dot: #d9dee5;+ --text: #111827;+ --text-muted: #5b6474;+ --text-dim: #9aa3b2;+ --text-faint: #6b7280;++ --panel: #ffffff;+ --panel-border: #e5e7eb;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;++ --arrow: #94a3b8;+ --arrow-emphasis: #059669;++ --mask: #ffffff;++ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke: #ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;++ --toolbar-bg: rgba(255, 255, 255, 0.92);+ --toolbar-border: #cbd5e1;+ --toolbar-text: #334155;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #ffffff;+ }++ /* ==========================================================+ SIGNAL FLOW — an opt-in, motion-forward visual preset.+ The variables also target a standalone exported SVG, whose+ root carries data-preset and data-theme directly.+ ========================================================== */+ [data-preset="signal-flow"][data-theme="dark"] {+ --bg: #030711;+ --grid: #15233a;+ --panel: rgba(6, 14, 28, 0.78);+ --panel-border: #1d3350;+ --lane-fill: rgba(9, 22, 40, 0.5);+ --lane-stroke: #2c4564;+ --text: #f5fbff;+ --text-muted: #9eb0c7;+ --text-dim: #52667f;+ --text-faint: #7890ad;+ --mask: #07101e;+ --frontend-fill: rgba(6, 182, 212, 0.14);+ --frontend-stroke: #67e8f9;+ --backend-fill: rgba(16, 185, 129, 0.14);+ --backend-stroke: #5eead4;+ --database-fill: rgba(139, 92, 246, 0.16);+ --database-stroke: #c4b5fd;+ --cloud-fill: rgba(245, 158, 11, 0.13);+ --cloud-stroke: #fcd34d;+ --security-fill: rgba(244, 63, 94, 0.13);+ --security-stroke: #fda4af;+ --messagebus-fill: rgba(249, 115, 22, 0.13);+ --messagebus-stroke: #fdba74;+ --external-fill: rgba(71, 85, 105, 0.24);+ --external-stroke: #a5b4c7;+ --arrow: #7890ad;+ --arrow-emphasis: #2dd4bf;+ --toolbar-bg: rgba(7, 16, 30, 0.86);+ --toolbar-border: #29415f;+ --toolbar-menu-bg: #07101e;+ }++ [data-preset="signal-flow"][data-theme="light"] {+ --bg: #f4f9fc;+ --grid: #d4e5ee;+ --panel: rgba(255, 255, 255, 0.82);+ --panel-border: #bfd5e2;+ --lane-fill: rgba(232, 243, 248, 0.62);+ --lane-stroke: #a9c5d5;+ --text: #102638;+ --text-muted: #587287;+ --text-dim: #8aa2b4;+ --text-faint: #668397;+ --mask: #ffffff;+ --frontend-fill: rgba(6, 182, 212, 0.09);+ --frontend-stroke: #0789a1;+ --backend-fill: rgba(5, 150, 105, 0.09);+ --backend-stroke: #087f69;+ --database-fill: rgba(124, 58, 237, 0.09);+ --database-stroke: #7254c7;+ --cloud-fill: rgba(217, 119, 6, 0.08);+ --cloud-stroke: #b9670b;+ --security-fill: rgba(225, 29, 72, 0.08);+ --security-stroke: #c53a59;+ --messagebus-fill: rgba(234, 88, 12, 0.08);+ --messagebus-stroke: #c65f27;+ --external-fill: rgba(100, 116, 139, 0.1);+ --external-stroke: #607a8c;+ --arrow: #7b97aa;+ --arrow-emphasis: #0d9488;+ }++ /* ==========================================================+ BLUEPRINT — a review-first drafting preset for deployment,+ infrastructure, and technical design documentation. It keeps+ the same semantic palette and geometry while trading glow for+ precise grid contrast, squared materials, and drafting marks.+ ========================================================== */+ [data-preset="blueprint"][data-theme="dark"] {+ --bg: #06131f;+ --grid: #17425a;+ --panel: rgba(7, 27, 43, 0.9);+ --panel-border: #27627f;+ --lane-fill: rgba(10, 43, 66, 0.36);+ --lane-stroke: #34799a;+ --text: #e3f6ff;+ --text-muted: #91b8ca;+ --text-dim: #557e92;+ --text-faint: #739caf;+ --mask: #0a2031;+ --frontend-fill: rgba(26, 157, 193, 0.14);+ --frontend-stroke: #66d9ef;+ --backend-fill: rgba(31, 155, 124, 0.13);+ --backend-stroke: #69dfbd;+ --database-fill: rgba(120, 105, 196, 0.14);+ --database-stroke: #b4a8ff;+ --cloud-fill: rgba(197, 145, 43, 0.13);+ --cloud-stroke: #ffd166;+ --security-fill: rgba(199, 76, 104, 0.13);+ --security-stroke: #ff8da1;+ --messagebus-fill: rgba(207, 112, 49, 0.13);+ --messagebus-stroke: #ffad66;+ --external-fill: rgba(84, 119, 139, 0.18);+ --external-stroke: #a7cad9;+ --arrow: #78a3b7;+ --arrow-emphasis: #64dfc1;+ --toolbar-bg: rgba(7, 28, 45, 0.92);+ --toolbar-border: #34799a;+ --toolbar-text: #d8f3ff;+ --toolbar-hover: rgba(18, 58, 83, 0.95);+ --toolbar-menu-bg: #0a2031;+ }++ [data-preset="blueprint"][data-theme="light"] {+ --bg: #edf7fa;+ --grid: #b5d5e1;+ --panel: rgba(249, 253, 255, 0.94);+ --panel-border: #78aabd;+ --lane-fill: rgba(210, 232, 240, 0.42);+ --lane-stroke: #83b2c4;+ --text: #123344;+ --text-muted: #4e7486;+ --text-dim: #86a6b4;+ --text-faint: #668c9d;+ --mask: #f9fdff;+ --frontend-fill: rgba(8, 145, 178, 0.08);+ --frontend-stroke: #087f9c;+ --backend-fill: rgba(5, 128, 101, 0.08);+ --backend-stroke: #08755f;+ --database-fill: rgba(100, 75, 180, 0.08);+ --database-stroke: #6757a8;+ --cloud-fill: rgba(181, 120, 15, 0.08);+ --cloud-stroke: #a86609;+ --security-fill: rgba(190, 48, 80, 0.07);+ --security-stroke: #b32f50;+ --messagebus-fill: rgba(196, 81, 22, 0.07);+ --messagebus-stroke: #b65120;+ --external-fill: rgba(79, 112, 128, 0.08);+ --external-stroke: #506f7e;+ --arrow: #6d93a5;+ --arrow-emphasis: #087f69;+ --toolbar-bg: rgba(247, 252, 254, 0.94);+ --toolbar-border: #8ab5c5;+ --toolbar-text: #294f61;+ --toolbar-hover: #ffffff;+ --toolbar-menu-bg: #f9fdff;+ }++ /* ==========================================================+ EDITORIAL — a warm, publication-minded preset for design+ reviews, launch notes, and documentation. The diagram keeps+ the same semantic palette and exact geometry, but trades+ software chrome for paper, ink, ruled structure, and one+ restrained vermilion accent.+ ========================================================== */+ [data-preset="editorial"][data-theme="dark"] {+ --bg: #181611;+ --grid: #39342a;+ --panel: rgba(35, 31, 24, 0.96);+ --panel-border: #625a4a;+ --lane-fill: rgba(52, 46, 35, 0.46);+ --lane-stroke: #726957;+ --text: #f4eddf;+ --text-muted: #b9ae9b;+ --text-dim: #776e60;+ --text-faint: #9d917e;+ --mask: #231f18;+ --frontend-fill: rgba(43, 133, 142, 0.16);+ --frontend-stroke: #7fc6c7;+ --backend-fill: rgba(63, 132, 92, 0.16);+ --backend-stroke: #8fc29e;+ --database-fill: rgba(117, 91, 141, 0.17);+ --database-stroke: #c0a4d0;+ --cloud-fill: rgba(170, 119, 49, 0.16);+ --cloud-stroke: #d8ad68;+ --security-fill: rgba(157, 69, 65, 0.17);+ --security-stroke: #df9085;+ --messagebus-fill: rgba(174, 79, 42, 0.16);+ --messagebus-stroke: #df946f;+ --external-fill: rgba(126, 115, 96, 0.18);+ --external-stroke: #b8ad99;+ --arrow: #948978;+ --arrow-emphasis: #dd6b3d;+ --toolbar-bg: rgba(35, 31, 24, 0.92);+ --toolbar-border: #625a4a;+ --toolbar-text: #eee5d5;+ --toolbar-hover: #302a20;+ --toolbar-menu-bg: #231f18;+ }++ [data-preset="editorial"][data-theme="light"] {+ --bg: #f2eee5;+ --grid: #d8d0c2;+ --panel: rgba(251, 248, 241, 0.97);+ --panel-border: #c4b9a6;+ --lane-fill: rgba(229, 221, 207, 0.42);+ --lane-stroke: #b8aa94;+ --text: #242018;+ --text-muted: #6f6658;+ --text-dim: #a09788;+ --text-faint: #817767;+ --mask: #fbf8f1;+ --frontend-fill: rgba(31, 117, 126, 0.09);+ --frontend-stroke: #287e84;+ --backend-fill: rgba(42, 119, 75, 0.09);+ --backend-stroke: #397b53;+ --database-fill: rgba(105, 75, 130, 0.09);+ --database-stroke: #765d86;+ --cloud-fill: rgba(157, 103, 31, 0.1);+ --cloud-stroke: #9a671f;+ --security-fill: rgba(153, 58, 52, 0.09);+ --security-stroke: #9e463f;+ --messagebus-fill: rgba(182, 70, 27, 0.09);+ --messagebus-stroke: #ad4b25;+ --external-fill: rgba(101, 91, 75, 0.09);+ --external-stroke: #746b5e;+ --arrow: #8a806f;+ --arrow-emphasis: #bb4c23;+ --toolbar-bg: rgba(251, 248, 241, 0.94);+ --toolbar-border: #c4b9a6;+ --toolbar-text: #40392f;+ --toolbar-hover: #fffdf8;+ --toolbar-menu-bg: #fbf8f1;+ }++ * { margin: 0; padding: 0; box-sizing: border-box; }++ body {+ --archify-page-top: 2rem;+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;+ -webkit-font-smoothing: antialiased;+ background: var(--bg);+ min-height: 100vh;+ padding: var(--archify-page-top) 2rem 2rem;+ color: var(--text);+ /* Theme surfaces change together; animating the page background leaves it+ visibly out of sync with the SVG and panel for the first 200ms. */+ }++ html[data-preset="signal-flow"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(34, 211, 238, 0.14), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.12), transparent 30rem);+ background-attachment: fixed;+ }+ html[data-preset="signal-flow"][data-theme="light"] body {+ background-image:+ radial-gradient(circle at 18% -8%, rgba(6, 182, 212, 0.12), transparent 34rem),+ radial-gradient(circle at 92% 18%, rgba(139, 92, 246, 0.08), transparent 30rem);+ }+ html[data-preset="blueprint"] body {+ background-image:+ linear-gradient(var(--grid) 1px, transparent 1px),+ linear-gradient(90deg, var(--grid) 1px, transparent 1px);+ background-size: 32px 32px;+ background-position: -1px -1px;+ background-attachment: fixed;+ }+ html[data-preset="editorial"] body {+ background-image:+ linear-gradient(90deg, transparent 0, transparent 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) 5.4rem, color-mix(in srgb, var(--security-stroke) 18%, transparent) calc(5.4rem + 1px), transparent calc(5.4rem + 1px)),+ repeating-linear-gradient(0deg, transparent 0, transparent 31px, color-mix(in srgb, var(--grid) 36%, transparent) 31px, color-mix(in srgb, var(--grid) 36%, transparent) 32px);+ background-attachment: fixed;+ }++ /* Gallery/embed mode keeps the generated artifact as the source of truth+ while presenting only its diagram surface inside a proof card. */+ html[data-embed="true"] body {+ min-height: 0;+ padding: 0;+ overflow: hidden;+ background: var(--bg);+ background-image: none;+ }+ html[data-embed="true"] .toolbar,+ html[data-embed="true"] .header,+ html[data-embed="true"] .cards,+ html[data-embed="true"] .diagram-nav,+ html[data-embed="true"] .overview-map,+ html[data-embed="true"] .focus-chip,+ html[data-embed="true"] .route-probe,+ html[data-embed="true"] .semantic-lens,+ html[data-embed="true"] .diagram-guide,+ html[data-embed="true"] .node-finder,+ html[data-embed="true"] .node-outline { display: none !important; }+ html[data-embed="true"] .container { max-width: none; }+ html[data-embed="true"] .diagram-container {+ padding: 0.5rem;+ border: 0;+ border-radius: 0;+ box-shadow: none;+ }+ html[data-embed="true"] .diagram-container svg { min-width: 0; }++ /* Presentation Stage is a viewer-only layer: it gives the live diagram+ the viewport while keeping guided views, theme, focus, and exports real.+ Embed mode wins when both query parameters are present. */+ html[data-present="true"]:not([data-embed="true"]) body {+ --archify-page-top: 1rem;+ height: 100dvh;+ min-height: 0;+ padding: 1rem;+ overflow: hidden;+ }+ html[data-present="true"]:not([data-embed="true"]) .container {+ display: flex;+ flex-direction: column;+ gap: 0.75rem;+ width: 100%;+ max-width: none;+ height: calc(100dvh - 2rem);+ }+ html[data-present="true"]:not([data-embed="true"]) .header {+ flex: none;+ min-width: 0;+ margin: 0;+ padding-right: 23rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row { margin-bottom: 0.25rem; }+ html[data-present="true"]:not([data-embed="true"]) .subtitle {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ html[data-present="true"]:not([data-embed="true"]) .diagram-container {+ display: flex;+ flex: 1 1 auto;+ align-items: center;+ justify-content: center;+ min-height: 0;+ padding: 0.75rem;+ padding-bottom: calc(0.75rem + var(--archify-nav-reserve));+ }+ html[data-present="true"]:not([data-embed="true"]) .diagram-container > svg {+ flex: 1 1 auto;+ height: 100%;+ min-height: 0;+ width: 100%;+ min-width: 0;+ }+ html[data-present="true"]:not([data-embed="true"]) .cards { display: none; }+ html[data-present="true"]:not([data-embed="true"]) #btn-present {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+ }++ /* The reader owns only the outer scale. Wide diagrams and measured tall workflows keep one authored+ SVG/viewBox while the runtime chooses a desktop width from the actual+ vertical budget. This avoids device-specific files and breakpoint+ jumps between a laptop and a tall monitor. */+ .container {+ width: 100%;+ max-width: var(--archify-reader-width, 1440px);+ margin: 0 auto;+ }+ html[data-reader-narrow="true"]:not([data-present="true"]) .diagram-container > svg {+ min-width: 0;+ max-width: var(--archify-diagram-max-width);+ margin-inline: auto;+ }+ @media (min-width: 768px) and (max-height: 920px) {+ .header { margin-bottom: 1rem; }+ .diagram-container { padding: 1rem; }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }++ .header { margin-bottom: 1.5rem; padding-right: 29.5rem; }++ html[data-preset="signal-flow"] .header,+ html[data-preset="blueprint"] .header,+ html[data-preset="editorial"] .header { padding-right: 29.5rem; }++ .header-row {+ display: flex;+ align-items: center;+ gap: 0.75rem;+ min-height: 2.75rem;+ margin-bottom: 0.25rem;+ }++ .pulse-dot {+ flex: none;+ width: 10px;+ height: 10px;+ background: var(--frontend-stroke);+ border-radius: 50%;+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--frontend-stroke) 16%, transparent);+ animation: none;+ }++ html[data-motion-capable="true"] .pulse-dot { animation: pulse 2s infinite; }++ @keyframes pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.5; }+ }++ h1 {+ font-size: 1.5rem;+ font-weight: 650;+ line-height: 1.25;+ letter-spacing: -0.015em;+ }++ .subtitle {+ color: var(--text-muted);+ font-size: 0.875rem;+ line-height: 1.55;+ margin-left: 1.375rem;+ }++ html[data-preset="signal-flow"] .header-row::after {+ content: attr(data-preset-badge-signal-flow);+ flex: none;+ margin-left: 0.25rem;+ color: var(--frontend-stroke);+ border: 1px solid var(--frontend-stroke);+ border-radius: 999px;+ padding: 0.28rem 0.6rem;+ font-size: 0.625rem;+ letter-spacing: 0.12em;+ opacity: 0.82;+ box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);+ white-space: nowrap;+ }++ html[data-preset="blueprint"] .pulse-dot {+ width: 10px;+ height: 10px;+ border: 1px solid var(--frontend-stroke);+ border-radius: 1px;+ background: transparent;+ box-shadow: inset 0 0 0 2px var(--bg);+ transform: rotate(45deg);+ animation: none;+ }+ html[data-preset="blueprint"] .header-row::after {+ content: attr(data-preset-badge-blueprint);+ flex: none;+ margin-left: 0.25rem;+ padding: 0.28rem 0.55rem;+ border-top: 1px solid var(--frontend-stroke);+ border-bottom: 1px solid var(--frontend-stroke);+ color: var(--frontend-stroke);+ font-size: 0.5625rem;+ font-weight: 700;+ letter-spacing: 0.14em;+ white-space: nowrap;+ }++ html[data-preset="editorial"] h1,+ html[data-preset="editorial"] .card h3 {+ font-family: Georgia, 'Times New Roman', 'Songti SC', STSong, serif;+ letter-spacing: -0.02em;+ }+ html[data-preset="editorial"] h1 { font-size: 1.72rem; font-weight: 600; }+ html[data-preset="editorial"] .pulse-dot {+ width: 9px;+ height: 9px;+ border: 1px solid var(--arrow-emphasis);+ border-radius: 0;+ background: var(--arrow-emphasis);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);+ transform: rotate(45deg);+ animation: none;+ }+ html[data-preset="editorial"] .header-row::after {+ content: attr(data-preset-badge-editorial);+ flex: none;+ margin-left: 0.25rem;+ padding: 0.32rem 0 0.24rem;+ border-bottom: 2px solid var(--arrow-emphasis);+ color: var(--arrow-emphasis);+ font-family: Georgia, 'Times New Roman', serif;+ font-size: 0.625rem;+ font-style: italic;+ font-weight: 600;+ letter-spacing: 0.08em;+ white-space: nowrap;+ }++ .diagram-container {+ --archify-nav-reserve: 0px;+ background: var(--panel);+ border-radius: 1rem;+ border: 1px solid var(--panel-border);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -20px rgba(15, 23, 42, 0.18);+ padding: 1.5rem;+ padding-bottom: calc(1.5rem + var(--archify-nav-reserve));+ overflow: hidden;+ position: relative;+ }++ html[data-preset="signal-flow"] .diagram-container {+ position: relative;+ overflow: hidden;+ background: linear-gradient(180deg, rgba(8, 20, 38, 0.82), rgba(3, 8, 18, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 80px rgba(0, 0, 0, 0.34);+ }+ html[data-preset="signal-flow"][data-theme="light"] .diagram-container {+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 250, 0.94));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 24px 60px rgba(45, 78, 99, 0.12);+ }+ html[data-preset="blueprint"] .diagram-container {+ border-color: var(--panel-border);+ border-radius: 0.35rem;+ background: var(--panel);+ box-shadow:+ inset 0 0 0 1px color-mix(in srgb, var(--panel-border) 34%, transparent),+ 0 18px 48px rgba(0, 0, 0, 0.16);+ }+ html[data-preset="blueprint"] .diagram-container::after {+ content: "";+ position: absolute;+ z-index: 10;+ inset: 0.7rem;+ pointer-events: none;+ background:+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right top / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) left bottom / 1px 1.35rem no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1.35rem 1px no-repeat,+ linear-gradient(var(--frontend-stroke), var(--frontend-stroke)) right bottom / 1px 1.35rem no-repeat;+ opacity: 0.58;+ }+ html[data-preset="editorial"] .diagram-container {+ overflow: hidden;+ border-color: var(--panel-border);+ border-radius: 0.38rem;+ background:+ linear-gradient(90deg, color-mix(in srgb, var(--security-fill) 58%, transparent), transparent 12%),+ var(--panel);+ box-shadow:+ 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),+ 0 18px 48px color-mix(in srgb, #000 19%, transparent);+ }+ html[data-preset="editorial"] .diagram-container::after {+ position: absolute;+ z-index: 10;+ top: 0.72rem;+ right: 1.25rem;+ padding: 0.2rem 0.52rem;+ border: 1px solid var(--panel-border);+ background: var(--panel);+ color: var(--arrow-emphasis);+ content: attr(data-preset-badge-editorial-plate);+ font-family: Georgia, 'Times New Roman', serif;+ font-size: 0.52rem;+ font-style: italic;+ font-weight: 600;+ letter-spacing: 0.09em;+ pointer-events: none;+ }+ html[data-embed="true"][data-preset="editorial"] .diagram-container::after { display: none; }+ html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-motion="running"] .diagram-container::before {+ content: "";+ position: absolute;+ inset: 0;+ pointer-events: none;+ background: linear-gradient(115deg, transparent 28%, rgba(103, 232, 249, 0.035) 48%, transparent 68%);+ transform: translateX(-70%);+ animation: archify-signal-scan 4.8s ease-in-out 1 both;+ }++ /* Motion Governor gives the reader a real static state and gives the+ strongest semantic action the only motion budget. Atmosphere resets to+ its authored base instead of freezing mid-cycle. Static artifacts never+ start a decorative pulse or scan. */+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ }+ html:not([data-motion-capable="true"]) svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ }+ html[data-motion="still"] .pulse-dot,+ html[data-motion="still"] .diagram-container::before,+ html[data-motion="still"] svg[data-animation="trace"] [data-animate],+ html[data-motion-owner] .pulse-dot,+ html[data-motion-owner] .diagram-container::before,+ html[data-motion-owner] svg[data-animation="trace"] [data-animate],+ html[data-embed="true"] .pulse-dot,+ html[data-embed="true"] .diagram-container::before,+ html[data-share-playback="true"] .pulse-dot,+ html[data-share-playback="true"] .diagram-container::before,+ html[data-document-hidden="true"] .pulse-dot,+ html[data-document-hidden="true"] .diagram-container::before,+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-animate],+ html[data-motion="still"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-motion-owner] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-document-hidden="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ }+ html[data-motion="still"] .diagram-container::before,+ html[data-motion-owner] .diagram-container::before,+ html[data-embed="true"] .diagram-container::before,+ html[data-share-playback="true"] .diagram-container::before {+ opacity: 0;+ }+ html[data-motion="still"] .intent-trace-flow,+ html[data-motion="still"] .route-probe-flow,+ html[data-motion="still"] .route-journey-flow,+ html[data-motion="still"] .semantic-lens-flow,+ html[data-motion="still"] .diagram-guide,+ html[data-motion="still"] .overview-map-live,+ html[data-document-hidden="true"] .intent-trace-flow,+ html[data-document-hidden="true"] .route-probe-flow,+ html[data-document-hidden="true"] .route-journey-flow,+ html[data-document-hidden="true"] .semantic-lens-flow,+ html[data-document-hidden="true"] .diagram-guide,+ html[data-document-hidden="true"] .overview-map-live {+ animation: none !important;+ }++ html[data-motion="still"] .intent-trace-flow,+ html[data-motion="still"] .route-probe-flow {+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+ }+ html[data-motion="still"] .route-journey-overlay,+ html[data-document-hidden="true"] .route-journey-overlay { display: none !important; }+ html[data-motion="still"] .relationship-pulse-overlay { display: none !important; }++ html[data-motion="still"] svg [data-node-id],+ html[data-motion="still"] svg [data-edge-from],+ html[data-motion="still"] svg [data-detail],+ html[data-motion="still"] svg [data-detail-anchor],+ html[data-motion="still"] svg [data-legend-hit],+ html[data-motion="still"] svg {+ transition: none !important;+ }++ svg {+ font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace;+ width: 100%;+ min-width: min(900px, 100%);+ display: block;+ transform-origin: 0 0;+ transition: transform 0.18s ease;+ }++ .diagram-container.is-camera-moving svg {+ transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);+ }+ .diagram-container.is-camera-transaction svg { transition: none; }+ .diagram-container.is-pannable { cursor: grab; }+ .diagram-container.is-panning { cursor: grabbing; user-select: none; }+ .diagram-container.is-panning svg { transition: none; }++ .diagram-nav {+ position: absolute;+ right: 1rem;+ bottom: 1rem;+ z-index: 12;+ translate: 0 calc(-1 * var(--archify-dock-lift, 0px));+ display: inline-flex;+ align-items: center;+ max-width: calc(100% - 2rem);+ padding: 0.25rem;+ gap: 0.0625rem;+ overflow-x: auto;+ border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ border-radius: 0.75rem;+ background: color-mix(in srgb, var(--panel) 84%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(14px) saturate(1.2);+ scrollbar-width: none;+ }+ .diagram-nav::-webkit-scrollbar { display: none; }+ .diagram-nav button,+ .focus-chip button {+ border: 0;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+ }+ .diagram-nav button {+ min-width: 2rem;+ height: 2rem;+ padding: 0 0.4rem;+ border-radius: 0.5rem;+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ letter-spacing: 0;+ transition: background 0.15s, color 0.15s;+ }+ .diagram-nav button:hover,+ .diagram-nav button:focus-visible {+ color: var(--text);+ background: color-mix(in srgb, var(--text) 6%, transparent);+ }+ .diagram-nav button:hover,+ .diagram-nav button:focus-visible,+ .focus-chip button:hover,+ .focus-chip button:focus-visible { background: var(--toolbar-hover); }+ .diagram-nav button:focus-visible,+ .focus-chip button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .diagram-nav button:disabled { opacity: 0.38; cursor: default; }+ /* The Guide stays on the ? shortcut; Map only earns dock space once the+ reader has zoomed past the full diagram (or opened it from the keyboard). */+ .diagram-nav button[hidden] { display: none; }+ .diagram-container:not(.is-pannable) #btn-overview-map:not([data-radar-requested]):not(:focus) { display: none; }+ .diagram-nav button:disabled:hover { background: transparent; }+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ min-width: auto;+ padding-inline: 0.6rem;+ color: var(--text-muted);+ font-weight: 500;+ }+ .diagram-nav #btn-node-finder,+ .diagram-nav [data-view="out"] {+ position: relative;+ margin-left: 0.375rem;+ }+ .diagram-nav #btn-node-finder::before,+ .diagram-nav [data-view="out"]::before {+ position: absolute;+ top: 0.55rem;+ bottom: 0.55rem;+ left: -0.19rem;+ width: 1px;+ background: color-mix(in srgb, var(--panel-border) 90%, transparent);+ content: "";+ pointer-events: none;+ }+ .diagram-nav-icon {+ display: block;+ width: 0.875rem;+ height: 0.875rem;+ margin: auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .diagram-nav-icon.find {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='4.5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m12 12 4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.guide {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.8 7.3a2.4 2.4 0 014.6.9c0 1.8-2.4 2-2.4 3.7M10 14.9h.01' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.minus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav-icon.plus {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .diagram-nav [data-view="reset"] {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.2rem;+ min-width: 3.1rem;+ padding-inline: 0.35rem;+ }+ .diagram-nav [data-view="reset"][data-detail-visible] {+ min-width: 3.8rem;+ }+ .diagram-nav-detail {+ color: color-mix(in srgb, var(--toolbar-text) 52%, transparent);+ font-size: 0.44rem;+ font-weight: 700;+ line-height: 1;+ letter-spacing: 0.07em;+ }+ .diagram-nav-percent {+ color: var(--text-muted);+ font-size: 0.75rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ line-height: 1;+ }+ /* Mode buttons carry a small glyph so the dock reads as one icon language. */+ .diagram-nav #btn-route-probe,+ .diagram-nav #btn-overview-map,+ .diagram-nav #btn-semantic-lens {+ display: inline-flex;+ align-items: center;+ gap: 0.375rem;+ padding-inline: 0.55rem 0.65rem;+ }+ .diagram-nav #btn-route-probe::before,+ .diagram-nav #btn-overview-map::before,+ .diagram-nav #btn-semantic-lens::before {+ flex: none;+ width: 0.875rem;+ height: 0.875rem;+ background: currentColor;+ content: "";+ opacity: 0.85;+ -webkit-mask: var(--nav-glyph) center / contain no-repeat;+ mask: var(--nav-glyph) center / contain no-repeat;+ }+ .diagram-nav #btn-route-probe { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='4.8' cy='14.8' r='2.2'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2'/%3E%3Cpath d='M6.9 13.9c3.8-1.4 2.6-6.3 6.2-7.8'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-overview-map { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.8 5.4 7.4 3.5l5.2 2 4.6-1.9v11l-4.6 1.9-5.2-2-4.6 1.9z'/%3E%3Cpath d='M7.4 3.5v11M12.6 5.5v11'/%3E%3C/g%3E%3C/svg%3E"); }+ .diagram-nav #btn-semantic-lens { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='10' cy='10' r='6.8'/%3E%3Ccircle cx='10' cy='10' r='2.6'/%3E%3C/g%3E%3C/svg%3E"); }+ /* Zoom out / level / zoom in join into one stepper well. */+ .diagram-nav [data-view="out"],+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] {+ border-radius: 0;+ background: color-mix(in srgb, var(--text) 4.5%, transparent);+ }+ .diagram-nav [data-view="out"] { margin-left: 0.375rem; border-radius: 0.5rem 0 0 0.5rem; }+ .diagram-nav [data-view="out"]::before { display: none; }+ .diagram-nav [data-view="reset"],+ .diagram-nav [data-view="in"] { margin-left: -0.0625rem; }+ .diagram-nav [data-view="in"] { border-radius: 0 0.5rem 0.5rem 0; }+ .diagram-nav [data-view="out"]:hover,+ .diagram-nav [data-view="reset"]:hover,+ .diagram-nav [data-view="in"]:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }+ .diagram-nav [data-view="out"]:disabled,+ .diagram-nav [data-view="in"]:disabled { opacity: 1; color: color-mix(in srgb, var(--text-muted) 40%, transparent); }+ .diagram-nav [data-view="out"]:disabled:hover,+ .diagram-nav [data-view="in"]:disabled:hover { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .diagram-nav [data-view="reset"] { min-width: 3.25rem; }+ .diagram-container[data-camera-indicator="true"] .diagram-nav-detail,+ .diagram-container[data-camera-indicator="true"] .diagram-nav-percent { color: var(--frontend-stroke); }+ .diagram-nav #btn-diagram-guide[aria-expanded="true"] {+ color: var(--cloud-stroke);+ background: var(--toolbar-hover);+ }++ /* Semantic Radar is a deliberately simplified, viewer-only overview. It+ uses authored node bounds and the live camera viewport rather than+ cloning the canonical SVG, so IDs, filters, animation, and export state+ stay singular and deterministic. */+ .overview-map {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 12;+ width: 11.25rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.78rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.625rem;+ }+ .overview-map[hidden] { display: none; }+ .overview-map[data-docked="true"] {+ position: fixed;+ right: var(--archify-radar-right, 1rem);+ top: var(--archify-radar-top, 1rem);+ bottom: auto;+ }+ .overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 1rem);+ }+ html[data-preset="blueprint"] .overview-map { border-radius: 0.28rem; }+ .overview-map-head {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.45rem;+ min-height: 2.25rem;+ padding: 0.42rem 0.48rem 0.38rem 0.55rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .overview-map[data-panel-dragging="true"] .overview-map-head { cursor: grabbing; }+ .overview-map[data-placement-invalid="true"] {+ border-color: var(--security-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);+ }+ .overview-map[data-compact="true"] {+ width: 7.4rem;+ }+ .overview-map[data-compact="true"] .overview-map-head {+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.24rem;+ min-height: 1.5rem;+ padding: 0.05rem 0.16rem 0.05rem 0.32rem;+ border-bottom: 0;+ }+ .overview-map[data-compact="true"] .overview-map-live,+ .overview-map[data-compact="true"] .overview-map-copy,+ .overview-map[data-compact="true"] .overview-map-surface,+ .overview-map[data-compact="true"] .overview-map-hint {+ display: none;+ }+ .overview-map[data-compact="true"] .overview-map-expand { display: inline-flex; }+ .overview-map[data-compact="true"] .overview-map-close {+ width: 1.15rem;+ height: 1.15rem;+ font-size: 0.72rem;+ }+ .overview-map-live {+ width: 0.42rem;+ height: 0.42rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent);+ animation: archify-radar-live 2.4s ease-out infinite;+ }+ .overview-map-copy { min-width: 0; line-height: 1.1; }+ .overview-map-copy strong {+ display: block;+ overflow: hidden;+ color: var(--frontend-stroke);+ font-size: 0.59rem;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .overview-map-copy small {+ display: block;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.52rem;+ letter-spacing: 0.04em;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .overview-map-expand {+ display: none;+ align-items: center;+ justify-content: center;+ min-width: 0;+ height: 1.2rem;+ padding: 0 0.34rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.3rem;+ background: transparent;+ color: var(--frontend-stroke);+ font: inherit;+ font-size: 0.49rem;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ white-space: nowrap;+ cursor: pointer;+ }+ .overview-map-close {+ width: 1.55rem;+ height: 1.55rem;+ padding: 0;+ border: 0;+ border-radius: 0.34rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.9rem;+ cursor: pointer;+ }+ .overview-map-expand:hover,+ .overview-map-expand:focus-visible,+ .overview-map-close:hover,+ .overview-map-close:focus-visible { background: var(--toolbar-hover); }+ .overview-map-expand:focus-visible,+ .overview-map-close:focus-visible,+ .overview-map-surface:focus-visible,+ .overview-map-node:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .overview-map-surface {+ position: relative;+ height: 7rem;+ margin: 0.42rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--panel-border) 72%, transparent);+ border-radius: 0.42rem;+ background:+ linear-gradient(color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ linear-gradient(90deg, color-mix(in srgb, var(--panel-border) 26%, transparent) 1px, transparent 1px),+ color-mix(in srgb, var(--bg) 86%, transparent);+ background-size: 12px 12px;+ cursor: crosshair;+ touch-action: none;+ }+ html[data-preset="blueprint"] .overview-map-surface { border-radius: 0.1rem; }+ .overview-map-surface > svg {+ width: 100%;+ height: 100%;+ min-width: 0;+ transform: none !important;+ transition: none !important;+ display: block;+ overflow: visible;+ }+ .overview-map-node {+ fill: var(--backend-stroke);+ fill-opacity: 0.52;+ stroke: var(--backend-stroke);+ stroke-opacity: 0.86;+ vector-effect: non-scaling-stroke;+ cursor: pointer;+ transition: fill-opacity 140ms ease, stroke-width 140ms ease, filter 140ms ease;+ }+ .overview-map-node[data-kind="frontend"],+ .overview-map-node[data-kind="start"] { fill: var(--frontend-stroke); stroke: var(--frontend-stroke); }+ .overview-map-node[data-kind="database"],+ .overview-map-node[data-kind="success"] { fill: var(--database-stroke); stroke: var(--database-stroke); }+ .overview-map-node[data-kind="cloud"],+ .overview-map-node[data-kind="waiting"] { fill: var(--cloud-stroke); stroke: var(--cloud-stroke); }+ .overview-map-node[data-kind="messagebus"] { fill: var(--messagebus-stroke); stroke: var(--messagebus-stroke); }+ .overview-map-node[data-kind="security"],+ .overview-map-node[data-kind="decision"],+ .overview-map-node[data-kind="failure"] { fill: var(--security-stroke); stroke: var(--security-stroke); }+ .overview-map-node[data-kind="external"],+ .overview-map-node[data-kind="neutral"] { fill: var(--external-stroke); stroke: var(--external-stroke); }+ .overview-map-node[data-radar-active="true"],+ .overview-map-node:hover,+ .overview-map-node:focus-visible {+ fill-opacity: 0.92;+ stroke-width: 2.2;+ filter: drop-shadow(0 0 3px currentColor);+ }+ .overview-map-viewport {+ fill: color-mix(in srgb, var(--frontend-fill) 56%, transparent);+ stroke: var(--frontend-stroke);+ stroke-width: 2;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frontend-stroke) 54%, transparent));+ }+ .overview-map-hint {+ display: flex;+ justify-content: space-between;+ gap: 0.5rem;+ padding: 0 0.52rem 0.46rem;+ color: var(--text-faint);+ font-size: 0.49rem;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ }+ .diagram-nav #btn-overview-map[aria-expanded="true"] {+ color: var(--frontend-stroke);+ background: color-mix(in srgb, var(--frontend-stroke) 11%, transparent);+ }+ .overview-map-feedback {+ position: absolute;+ right: 1rem;+ bottom: 4.15rem;+ z-index: 13;+ max-width: min(16rem, calc(100% - 2rem));+ padding: 0.38rem 0.55rem;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.5rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);+ font-size: 0.52rem;+ line-height: 1.35;+ pointer-events: none;+ }+ .overview-map-feedback[hidden] { display: none; }+ .focus-chip[data-radar-yielded="true"] { display: none !important; }+ .diagram-nav #btn-route-probe[aria-pressed="true"] {+ color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-stroke) 11%, transparent);+ }+ .diagram-nav #btn-semantic-lens[aria-expanded="true"],+ .diagram-nav #btn-semantic-lens[aria-pressed="true"] {+ color: var(--database-stroke);+ background: color-mix(in srgb, var(--database-stroke) 11%, transparent);+ }++ /* Semantic Lens turns the compiled node-kind palette into an analytical+ legend. One kind reveals its real traffic; two kinds compare only their+ direct authored relationships. Geometry and the canonical SVG stay put. */+ .semantic-lens {+ position: absolute;+ right: 1rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));+ z-index: 24;+ width: min(20rem, calc(100% - 2rem));+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--database-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--database-fill) 34%, transparent), transparent 48%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);+ backdrop-filter: blur(18px);+ animation: archify-lens-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+ }+ .semantic-lens[hidden] { display: none; }+ .semantic-lens[data-dock-side="left"] { left: 1rem; right: auto; }+ .semantic-lens[data-dock-side="right"] { left: auto; right: 1rem; }+ html[data-preset="blueprint"] .semantic-lens { border-radius: 0.28rem; }+ .semantic-lens-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.72rem 0.78rem 0.62rem;+ border-bottom: 1px solid var(--toolbar-border);+ }+ .semantic-lens-eyebrow {+ display: block;+ color: var(--database-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ }+ .semantic-lens-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.82rem;+ letter-spacing: -0.02em;+ }+ .semantic-lens-close {+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .semantic-lens-close:hover,+ .semantic-lens-close:focus-visible { background: var(--toolbar-hover); }+ .semantic-lens-instruction {+ margin: 0;+ padding: 0.52rem 0.78rem 0.48rem;+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+ }+ .semantic-lens-kinds {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.3rem;+ max-height: min(15rem, 40vh);+ padding: 0 0.5rem 0.5rem;+ overflow-y: auto;+ scrollbar-width: thin;+ }+ .semantic-lens-kind {+ --lens-color: var(--external-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.42rem;+ min-width: 0;+ min-height: 2.15rem;+ padding: 0.35rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--lens-color) 24%, var(--toolbar-border));+ border-radius: 0.45rem;+ background: color-mix(in srgb, var(--panel) 76%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, opacity 140ms ease;+ }+ html[data-preset="blueprint"] .semantic-lens-kind { border-radius: 0.12rem; }+ .semantic-lens-kind[data-kind="frontend"],+ .semantic-lens-kind[data-kind="start"] { --lens-color: var(--frontend-stroke); }+ .semantic-lens-kind[data-kind="backend"],+ .semantic-lens-kind[data-kind="active"] { --lens-color: var(--backend-stroke); }+ .semantic-lens-kind[data-kind="database"],+ .semantic-lens-kind[data-kind="success"] { --lens-color: var(--database-stroke); }+ .semantic-lens-kind[data-kind="cloud"],+ .semantic-lens-kind[data-kind="waiting"] { --lens-color: var(--cloud-stroke); }+ .semantic-lens-kind[data-kind="messagebus"] { --lens-color: var(--messagebus-stroke); }+ .semantic-lens-kind[data-kind="security"],+ .semantic-lens-kind[data-kind="decision"],+ .semantic-lens-kind[data-kind="failure"] { --lens-color: var(--security-stroke); }+ .semantic-lens-kind:hover,+ .semantic-lens-kind:focus-visible,+ .semantic-lens-kind[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--lens-color) 78%, var(--toolbar-border));+ background: color-mix(in srgb, var(--lens-color) 11%, var(--panel));+ }+ .semantic-lens-kind:focus-visible,+ .semantic-lens-close:focus-visible,+ .semantic-lens-actions button:focus-visible {+ outline: 2px solid var(--database-stroke);+ outline-offset: 1px;+ }+ .semantic-lens-kind:disabled { opacity: 0.34; cursor: default; }+ .semantic-lens-swatch {+ width: 0.48rem;+ height: 0.48rem;+ border-radius: 50%;+ background: var(--lens-color);+ box-shadow: 0 0 8px color-mix(in srgb, var(--lens-color) 58%, transparent);+ }+ .semantic-lens-kind strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.61rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-lens-kind em {+ color: var(--lens-color);+ font-size: 0.54rem;+ font-style: normal;+ font-weight: 800;+ }+ .semantic-lens-status {+ min-height: 2.5rem;+ margin: 0;+ padding: 0.55rem 0.78rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.55rem;+ line-height: 1.45;+ }+ .semantic-lens-status strong { color: var(--database-stroke); font-weight: 800; }+ .semantic-lens-actions {+ display: flex;+ justify-content: flex-end;+ gap: 0.28rem;+ padding: 0 0.62rem 0.62rem;+ }+ .semantic-lens-actions button {+ min-height: 1.8rem;+ padding: 0.28rem 0.48rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 0.56rem;+ cursor: pointer;+ }+ .semantic-lens-actions button:hover { background: var(--toolbar-hover); }+ .semantic-lens-actions #semantic-lens-copy { color: var(--database-stroke); }+ @keyframes archify-lens-in {+ from { opacity: 0; transform: translateY(5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }++ /* Route Probe answers a reader question over the compiled semantic graph:+ choose two stable nodes and reveal the shortest authored directed route.+ The receipt and signal live entirely in the viewer layer. */+ .route-probe {+ position: absolute;+ left: 1rem;+ bottom: calc(1rem + var(--archify-nav-reserve));+ z-index: 12;+ width: min(46rem, calc(100% - 25rem));+ min-width: 18rem;+ overflow: hidden;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 62%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(115deg, color-mix(in srgb, var(--backend-fill) 50%, transparent), transparent 62%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.75rem;+ }+ .route-probe[hidden] { display: none; }+ /* Picking needs one line of guidance, not a wide empty card; the panel+ widens only when there is a traced route to show. */+ .route-probe:not([data-state="result"]) { width: min(22rem, calc(100% - 2rem)); min-width: 0; }+ .route-probe-path:has(> .route-probe-placeholder:only-child) { display: none; }+ .route-probe[data-route-dock="top"] {+ top: 1rem;+ bottom: auto;+ }+ html[data-preset="blueprint"] .route-probe { border-radius: 0.25rem; }+ .route-probe-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.65rem;+ padding: 0.625rem 0.75rem 0.5rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 80%, transparent);+ }+ .route-probe-copy { min-width: 0; }+ .route-probe-eyebrow {+ display: block;+ color: var(--backend-stroke);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .route-probe-title {+ display: block;+ margin-top: 0.14rem;+ overflow: hidden;+ color: var(--toolbar-text);+ font-size: 0.875rem;+ font-weight: 600;+ line-height: 1.3;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .route-probe-actions { display: flex; gap: 0.2rem; }+ .route-probe button {+ min-height: 1.55rem;+ padding: 0.25rem 0.42rem;+ border: 0;+ border-radius: 0.36rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ cursor: pointer;+ }+ .route-probe button:hover,+ .route-probe button:focus-visible { background: var(--toolbar-hover); }+ .route-probe button:focus-visible {+ outline: 2px solid var(--backend-stroke);+ outline-offset: 1px;+ }+ .route-probe-copy-link { color: var(--frontend-stroke) !important; }+ .route-probe-find { color: var(--backend-stroke) !important; }+ .route-probe-copy-link[hidden] { display: none; }+ .route-probe-find[hidden] { display: none; }+ .route-probe-path {+ display: flex;+ align-items: center;+ min-height: 2.2rem;+ padding: 0.42rem 0.58rem 0.24rem;+ overflow-x: auto;+ scrollbar-width: thin;+ white-space: nowrap;+ }+ .route-probe-node,+ .route-probe button.route-probe-node {+ flex: none;+ max-width: 9.5rem;+ overflow: hidden;+ min-height: 1.75rem !important;+ padding: 0.22rem 0.38rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 46%, var(--toolbar-border));+ border-radius: 999px;+ background: color-mix(in srgb, var(--backend-fill) 52%, transparent);+ color: var(--text);+ font-size: 0.56rem;+ font-weight: 700;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .route-probe-node[data-endpoint="start"] {+ border-color: var(--frontend-stroke);+ color: var(--frontend-stroke);+ }+ .route-probe-node[data-endpoint="end"] {+ border-color: var(--security-stroke);+ color: var(--security-stroke);+ }+ .route-probe-node[data-route-journey-state="past"] { opacity: 0.66; }+ .route-probe-node[data-route-journey-state="future"] { opacity: 0.48; }+ .route-probe-node[aria-current="step"] {+ border-color: var(--backend-stroke);+ background: color-mix(in srgb, var(--backend-fill) 82%, var(--toolbar-menu-bg));+ color: var(--text);+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--backend-stroke) 42%, transparent), 0 0 14px color-mix(in srgb, var(--backend-stroke) 34%, transparent);+ opacity: 1;+ }+ html[data-preset="blueprint"] .route-probe-node[aria-current="step"] {+ border-style: double;+ border-width: 3px;+ border-radius: 0.2rem;+ box-shadow: none;+ }+ .route-probe-arrow {+ flex: none;+ padding: 0 0.28rem;+ color: var(--text-faint);+ font-size: 0.65rem;+ }+ .route-probe-placeholder {+ color: var(--text-faint);+ font-size: 0.75rem;+ }+ .route-probe-status {+ display: block;+ min-height: 1.45rem;+ padding: 0.5rem 0.75rem 0.625rem;+ color: var(--text-muted, var(--text-faint));+ font-size: 0.75rem;+ line-height: 1.45;+ }+ .route-journey-controls {+ display: grid;+ grid-template-columns: 2rem minmax(5.8rem, auto) 2rem minmax(4.8rem, auto);+ justify-content: start;+ gap: 0.22rem;+ padding: 0.08rem 0.58rem 0.28rem;+ }+ .route-journey-controls[hidden] { display: none; }+ .route-journey-controls button {+ min-height: 1.8rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--toolbar-bg) 72%, transparent);+ font-size: 0.54rem;+ font-weight: 700;+ }+ .route-journey-controls button:disabled {+ cursor: default;+ opacity: 0.34;+ }+ .route-journey-play { color: var(--backend-stroke) !important; }+ .route-journey-overview { color: var(--frontend-stroke) !important; }+ .route-journey-controls[data-playing="true"] .route-journey-play {+ border-color: color-mix(in srgb, var(--backend-stroke) 64%, var(--toolbar-border));+ background: color-mix(in srgb, var(--backend-fill) 62%, transparent);+ }+ .route-probe[data-state="error"] {+ border-color: color-mix(in srgb, var(--security-stroke) 72%, var(--toolbar-border));+ }+ .route-probe[data-state="error"] .route-probe-status { color: var(--security-stroke); }++ .focus-chip {+ position: absolute;+ left: 1rem;+ top: 1rem;+ z-index: 12;+ display: block;+ width: min(22rem, calc(100% - 13rem));+ max-width: calc(100% - 13rem);+ overflow: hidden;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);+ backdrop-filter: blur(16px);+ font-size: 0.6875rem;+ }+ .focus-chip[hidden] { display: none; }+ html[data-preset="blueprint"] .focus-chip { border-radius: 0.3rem; }+ .focus-chip button {+ flex: none;+ padding: 0.3rem 0.45rem;+ border-radius: 0.35rem;+ font-size: 0.625rem;+ }+ .relationship-lens-head {+ position: relative;+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 0.75rem;+ padding: 0.9rem 0.75rem 0.65rem;+ border-bottom: 1px solid var(--toolbar-border);+ background: linear-gradient(120deg, color-mix(in srgb, var(--frontend-fill) 34%, transparent), transparent 72%);+ }+ .relationship-lens-drag-handle {+ position: absolute;+ top: 0.12rem;+ left: 50%;+ width: 2.5rem;+ height: 0.78rem;+ padding: 0 !important;+ transform: translateX(-50%);+ color: var(--text-faint) !important;+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .relationship-lens-drag-handle::before {+ content: "";+ display: block;+ width: 1.25rem;+ margin: auto;+ border-top: 2px dotted currentColor;+ opacity: 0.72;+ }+ .focus-chip[data-panel-dragging="true"] .relationship-lens-drag-handle { cursor: grabbing; }+ @media (hover: none), (pointer: coarse) {+ .relationship-lens-drag-handle { display: none; }+ }+ .relationship-lens-copy { min-width: 0; }+ .relationship-lens-actions {+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ gap: 0.18rem;+ }+ .relationship-lens-actions button { white-space: nowrap; }+ .relationship-lens-actions #btn-focus-clear {+ display: grid;+ width: 1.75rem;+ height: 1.75rem;+ padding: 0;+ place-items: center;+ color: var(--text-muted);+ font-size: 1rem;+ line-height: 1;+ }+ .relationship-lens-actions #btn-focus-clear:hover,+ .relationship-lens-actions #btn-focus-clear:focus-visible {+ background: var(--toolbar-hover);+ color: var(--text);+ }+ .relationship-lens-actions #btn-focus-copy { color: var(--frontend-stroke); }+ .relationship-lens-actions #btn-focus-relations { display: none; }+ .relationship-lens-eyebrow {+ display: block;+ margin-bottom: 0.18rem;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.14em;+ text-transform: uppercase;+ }+ .relationship-lens-title {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.8rem;+ line-height: 1.35;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-detail {+ display: block;+ margin-top: 0.12rem;+ overflow: hidden;+ color: var(--text-muted);+ font-size: 0.625rem;+ line-height: 1.4;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-detail[hidden] { display: none; }+ .semantic-passport-meta {+ display: flex;+ flex-wrap: wrap;+ gap: 0.24rem;+ margin-top: 0.42rem;+ }+ .semantic-passport-meta span,+ .semantic-passport-meta code {+ max-width: 100%;+ overflow: hidden;+ padding: 0.14rem 0.34rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 82%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 68%, transparent);+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ letter-spacing: 0.04em;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-meta [data-passport="kind"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 50%, var(--toolbar-border));+ color: var(--frontend-stroke);+ font-weight: 800;+ text-transform: uppercase;+ }+ .semantic-passport-meta [data-passport="tag"] { color: var(--cloud-stroke); }+ .semantic-passport-meta [data-passport="brand"] {+ border-color: color-mix(in srgb, var(--messagebus-stroke) 52%, var(--toolbar-border));+ color: var(--messagebus-stroke);+ font-weight: 700;+ }+ .semantic-passport-meta [hidden] { display: none; }+ html[data-preset="blueprint"] .semantic-passport-meta span,+ html[data-preset="blueprint"] .semantic-passport-meta code { border-radius: 0.1rem; }+ .semantic-passport-evidence {+ margin-top: 0.52rem;+ padding: 0.5rem;+ border: 1px solid color-mix(in srgb, var(--backend-stroke) 32%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--backend-fill) 18%, var(--panel));+ }+ .semantic-passport-evidence[hidden] { display: none; }+ html[data-preset="blueprint"] .semantic-passport-evidence { border-radius: 0.18rem; }+ .semantic-passport-evidence-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.55rem;+ margin-bottom: 0.35rem;+ }+ .semantic-passport-evidence-status {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ color: var(--backend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ }+ .semantic-passport-evidence-status::before {+ content: '';+ width: 0.38rem;+ height: 0.38rem;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--backend-stroke) 14%, transparent);+ }+ .semantic-passport-repository {+ min-width: 0;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-decoration: none;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-repository:hover,+ .semantic-passport-repository:focus-visible { color: var(--backend-stroke); }+ .semantic-passport-evidence-links { display: grid; gap: 0.22rem; }+ .semantic-passport-source {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.15rem 0.45rem;+ align-items: center;+ padding: 0.34rem 0.4rem;+ border: 1px solid transparent;+ border-radius: 0.38rem;+ color: var(--text-muted);+ text-decoration: none;+ }+ a.semantic-passport-source:hover,+ a.semantic-passport-source:focus-visible {+ border-color: color-mix(in srgb, var(--backend-stroke) 42%, transparent);+ background: color-mix(in srgb, var(--backend-fill) 32%, transparent);+ color: var(--text);+ }+ .semantic-passport-source strong {+ overflow: hidden;+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .semantic-passport-source code {+ color: var(--backend-stroke);+ font: inherit;+ font-size: 0.5rem;+ }+ .semantic-passport-source small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-summary {+ display: block;+ margin-top: 0.12rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+ }+ .semantic-passport-reach {+ display: grid;+ gap: 0.28rem;+ margin-top: 0.52rem;+ padding-top: 0.48rem;+ border-top: 1px solid color-mix(in srgb, var(--toolbar-border) 76%, transparent);+ }+ .semantic-passport-reach[hidden] { display: none; }+ .semantic-passport-reach-label {+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.1em;+ text-transform: uppercase;+ }+ .semantic-passport-reach-actions {+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 0.25rem;+ }+ .semantic-passport-reach-actions button {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.5rem;+ min-width: 0;+ min-height: 2rem;+ padding: 0.32rem 0.42rem;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 86%, transparent);+ background: color-mix(in srgb, var(--panel) 70%, transparent);+ color: var(--text-muted);+ text-align: left;+ }+ .semantic-passport-reach-actions button:hover:not(:disabled),+ .semantic-passport-reach-actions button:focus-visible {+ border-color: color-mix(in srgb, var(--frontend-stroke) 62%, var(--toolbar-border));+ color: var(--text);+ }+ .semantic-passport-reach-actions button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: 1px;+ }+ .semantic-passport-reach-actions button:disabled {+ cursor: default;+ opacity: 0.5;+ }+ .semantic-passport-reach-actions button[aria-pressed="true"] {+ border-color: color-mix(in srgb, var(--reach-color, var(--frontend-stroke)) 72%, var(--toolbar-border));+ background: color-mix(in srgb, var(--reach-fill, var(--frontend-fill)) 48%, transparent);+ color: var(--text);+ }+ #btn-reach-upstream {+ --reach-color: var(--database-stroke);+ --reach-fill: var(--database-fill);+ }+ #btn-reach-downstream {+ --reach-color: var(--backend-stroke);+ --reach-fill: var(--backend-fill);+ }+ .semantic-passport-reach-actions strong {+ color: var(--reach-color, var(--frontend-stroke));+ font-size: 0.625rem;+ }+ .semantic-passport-reach-status {+ color: var(--text-faint);+ font-size: 0.525rem;+ line-height: 1.4;+ }+ .semantic-passport-reach-status[hidden] { display: none; }+ .relationship-lens-list {+ max-height: min(18rem, 46vh);+ overflow: auto;+ padding: 0.4rem;+ scrollbar-width: thin;+ scrollbar-color: var(--frontend-stroke) transparent;+ }+ .relationship-lens-list::-webkit-scrollbar { width: 4px; }+ .relationship-lens-list::-webkit-scrollbar-thumb {+ border-radius: 999px;+ background: color-mix(in srgb, var(--frontend-stroke) 68%, transparent);+ }+ .relationship-lens-group + .relationship-lens-group { margin-top: 0.35rem; }+ .relationship-lens-group-title {+ display: block;+ padding: 0.24rem 0.38rem 0.16rem;+ color: var(--text-faint);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.12em;+ text-transform: uppercase;+ }+ .relationship-lens-row {+ display: grid;+ grid-template-columns: 2.1rem minmax(0, 1fr);+ gap: 0.06rem 0.45rem;+ width: 100%;+ padding: 0.45rem 0.5rem !important;+ text-align: left;+ }+ .relationship-lens-row:hover,+ .relationship-lens-row:focus-visible,+ .relationship-lens-row[data-preview-active="true"] {+ background: var(--toolbar-hover);+ box-shadow: inset 2px 0 0 var(--frontend-stroke);+ }+ .relationship-lens-row:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+ }+ .relationship-lens-direction {+ grid-row: 1 / 3;+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.08em;+ }+ .relationship-lens-row[data-direction="in"] .relationship-lens-direction { color: var(--database-stroke); }+ .relationship-lens-row[data-direction="loop"] .relationship-lens-direction { color: var(--security-stroke); }+ .relationship-lens-row strong {+ overflow: hidden;+ color: var(--text);+ font-size: 0.6875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-row small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .relationship-lens-empty {+ margin: 0;+ padding: 0.75rem;+ color: var(--text-faint);+ font-size: 0.625rem;+ text-align: center;+ }++ /* Diagram Guide keeps the artifact's growing reader vocabulary+ discoverable without widening the permanent control bar. It derives+ honest counts at runtime and delegates every action to an existing+ production interaction instead of creating a second command system. */+ .diagram-guide {+ position: absolute;+ top: 1rem;+ right: 1rem;+ z-index: 26;+ width: min(32rem, calc(100% - 2rem));+ max-height: min(42rem, calc(100% - 2rem));+ overflow: auto;+ border: 1px solid color-mix(in srgb, var(--cloud-stroke) 58%, var(--toolbar-border));+ border-radius: 0.82rem;+ background:+ linear-gradient(135deg, color-mix(in srgb, var(--cloud-fill) 32%, transparent), transparent 42%),+ var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 22px 64px rgba(0, 0, 0, 0.4);+ backdrop-filter: blur(18px);+ animation: archify-guide-in 180ms cubic-bezier(0.22, 1, 0.36, 1);+ }+ .diagram-guide[hidden] { display: none; }+ html[data-preset="blueprint"] .diagram-guide { border-radius: 0.28rem; }+ .diagram-guide-head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ align-items: start;+ gap: 1rem;+ padding: 0.82rem 0.9rem 0.68rem;+ border-bottom: 1px solid var(--toolbar-border);+ }+ .diagram-guide-eyebrow {+ display: block;+ color: var(--cloud-stroke);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.16em;+ text-transform: uppercase;+ }+ .diagram-guide-title {+ display: block;+ margin-top: 0.16rem;+ color: var(--text);+ font-size: 0.86rem;+ letter-spacing: -0.02em;+ }+ .diagram-guide-close {+ width: 1.8rem;+ height: 1.8rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .diagram-guide-close:hover,+ .diagram-guide-close:focus-visible { background: var(--toolbar-hover); }+ .diagram-guide-stats {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin: 0;+ padding: 0.54rem 0.9rem;+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 74%, transparent);+ color: var(--text-faint);+ font-size: 0.56rem;+ letter-spacing: 0.025em;+ }+ .diagram-guide-stats::before {+ content: '';+ width: 0.42rem;+ height: 0.42rem;+ flex: none;+ border-radius: 50%;+ background: var(--backend-stroke);+ box-shadow: 0 0 10px color-mix(in srgb, var(--backend-stroke) 72%, transparent);+ }+ .diagram-guide-actions {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 0.38rem;+ padding: 0.62rem;+ }+ .diagram-guide-action {+ --guide-accent: var(--frontend-stroke);+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ min-height: 4.15rem;+ padding: 0.55rem 0.58rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, var(--toolbar-border));+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ color: var(--toolbar-text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;+ }+ .diagram-guide-action[data-guide-action="route"] { --guide-accent: var(--backend-stroke); }+ .diagram-guide-action[data-guide-action="map"] { --guide-accent: var(--database-stroke); }+ .diagram-guide-action[data-guide-action="lens"] { --guide-accent: var(--messagebus-stroke); }++ .diagram-guide-action[data-guide-action="present"] {+ --guide-accent: var(--cloud-stroke);+ }+ .diagram-guide-action:hover,+ .diagram-guide-action:focus-visible {+ border-color: color-mix(in srgb, var(--guide-accent) 76%, var(--toolbar-border));+ background: color-mix(in srgb, var(--guide-accent) 9%, var(--panel));+ transform: translateY(-1px);+ }+ .diagram-guide-action:focus-visible,+ .diagram-guide-close:focus-visible {+ outline: 2px solid var(--cloud-stroke);+ outline-offset: 1px;+ }+ .diagram-guide-action:disabled {+ opacity: 0.42;+ cursor: default;+ transform: none;+ }+ .diagram-guide-index {+ display: grid;+ place-items: center;+ width: 1.65rem;+ height: 1.65rem;+ border: 1px solid color-mix(in srgb, var(--guide-accent) 64%, var(--toolbar-border));+ border-radius: 0.35rem;+ color: var(--guide-accent);+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.06em;+ }+ .diagram-guide-action-copy { min-width: 0; }+ .diagram-guide-action strong {+ display: block;+ overflow: hidden;+ color: var(--text);+ font-size: 0.66rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .diagram-guide-action small {+ display: -webkit-box;+ margin-top: 0.18rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5rem;+ line-height: 1.35;+ -webkit-box-orient: vertical;+ -webkit-line-clamp: 2;+ }+ .diagram-guide kbd {+ align-self: start;+ min-width: 1.45rem;+ padding: 0.12rem 0.3rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5rem;+ text-align: center;+ }+ .diagram-guide-shortcuts {+ display: flex;+ flex-wrap: wrap;+ gap: 0.34rem 0.62rem;+ padding: 0.58rem 0.9rem 0.68rem;+ border-top: 1px solid var(--toolbar-border);+ color: var(--text-faint);+ font-size: 0.5rem;+ }+ .diagram-guide-shortcuts span {+ display: inline-flex;+ align-items: center;+ gap: 0.28rem;+ white-space: nowrap;+ }+ .diagram-guide-feedback {+ min-height: 1rem;+ margin: -0.18rem 0.9rem 0.62rem;+ color: var(--security-stroke);+ font-size: 0.5rem;+ }+ .diagram-guide-feedback:empty { display: none; }+ @keyframes archify-guide-in {+ from { opacity: 0; transform: translateY(-5px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }++ .node-finder {+ position: absolute;+ top: 1rem;+ left: 1rem;+ z-index: 24;+ display: flex;+ flex-direction: column;+ width: min(22rem, calc(100% - 2rem));+ max-height: calc(100% - 2rem);+ overflow: hidden;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.85rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 6px 8px rgba(0, 0, 0, 0.22);+ backdrop-filter: blur(16px);+ }+ .node-finder[hidden] { display: none; }+ .node-finder[data-context="route-source"] {+ border-color: color-mix(in srgb, var(--frontend-stroke) 68%, var(--toolbar-border));+ }+ .node-finder[data-context="route-target"] {+ border-color: color-mix(in srgb, var(--security-stroke) 68%, var(--toolbar-border));+ }+ html[data-preset="blueprint"] .node-finder { border-radius: 0.3rem; }+ .node-finder-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.7rem 0.8rem 0.45rem;+ }+ .node-finder-head strong {+ color: var(--text);+ font-size: 0.6875rem;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ }+ .node-finder[data-context="route-source"] .node-finder-head strong { color: var(--frontend-stroke); }+ .node-finder[data-context="route-target"] .node-finder-head strong { color: var(--security-stroke); }+ .node-finder-close {+ width: 1.75rem;+ height: 1.75rem;+ border: 0;+ border-radius: 0.35rem;+ background: transparent;+ color: var(--toolbar-text);+ font: inherit;+ font-size: 1rem;+ cursor: pointer;+ }+ .node-finder-close:hover,+ .node-finder-close:focus-visible { background: var(--toolbar-hover); }+ .node-finder-close:focus-visible,+ .node-finder-result:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -2px;+ }+ .node-finder-search {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: 0.55rem;+ margin: 0 0.55rem 0.55rem;+ padding: 0 0.7rem;+ min-height: 2.6rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ transition: border-color 160ms ease-out, box-shadow 160ms ease-out;+ }+ html[data-preset="blueprint"] .node-finder-search { border-radius: 0.18rem; }+ .node-finder-search > span { color: var(--frontend-stroke); font-size: 0.875rem; }+ .node-finder-search:focus-within {+ border-color: var(--frontend-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--frontend-stroke) 20%, transparent);+ }+ .node-finder-input {+ appearance: none;+ width: 100%;+ min-width: 0;+ border: 0;+ outline: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ font-size: 0.75rem;+ }+ .node-finder-input:focus-visible { outline: none; }+ .node-finder-input::placeholder { color: var(--text-faint); }+ .node-finder kbd {+ padding: 0.1rem 0.32rem;+ border: 1px solid var(--toolbar-border);+ border-radius: 0.25rem;+ color: var(--text-faint);+ font: inherit;+ font-size: 0.5625rem;+ }+ .node-finder-results {+ display: grid;+ flex: 1 1 auto;+ gap: 0;+ min-height: 0;+ max-height: min(18rem, 48vh);+ margin: 0 0.55rem 0.45rem;+ padding: 0;+ overflow-y: auto;+ overscroll-behavior: contain;+ border: 1px solid color-mix(in srgb, var(--toolbar-border) 78%, transparent);+ border-radius: 0.55rem;+ background: color-mix(in srgb, var(--panel) 54%, transparent);+ scroll-padding-block: 0.25rem;+ scrollbar-width: thin;+ }+ html[data-preset="blueprint"] .node-finder-results { border-radius: 0.18rem; }+ .node-finder-result {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.2rem 0.75rem;+ width: 100%;+ min-height: 3.25rem;+ padding: 0.58rem 0.65rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background-color 160ms ease-out;+ }+ .node-finder-result:not(:last-child) {+ border-bottom: 1px solid color-mix(in srgb, var(--toolbar-border) 62%, transparent);+ }+ .node-finder-result:hover,+ .node-finder-result:focus-visible {+ position: relative;+ z-index: 1;+ background: color-mix(in srgb, var(--frontend-fill) 48%, var(--toolbar-hover));+ }+ .node-finder-result strong {+ overflow: hidden;+ font-size: 0.75rem;+ line-height: 1.25;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-finder-result small {+ grid-column: 1 / -1;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.5625rem;+ letter-spacing: 0.015em;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-finder-result em {+ align-self: center;+ color: var(--frontend-stroke);+ font-size: 0.625rem;+ font-style: normal;+ }+ .node-finder[data-context^="route-"] .node-finder-result em {+ padding: 0.1rem 0.3rem;+ border: 1px solid color-mix(in srgb, currentColor 52%, transparent);+ border-radius: 999px;+ font-size: 0.5rem;+ font-weight: 800;+ letter-spacing: 0.05em;+ text-transform: uppercase;+ }+ .node-finder[data-context="route-target"] .node-finder-result em { color: var(--security-stroke); }+ .node-finder-empty {+ padding: 1.1rem 0.75rem 1.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: center;+ }+ .node-finder-status {+ margin: 0;+ padding: 0.1rem 0.8rem 0.65rem;+ color: var(--text-faint);+ font-size: 0.5625rem;+ }++ .cards {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));+ gap: 1rem;+ margin-top: 2rem;+ }++ .card {+ background: var(--panel);+ border-radius: 0.75rem;+ border: 1px solid var(--panel-border);+ padding: 1.125rem 1.25rem;+ }++ html[data-preset="signal-flow"] .card {+ background: linear-gradient(145deg, rgba(10, 24, 43, 0.86), rgba(5, 12, 24, 0.92));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);+ }+ html[data-preset="signal-flow"][data-theme="light"] .card {+ background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 250, 0.9));+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 32px rgba(45, 78, 99, 0.08);+ }++ /* Preserve the one-screen guarantee on ordinary laptop displays. The+ high-screen expansion above must not trade a fuller canvas for page+ scrolling at 900–1080px heights. */+ @media (min-width: 768px) and (max-height: 1100px) {+ .header { margin-bottom: 1rem; }+ .diagram-container {+ padding: 0.875rem;+ padding-bottom: calc(0.875rem + var(--archify-nav-reserve));+ }+ .cards { margin-top: 1rem; }+ .card { padding: 1rem; }+ }+ @media (min-width: 768px) and (max-height: 920px) {+ body { padding-block: 1.25rem; }+ body { --archify-page-top: 1.25rem; }+ .header { margin-bottom: 0.875rem; }+ .cards { margin-top: 0.75rem; }+ html[data-nav-stage-rail="true"] body { padding-block: 0.375rem; }+ /* Align the fixed toolbar with the compact title row. Reserve its hit area+ above the guide without taking extra height from a fitted diagram. */+ html[data-nav-stage-rail="true"] .toolbar { top: 0.25rem; }+ html[data-nav-stage-rail="true"] .header { min-height: 2.625rem; margin-bottom: 0.5rem; }+ html[data-nav-stage-rail="true"] .diagram-container[data-nav-stage-rail="true"] { padding-top: 0.5rem; }+ html[data-nav-stage-rail="true"] .cards { margin-top: 0.375rem; }+ }++ html[data-preset="blueprint"] .card {+ position: relative;+ border-color: var(--panel-border);+ border-radius: 0.3rem;+ background: var(--panel);+ box-shadow: none;+ }+ html[data-preset="blueprint"] .card::before {+ content: "";+ position: absolute;+ top: -1px;+ left: 1rem;+ width: 2.5rem;+ border-top: 2px solid var(--frontend-stroke);+ }++ html[data-preset="editorial"] .card {+ position: relative;+ border-radius: 0.28rem;+ background: var(--panel);+ box-shadow: 0 10px 28px color-mix(in srgb, #000 10%, transparent);+ }+ html[data-preset="editorial"] .card::before {+ position: absolute;+ top: -1px;+ left: 1.25rem;+ width: 3.25rem;+ border-top: 3px solid var(--arrow-emphasis);+ content: "";+ }+ html[data-preset="editorial"] .card-dot { border-radius: 0; transform: rotate(45deg) scale(0.78); }++ /* Summary rail: the reader measures the viewport and enables it only when the+ diagram keeps its readable width beside the notes. */+ .reader-rail { display: contents; }+ html[data-reader-rail="true"] .container {+ display: grid;+ grid-template-columns: minmax(0, 1fr) var(--archify-rail-width);+ grid-auto-flow: row dense;+ column-gap: var(--archify-rail-gap);+ align-items: start;+ }+ html[data-reader-rail="true"] .container > .header { grid-column: 1 / -1; }+ html[data-reader-rail="true"] .container > .diagram-container { grid-column: 1; }+ /* The rail is at least the diagram's height and may run on to the viewport+ floor (--archify-rail-max, set by the reader); past that, notes scroll and+ the index keeps a usable share instead of collapsing to its header. */+ html[data-reader-rail="true"] .reader-rail {+ display: flex;+ flex-direction: column;+ grid-column: 2;+ align-self: stretch;+ min-height: 0;+ max-height: var(--archify-rail-max, none);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards {+ display: flex;+ flex: 0 1 auto;+ flex-direction: column;+ gap: 0;+ min-height: 0;+ margin-top: 0;+ padding: 0.125rem 0 0;+ overflow-y: auto;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards::-webkit-scrollbar { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card { flex: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card {+ padding: 0 0.25rem 1.125rem;+ border: 0;+ border-radius: 0;+ background: transparent;+ box-shadow: none;+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card + .card {+ padding-top: 1.125rem;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card::before { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .card-header { gap: 0.55rem; margin-bottom: 0.45rem; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card h3 { font-size: 0.875rem; letter-spacing: -0.005em; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards .card ul { font-size: 0.8125rem; line-height: 1.6; }++ .node-outline { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .node-outline:not([hidden]) {+ display: flex;+ flex: 1 0 min(13rem, 55%);+ flex-direction: column;+ min-height: 0;+ margin-top: 0.25rem;+ overflow: hidden;+ border-top: 1px solid var(--panel-border);+ }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"]) .cards:empty + .node-outline:not([hidden]) { margin-top: 0; border-top: 0; }+ /* Collapsed: only the reveal control remains, so the diagram takes the width. */+ html[data-reader-rail="collapsed"] .reader-rail { display: none; }+ /* Overlay: a drawer for diagrams whose readable floor leaves no room to dock. */+ html[data-reader-rail="overlay"] .reader-rail {+ position: fixed;+ z-index: 150;+ top: 1rem;+ right: 1rem;+ bottom: 1rem;+ display: flex;+ flex-direction: column;+ width: var(--archify-rail-width);+ padding: 0.75rem 1rem 0.5rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 1rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 64px -18px rgba(15, 23, 42, 0.38);+ animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);+ }+ @keyframes rail-drawer-in {+ from { opacity: 0; transform: translateX(0.75rem); }+ to { opacity: 1; transform: translateX(0); }+ }+ /* Bottom (default): the notes keep their full-width card row and the index+ follows as one panel whose groups flow into columns, so nothing scrolls+ inside it. The placement toggle sits in the index header. */+ html[data-reader-rail="bottom"] .reader-rail {+ display: grid;+ grid-template-areas: "cards" "index";+ grid-template-columns: minmax(0, 1fr);+ row-gap: 1rem;+ margin-top: 1rem;+ }+ html[data-reader-rail="bottom"] .cards { grid-area: cards; margin-top: 0; }+ html[data-reader-rail="bottom"] .cards:empty { display: none; }+ html[data-reader-rail="bottom"] .node-outline:not([hidden]) {+ display: block;+ grid-area: index;+ padding: 0 1.25rem 0.75rem;+ border: 1px solid var(--panel-border);+ border-radius: 0.75rem;+ background: var(--panel);+ }+ html[data-reader-rail="bottom"] .reader-rail > .rail-controls {+ z-index: 1;+ grid-area: index;+ align-self: start;+ justify-self: end;+ margin: 0.625rem 0.625rem 0 0;+ }+ html[data-reader-rail="bottom"] .node-outline-head { padding: 1rem 2.5rem 0.375rem 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-list {+ columns: 15rem;+ column-gap: 1.75rem;+ padding: 0;+ overflow: visible;+ -webkit-mask-image: none;+ mask-image: none;+ }+ /* Named groups stay whole; a single unnamed group may split across columns,+ where a continuous spine would read as a broken line. */+ html[data-reader-rail="bottom"] .node-outline-group + .node-outline-group { margin-top: 0; }+ html[data-reader-rail="bottom"] .node-outline-group:has(> .node-outline-heading) { break-inside: avoid; padding-bottom: 0.25rem; }+ html[data-reader-rail="bottom"] .node-outline-group:not(:has(> .node-outline-heading)) > ul::before { display: none; }+ html[data-reader-rail="bottom"] .node-outline-group li { break-inside: avoid; }+ .rail-controls { display: none; }+ html:is([data-reader-rail="true"], [data-reader-rail="overlay"], [data-reader-rail="bottom"]) .rail-controls {+ display: flex;+ flex: none;+ justify-content: flex-end;+ gap: 0.125rem;+ margin: -0.25rem -0.25rem 0.25rem 0;+ }+ .rail-control {+ display: inline-grid;+ place-items: center;+ width: 1.875rem;+ height: 1.875rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text-faint);+ cursor: pointer;+ transition: background 0.14s ease, color 0.14s ease;+ }+ .rail-control[hidden] { display: none; }+ .rail-control:hover,+ .rail-control:focus-visible { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }+ .rail-control:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: -1.5px; }+ .rail-control-icon,+ .rail-reveal-icon {+ width: 1rem;+ height: 1rem;+ background: currentColor;+ -webkit-mask: var(--rail-glyph) center / contain no-repeat;+ mask: var(--rail-glyph) center / contain no-repeat;+ }+ /* Panel glyphs: a frame with the panel drawn on the side it moves to. */+ .rail-control-icon.placement,+ #rail-placement[data-placement="right"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M2.8 12h14.4'/%3E%3C/g%3E%3C/svg%3E"); }+ #rail-placement[data-placement="bottom"] .rail-control-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-control-icon.collapse { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m8 5.5 4.5 4.5L8 14.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }+ .rail-reveal-icon { --rail-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2.8' y='3.8' width='14.4' height='12.4' rx='2'/%3E%3Cpath d='M12.6 3.8v12.4M14.4 7.2h1M14.4 9.6h1M14.4 12h1'/%3E%3C/g%3E%3C/svg%3E"); }+ .rail-reveal[hidden] { display: none; }+ /* The collapsed rail leaves one quiet pill in the canvas corner. */+ .rail-reveal {+ position: absolute;+ z-index: 13;+ top: 0.75rem;+ right: 0.75rem;+ display: inline-flex;+ align-items: center;+ gap: 0.45rem;+ min-height: 2rem;+ padding: 0 0.75rem 0 0.625rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 999px;+ background: color-mix(in srgb, var(--panel) 86%, transparent);+ color: var(--text-muted);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px -12px rgba(15, 23, 42, 0.28);+ backdrop-filter: blur(12px);+ font: inherit;+ font-size: 0.75rem;+ font-weight: 500;+ cursor: pointer;+ transition: color 0.14s ease, background 0.14s ease;+ }+ .rail-reveal:hover,+ .rail-reveal:focus-visible { color: var(--text); background: var(--panel); }+ .rail-reveal:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 60%, transparent); outline-offset: 2px; }+ html[data-motion="still"] .reader-rail { animation: none !important; }+ .node-outline-head {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ padding: 1.125rem 0.25rem 0.375rem;+ }+ .node-outline-head strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .node-outline-count {+ min-width: 1.35rem;+ padding: 0.1rem 0.4rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 6%, transparent);+ color: var(--text-muted);+ font-size: 0.6875rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ font-variant-numeric: tabular-nums;+ }+ .node-outline-list {+ flex: 1 1 auto;+ min-height: 0;+ margin: 0 -0.375rem;+ padding: 0 0 1.25rem;+ overflow-y: auto;+ list-style: none;+ scrollbar-width: none;+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ mask-image: linear-gradient(to bottom, #000 calc(100% - 2rem), transparent);+ }+ .node-outline-list::-webkit-scrollbar { display: none; }+ .node-outline-group + .node-outline-group { margin-top: 0.25rem; }+ .node-outline-group > ul {+ position: relative;+ list-style: none;+ }+ /* A quiet spine ties each group's swatches together like a lane. */+ .node-outline-group > ul::before {+ position: absolute;+ top: 0.95rem;+ bottom: 0.95rem;+ left: calc(0.625rem + 0.3125rem - 0.5px);+ width: 1px;+ background: var(--panel-border);+ content: "";+ }+ .node-outline-heading {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ padding: 0.7rem 0.625rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ }+ .node-outline-heading small {+ color: var(--text-dim);+ font-size: 0.6875rem;+ font-weight: 500;+ font-variant-numeric: tabular-nums;+ }+ /* The rail frees the vertical budget, so compact viewports keep the normal+ title spacing instead of the stacked layout's tight stage rail. */+ html[data-reader-rail]:not([data-reader-rail="bottom"]) body { --archify-page-top: 1.5rem; padding-block: 1.5rem; }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .toolbar { top: calc(var(--archify-page-top) - 0.1875rem); }+ html[data-reader-rail]:not([data-reader-rail="bottom"]) .header { min-height: 0; margin-bottom: 1.125rem; }+ .node-outline-item {+ position: relative;+ display: grid;+ grid-template-columns: 0.625rem minmax(0, auto) minmax(0, 1fr) 0.75rem;+ align-items: center;+ column-gap: 0.625rem;+ width: 100%;+ min-height: 1.95rem;+ padding: 0.28rem 0.5rem 0.28rem 0.625rem;+ border: 0;+ border-radius: 0.5rem;+ background: transparent;+ color: var(--text);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition: background 0.16s ease;+ }+ /* Trailing chevron hints that a click focuses the node. */+ .node-outline-item::after {+ grid-column: 4;+ width: 0.75rem;+ height: 0.75rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0;+ transform: translateX(-3px);+ transition: opacity 0.16s ease, transform 0.16s ease;+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4.5 3 3 3-3 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;+ }+ .node-outline-item:hover,+ .node-outline-item:focus-visible,+ .node-outline-item[data-previewing] { background: color-mix(in srgb, var(--text) 4.5%, transparent); }+ .node-outline-item:hover::after,+ .node-outline-item:focus-visible::after { opacity: 0.7; transform: translateX(0); }+ .node-outline-item:focus-visible { outline: 1.5px solid color-mix(in srgb, var(--outline-tone) 60%, transparent); outline-offset: -1.5px; }+ .node-outline-item[aria-current="true"] { background: color-mix(in srgb, var(--outline-tone) 10%, transparent); }+ .node-outline-item[aria-current="true"]::after { opacity: 0; }+ /* Swatches echo the diagram's node cards: tinted fill, hairline stroke. */+ .node-outline-dot {+ width: 0.625rem;+ height: 0.5rem;+ border: 1.25px solid var(--outline-tone);+ border-radius: 0.15rem;+ background: color-mix(in srgb, var(--outline-tone) 16%, var(--bg));+ transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;+ }+ .node-outline-item:hover .node-outline-dot,+ .node-outline-item:focus-visible .node-outline-dot,+ .node-outline-item[data-previewing] .node-outline-dot,+ .node-outline-item[aria-current="true"] .node-outline-dot {+ background: var(--outline-tone);+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--outline-tone) 18%, transparent);+ transform: scale(1.08);+ }+ .node-outline-item strong {+ overflow: hidden;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .node-outline-item[aria-current="true"] strong { font-weight: 600; }+ .node-outline-item small {+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ text-align: right;+ text-overflow: ellipsis;+ white-space: nowrap;+ transition: color 0.16s ease;+ }+ .node-outline-item:hover small,+ .node-outline-item[data-previewing] small,+ .node-outline-item[aria-current="true"] small { color: var(--text-muted); }++ .card-header {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ margin-bottom: 0.625rem;+ }++ .card-dot {+ flex: none;+ width: 8px;+ height: 8px;+ border-radius: 50%;+ }++ .card-dot.cyan { background: var(--frontend-stroke); }+ .card-dot.emerald { background: var(--backend-stroke); }+ .card-dot.violet { background: var(--database-stroke); }+ .card-dot.amber { background: var(--cloud-stroke); }+ .card-dot.rose { background: var(--security-stroke); }+ .card-dot.orange { background: var(--messagebus-stroke); }+ .card-dot.slate { background: var(--external-stroke); }++ .card h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--text); }++ .card ul {+ list-style: none;+ color: var(--text-muted);+ font-size: 0.8125rem;+ line-height: 1.6;+ }++ .card li {+ position: relative;+ margin-bottom: 0.3rem;+ padding-left: 0.9rem;+ }+ .card li:last-child { margin-bottom: 0; }+ /* Hanging markers take the card's tone so wrapped lines align under text. */+ .card li::before {+ position: absolute;+ top: calc(0.8em - 2px);+ left: 0.2rem;+ width: 4px;+ height: 4px;+ border-radius: 50%;+ background: color-mix(in srgb, var(--card-tone, var(--text-muted)) 70%, transparent);+ content: "";+ }+ .card:has(.card-dot.cyan) { --card-tone: var(--frontend-stroke); }+ .card:has(.card-dot.emerald) { --card-tone: var(--backend-stroke); }+ .card:has(.card-dot.violet) { --card-tone: var(--database-stroke); }+ .card:has(.card-dot.amber) { --card-tone: var(--cloud-stroke); }+ .card:has(.card-dot.rose) { --card-tone: var(--security-stroke); }+ .card:has(.card-dot.orange) { --card-tone: var(--messagebus-stroke); }+ .card:has(.card-dot.slate) { --card-tone: var(--external-stroke); }+ .card-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-tone, transparent) 16%, transparent); }++ /* ==========================================================+ Print stylesheet — hide interactive controls, force light,+ drop the grid so the diagram doesn't waste ink, use landscape+ so wide diagrams fit, pack summary cards into 2 columns to+ avoid an orphan card on a trailing page.+ ========================================================== */+ @page { size: landscape; margin: 1.5cm; }++ @media print {+ /* Force the FULL light palette — including component fills/strokes and+ lane/arrow colors — so printing from dark theme doesn't put neon+ strokes and translucent dark fills on white paper. */+ :root, [data-theme="dark"], [data-theme="light"] {+ --bg: #ffffff;+ --grid: transparent;+ --panel: #ffffff;+ --panel-border: #e2e8f0;+ --text: #0f172a;+ --text-muted: #475569;+ --text-dim: #94a3b8;+ --text-faint: #64748b;+ --mask: #ffffff;+ --lane-fill: rgba(248, 250, 252, 0.65);+ --lane-stroke: #cbd5e1;+ --arrow: #94a3b8;+ --arrow-emphasis: #059669;+ --frontend-fill: rgba(34, 211, 238, 0.15);+ --frontend-stroke: #0891b2;+ --backend-fill: rgba(52, 211, 153, 0.18);+ --backend-stroke: #059669;+ --database-fill: rgba(167, 139, 250, 0.2);+ --database-stroke: #7c3aed;+ --cloud-fill: rgba(251, 191, 36, 0.18);+ --cloud-stroke: #d97706;+ --security-fill: rgba(251, 113, 133, 0.15);+ --security-stroke: #e11d48;+ --messagebus-fill: rgba(251, 146, 60, 0.15);+ --messagebus-stroke:#ea580c;+ --external-fill: rgba(148, 163, 184, 0.18);+ --external-stroke: #64748b;+ }+ body { background: #ffffff !important; padding: 0; }+ .container { max-width: none; }+ .toolbar, .diagram-nav, .focus-chip, .archify-toast, .no-print { display: none !important; }++ .diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }+ .diagram-container { --archify-nav-reserve: 0px !important; }+ html[data-preset="signal-flow"] .diagram-container,+ html[data-preset="signal-flow"] .card { background: #ffffff; }+ .cards { grid-template-columns: 1fr 1fr; }+ /* Ensure elements break sensibly across pages */+ .card { break-inside: avoid; page-break-inside: avoid; }+ .diagram-container { break-inside: avoid; page-break-inside: avoid; }+ .diagram-container svg [data-detail] {+ opacity: 1 !important;+ pointer-events: auto !important;+ }+ .diagram-container svg [data-detail-anchor] { transform: none !important; }+ .diagram-container svg[data-lens-active] [data-node-id],+ .diagram-container svg[data-lens-active] [data-edge-from],+ .diagram-container svg[data-legend-preview-active] [data-node-id],+ .diagram-container svg[data-legend-preview-active] [data-edge-from] {+ opacity: 1 !important;+ filter: none !important;+ }+ [data-legend-bridge-runtime] { display: none !important; }+ .semantic-lens-overlay { display: none !important; }+ .relationship-hit-overlay { display: none !important; }+ .relationship-pulse-overlay { display: none !important; }+ .route-probe-overlay, .route-journey-overlay { display: none !important; }+ .diagram-container svg[data-focus-active] [data-node-id],+ .diagram-container svg[data-focus-active] [data-edge-from],+ .diagram-container svg[data-focus-active] [data-graph-role="automatic-crossover-underlay"],+ .diagram-container svg[data-reach-active] [data-node-id],+ .diagram-container svg[data-reach-active] [data-edge-from],+ .diagram-container svg[data-reach-active] [data-graph-role="automatic-crossover-underlay"],+ .diagram-container svg[data-route-active] [data-node-id],+ .diagram-container svg[data-route-active] [data-edge-from],+ .diagram-container svg[data-route-active] [data-graph-role="automatic-crossover-underlay"] {+ opacity: 1 !important;+ filter: none !important;+ animation: none !important;+ }+ h1, .subtitle { color: #0f172a; }+ }++ /* ==========================================================+ TOOLBAR (theme toggle + export menu)+ ========================================================== */+ /* The toolbar tracks the centered reader column and the title row, so+ an adaptive narrow reader does not leave its controls stranded at the+ viewport edge. */+ .toolbar {+ position: absolute;+ top: var(--archify-page-top);+ right: max(1rem, calc((100vw - min(100vw - 4rem, var(--archify-reader-width, 1440px))) / 2));+ display: flex;+ align-items: center;+ gap: 0.125rem;+ padding: 0;+ border: 0;+ background: transparent;+ box-shadow: none;+ z-index: 100;+ }+ /* Ghost controls keep a 44px hit area while the visible pill stays compact;+ Export is the one primary action. */+ .toolbar button {+ position: relative;+ isolation: isolate;+ background: transparent;+ color: var(--text-muted);+ border: 0;+ padding: 0.5rem 0.75rem;+ border-radius: 0.5625rem;+ font-family: inherit;+ font-size: 0.8125rem;+ font-weight: 500;+ cursor: pointer;+ white-space: nowrap;+ box-shadow: none;+ transition: color 0.15s;+ display: inline-flex;+ align-items: center;+ gap: 0.4rem;+ min-height: 2.75rem;+ }+ .toolbar button::before {+ position: absolute;+ z-index: -1;+ inset: 0.375rem 0;+ border-radius: 0.5rem;+ background: transparent;+ content: "";+ transition: background 0.15s, box-shadow 0.15s;+ }+ .toolbar button:hover { color: var(--text); }+ .toolbar button:hover::before { background: color-mix(in srgb, var(--text) 6%, transparent); }+ .toolbar button[aria-expanded="true"],+ .toolbar button[aria-pressed="true"]:not(#btn-theme) { color: var(--text); }+ .toolbar button[aria-expanded="true"]::before,+ .toolbar button[aria-pressed="true"]:not(#btn-theme)::before {+ background: color-mix(in srgb, var(--text) 8%, transparent);+ }+ .toolbar #btn-export {+ margin-left: 0.375rem;+ padding-right: 0.95rem;+ padding-left: 1rem;+ color: var(--bg);+ font-weight: 550;+ }+ .toolbar #btn-export::before {+ background: var(--text);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px -8px rgba(15, 23, 42, 0.4);+ }+ .toolbar #btn-export:hover,+ .toolbar #btn-export[aria-expanded="true"] { color: var(--bg); }+ .toolbar #btn-export:hover::before,+ .toolbar #btn-export[aria-expanded="true"]::before { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }+ .toolbar button:focus-visible {+ outline: 2px solid var(--frontend-stroke);+ outline-offset: -4px;+ }+ .toolbar { gap: 0.5rem; }+ .toolbar #btn-export { margin-left: 0; }+ .toolbar #btn-export::before { inset: 0.25rem 0; border-radius: 0.6875rem; }+ /* Tools share one quiet capsule; the capsule is drawn inside the 44px row+ so the controls keep their hit area without a tall visible box. */+ .toolbar-group {+ position: relative;+ isolation: isolate;+ display: flex;+ align-items: center;+ gap: 0.0625rem;+ padding: 0 0.25rem;+ }+ .toolbar-group::before {+ position: absolute;+ z-index: -1;+ inset: 0.25rem 0;+ border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);+ border-radius: 0.6875rem;+ background: color-mix(in srgb, var(--panel) 78%, transparent);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px -14px rgba(15, 23, 42, 0.22);+ backdrop-filter: blur(12px);+ content: "";+ }+ .toolbar-group button { padding-inline: 0.625rem; }+ .toolbar-group button::before { inset: 0.5rem 0; border-radius: 0.5rem; }+ /* Theme becomes a sliding switch; its label stays for assistive tech. */+ .toolbar #theme-label,+ .toolbar #present-label {+ position: absolute;+ width: 1px;+ height: 1px;+ overflow: hidden;+ clip: rect(0 0 0 0);+ white-space: nowrap;+ }+ .toolbar #btn-theme {+ width: 3.5rem;+ padding: 0;+ justify-content: center;+ }+ .toolbar #btn-theme::before {+ inset: 0.75rem 0.4375rem;+ border-radius: 999px;+ background: color-mix(in srgb, var(--text) 9%, transparent);+ box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);+ }+ .toolbar #btn-theme:hover::before { background: color-mix(in srgb, var(--text) 13%, transparent); }+ .toolbar #btn-theme::after {+ position: absolute;+ z-index: 0;+ top: 50%;+ left: 0.5625rem;+ width: 1.125rem;+ height: 1.125rem;+ border-radius: 50%;+ background: var(--panel);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);+ content: "";+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ .toolbar #theme-icon {+ position: absolute;+ z-index: 1;+ top: 50%;+ left: calc(0.5625rem + 0.1875rem);+ width: 0.75rem;+ height: 0.75rem;+ color: var(--cloud-stroke);+ transform: translateY(-50%);+ transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1);+ }+ [data-theme="dark"] .toolbar #btn-theme::before { background: rgba(148, 163, 184, 0.16); }+ [data-theme="dark"] .toolbar #btn-theme::after { left: calc(100% - 0.5625rem - 1.125rem); background: #3b4a63; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }+ [data-theme="dark"] .toolbar #theme-icon { left: calc(100% - 0.5625rem - 1.125rem + 0.1875rem); color: #c7d2fe; }+ .toolbar #btn-present { width: 2.5rem; padding: 0; justify-content: center; }+ .toolbar #btn-present .toolbar-icon { width: 1rem; height: 1rem; }+ html[data-motion="still"] .toolbar #btn-theme::after,+ html[data-motion="still"] .toolbar #theme-icon { transition: none; }+ html[data-present="true"]:not([data-embed="true"]) .toolbar { right: 1rem; }+ html[data-preset="editorial"] .toolbar { border-radius: 0.45rem; }+ .toolbar #btn-motion[hidden] { display: none !important; }+ .toolbar #btn-motion { min-width: 4.4rem; }+ .toolbar #btn-motion:disabled { cursor: default; opacity: 0.58; }+ .toolbar .preset-wrap,+ .toolbar .export-wrap {+ position: relative;+ }+ .toolbar-icon {+ display: inline-block;+ width: 0.95rem;+ height: 0.95rem;+ flex: 0 0 auto;+ background: currentColor;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar-chevron {+ width: 0.65rem;+ height: 0.65rem;+ transition: transform 0.15s ease;+ }+ [aria-expanded="true"] > .toolbar-chevron { transform: rotate(180deg); }+ [data-theme="light"] #theme-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='3.1'/%3E%3Cpath d='M10 2.2v1.4M10 16.4v1.4M2.2 10h1.4M16.4 10h1.4M4.5 4.5l1 1M14.5 14.5l1 1M15.5 4.5l-1 1M5.5 14.5l-1 1'/%3E%3C/g%3E%3C/svg%3E");+ }+ [data-theme="dark"] #theme-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.2 12.7A6.3 6.3 0 017.3 4.8a6.3 6.3 0 107.9 7.9Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");+ }+ #btn-present[aria-pressed="false"] #present-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 3.2h-4v4M12.8 3.2h4v4M7.2 16.8h-4v-4M12.8 16.8h4v-4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ #btn-present[aria-pressed="true"] #present-icon {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.2 7.2h-4v-4M12.8 7.2h4v-4M7.2 12.8h-4v4M12.8 12.8h4v4' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");+ }+ .toolbar-chevron {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ }+ .toolbar #btn-preset { min-width: 5.4rem; }+ .preset-control-mark {+ width: 0.58rem;+ height: 0.58rem;+ flex: 0 0 auto;+ border: 1px solid var(--frontend-stroke);+ border-radius: 0.2rem;+ background: color-mix(in srgb, var(--frontend-stroke) 28%, transparent);+ transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s;+ }+ #btn-preset[data-preset-option="signal-flow"] .preset-control-mark {+ border-radius: 50%;+ box-shadow: 0 0 10px color-mix(in srgb, var(--frontend-stroke) 78%, transparent);+ }+ #btn-preset[data-preset-option="blueprint"] .preset-control-mark {+ border-radius: 0.06rem;+ background: transparent;+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frontend-stroke) 32%, transparent);+ transform: rotate(45deg) scale(0.84);+ }+ #btn-preset[data-preset-option="editorial"] .preset-control-mark {+ border-color: var(--arrow-emphasis);+ border-radius: 0;+ background: var(--arrow-emphasis);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--arrow-emphasis) 14%, transparent);+ transform: rotate(45deg) scale(0.72);+ }+ /* Menus anchor to the tools capsule so they open flush under it. */+ .toolbar-group .preset-wrap { position: static; }+ .toolbar .preset-menu {+ position: absolute;+ top: calc(100% + 0.125rem);+ right: 0;+ display: none;+ width: 17.5rem;+ max-width: calc(100vw - 2rem);+ padding: 0.375rem;+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ border-radius: 0.875rem;+ background: var(--toolbar-menu-bg);+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ }+ [data-theme="dark"] .toolbar .preset-menu,+ [data-theme="dark"] .toolbar .export-menu {+ border-color: rgba(148, 163, 184, 0.16);+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -12px rgba(0, 0, 0, 0.6);+ }+ /* Menu rows are not toolbar pills: drop the ghost-button pseudo surface. */+ .toolbar .preset-menu button,+ .toolbar .export-menu button { isolation: auto; min-height: 0; }+ .toolbar .preset-menu button::before { display: none; }+ .toolbar .preset-menu.open { display: block; }+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open {+ animation: toolbar-menu-in 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);+ transform-origin: top right;+ }+ @keyframes toolbar-menu-in {+ from { opacity: 0; transform: translateY(-0.25rem) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+ }+ .preset-menu-heading {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.45rem 0.55rem 0.4rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;+ }+ .preset-menu-shortcut {+ display: inline-flex;+ align-items: center;+ gap: 0.35rem;+ font-weight: 500;+ }+ .preset-menu-shortcut kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ }+ .toolbar .preset-option {+ display: grid;+ grid-template-columns: 2.375rem minmax(0, 1fr) 1rem;+ align-items: center;+ gap: 0.75rem;+ width: 100%;+ min-height: 3.125rem;+ margin-top: 0.125rem;+ padding: 0.45rem 0.6rem 0.45rem 0.5rem;+ border: 0;+ border-radius: 0.625rem;+ background: transparent;+ color: var(--text);+ box-shadow: none;+ backdrop-filter: none;+ text-align: left;+ transition: background 0.14s ease;+ }+ .toolbar .preset-option:hover,+ .toolbar .preset-option:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); }+ .toolbar .preset-option[aria-checked="true"] { background: color-mix(in srgb, var(--frontend-stroke) 8%, transparent); }+ .toolbar .preset-option:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;+ }+ .preset-option-swatch {+ position: relative;+ width: 2.375rem;+ height: 1.75rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.4375rem;+ background: #0f172a;+ box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28), 0 1px 2px rgba(15, 23, 42, 0.12);+ transition: box-shadow 0.14s ease, transform 0.14s ease;+ }+ .toolbar .preset-option:hover .preset-option-swatch { transform: translateY(-1px); }+ .toolbar .preset-option[aria-checked="true"] .preset-option-swatch {+ box-shadow: 0 0 0 2px var(--toolbar-menu-bg), 0 0 0 3.5px var(--frontend-stroke);+ }+ .preset-option-swatch::before,+ .preset-option-swatch::after { position: absolute; content: ""; }+ .preset-option-swatch.classic::before {+ top: 0.42rem;+ right: 0.35rem;+ bottom: 0.42rem;+ left: 0.35rem;+ border: 1px solid #22d3ee;+ border-radius: 0.16rem;+ background: rgba(34, 211, 238, 0.14);+ }+ /* Classic previews the canvas it will actually produce in this theme. */+ [data-theme="light"] .preset-option-swatch.classic {+ background:+ radial-gradient(circle at 1px 1px, #d9dee5 0.6px, transparent 0.9px) 0 0 / 5px 5px,+ #ffffff;+ }+ [data-theme="light"] .preset-option-swatch.classic::before {+ border-color: #1b87a3;+ background: rgba(14, 116, 144, 0.08);+ box-shadow: 0 2px 4px rgba(17, 24, 39, 0.12);+ }+ .preset-option-swatch.signal-flow {+ border-color: #29415f;+ background: linear-gradient(135deg, #07101e 10%, #10243c 100%);+ }+ .preset-option-swatch.signal-flow::before {+ top: 50%;+ right: 0.2rem;+ left: 0.2rem;+ height: 1px;+ background: linear-gradient(90deg, #67e8f9, #c4b5fd);+ box-shadow: 0 0 8px #67e8f9;+ }+ .preset-option-swatch.signal-flow::after {+ top: calc(50% - 0.13rem);+ right: 0.28rem;+ width: 0.26rem;+ height: 0.26rem;+ border-radius: 50%;+ background: #67e8f9;+ box-shadow: 0 0 7px #67e8f9;+ }+ .preset-option-swatch.blueprint {+ border-color: #34799a;+ border-radius: 0.08rem;+ background-color: #0a2031;+ background-image:+ linear-gradient(rgba(102, 217, 239, 0.18) 1px, transparent 1px),+ linear-gradient(90deg, rgba(102, 217, 239, 0.18) 1px, transparent 1px);+ background-size: 0.42rem 0.42rem;+ }+ .preset-option-swatch.blueprint::before {+ top: 0.34rem;+ right: 0.38rem;+ bottom: 0.34rem;+ left: 0.38rem;+ border: 1px solid #66d9ef;+ }+ .preset-option-swatch.editorial {+ border-color: #b8aa94;+ border-radius: 0.08rem;+ background: repeating-linear-gradient(0deg, #f2eee5 0 0.34rem, #d8d0c2 0.36rem, #f2eee5 0.38rem);+ }+ .preset-option-swatch.editorial::before {+ top: 0;+ bottom: 0;+ left: 0.42rem;+ width: 1px;+ background: #c9502d;+ opacity: 0.72;+ }+ .preset-option-swatch.editorial::after {+ top: 0.52rem;+ right: 0.45rem;+ width: 0.38rem;+ height: 0.38rem;+ background: #c9502d;+ transform: rotate(45deg);+ }+ .preset-option-copy { min-width: 0; }+ .preset-option-copy strong,+ .preset-option-copy small { display: block; }+ .preset-option-copy strong {+ color: var(--text);+ font-size: 0.8125rem;+ font-weight: 550;+ letter-spacing: -0.005em;+ }+ .toolbar .preset-option[aria-checked="true"] .preset-option-copy strong { font-weight: 650; }+ .preset-option-copy small {+ margin-top: 0.125rem;+ overflow: hidden;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 400;+ white-space: nowrap;+ text-overflow: ellipsis;+ }+ .preset-option-check {+ display: inline-block;+ width: 0.9rem;+ height: 0.9rem;+ color: var(--frontend-stroke);+ background: currentColor;+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.5 3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ opacity: 0;+ }+ .preset-option[aria-checked="true"] .preset-option-check { opacity: 1; }+ html[data-preset="editorial"] .toolbar button,+ html[data-preset="editorial"] .preset-menu,+ html[data-preset="editorial"] .export-menu,+ html[data-preset="editorial"] .overview-map,+ html[data-preset="editorial"] .semantic-lens,+ html[data-preset="editorial"] .route-probe,+ html[data-preset="editorial"] .focus-chip,+ html[data-preset="editorial"] .diagram-guide,+ html[data-preset="editorial"] .node-finder {+ border-radius: 0.3rem;+ }+ .motion-control-dot {+ width: 0.46rem;+ height: 0.46rem;+ flex: 0 0 auto;+ border: 1px solid var(--frontend-stroke);+ border-radius: 50%;+ background: var(--frontend-stroke);+ box-shadow: 0 0 9px color-mix(in srgb, var(--frontend-stroke) 72%, transparent);+ }+ #btn-motion[aria-pressed="false"] .motion-control-dot {+ background: transparent;+ box-shadow: none;+ }+ .toolbar .export-menu {+ position: absolute;+ top: calc(100% + 0.125rem);+ right: 0;+ background: var(--toolbar-menu-bg);+ border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);+ width: 19rem;+ max-width: calc(100vw - 2rem);+ max-height: calc(100vh - 5.5rem);+ overflow-y: auto;+ border-radius: 0.875rem;+ padding: 0.375rem;+ display: none;+ flex-direction: column;+ box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 44px -14px rgba(15, 23, 42, 0.3);+ scrollbar-width: thin;+ }+ .toolbar .export-menu.open { display: flex; }+ .export-menu-header {+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ gap: 1rem;+ padding: 0.55rem 0.6rem 0.6rem;+ }+ .export-menu-header strong,+ .export-menu-header span { display: block; }+ .export-menu-header strong {+ color: var(--text);+ font-size: 0.875rem;+ font-weight: 600;+ letter-spacing: -0.005em;+ }+ .export-menu-header span {+ margin-top: 0.15rem;+ color: var(--text-faint);+ font-size: 0.75rem;+ }+ .export-menu-header kbd {+ min-width: 1.125rem;+ padding: 0.05rem 0.3rem;+ border: 1px solid var(--panel-border);+ border-bottom-width: 2px;+ border-radius: 0.3rem;+ background: color-mix(in srgb, var(--text) 3%, var(--toolbar-menu-bg));+ color: var(--text-muted);+ font-family: inherit;+ font-size: 0.625rem;+ font-weight: 600;+ line-height: 1.3;+ text-align: center;+ }+ .export-menu-section {+ display: grid;+ grid-template-columns: minmax(0, 1fr);+ gap: 0.0625rem;+ }+ .export-menu-section + .export-menu-section {+ margin-top: 0.3rem;+ padding-top: 0.3rem;+ border-top: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);+ }+ .export-menu-heading {+ grid-column: 1 / -1;+ display: block;+ padding: 0.4rem 0.6rem 0.25rem;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 600;+ letter-spacing: 0.01em;+ }+ .toolbar .export-menu button {+ display: grid;+ grid-template-columns: 1rem minmax(0, 1fr);+ align-items: center;+ column-gap: 0.7rem;+ background: transparent;+ border: 0;+ box-shadow: none;+ backdrop-filter: none;+ width: 100%;+ min-height: 2.5rem;+ text-align: left;+ padding: 0.4rem 0.6rem;+ border-radius: 0.5625rem;+ color: var(--text);+ white-space: nowrap;+ transition: background 0.14s ease;+ }+ .toolbar .export-menu button:hover,+ .toolbar .export-menu button:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }+ .toolbar .export-menu button:focus-visible {+ outline: 1.5px solid color-mix(in srgb, var(--frontend-stroke) 55%, transparent);+ outline-offset: -1.5px;+ }+ /* Name and format hint share one line, so each row stays compact. */+ .export-item-copy {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: 0.75rem;+ min-width: 0;+ }+ .export-item-copy strong {+ overflow: hidden;+ color: inherit;+ font-size: 0.8125rem;+ font-weight: 500;+ text-overflow: ellipsis;+ }+ .export-item-copy small {+ flex: none;+ color: var(--text-faint);+ font-size: 0.6875rem;+ font-weight: 450;+ }+ .toolbar .export-menu button::before {+ position: static;+ z-index: auto;+ inset: auto;+ border-radius: 0;+ display: block;+ width: 1rem;+ height: 1rem;+ background: currentColor;+ color: var(--text-muted);+ content: "";+ opacity: 0.8;+ -webkit-mask-position: center;+ -webkit-mask-repeat: no-repeat;+ -webkit-mask-size: contain;+ mask-position: center;+ mask-repeat: no-repeat;+ mask-size: contain;+ }+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='black' stroke-width='1.7' d='M3 4.5h14v11H3zM6 12l2.5-2.5 2 2 1.5-1.5 2 2'/%3E%3Ccircle cx='13.8' cy='7.3' r='1.2' fill='black'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-action^="copy"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='10' height='10' rx='1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M4 13H3.5A1.5 1.5 0 012 11.5v-8A1.5 1.5 0 013.5 2h8A1.5 1.5 0 0113 3.5V4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-format="png"]::before,+ .toolbar .export-menu button[data-format="jpeg"]::before,+ .toolbar .export-menu button[data-format="webp"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 2.5h7l3 3v12H5zM12 2.5v3h3' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='M7.5 14l2-2 1.5 1.5 1.5-1.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-format^="svg"]::before,+ .toolbar .export-menu button[data-format="webm"]::before {+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5l7 4v7l-7 4-7-4v-7zM3 6.5l7 4 7-4M10 10.5v7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");+ }+ .toolbar .export-menu button[data-action="route-share-card"],+ .toolbar .export-menu button[data-action="reach-share-card"] {+ color: var(--text);+ background: color-mix(in srgb, var(--frontend-stroke) 7%, transparent);+ }+ .toolbar .export-menu button[data-action="route-share-card"]::before,+ .toolbar .export-menu button[data-action="reach-share-card"]::before { color: var(--frontend-stroke); opacity: 1; }+ .toolbar .export-menu button[hidden] { display: none; }+ .toolbar .export-menu button[data-action="route-share-card"]:hover,+ .toolbar .export-menu button[data-action="reach-share-card"]:hover {+ background: color-mix(in srgb, var(--frontend-stroke) 12%, transparent);+ }+ .toolbar .export-menu button:disabled {+ color: var(--text-faint);+ background: transparent;+ opacity: 0.55;+ cursor: not-allowed;+ }+ .toolbar .export-menu .hint {+ color: var(--text-faint);+ font-size: 0.6875rem;+ }++ /* Toast — brief feedback for actions like "copied" */+ .archify-toast {+ position: fixed;+ top: 1rem;+ left: 50%;+ transform: translateX(-50%) translateY(-8px);+ background: var(--toolbar-menu-bg);+ color: var(--text);+ border: 1px solid var(--toolbar-border);+ padding: 0.5rem 1rem;+ border-radius: 0.5rem;+ font-family: inherit;+ font-size: 0.75rem;+ opacity: 0;+ transition: opacity 0.2s, transform 0.2s;+ z-index: 200;+ pointer-events: none;+ box-shadow: 0 4px 20px rgba(0,0,0,0.25);+ }+ .archify-toast.show {+ opacity: 1;+ transform: translateX(-50%) translateY(0);+ }++ @media (max-width: 720px) {+ body { padding: 1rem; }+ .toolbar .preset-menu,+ .toolbar .export-menu {+ position: fixed;+ top: 4.5rem;+ right: 1rem;+ left: 1rem;+ width: auto;+ max-width: none;+ }+ .toolbar {+ position: relative;+ top: auto;+ right: auto;+ justify-content: flex-end;+ width: max-content;+ max-width: 100%;+ margin-left: auto;+ margin-bottom: 1rem;+ }+ .header { margin-bottom: 1.25rem; padding-right: 0; }+ html[data-preset="signal-flow"] .header,+ html[data-preset="blueprint"] .header,+ html[data-preset="editorial"] .header { padding-right: 0; }+ .header-row {+ gap: 0.75rem;+ align-items: flex-start;+ }+ html[data-preset="signal-flow"] .header-row,+ html[data-preset="blueprint"] .header-row,+ html[data-preset="editorial"] .header-row { flex-wrap: wrap; }+ html[data-preset="signal-flow"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ html[data-preset="blueprint"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ html[data-preset="editorial"] .header-row::after {+ margin-left: 0;+ order: 3;+ }+ h1 {+ font-size: 1.25rem;+ line-height: 1.25;+ }+ .subtitle {+ margin-left: 0;+ font-size: 0.8125rem;+ line-height: 1.55;+ }+ .diagram-container {+ padding: 0.75rem;+ border-radius: 0.75rem;+ }+ html:not([data-embed="true"]) .diagram-container {+ padding: 0.75rem 0.75rem 4.25rem;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] {+ overflow-x: auto;+ overflow-y: hidden;+ overscroll-behavior-x: contain;+ scrollbar-width: thin;+ scroll-behavior: smooth;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {+ min-width: 720px;+ }+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .diagram-nav,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .overview-map,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .focus-chip,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .route-probe,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .semantic-lens,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .diagram-guide,+ html:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] .node-finder {+ transform: translateX(var(--archify-scroll-x, 0px));+ }+ .diagram-nav { right: 0.5rem; bottom: 0.5rem; }+ .diagram-nav button {+ min-width: 2.75rem;+ height: 2.75rem;+ }+ .diagram-nav [data-view="reset"] { min-width: 3.75rem; }+ .diagram-nav [data-view="reset"][data-detail-visible] { min-width: 4.35rem; }+ .overview-map {+ right: 0.5rem;+ bottom: 3.7rem;+ width: min(10.25rem, calc(100% - 1rem));+ }+ .overview-map[data-docked="true"] {+ right: var(--archify-radar-right, 0.5rem);+ top: var(--archify-radar-top, 0.5rem);+ bottom: auto;+ transform: none !important;+ }+ .overview-map[data-docked="true"][data-dock-side="left"] {+ right: auto;+ left: var(--archify-radar-left, 0.5rem);+ }+ .overview-map-surface { height: 4rem; }+ .overview-map-feedback { right: 0.5rem; bottom: 3.7rem; }+ .semantic-lens {+ right: 0.5rem;+ bottom: 3.7rem;+ width: calc(100% - 1rem);+ max-height: calc(100% - 4.2rem);+ }+ .semantic-lens[data-dock-side] { left: auto; right: 0.5rem; }+ .semantic-lens-kinds { max-height: min(12rem, 34vh); }+ .focus-chip {+ left: 0.5rem;+ top: 0.5rem;+ width: calc(100% - 1rem);+ max-width: none;+ }+ .relationship-lens-head { padding-top: 0.7rem; }+ .relationship-lens-drag-handle { display: none; }+ .relationship-lens-list { max-height: min(12rem, 38vh); }+ .relationship-lens-actions #btn-focus-relations { display: block; color: var(--database-stroke); }+ .focus-chip:not([data-relations-expanded="true"]) .relationship-lens-head { border-bottom-color: transparent; }+ .focus-chip:not([data-relations-expanded="true"]) .relationship-lens-list { display: none; }+ /* While a mobile reader previews one relationship, turn the full Lens+ into a compact peek card. This keeps the exact source and target on+ canvas instead of covering them with a long, scrollable list. */+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-list {+ max-height: none;+ padding: 0.35rem;+ overflow: hidden;+ }+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-group { margin: 0; }+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-group-title,+ .focus-chip[data-relationship-previewing="true"] .relationship-lens-row:not([data-preview-active="true"]) {+ display: none;+ }+ .node-finder {+ top: 0.5rem;+ left: 0.5rem;+ width: min(22rem, calc(100% - 1rem));+ max-height: calc(100% - 1rem);+ }+ .diagram-guide {+ top: 0.5rem;+ right: 0.5rem;+ left: 0.5rem;+ width: auto;+ max-height: calc(100% - 1rem);+ }+ .diagram-guide-head { padding: 0.62rem 0.7rem 0.52rem; }+ .diagram-guide-stats { padding: 0.42rem 0.7rem; }+ .diagram-guide-actions {+ grid-template-columns: 1fr;+ gap: 0.28rem;+ padding: 0.42rem;+ }+ .diagram-guide-action {+ min-height: 3.1rem;+ padding: 0.42rem 0.48rem;+ }+ .diagram-guide-action small {+ display: block;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .diagram-guide-index {+ width: 1.5rem;+ height: 1.5rem;+ }+ .diagram-guide-shortcuts { padding: 0.46rem 0.7rem 0.52rem; }+ .diagram-guide-action[data-guide-action="present"] { grid-column: auto; }+ .route-probe[data-guide-open="true"] {+ visibility: hidden;+ pointer-events: none;+ }+ .node-finder-results { max-height: min(16rem, 38vh); }+ .route-probe {+ left: 0.5rem;+ bottom: 3.7rem;+ width: calc(100% - 1rem);+ min-width: 0;+ }+ .route-probe[data-route-dock="top"] {+ top: 0.5rem;+ bottom: auto;+ }+ .route-probe[data-finder-open="true"] {+ visibility: hidden;+ pointer-events: none;+ }+ .route-probe-head { padding: 0.45rem 0.48rem 0.38rem; }+ .route-probe-path { padding: 0.35rem 0.48rem 0.2rem; }+ .route-probe-node { min-height: 2.75rem !important; }+ .route-journey-controls {+ grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem minmax(0, 1fr);+ padding: 0.08rem 0.48rem 0.32rem;+ }+ .route-journey-controls button { min-height: 2.75rem; }+ .route-probe-status { padding: 0.05rem 0.48rem 0.38rem; }+ .route-probe-node { max-width: 7.5rem; }++++++++++++ html[data-embed="true"][data-share-playback="true"] .diagram-container {+ padding-top: 4.25rem;+ }+ html[data-embed="true"][data-share-moment="true"] .diagram-container {+ padding-top: 4.25rem;+ }++ .cards {+ grid-template-columns: 1fr;+ margin-top: 1rem;+ }+ html[data-present="true"]:not([data-embed="true"]) body { padding: 0.5rem; }+ html[data-present="true"]:not([data-embed="true"]) .container {+ gap: 0.5rem;+ height: calc(100dvh - 1rem);+ }+ html[data-present="true"]:not([data-embed="true"]) .toolbar {+ position: fixed;+ top: 0.5rem;+ right: 0.5rem;+ margin: 0;+ gap: 0.25rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .toolbar button {+ min-height: 2.75rem;+ padding: 0.42rem 0.58rem;+ }+ html[data-present="true"]:not([data-embed="true"]) .header {+ min-height: 2.25rem;+ padding: 3.5rem 0 0;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row {+ min-height: 2.25rem;+ margin: 0;+ align-items: center;+ flex-wrap: nowrap;+ }+ html[data-present="true"]:not([data-embed="true"]) .header-row::after,+ html[data-present="true"]:not([data-embed="true"]) .pulse-dot,+ html[data-present="true"]:not([data-embed="true"]) .subtitle { display: none; }+ html[data-present="true"]:not([data-embed="true"]) h1 {+ flex: 1 1 auto;+ min-width: 0;+ max-width: 100%;+ overflow: hidden;+ font-size: 0.875rem;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ html[data-present="true"]:not([data-embed="true"]) .diagram-container { padding: 0.5rem 0.5rem 3.75rem; }+ html[data-present="true"]:not([data-embed="true"]) .diagram-container[data-wide-diagram="true"] > svg {+ width: 720px;+ height: auto;+ min-width: 720px;+ }+ }++ @media (max-width: 420px) {+ .export-menu-section { grid-template-columns: 1fr; }+ .export-menu-heading,+ .toolbar .export-menu button[data-action="route-share-card"],+ .toolbar .export-menu button[data-action="reach-share-card"] { grid-column: 1; }+ }++ @media (prefers-reduced-motion: reduce) {+ .toolbar .preset-menu.open,+ .toolbar .export-menu.open { animation: none; }+ .toolbar-chevron { transition: none; }+ }++ @media (max-width: 360px) {+ .toolbar { gap: 0.25rem; }+ .toolbar button { padding-right: 0.58rem; padding-left: 0.58rem; }+ .toolbar #btn-motion { min-width: 4.4rem; padding-right: 0.58rem; padding-left: 0.58rem; }+ #theme-label, #preset-label, #present-label { display: none; }+ }++ /* ==========================================================+ SVG SEMANTIC CLASSES — use these instead of inline fill/stroke+ ========================================================== */+ .c-grid { stroke: var(--grid); fill: none; }+ .c-mask { fill: var(--mask); stroke: none; }+ .c-lane-rule { stroke: var(--lane-stroke); fill: none; opacity: 0.7; }+ .c-lane-wash { fill: var(--lane-fill); stroke: none; }++ .c-frontend { fill: var(--frontend-fill); stroke: var(--frontend-stroke); }+ .c-backend { fill: var(--backend-fill); stroke: var(--backend-stroke); }+ .c-database { fill: var(--database-fill); stroke: var(--database-stroke); }+ .c-cloud { fill: var(--cloud-fill); stroke: var(--cloud-stroke); }+ .c-security { fill: var(--security-fill); stroke: var(--security-stroke); }+ .c-messagebus { fill: var(--messagebus-fill); stroke: var(--messagebus-stroke); }+ .c-external { fill: var(--external-fill); stroke: var(--external-stroke); }++ /* Text helpers */+ .t-primary { fill: var(--text); }+ .t-muted { fill: var(--text-muted); }+ .t-dim { fill: var(--text-dim); }+ .t-frontend { fill: var(--frontend-stroke); }+ .t-backend { fill: var(--backend-stroke); }+ .t-database { fill: var(--database-stroke); }+ .t-cloud { fill: var(--cloud-stroke); }+ .t-security { fill: var(--security-stroke); }+ .t-messagebus { fill: var(--messagebus-stroke); }+ .t-external { fill: var(--external-stroke); }++ /* Relationship labels share the exact color token used by their path. */+ .t-edge-default { fill: var(--arrow); }+ .t-edge-emphasis { fill: var(--arrow-emphasis); }+ .t-edge-security { fill: var(--security-stroke); }+ .t-edge-dashed { fill: var(--database-stroke); }++ /* Classic canvas: a quiet dot field replaces drafting grid lines, and nodes+ read as lifted cards with hairline strokes. Paint only; authored geometry,+ hit areas and exports keep their canonical shapes. */+ html[data-preset="classic"] .diagram-container {+ background:+ radial-gradient(circle at 1px 1px, var(--canvas-dot) 1px, transparent 1.4px) 0 0 / 20px 20px,+ var(--panel);+ }+ html[data-preset="classic"] .diagram-container > svg .c-grid { stroke: transparent; }+ html[data-preset="classic"][data-theme="light"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.05)) drop-shadow(0 6px 12px rgba(17, 24, 39, 0.06));+ }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg [data-node-id] > rect:not(.c-mask) {+ filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));+ }+ html[data-preset="classic"] .diagram-container > svg [data-edge-from] {+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ html[data-preset="classic"] .diagram-container > svg .c-lane-wash { fill: color-mix(in srgb, var(--text) 2.6%, transparent); }+ html[data-preset="classic"] .diagram-container > svg .c-lane-rule { stroke: var(--panel-border); opacity: 1; }+ html[data-preset="classic"][data-theme="dark"] .diagram-container > svg .c-lane-rule { stroke: rgba(148, 163, 184, 0.16); }+ html[data-preset="classic"] .diagram-container > svg [data-node-id] {+ transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);+ }+ html[data-preset="classic"]:not([data-motion="still"]) .diagram-container > svg [data-node-id]:hover {+ transform: translateY(-1.5px);+ }++ /* Semantic Sigils are small authored role stamps, not icons from a brand+ pack and not viewer controls. Prefix selectors with svg so the canonical+ export's SVG-only stylesheet collector keeps them automatically. */+ svg .semantic-sigil {+ fill: none;+ stroke: currentColor;+ stroke-width: 1.35;+ stroke-linecap: round;+ stroke-linejoin: round;+ opacity: 0.76;+ pointer-events: none;+ }+ svg .semantic-sigil > * { vector-effect: non-scaling-stroke; }+ svg .semantic-sigil .sigil-fill { fill: currentColor; stroke: none; }+ svg .s-frontend { color: var(--frontend-stroke); }+ svg .s-backend { color: var(--backend-stroke); }+ svg .s-database { color: var(--database-stroke); }+ svg .s-cloud { color: var(--cloud-stroke); }+ svg .s-security { color: var(--security-stroke); }+ svg .s-messagebus { color: var(--messagebus-stroke); }+ svg .s-external { color: var(--external-stroke); }++ /* Brand Marks are authored identity badges. Their color is contained+ inside one neutral plate so vendor color never replaces Archify's+ semantic node and relationship vocabulary. */+ svg .brand-mark { pointer-events: none; }+ svg .brand-mark-badge { fill: #fff; stroke: none; }+ svg .brand-mark-frame {+ fill: none;+ stroke: #cbd5e1;+ stroke-width: 0.8;+ vector-effect: non-scaling-stroke;+ }+ svg .brand-mark-fallback {+ fill: none;+ stroke: #475569;+ stroke-width: 1.15;+ stroke-linecap: round;+ stroke-linejoin: round;+ }+ svg[data-preset="blueprint"] .brand-mark-badge,+ svg[data-preset="blueprint"] .brand-mark-frame { rx: 1px; }++ /* Reading Depth is a viewer-only level-of-detail layer. MAP preserves the+ authored structure and primary labels, READ restores relationship labels+ and node context, and FULL restores tags and fine annotations. Semantic+ intent can reveal the relevant detail without moving any geometry. */+ svg [data-detail] { transition: opacity 160ms ease; }+ svg [data-detail-anchor] {+ transform-box: fill-box;+ transform-origin: center;+ transition: transform 160ms ease;+ }+ .diagram-container[data-detail-level="map"] svg [data-detail="context"],+ .diagram-container[data-detail-level="map"] svg [data-detail="fine"],+ .diagram-container[data-detail-level="read"] svg [data-detail="fine"] {+ opacity: 0;+ pointer-events: none;+ }+ .diagram-container[data-detail-level="map"] svg [data-detail-anchor] {+ transform: translateY(8px);+ }++ /* Focus, lens, preview, route, and story states are stronger reader intent than+ the global zoom level. Reveal only their exact semantic matches. */+ svg[data-focus-active] [data-focus-match][data-detail],+ svg[data-focus-active] [data-focus-match] [data-detail],+ svg[data-reach-active] [data-reach-match][data-detail],+ svg[data-reach-active] [data-reach-match] [data-detail],+ svg[data-lens-active] [data-lens-match][data-detail],+ svg[data-lens-active] [data-lens-match] [data-detail],+ svg[data-legend-preview-active] [data-legend-preview-match][data-detail],+ svg[data-legend-preview-active] [data-legend-preview-match] [data-detail],+ svg[data-intent-trace-active] [data-intent-trace-match][data-detail],+ svg[data-intent-trace-active] [data-intent-trace-match] [data-detail],+ svg[data-route-active] [data-route-match][data-detail],+ svg[data-route-active] [data-route-match] [data-detail],+ svg[data-relationship-preview-active] [data-relationship-preview][data-detail],+ svg[data-relationship-preview-active] [data-relationship-preview] [data-detail],+ svg [data-node-id]:hover [data-detail],+ svg [data-node-id]:focus-visible [data-detail] {+ opacity: 1;+ pointer-events: auto;+ }+ svg[data-focus-active] [data-focus-match] [data-detail-anchor],+ svg[data-reach-active] [data-reach-match] [data-detail-anchor],+ svg[data-lens-active] [data-lens-match] [data-detail-anchor],+ svg[data-legend-preview-active] [data-legend-preview-match] [data-detail-anchor],+ svg[data-intent-trace-active] [data-intent-trace-match] [data-detail-anchor],+ svg[data-route-active] [data-route-match] [data-detail-anchor],+ svg [data-node-id]:hover [data-detail-anchor],+ svg [data-node-id]:focus-visible [data-detail-anchor] { transform: none; }++ /* Arrows */+ .a-default { stroke: var(--arrow); fill: none; }+ .a-emphasis { stroke: var(--arrow-emphasis); fill: none; }+ .a-security { stroke: var(--security-stroke); fill: none; stroke-dasharray: 5,5; }+ .a-dashed { stroke: var(--database-stroke); fill: none; stroke-dasharray: 4,4; }++ /* Arrowhead markers reference these */+ .m-default { fill: var(--arrow); }+ .m-emphasis { fill: var(--arrow-emphasis); }+ .m-security { fill: var(--security-stroke); }+ .m-dashed { fill: var(--database-stroke); }++ /* Stable semantic exploration hooks emitted by every renderer. */+ svg [data-node-id] {+ cursor: pointer;+ transition: opacity 0.18s ease, fill-opacity 0.18s ease, stroke-opacity 0.18s ease, filter 0.18s ease;+ }+ svg [data-edge-from],+ svg [data-graph-role="automatic-crossover-underlay"] { transition: opacity 0.18s ease, filter 0.18s ease; }+ svg [data-node-id]:hover,+ svg [data-node-id]:focus-visible {+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ outline: none;+ }+ /* Verified Source Beacons are installed at runtime only for nodes whose+ repository evidence passed the local revision/blob/line checks. They+ live inside the owning node so every focus, route, story, and guided+ view keeps one coherent opacity state. Export serialization removes+ them before producing the canonical SVG or any derived visual. */+ .source-evidence-beacon {+ pointer-events: none;+ opacity: 1;+ transition: filter 160ms ease;+ }+ .source-evidence-beacon rect {+ fill: color-mix(in srgb, var(--mask) 92%, var(--backend-stroke));+ stroke: color-mix(in srgb, var(--backend-stroke) 82%, var(--panel-border));+ stroke-width: 1;+ vector-effect: non-scaling-stroke;+ }+ .source-evidence-beacon text {+ fill: var(--backend-stroke);+ font-size: 7px;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-anchor: middle;+ text-transform: uppercase;+ }+ svg [data-node-id]:hover .source-evidence-beacon,+ svg [data-node-id]:focus-visible .source-evidence-beacon,+ svg [data-node-id][data-focus-selected] .source-evidence-beacon {+ opacity: 1;+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));+ }+ svg[data-preset="signal-flow"] .source-evidence-beacon { opacity: 0.9; }+ svg[data-preset="blueprint"] .source-evidence-beacon rect {+ rx: 0.8px;+ filter: none;+ }+ svg [data-legend-kind][role="button"] { cursor: pointer; }+ svg [data-legend-kind]:focus { outline: none; }+ svg [data-legend-hit] {+ fill: transparent;+ stroke: transparent;+ stroke-width: 1.4;+ pointer-events: all;+ vector-effect: non-scaling-stroke;+ transition: stroke 150ms ease, stroke-width 150ms ease, filter 150ms ease;+ }+ svg [data-legend-count-badge] { pointer-events: none; }+ svg [data-legend-count-badge] rect {+ fill: var(--mask);+ stroke: var(--panel-border);+ stroke-width: 1;+ vector-effect: non-scaling-stroke;+ }+ svg [data-legend-count-badge] text {+ fill: var(--text-muted);+ font-size: 8px;+ font-weight: 700;+ text-anchor: middle;+ }+ svg [data-legend-kind][role="button"]:hover [data-legend-hit] {+ stroke: color-mix(in srgb, var(--database-stroke) 58%, transparent);+ }+ svg [data-legend-kind][role="button"]:focus-visible [data-legend-hit] {+ stroke: var(--frontend-stroke);+ stroke-width: 1.8;+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg [data-legend-kind][data-legend-selected] [data-legend-hit] {+ stroke: var(--database-stroke);+ stroke-width: 2.2;+ stroke-dasharray: 3 2;+ }+ svg [data-legend-kind][data-legend-selected] [data-legend-count-badge] rect {+ stroke: var(--database-stroke);+ stroke-width: 1.8;+ }+ svg [data-legend-kind][data-legend-zero] { opacity: 0.44; }+ svg[data-preset="signal-flow"] [data-legend-kind][data-legend-selected] [data-legend-hit] {+ filter: drop-shadow(0 0 4px var(--database-stroke));+ }+ svg[data-preset="blueprint"] [data-legend-hit],+ svg[data-preset="blueprint"] [data-legend-count-badge] rect { rx: 0; filter: none; }+ svg[data-legend-preview-active] [data-node-id],+ svg[data-legend-preview-active] [data-edge-from] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-legend-preview-match] { opacity: 1; }+ svg[data-legend-preview-active] [data-legend-preview-peer] { opacity: 0.62; }+ svg[data-legend-preview-active] [data-legend-preview-selected] {+ filter: drop-shadow(0 0 8px var(--database-stroke));+ }+ svg[data-lens-active] [data-node-id],+ svg[data-lens-active] [data-edge-from] { opacity: 0.11; }+ svg[data-lens-active] [data-lens-match] { opacity: 1; }+ svg[data-lens-active] [data-lens-peer] { opacity: 0.62; }+ svg[data-lens-active] [data-lens-selected] {+ filter: drop-shadow(0 0 10px var(--database-stroke));+ }+ .semantic-lens-overlay { pointer-events: none; }+ .semantic-lens-flow {+ fill: none;+ stroke-width: 3.05;+ stroke-linecap: round;+ stroke-dasharray: 0.075 0.925;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.9;+ animation: archify-semantic-lens-flow 1.35s linear 1 both;+ animation-delay: var(--lens-flow-delay, 0s);+ }+ .semantic-lens-flow[data-direction="out"],+ .semantic-lens-flow[data-direction="forward"] {+ stroke: var(--frontend-stroke);+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ .semantic-lens-flow[data-direction="in"],+ .semantic-lens-flow[data-direction="reverse"] {+ stroke: var(--database-stroke);+ filter: drop-shadow(0 0 3px var(--database-stroke));+ }+ .semantic-lens-flow[data-direction="within"] {+ stroke: var(--messagebus-stroke);+ filter: drop-shadow(0 0 3px var(--messagebus-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow {+ stroke-width: 3.7;+ opacity: 1;+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="out"],+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="forward"] {+ filter: drop-shadow(0 0 6px var(--frontend-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="in"],+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="reverse"] {+ filter: drop-shadow(0 0 6px var(--database-stroke));+ }+ svg[data-preset="signal-flow"] .semantic-lens-flow[data-direction="within"] {+ filter: drop-shadow(0 0 6px var(--messagebus-stroke));+ }+ svg[data-preset="blueprint"] .semantic-lens-flow {+ stroke-width: 2.45;+ stroke-linecap: square;+ filter: none;+ opacity: 0.78;+ }+ html[data-embed="true"] .semantic-lens-overlay { display: none; }+ /* Automatic crossover masks are visual companions of their one semantic+ edge. Keep the mask free of data-edge-* identity so graph traversal and+ export still observe exactly one edge, then mirror reader emphasis from+ the paired foreground path in this presentation-only wrapper. */+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-match]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-legend-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-legend-preview-peer]) > [data-graph-role="automatic-crossover-underlay"],+ svg[data-lens-active] [data-graph-role="automatic-crossover"]:has(> [data-lens-peer]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-focus-active] [data-node-id],+ svg[data-focus-active] [data-edge-from] { opacity: 0.13; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.13; }+ svg[data-focus-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-focus-active] [data-focus-match] { opacity: 1; }+ svg[data-focus-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }++ /* Authored Reachability is a bounded graph query over the relationships+ already present in the artifact. Upstream walks incoming edges;+ downstream walks outgoing edges. It never claims runtime causality and+ changes only viewer emphasis, not canonical geometry or export bytes. */+ svg[data-reach-active] [data-node-id],+ svg[data-reach-active] [data-edge-from] { opacity: 0.09; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.09; }+ svg[data-reach-active] [data-reach-match] { opacity: 1; }+ svg[data-reach-active] [data-graph-role="automatic-crossover"]:has(> [data-reach-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-reach-active="upstream"] [data-reach-origin] {+ filter: drop-shadow(0 0 11px var(--database-stroke));+ }+ svg[data-reach-active="downstream"] [data-reach-origin] {+ filter: drop-shadow(0 0 11px var(--backend-stroke));+ }+ svg[data-reach-active="upstream"] [data-edge-from][data-reach-match] {+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--database-stroke) 72%, transparent));+ }+ svg[data-reach-active="downstream"] [data-edge-from][data-reach-match] {+ filter: drop-shadow(0 0 4px color-mix(in srgb, var(--backend-stroke) 72%, transparent));+ }+ svg[data-preset="blueprint"][data-reach-active] [data-reach-origin],+ svg[data-preset="blueprint"][data-reach-active] [data-edge-from][data-reach-match] {+ filter: none;+ }++ /* Direct Relationship Explorer makes authored paths a real input surface+ without changing their visible stroke or canonical SVG. A transparent+ runtime rail supplies forgiving pointer geometry; the exact authored+ path and endpoints continue to carry every visible state. */+ .relationship-hit-overlay { pointer-events: none; }+ .relationship-hit-target { outline: none; }+ .relationship-hit-rail {+ fill: none;+ stroke: transparent;+ stroke-width: 24;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ pointer-events: stroke;+ cursor: pointer;+ }+ .relationship-focus-rail {+ fill: none;+ stroke: color-mix(in srgb, var(--frontend-stroke) 34%, transparent);+ stroke-width: 6;+ stroke-dasharray: 2 4;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ pointer-events: none;+ opacity: 0;+ }+ .relationship-hit-target:focus-visible .relationship-focus-rail {+ opacity: 1;+ }+ svg[data-preset="blueprint"] .relationship-hit-target:focus-visible .relationship-focus-rail {+ stroke-linecap: square;+ filter: none;+ }+ svg[data-relationship-direct-active] [data-node-id],+ svg[data-relationship-direct-active] [data-edge-from] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.16; }+ svg[data-relationship-direct-active] [data-relationship-preview],+ svg[data-relationship-direct-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-direct-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-focus-active]:not([data-relationship-pin-active]) .relationship-hit-rail,+ svg[data-route-picking] .relationship-hit-rail,+ svg[data-route-active] .relationship-hit-rail,+ svg[data-lens-active] .relationship-hit-rail { pointer-events: none; }+ html[data-embed="true"] .relationship-hit-overlay { display: none; }+ @media (hover: none), (pointer: coarse) {+ .relationship-hit-rail { stroke-width: 24; }+ }++ /* Relationship Preview is temporary exploration state layered on top of+ neighborhood focus. It changes emphasis only; exported geometry and the+ relationship's original solid/dashed visual language stay untouched. */+ svg[data-relationship-preview-active] [data-focus-match] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-focus-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.18; }+ svg[data-relationship-preview-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-relationship-preview-active] [data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview-node] { opacity: 1; }+ svg[data-relationship-preview-active] [data-graph-role="automatic-crossover"]:has(> [data-relationship-preview]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-relationship-preview-active] [data-relationship-preview] {+ filter: drop-shadow(0 0 5px var(--arrow-emphasis));+ }+ svg[data-relationship-preview-active] [data-relationship-preview] path,+ svg[data-relationship-preview-active] path[data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview] line,+ svg[data-relationship-preview-active] line[data-relationship-preview],+ svg[data-relationship-preview-active] [data-relationship-preview] polyline,+ svg[data-relationship-preview-active] polyline[data-relationship-preview] {+ stroke-width: 2.75;+ }+ svg[data-relationship-preview-active] [data-relationship-preview-source] {+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ }+ svg[data-relationship-preview-active] [data-relationship-preview-target] {+ filter: drop-shadow(0 0 7px var(--database-stroke));+ }+ .relationship-pulse-overlay { pointer-events: none; }+ .relationship-flow-pulse {+ fill: none;+ stroke: var(--arrow-emphasis);+ stroke-width: 3.35;+ stroke-linecap: round;+ stroke-dasharray: 0.085 0.915;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0;+ filter: drop-shadow(0 0 4px var(--arrow-emphasis));+ animation: archify-relationship-pulse 1.2s linear 1 both;+ }+ svg[data-preset="signal-flow"] .relationship-flow-pulse {+ stroke: var(--frontend-stroke);+ stroke-width: 3.85;+ filter: drop-shadow(0 0 7px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"] .relationship-flow-pulse {+ stroke-width: 2.5;+ stroke-linecap: square;+ filter: none;+ }+ svg[data-preset="editorial"] .relationship-flow-pulse {+ stroke: var(--arrow-emphasis);+ stroke-width: 2.75;+ filter: none;+ }+ .semantic-flow-token {+ color: var(--frontend-stroke);+ opacity: 0;+ pointer-events: none;+ }+ .relationship-flow-token {+ animation: archify-relationship-token-life 1.2s linear 1 both;+ }++ .semantic-flow-token-halo {+ fill: var(--mask);+ stroke: currentColor;+ stroke-width: 1.1;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ }+ .relationship-flow-token-shape {+ fill: var(--mask);+ stroke: currentColor;+ stroke-width: 1.35;+ stroke-linecap: round;+ stroke-linejoin: round;+ vector-effect: non-scaling-stroke;+ }+ .relationship-flow-token-ink {+ fill: none;+ stroke: currentColor;+ stroke-width: 1.05;+ stroke-linecap: round;+ vector-effect: non-scaling-stroke;+ }+ .relationship-flow-token-dot { fill: currentColor; stroke: none; }+ .semantic-flow-token[data-token-kind="data"] { color: var(--database-stroke); }+ .semantic-flow-token[data-token-kind="event"] { color: var(--messagebus-stroke); }+ .semantic-flow-token[data-token-kind="security"] { color: var(--security-stroke); }+ .semantic-flow-token[data-token-kind="state"] { color: var(--cloud-stroke); }+ svg[data-preset="signal-flow"] .semantic-flow-token {+ filter: drop-shadow(0 0 5px currentColor);+ }+ svg[data-preset="blueprint"] .semantic-flow-token { filter: none; }+ svg[data-preset="editorial"] .semantic-flow-token { filter: none; }+ html[data-embed="true"] .relationship-pulse-overlay { display: none; }++ /* Intent Trace is a temporary, pre-click exploration layer. Related+ topology stays readable while a short viewer-only signal runs over+ cloned edge geometry; the authored edge remains untouched underneath. */+ /* Keep the node's opaque backing mask intact while its visible ink dims.+ Fading the whole group also fades that mask and briefly exposes arrows+ routed underneath the node when the pointer leaves. */+ svg[data-intent-trace-active] [data-node-id] { fill-opacity: 0.2; stroke-opacity: 0.2; }+ svg [data-node-id] > .c-mask { fill-opacity: 1; }+ svg[data-intent-trace-active] [data-node-id][data-intent-trace-match] { fill-opacity: 1; stroke-opacity: 1; }+ svg[data-intent-trace-active] [data-edge-from] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.2; }+ svg[data-intent-trace-active] [data-lifecycle-rail] { opacity: 0; }+ svg[data-intent-trace-active] [data-intent-trace-match] { opacity: 1; }+ svg[data-intent-trace-active] [data-graph-role="automatic-crossover"]:has(> [data-intent-trace-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-intent-trace-active] [data-intent-trace-selected] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }+ .intent-trace-overlay { pointer-events: none; }+ .intent-trace-flow {+ fill: none;+ stroke-width: 3.1;+ stroke-linecap: round;+ stroke-dasharray: 0.1 0.9;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.94;+ animation: archify-intent-trace-flow 1.15s linear 1 both;+ }+ /* Direction names describe each edge relative to the focused node only.+ The cloned geometry already runs from the authored source to target, so+ incoming and outgoing signals must share the same playback direction. */+ .intent-trace-flow[data-direction="out"] {+ stroke: var(--frontend-stroke);+ filter: drop-shadow(0 0 4px var(--frontend-stroke));+ }+ .intent-trace-flow[data-direction="in"] {+ stroke: var(--database-stroke);+ filter: drop-shadow(0 0 4px var(--database-stroke));+ animation-direction: normal;+ }+ .intent-trace-flow[data-direction="loop"] {+ stroke: var(--security-stroke);+ filter: drop-shadow(0 0 4px var(--security-stroke));+ }+ svg[data-preset="blueprint"] [data-intent-trace-selected],+ svg[data-preset="blueprint"] .intent-trace-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="editorial"] [data-intent-trace-selected],+ svg[data-preset="editorial"] .intent-trace-flow { filter: none; }+ .intent-trace-status {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ clip-path: inset(50%);+ white-space: nowrap;+ border: 0;+ }++ /* Route Probe separates a durable two-point query from selection and+ one-hop hover. Only the chosen shortest directed path stays prominent;+ the traveling signal is cloned viewer geometry and never authored SVG. */+ svg[data-route-picking="target"] [data-node-id] { opacity: 0.24; }+ svg[data-route-picking="target"] [data-route-candidate],+ svg[data-route-picking="target"] [data-route-start] { opacity: 1; }+ svg[data-route-picking] [data-node-id] { cursor: crosshair; }+ svg[data-route-picking] [data-route-start] {+ filter: drop-shadow(0 0 10px var(--frontend-stroke));+ }+ svg[data-route-active] [data-node-id],+ svg[data-route-active] [data-edge-from] { opacity: 0.11; }+ svg[data-route-active] [data-graph-role="automatic-crossover"] > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.11; }+ svg[data-route-active] [data-route-match] { opacity: 1; }+ svg[data-route-active] [data-graph-role="automatic-crossover"]:has(> [data-route-match]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-route-active] [data-route-start] {+ filter: drop-shadow(0 0 11px var(--frontend-stroke));+ }+ svg[data-route-active] [data-route-end] {+ filter: drop-shadow(0 0 11px var(--security-stroke));+ }+ svg[data-route-active] [data-route-step]:not([data-route-start]):not([data-route-end]) {+ filter: drop-shadow(0 0 7px var(--backend-stroke));+ }+ svg[data-route-journey] [data-route-match][data-route-journey-state="past"] { opacity: 0.62; }+ svg[data-route-journey] [data-route-match][data-route-journey-state="future"] { opacity: 0.34; }+ svg[data-route-journey] [data-route-match][data-route-journey-state="current"] { opacity: 1; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="past"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.62; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="future"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 0.34; }+ svg[data-route-journey] [data-graph-role="automatic-crossover"]:has(> [data-route-match][data-route-journey-state="current"]) > [data-graph-role="automatic-crossover-underlay"] { opacity: 1; }+ svg[data-route-journey] [data-node-id][data-route-journey-current] {+ filter: drop-shadow(0 0 10px var(--backend-stroke));+ }+ svg[data-route-journey] [data-edge-from][data-route-journey-current] {+ opacity: 1;+ filter: drop-shadow(0 0 6px var(--backend-stroke));+ }+ .route-probe-overlay { pointer-events: none; }+ .route-journey-overlay { pointer-events: none; }+ .route-probe-flow {+ fill: none;+ stroke: var(--backend-stroke);+ stroke-width: 3.25;+ stroke-linecap: round;+ stroke-dasharray: 0.085 0.915;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0.96;+ filter: drop-shadow(0 0 5px var(--backend-stroke));+ animation: archify-route-probe-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1 both;+ animation-delay: calc(var(--route-step, 0) * 0.16s);+ }+ .route-journey-flow {+ fill: none;+ stroke: var(--backend-stroke);+ stroke-width: 3.5;+ stroke-linecap: round;+ stroke-dasharray: 0.1 0.9;+ stroke-dashoffset: 0;+ vector-effect: non-scaling-stroke;+ opacity: 0;+ filter: drop-shadow(0 0 6px var(--backend-stroke));+ animation: archify-route-journey-flow 780ms cubic-bezier(0.22, 1, 0.36, 1) 1 both;+ }+ svg[data-preset="blueprint"] [data-route-start],+ svg[data-preset="blueprint"] [data-route-end],+ svg[data-preset="blueprint"] [data-route-step],+ svg[data-preset="blueprint"] .route-probe-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="blueprint"] .route-journey-flow {+ filter: none;+ stroke-linecap: square;+ }+ svg[data-preset="editorial"] [data-route-start],+ svg[data-preset="editorial"] [data-route-end],+ svg[data-preset="editorial"] [data-route-step],+ svg[data-preset="editorial"] .route-probe-flow,+ svg[data-preset="editorial"] .route-journey-flow { filter: none; }++ svg[data-preset="editorial"] .c-grid {+ stroke-dasharray: 1 4;+ opacity: 0.48;+ }+ svg[data-preset="editorial"] .c-region {+ fill: color-mix(in srgb, var(--cloud-fill) 48%, transparent);+ stroke-dasharray: 9 4;+ }+ svg[data-preset="editorial"] [data-node-id]:hover,+ svg[data-preset="editorial"] [data-node-id]:focus-visible,+ svg[data-preset="editorial"][data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent));+ }++ svg[data-preset="blueprint"] .c-grid {+ stroke-dasharray: 1 3;+ opacity: 0.78;+ }+ svg[data-preset="blueprint"] .c-region {+ fill: color-mix(in srgb, var(--cloud-fill) 58%, transparent);+ stroke-dasharray: 12 4 2 4;+ }+ svg[data-preset="blueprint"] .c-security-group,+ svg[data-preset="blueprint"] .c-lane { stroke-dasharray: 7 3; }+ svg[data-preset="blueprint"] [data-node-id]:hover,+ svg[data-preset="blueprint"] [data-node-id]:focus-visible {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"][data-focus-active] [data-focus-selected] {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }+ svg[data-preset="blueprint"][data-focus-active][data-reach-active] [data-focus-selected][data-reach-origin] {+ filter: none;+ }+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview],+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview-source],+ svg[data-preset="blueprint"][data-relationship-preview-active] [data-relationship-preview-target] {+ filter: drop-shadow(0 0 3px var(--frontend-stroke));+ }++ /* Dashed boundary variants */+ .c-security-group { fill: transparent; stroke: var(--security-stroke); stroke-dasharray: 4,4; }+ .c-region { fill: rgba(251, 191, 36, 0.05); stroke: var(--cloud-stroke); stroke-dasharray: 8,4; }+ .c-lane { fill: var(--lane-fill); stroke: var(--lane-stroke); stroke-dasharray: 6,6; }++ /* Optional trace animation, enabled only by meta.animation = "trace".+ The ordinary viewer performs one ambient pass and then restores the+ authored solid/security/async line language. WebM samples the same+ authored geometry into an explicit canvas timeline. */+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="edge"] {+ animation: archify-edge-flow 2.4s linear 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: archify-edge-flow 2.4s linear 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ html[data-ambient-motion="running"] svg[data-animation="trace"] [data-animate="node"] {+ transform-box: fill-box;+ transform-origin: center;+ animation: archify-node-pulse 3.6s ease-in-out 1;+ animation-delay: calc(var(--step, 0) * 160ms);+ }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="edge"] {+ stroke-linecap: round;+ filter: drop-shadow(0 0 3px var(--arrow-emphasis));+ animation-duration: 1.75s;+ }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 1.75s; }+ svg[data-preset="signal-flow"][data-animation="trace"] [data-animate="node"] {+ animation-duration: 3.1s;+ }+ svg[data-preset="blueprint"][data-animation="trace"] [data-animate="edge"] {+ stroke-linecap: square;+ filter: none;+ animation-duration: 2.15s;+ }+ svg[data-preset="blueprint"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.15s; }+ svg[data-preset="blueprint"][data-animation="trace"] [data-animate="node"] {+ animation-name: archify-blueprint-node-pulse;+ animation-duration: 3.8s;+ }+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="edge"] {+ filter: none;+ animation-duration: 2.2s;+ }+ svg[data-preset="editorial"][data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] { animation-duration: 2.2s; }+ svg[data-preset="editorial"][data-animation="trace"] [data-animate="node"] {+ animation-name: archify-editorial-node-pulse;+ animation-duration: 3.5s;+ }+ /* Embedded proofs stay static so proof grids are calm instead of leaving+ ambient trace loops on. */+ html[data-embed="true"] svg[data-animation="trace"] [data-animate],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ html[data-embed="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"],+ html[data-share-playback="true"] svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ @keyframes archify-edge-flow {+ 0% { stroke-dasharray: 10 8; stroke-dashoffset: 54; opacity: 0.42; }+ 88% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }+ 99.9% { stroke-dasharray: 10 8; stroke-dashoffset: 0; opacity: 1; }+ 100% { stroke-dashoffset: 0; opacity: 1; }+ }+ @keyframes archify-node-pulse {+ 0%, 72%, 100% { filter: none; stroke-width: 1.5; }+ 18%, 36% {+ filter: drop-shadow(0 0 8px var(--arrow-emphasis));+ stroke-width: 2.4;+ }+ }+ @keyframes archify-blueprint-node-pulse {+ 0%, 72%, 100% { opacity: 1; filter: none; }+ 18%, 36% { opacity: 0.72; filter: drop-shadow(0 0 2px var(--frontend-stroke)); }+ }+ @keyframes archify-editorial-node-pulse {+ 0%, 72%, 100% { opacity: 1; filter: none; }+ 18%, 36% { opacity: 0.78; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--text) 18%, transparent)); }+ }+ @keyframes archify-signal-scan {+ 0%, 18% { opacity: 1; transform: translateX(-70%); }+ 70% { opacity: 1; transform: translateX(70%); }+ 100% { opacity: 0; transform: translateX(70%); }+ }+ @keyframes archify-radar-live {+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--backend-stroke) 52%, transparent); }+ 55%, 100% { box-shadow: 0 0 0 0.32rem transparent; }+ }++ @keyframes archify-intent-trace-flow {+ 0% { opacity: 0.28; stroke-dashoffset: 0; }+ 12%, 78% { opacity: 0.94; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-route-probe-flow {+ 0% { stroke-dashoffset: 0; opacity: 0.96; }+ 78% { stroke-dashoffset: -1; opacity: 0.96; }+ 100% { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.58; }+ }+ @keyframes archify-route-journey-flow {+ 0% { opacity: 0.16; stroke-dashoffset: 0; }+ 14%, 76% { opacity: 1; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-semantic-lens-flow {+ 0% { opacity: 0.2; stroke-dashoffset: 0; }+ 12%, 78% { opacity: 0.9; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-relationship-pulse {+ 0% { opacity: 0.18; stroke-dashoffset: 0; }+ 10%, 76% { opacity: 0.98; }+ 100% { opacity: 0; stroke-dashoffset: -1; }+ }+ @keyframes archify-relationship-token-life {+ 0%, 7% { opacity: 0; }+ 13%, 82% { opacity: 1; }+ 100% { opacity: 0; }+ }++ @keyframes archify-share-cue-enter {+ from { opacity: 0; transform: translate(-50%, -0.45rem); }+ to { opacity: 1; transform: translate(-50%, 0); }+ }+ @keyframes archify-share-cue-pulse {+ 0%, 100% { opacity: 1; transform: scale(1); }+ 50% { opacity: 0.48; transform: scale(0.78); }+ }+ @media (prefers-reduced-motion: reduce) {+ html[data-preset="signal-flow"] .diagram-container::before {+ animation: none !important;+ }+ .pulse-dot { animation: none !important; }+ svg[data-animation="trace"] [data-animate] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ svg[data-animation="trace"] [data-graph-role="automatic-crossover"]:has(> [data-animate="edge"]) > [data-graph-role="automatic-crossover-underlay"] {+ animation: none !important;+ stroke-dashoffset: 0;+ }+ .intent-trace-flow,+ .route-probe-flow,+ .semantic-lens,+ .diagram-guide,+ .overview-map-live { animation: none !important; }++ .intent-trace-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.72;+ }+ .route-probe-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-dashoffset: 0;+ opacity: 0.78;+ }+ .route-journey-overlay { display: none !important; }+ .semantic-lens-flow {+ animation: none !important;+ stroke-dasharray: none;+ stroke-width: 2.2;+ opacity: 0.34;+ filter: none;+ }+ .relationship-pulse-overlay { display: none !important; }+ .source-evidence-beacon,+ svg [data-node-id], svg [data-edge-from], svg [data-detail], svg [data-detail-anchor], svg [data-legend-hit], svg { transition: none !important; }+ }+ </style>+</head>+<body>+ <!-- Toolbar: theme, live visual style, trace motion, presentation stage, and export.+ Motion appears only for trace-enabled artifacts and has no shortcut;+ Keyboard: T toggles theme, S cycles style, F toggles the stage, E opens export. -->+ <div class="toolbar" role="toolbar" aria-label="Diagram actions">+ <div class="toolbar-group">+ <button id="btn-theme" type="button"+ title="Toggle theme (T)"+ aria-label="Toggle color theme"+ aria-pressed="false">+ <span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span>+ <span id="theme-label">Dark</span>+ </button>+ <div class="preset-wrap">+ <button id="btn-preset" type="button"+ title="Choose visual style (S cycles)"+ aria-label="Choose visual style"+ aria-haspopup="menu"+ aria-expanded="false"+ aria-controls="preset-menu"+ aria-keyshortcuts="S">+ <span class="preset-control-mark" aria-hidden="true"></span>+ <span id="preset-label">Style</span>+ <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ </button>+ <div class="preset-menu" id="preset-menu" role="menu" aria-label="Visual style">+ <div class="preset-menu-heading" role="presentation"><span>Visual identity</span><span class="preset-menu-shortcut"><kbd>S</kbd>to cycle</span></div>+ <button class="preset-option" data-preset-value="classic" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch classic" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Classic</strong><small>Stable technical default</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch signal-flow" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch blueprint" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ <button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1">+ <span class="preset-option-swatch editorial" aria-hidden="true"></span>+ <span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>+ <span class="preset-option-check" aria-hidden="true"></span>+ </button>+ </div>+ </div>+ <button id="btn-motion" type="button" hidden+ title="Pause motion"+ aria-label="Pause motion"+ aria-pressed="true">+ <span class="motion-control-dot" aria-hidden="true"></span>+ <span id="motion-label">Live</span>+ </button>+ <button id="btn-present" type="button"+ title="Presentation stage (F)"+ aria-label="Enter presentation stage"+ aria-pressed="false">+ <span id="present-icon" class="toolbar-icon" aria-hidden="true"></span>+ <span id="present-label">Present</span>+ </button>+ </div>+ <div class="export-wrap">+ <button id="btn-export" type="button"+ title="Export diagram (E)"+ aria-label="Export diagram"+ aria-haspopup="menu"+ aria-expanded="false"+ aria-controls="export-menu">+ Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ </button>+ <div class="export-menu" id="export-menu" role="menu" aria-label="Export">+ <div class="export-menu-header" role="presentation">+ <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <kbd>E</kbd>+ </div>+ <div class="export-menu-section" role="group" aria-label="Share">+ <span class="export-menu-heading" aria-hidden="true">Share</span>+ <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Route Share Card</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Reach Share Card</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="copy" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy diagram</strong><small class="hint">PNG to clipboard</small></span></button>+ </div>+ <div class="export-menu-section" role="group" aria-label="Raster images">+ <span class="export-menu-heading" aria-hidden="true">Image</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ </div>+ <div class="export-menu-section" role="group" aria-label="Vector and motion">+ <span class="export-menu-heading" aria-hidden="true">Vector & motion</span>+ <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Auto</strong><small class="hint">Matches host theme</small></span></button>+ <button data-format="svg-light" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Light</strong><small class="hint">Always light</small></span></button>+ <button data-format="svg-dark" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG · Dark</strong><small class="hint">Always dark</small></span></button>+ <button data-format="webm" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebM</strong><small class="hint">6s motion</small></span></button>+ </div>+ </div>+ </div>+ </div>++ <div class="container">+ <!-- Header -->+ <div class="header">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE">+ <div class="pulse-dot"></div>+ <h1>Subscription billing schema</h1>+ </div>+ </div>+++ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"to cycle","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.svg.auto":"SVG · Auto","viewer.export.svg.auto.hint":"Matches host theme","viewer.export.svg.light":"SVG · Light","viewer.export.svg.light.hint":"Always light","viewer.export.svg.dark":"SVG · Dark","viewer.export.svg.dark.hint":"Always dark","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Path: {source} → {target} · {count} step","viewer.export.card.routeSummary.other":"Path: {source} → {target} · {count} steps","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guide.title":"Explore this system","viewer.focus.selectedNodes":"{count} selected nodes","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.open":"Open diagram guide","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.verificationScope":"Verified against local Git at the pinned revision. Remote access has not been checked.","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.move":"Move semantic passport. Drag, use arrow keys, or press Home to reset.","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Path","viewer.route.start":"Click where the path starts","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Path","viewer.route.pickTwo":"Click two nodes on the diagram","viewer.route.pickOne":"Click a node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Click a start, then an end. Paths follow the arrows.","viewer.route.destination":"Where does the path from {label} end?","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"Pick two different nodes.","viewer.route.unreachable":"Cannot reach {label} from here","viewer.route.unreachable.detail":"{target} cannot be reached from {source} along the arrows. Pick a highlighted node.","viewer.route.start.instructions":"Next, pick the end. Only nodes you can reach will light up.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest path","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} step","viewer.route.overview.hop.other":"{count} steps","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} reachable node is highlighted. Click it.","viewer.route.destination.count.other":"{count} reachable nodes are highlighted. Click one.","viewer.route.noOutgoing":"No arrows lead out of this node. Clear it and pick another start.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.outline.title":"Node index","viewer.rail.show":"Notes \u0026 index","viewer.rail.controls":"Side panel","viewer.rail.collapse":"Collapse side panel","viewer.rail.bottom":"Move panel below the diagram","viewer.rail.right":"Move panel beside the diagram","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script>+ <!-- Main Diagram -->+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1230 678" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase" data-reader-fit="intrinsic-height" data-reader-min-text="7.5">+ <title id="archify-diagram-title">Subscription billing schema</title>+ <desc id="archify-diagram-description">An entity-relationship diagram generated by Archify.</desc>+ <!-- Definitions -->+ <defs>+ <marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-default" />+ </marker>+ <marker id="arrowhead-emphasis" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-emphasis" />+ </marker>+ <marker id="arrowhead-security" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-security" />+ </marker>+ <marker id="arrowhead-dashed" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">+ <polygon points="0 0, 10 3.5, 0 7" class="m-dashed" />+ </marker>+ <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">+ <path d="M 40 0 L 0 0 0 40" class="c-grid" stroke-width="0.5"/>+ </pattern>+ <!-- Cardinality symbols -->+ <marker id="er-one-end" markerWidth="24" markerHeight="18" refX="22" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 17 1 L 17 15"/>+ </marker>+ <marker id="er-many-start" markerWidth="24" markerHeight="18" refX="0" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 14 8 L 0 1 M 14 8 L 0 8 M 14 8 L 0 15"/>+ </marker>+ <marker id="er-many-optional-start" markerWidth="24" markerHeight="18" refX="0" refY="8" orient="auto" markerUnits="userSpaceOnUse" class="a-default" style="stroke: var(--text-muted)" stroke-width="1.75">+ <path d="M 14 8 L 0 1 M 14 8 L 0 8 M 14 8 L 0 15"/>+ <circle cx="18.5" cy="8" r="2.6" class="c-mask"/>+ <circle cx="18.5" cy="8" r="2.6"/>+ </marker>+ </defs>++ <!-- Background Grid -->+ <rect width="100%" height="100%" fill="url(#grid)" />++ <!-- Domain bands (behind the routes so a channel is never washed out) -->+ <g data-domain-band="accounts">+ <rect x="20" y="22" width="274" height="586" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="30" y="35" class="t-muted" font-size="9" font-weight="700">accounts</text>+ </g>+ <g data-domain-band="catalog">+ <rect x="650" y="22" width="264" height="364" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="660" y="35" class="t-muted" font-size="9" font-weight="700">catalog</text>+ </g>+ <g data-domain-band="billing">+ <rect x="334" y="22" width="276" height="606" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="344" y="35" class="t-muted" font-size="9" font-weight="700">billing</text>+ </g>+ <g data-domain-band="payments">+ <rect x="954" y="22" width="264" height="586" rx="8" class="c-lane" stroke-width="1"/>+ <text data-domain-label="" x="964" y="35" class="t-muted" font-size="9" font-weight="700">payments</text>+ </g>++ <!-- Bundled relationship trunks (under the branches: a bus runs close+ to the shared side, so a cardinality glyph that reaches further out+ has to stay readable over it, and the ring's mask has to be able to+ punch through) -->+++ <!-- Relationship paths (before entities for correct z-order) -->+ <path data-edge-from="membership" data-edge-to="tenant" data-edge-key="0" data-edge-id="membership_tenant" data-composition-points="145,464;145,401;29,401;29,200;157,200;157,176" d="M 145 464 L 145 409 Q 145 401 137 401 L 37 401 Q 29 401 29 393 L 29 208 Q 29 200 37 200 L 149 200 Q 157 200 157 192 L 157 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="membership" data-edge-to="user_account" data-edge-key="1" data-edge-id="membership_user" data-composition-points="169,464;169,398" d="M 169 464 L 169 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="price" data-edge-to="plan" data-edge-key="2" data-edge-id="price_plan" data-composition-points="782,242;782,176" d="M 782 242 L 782 176" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="subscription" data-edge-to="tenant" data-edge-key="3" data-edge-id="subscription_tenant" data-composition-points="352,120;277,120" d="M 352 120 L 277 120" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="subscription" data-edge-to="price" data-edge-key="4" data-edge-id="subscription_price" data-composition-points="592,128;627,128;627,310;662,310" d="M 592 128 L 619 128 Q 627 128 627 136 L 627 302 Q 627 310 635 310 L 662 310" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="invoice" data-edge-to="subscription" data-edge-key="5" data-edge-id="invoice_subscription" data-composition-points="472,242;472,216" d="M 472 242 L 472 216" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="invoice_line" data-edge-to="invoice" data-edge-key="6" data-edge-id="invoice_line_invoice" data-composition-points="472,464;472,438" d="M 472 464 L 472 438" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="payment_method" data-edge-to="tenant" data-edge-key="7" data-edge-id="payment_method_tenant" data-composition-points="966,118;905,118;905,37;301,37;301,96;277,96" d="M 966 118 L 913 118 Q 905 118 905 110 L 905 45 Q 905 37 897 37 L 309 37 Q 301 37 301 45 L 301 88 Q 301 96 293 96 L 277 96" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="payment" data-edge-to="invoice" data-edge-key="8" data-edge-id="payment_invoice" data-composition-points="966,320;905,320;905,381;622,381;622,340;598,340" d="M 966 320 L 913 320 Q 905 320 905 328 L 905 373 Q 905 381 897 381 L 630 381 Q 622 381 622 373 L 622 348 Q 622 340 614 340 L 598 340" class="a-default" stroke-width="1.5" marker-start="url(#er-many-optional-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="payment" data-edge-to="payment_method" data-edge-key="9" data-edge-id="payment_method_of_payment" data-composition-points="1086,242;1086,196" d="M 1086 242 L 1086 196" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>+ <path data-edge-from="refund" data-edge-to="payment" data-edge-key="10" data-edge-id="refund_payment" data-composition-points="1086,464;1086,398" d="M 1086 464 L 1086 398" class="a-default" stroke-width="1.5" marker-start="url(#er-many-start)" marker-end="url(#er-one-end)"/>++ <!-- Entities -->+ <g id="node-tenant" data-node-id="tenant" data-node-label="tenant" tabindex="0" role="button" aria-label="Focus tenant, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">+ <title>tenant · Entity · accounts</title>+ <rect x="37" y="40" width="240" height="136" rx="5" class="c-mask"/>+ <rect x="37" y="40" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(43 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="157" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">tenant</text>+ <line x1="37" y1="70" x2="277" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="37" y1="70" x2="277" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="49" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="79" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="265" y="85" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="37" y1="90" x2="277" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="49" y="105" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="79" y="105" class="t-primary" font-size="11">slug</text>+ <text data-detail="context" x="265" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(64)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="37" y1="110" x2="277" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="125" class="t-primary" font-size="11">name</text>+ <text data-detail="context" x="265" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(160)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="37" y1="130" x2="277" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="145" class="t-primary" font-size="11">status</text>+ <text data-detail="context" x="265" y="145" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="37" y1="150" x2="277" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="165" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="265" y="165" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-user_account" data-node-id="user_account" data-node-label="user_account" tabindex="0" role="button" aria-label="Focus user_account, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">+ <title>user_account · Entity · accounts</title>+ <rect x="37" y="242" width="240" height="156" rx="5" class="c-mask"/>+ <rect x="37" y="242" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(43 247) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="157" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">user_account</text>+ <line x1="37" y1="272" x2="277" y2="272" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="37" y1="272" x2="277" y2="272" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="49" y="287" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="79" y="287" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="265" y="287" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="37" y1="292" x2="277" y2="292" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="49" y="307" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="79" y="307" class="t-primary" font-size="11">email</text>+ <text data-detail="context" x="265" y="307" class="t-primary" font-size="10.5" text-anchor="end">varchar(255)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="37" y1="312" x2="277" y2="312" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="327" class="t-primary" font-size="11">display_name</text>+ <text data-detail="context" x="265" y="327" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="37" y1="332" x2="277" y2="332" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="347" class="t-primary" font-size="11">locale</text>+ <text data-detail="context" x="265" y="347" class="t-primary" font-size="10.5" text-anchor="end">char(5)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="37" y1="352" x2="277" y2="352" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="367" class="t-primary" font-size="11">mfa_enabled</text>+ <text data-detail="context" x="265" y="367" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="37" y1="372" x2="277" y2="372" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="79" y="387" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="265" y="387" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-membership" data-node-id="membership" data-node-label="membership" tabindex="0" role="button" aria-label="Focus membership, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="accounts" data-node-context="Entity">+ <title>membership · Entity · accounts</title>+ <rect x="32" y="464" width="250" height="136" rx="5" class="c-mask"/>+ <rect x="32" y="464" width="250" height="136" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(38 469) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="157" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">membership</text>+ <line x1="32" y1="494" x2="282" y2="494" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="32" y1="494" x2="282" y2="494" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="509" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="74" y="509" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="270" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="32" y1="514" x2="282" y2="514" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="74" y="529" class="t-primary" font-size="11">tenant_id</text>+ <text data-detail="context" x="270" y="529" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="32" y1="534" x2="282" y2="534" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="44" y="549" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="74" y="549" class="t-primary" font-size="11">user_id</text>+ <text data-detail="context" x="270" y="549" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="32" y1="554" x2="282" y2="554" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="74" y="569" class="t-primary" font-size="11">role</text>+ <text data-detail="context" x="270" y="569" class="t-primary" font-size="10.5" text-anchor="end">varchar(24)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="32" y1="574" x2="282" y2="574" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="74" y="589" class="t-primary" font-size="11">joined_at</text>+ <text data-detail="context" x="270" y="589" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-plan" data-node-id="plan" data-node-label="plan" tabindex="0" role="button" aria-label="Focus plan, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">+ <title>plan · Entity · catalog</title>+ <rect x="662" y="40" width="240" height="136" rx="5" class="c-mask"/>+ <rect x="662" y="40" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(668 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="782" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">plan</text>+ <line x1="662" y1="70" x2="902" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="662" y1="70" x2="902" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="674" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="704" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="890" y="85" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="662" y1="90" x2="902" y2="90" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="105" class="t-primary" font-size="11">name</text>+ <text data-detail="context" x="890" y="105" class="t-primary" font-size="10.5" text-anchor="end">varchar(80)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="662" y1="110" x2="902" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="125" class="t-primary" font-size="11">billing_interval</text>+ <text data-detail="context" x="890" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="662" y1="130" x2="902" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="145" class="t-primary" font-size="11">seat_based</text>+ <text data-detail="context" x="890" y="145" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="662" y1="150" x2="902" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="165" class="t-primary" font-size="11">active</text>+ <text data-detail="context" x="890" y="165" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>+ </g>+ </g>++ <g id="node-price" data-node-id="price" data-node-label="price" tabindex="0" role="button" aria-label="Focus price, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="catalog" data-node-context="Entity">+ <title>price · Entity · catalog</title>+ <rect x="662" y="242" width="240" height="136" rx="5" class="c-mask"/>+ <rect x="662" y="242" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(668 247) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="782" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">price</text>+ <line x1="662" y1="272" x2="902" y2="272" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="662" y1="272" x2="902" y2="272" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="674" y="287" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="704" y="287" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="890" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="662" y1="292" x2="902" y2="292" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="674" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="704" y="307" class="t-primary" font-size="11">plan_id</text>+ <text data-detail="context" x="890" y="307" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="662" y1="312" x2="902" y2="312" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="327" class="t-primary" font-size="11">currency</text>+ <text data-detail="context" x="890" y="327" class="t-primary" font-size="10.5" text-anchor="end">char(3)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="662" y1="332" x2="902" y2="332" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="347" class="t-primary" font-size="11">unit_amount</text>+ <text data-detail="context" x="890" y="347" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="662" y1="352" x2="902" y2="352" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="704" y="367" class="t-primary" font-size="11">effective_from</text>+ <text data-detail="context" x="890" y="367" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-subscription" data-node-id="subscription" data-node-label="subscription" tabindex="0" role="button" aria-label="Focus subscription, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">+ <title>subscription · Entity · billing</title>+ <rect x="352" y="40" width="240" height="176" rx="5" class="c-mask"/>+ <rect x="352" y="40" width="240" height="176" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(358 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="472" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">subscription</text>+ <line x1="352" y1="70" x2="592" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="352" y1="70" x2="592" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="364" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="394" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="580" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="352" y1="90" x2="592" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="364" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="394" y="105" class="t-primary" font-size="11">tenant_id</text>+ <text data-detail="context" x="580" y="105" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="352" y1="110" x2="592" y2="110" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="364" y="125" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="394" y="125" class="t-primary" font-size="11">price_id</text>+ <text data-detail="context" x="580" y="125" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="352" y1="130" x2="592" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="394" y="145" class="t-primary" font-size="11">status</text>+ <text data-detail="context" x="580" y="145" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="352" y1="150" x2="592" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="394" y="165" class="t-primary" font-size="11">seats</text>+ <text data-detail="context" x="580" y="165" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="352" y1="170" x2="592" y2="170" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="394" y="185" class="t-primary" font-size="11">started_at</text>+ <text data-detail="context" x="580" y="185" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ <g data-detail="context" data-er-row="6">+ <line x1="352" y1="190" x2="592" y2="190" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="394" y="205" class="t-primary" font-size="11">canceled_at</text>+ <text data-detail="context" x="580" y="205" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-invoice" data-node-id="invoice" data-node-label="invoice" tabindex="0" role="button" aria-label="Focus invoice, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">+ <title>invoice · Entity · billing</title>+ <rect x="346" y="242" width="252" height="196" rx="5" class="c-mask"/>+ <rect x="346" y="242" width="252" height="196" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(352 247) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="472" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">invoice</text>+ <line x1="346" y1="272" x2="598" y2="272" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="346" y1="272" x2="598" y2="272" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="358" y="287" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="388" y="287" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="586" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="346" y1="292" x2="598" y2="292" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="358" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="388" y="307" class="t-primary" font-size="11">subscription_id</text>+ <text data-detail="context" x="586" y="307" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="346" y1="312" x2="598" y2="312" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="358" y="327" class="t-muted" font-size="9" font-weight="600">UK</text>+ <text data-detail="context" x="388" y="327" class="t-primary" font-size="11">number</text>+ <text data-detail="context" x="586" y="327" class="t-primary" font-size="10.5" text-anchor="end">varchar(32)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="346" y1="332" x2="598" y2="332" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="388" y="347" class="t-primary" font-size="11">status</text>+ <text data-detail="context" x="586" y="347" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="346" y1="352" x2="598" y2="352" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="388" y="367" class="t-primary" font-size="11">subtotal_amount</text>+ <text data-detail="context" x="586" y="367" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="346" y1="372" x2="598" y2="372" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="388" y="387" class="t-primary" font-size="11">tax_amount</text>+ <text data-detail="context" x="586" y="387" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="6">+ <line x1="346" y1="392" x2="598" y2="392" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="388" y="407" class="t-primary" font-size="11">total_amount</text>+ <text data-detail="context" x="586" y="407" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="7">+ <line x1="346" y1="412" x2="598" y2="412" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="388" y="427" class="t-primary" font-size="11">issued_at</text>+ <text data-detail="context" x="586" y="427" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-invoice_line" data-node-id="invoice_line" data-node-label="invoice_line" tabindex="0" role="button" aria-label="Focus invoice_line, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="billing" data-node-context="Entity">+ <title>invoice_line · Entity · billing</title>+ <rect x="347" y="464" width="250" height="156" rx="5" class="c-mask"/>+ <rect x="347" y="464" width="250" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(353 469) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="472" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">invoice_line</text>+ <line x1="347" y1="494" x2="597" y2="494" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="347" y1="494" x2="597" y2="494" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="359" y="509" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="389" y="509" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="585" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="347" y1="514" x2="597" y2="514" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="359" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="389" y="529" class="t-primary" font-size="11">invoice_id</text>+ <text data-detail="context" x="585" y="529" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="347" y1="534" x2="597" y2="534" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="389" y="549" class="t-primary" font-size="11">description</text>+ <text data-detail="context" x="585" y="549" class="t-primary" font-size="10.5" text-anchor="end">varchar(200)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="347" y1="554" x2="597" y2="554" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="389" y="569" class="t-primary" font-size="11">quantity</text>+ <text data-detail="context" x="585" y="569" class="t-primary" font-size="10.5" text-anchor="end">int</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="347" y1="574" x2="597" y2="574" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="389" y="589" class="t-primary" font-size="11">unit_amount</text>+ <text data-detail="context" x="585" y="589" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="347" y1="594" x2="597" y2="594" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="389" y="609" class="t-primary" font-size="11">amount</text>+ <text data-detail="context" x="585" y="609" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ </g>++ <g id="node-payment_method" data-node-id="payment_method" data-node-label="payment_method" tabindex="0" role="button" aria-label="Focus payment_method, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">+ <title>payment_method · Entity · payments</title>+ <rect x="966" y="40" width="240" height="156" rx="5" class="c-mask"/>+ <rect x="966" y="40" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 45) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="1086" y="58" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment_method</text>+ <line x1="966" y1="70" x2="1206" y2="70" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="966" y1="70" x2="1206" y2="70" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="85" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="1008" y="85" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="1194" y="85" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="966" y1="90" x2="1206" y2="90" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="105" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="1008" y="105" class="t-primary" font-size="11">tenant_id</text>+ <text data-detail="context" x="1194" y="105" class="t-primary" font-size="10.5" text-anchor="end">uuid</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="966" y1="110" x2="1206" y2="110" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="125" class="t-primary" font-size="11">kind</text>+ <text data-detail="context" x="1194" y="125" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="966" y1="130" x2="1206" y2="130" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="145" class="t-primary" font-size="11">last4</text>+ <text data-detail="context" x="1194" y="145" class="t-primary" font-size="10.5" text-anchor="end">char(4)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="966" y1="150" x2="1206" y2="150" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="165" class="t-primary" font-size="11">expires_at</text>+ <text data-detail="context" x="1194" y="165" class="t-primary" font-size="10.5" text-anchor="end">date</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="966" y1="170" x2="1206" y2="170" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="185" class="t-primary" font-size="11">is_default</text>+ <text data-detail="context" x="1194" y="185" class="t-primary" font-size="10.5" text-anchor="end">boolean</text>+ </g>+ </g>++ <g id="node-payment" data-node-id="payment" data-node-label="payment" tabindex="0" role="button" aria-label="Focus payment, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">+ <title>payment · Entity · payments</title>+ <rect x="966" y="242" width="240" height="156" rx="5" class="c-mask"/>+ <rect x="966" y="242" width="240" height="156" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 247) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="1086" y="260" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">payment</text>+ <line x1="966" y1="272" x2="1206" y2="272" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="966" y1="272" x2="1206" y2="272" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="287" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="1008" y="287" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="1194" y="287" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="966" y1="292" x2="1206" y2="292" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="307" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="1008" y="307" class="t-primary" font-size="11">invoice_id</text>+ <text data-detail="context" x="1194" y="307" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="966" y1="312" x2="1206" y2="312" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="327" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="1008" y="327" class="t-primary" font-size="11">payment_method_id</text>+ <text data-detail="context" x="1194" y="327" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="966" y1="332" x2="1206" y2="332" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="347" class="t-primary" font-size="11">amount</text>+ <text data-detail="context" x="1194" y="347" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="966" y1="352" x2="1206" y2="352" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="367" class="t-primary" font-size="11">status</text>+ <text data-detail="context" x="1194" y="367" class="t-primary" font-size="10.5" text-anchor="end">varchar(16)</text>+ </g>+ <g data-detail="context" data-er-row="5">+ <line x1="966" y1="372" x2="1206" y2="372" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="387" class="t-primary" font-size="11">captured_at</text>+ <text data-detail="context" x="1194" y="387" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <g id="node-refund" data-node-id="refund" data-node-label="refund" tabindex="0" role="button" aria-label="Focus refund, Entity" aria-pressed="false" data-node-kind="database" data-node-tag="payments" data-node-context="Entity">+ <title>refund · Entity · payments</title>+ <rect x="966" y="464" width="240" height="136" rx="5" class="c-mask"/>+ <rect x="966" y="464" width="240" height="136" rx="5" class="c-database" stroke-width="1.5"/>+ <g aria-hidden="true" data-semantic-sigil="database" class="semantic-sigil s-database" transform="translate(972 469) scale(0.6875)">+ <ellipse cx="8" cy="4" rx="5" ry="2"/>+ <path d="M3 4v8c0 1.1 2.2 2 5 2s5-.9 5-2V4M3 8c0 1.1 2.2 2 5 2s5-.9 5-2"/>+ </g>+ <text data-node-label="" x="1086" y="482" class="t-primary" font-size="13" font-weight="600" text-anchor="middle">refund</text>+ <line x1="966" y1="494" x2="1206" y2="494" class="c-grid" stroke-width="1"/>+ <g data-detail="context" data-er-row="0">+ <line x1="966" y1="494" x2="1206" y2="494" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="509" class="t-database" font-size="9" font-weight="600">PK</text>+ <text data-detail="context" x="1008" y="509" class="t-primary" font-size="11">id</text>+ <text data-detail="context" x="1194" y="509" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="1">+ <line x1="966" y1="514" x2="1206" y2="514" class="c-grid" stroke-width="0.5"/>+ <text data-detail="context" x="978" y="529" class="t-messagebus" font-size="9" font-weight="600">FK</text>+ <text data-detail="context" x="1008" y="529" class="t-primary" font-size="11">payment_id</text>+ <text data-detail="context" x="1194" y="529" class="t-primary" font-size="10.5" text-anchor="end">bigint</text>+ </g>+ <g data-detail="context" data-er-row="2">+ <line x1="966" y1="534" x2="1206" y2="534" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="549" class="t-primary" font-size="11">amount</text>+ <text data-detail="context" x="1194" y="549" class="t-primary" font-size="10.5" text-anchor="end">numeric(12,2)</text>+ </g>+ <g data-detail="context" data-er-row="3">+ <line x1="966" y1="554" x2="1206" y2="554" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="569" class="t-primary" font-size="11">reason</text>+ <text data-detail="context" x="1194" y="569" class="t-primary" font-size="10.5" text-anchor="end">varchar(120)</text>+ </g>+ <g data-detail="context" data-er-row="4">+ <line x1="966" y1="574" x2="1206" y2="574" class="c-grid" stroke-width="0.5"/>++ <text data-detail="context" x="1008" y="589" class="t-primary" font-size="11">created_at</text>+ <text data-detail="context" x="1194" y="589" class="t-primary" font-size="10.5" text-anchor="end">timestamptz</text>+ </g>+ </g>++ <!-- Relationship labels -->+++ <!-- Legend -->+ <g data-legend="" data-legend-bridge="">+ <text x="24" y="642" class="t-primary" font-size="12" font-weight="650">Legend</text>+ <g data-legend-semantic-kind="pk" data-legend-kind="pk" data-legend-label="Primary key" data-legend-x="24" data-legend-baseline="662" data-legend-width="116">+ <text x="26" y="662" class="t-database" font-size="9" font-weight="700">PK</text>+ <text x="50" y="662" class="t-primary" font-size="12" font-weight="600">Primary key</text>+ </g>+ <g data-legend-semantic-kind="fk" data-legend-kind="fk" data-legend-label="Foreign key" data-legend-x="162" data-legend-baseline="662" data-legend-width="116">+ <text x="164" y="662" class="t-messagebus" font-size="9" font-weight="700">FK</text>+ <text x="188" y="662" class="t-primary" font-size="12" font-weight="600">Foreign key</text>+ </g>+ <g data-legend-semantic-kind="uk" data-legend-kind="uk" data-legend-label="Unique key" data-legend-x="300" data-legend-baseline="662" data-legend-width="109">+ <text x="302" y="662" class="t-muted" font-size="9" font-weight="700">UK</text>+ <text x="326" y="662" class="t-primary" font-size="12" font-weight="600">Unique key</text>+ </g>+ <g data-legend-semantic-kind="one" data-legend-kind="one" data-legend-label="One" data-legend-x="431" data-legend-baseline="662" data-legend-width="66">+ <path d="M 441 653 L 441 663" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="457" y="662" class="t-primary" font-size="12" font-weight="600">One</text>+ </g>+ <g data-legend-semantic-kind="many" data-legend-kind="many" data-legend-label="Many" data-legend-x="519" data-legend-baseline="662" data-legend-width="72">+ <path d="M 521 658 L 537 653 M 521 658 L 537 658 M 521 658 L 537 663" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="545" y="662" class="t-primary" font-size="12" font-weight="600">Many</text>+ </g>+ <g data-legend-semantic-kind="optional" data-legend-kind="optional" data-legend-label="Optional" data-legend-x="613" data-legend-baseline="662" data-legend-width="97">+ <circle cx="622" cy="658" r="3" style="stroke: var(--text-muted)" stroke-width="1.75" fill="none"/>+ <text x="639" y="662" class="t-primary" font-size="12" font-weight="600">Optional</text>+ </g>+ </g>+ </svg>+ <p class="intent-trace-status no-print" id="intent-trace-status" role="status" aria-live="polite" aria-atomic="true"></p>+ <div class="diagram-guide no-print" id="diagram-guide" hidden role="dialog" aria-modal="false" aria-labelledby="diagram-guide-title">+ <div class="diagram-guide-head">+ <span>+ <span class="diagram-guide-eyebrow">Diagram guide</span>+ <strong class="diagram-guide-title" id="diagram-guide-title">Explore this system</strong>+ </span>+ <button class="diagram-guide-close" id="diagram-guide-close" type="button" aria-label="Close diagram guide">×</button>+ </div>+ <p class="diagram-guide-stats" id="diagram-guide-stats">Inspecting compiled semantics</p>+ <div class="diagram-guide-actions" id="diagram-guide-actions" role="group" aria-label="Diagram exploration actions">+ <button class="diagram-guide-action" type="button" data-guide-action="find" aria-label="Find any node">+ <span class="diagram-guide-index" aria-hidden="true">01</span>+ <span class="diagram-guide-action-copy"><strong>Find any node</strong><small>Search labels, responsibilities, kinds, and stable IDs.</small></span>+ <kbd aria-hidden="true">/</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="route" aria-label="Trace a directed route">+ <span class="diagram-guide-index" aria-hidden="true">02</span>+ <span class="diagram-guide-action-copy"><strong>Trace a route</strong><small>Ask how two semantic nodes connect in authored direction.</small></span>+ <kbd aria-hidden="true">R</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="map" aria-label="See the whole system">+ <span class="diagram-guide-index" aria-hidden="true">03</span>+ <span class="diagram-guide-action-copy"><strong>See the whole system</strong><small>Open Semantic Radar with a live viewport and stable nodes.</small></span>+ <kbd aria-hidden="true">M</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="lens" aria-label="Compare semantic kinds">+ <span class="diagram-guide-index" aria-hidden="true">04</span>+ <span class="diagram-guide-action-copy"><strong>Compare semantic kinds</strong><small>Count roles, reveal their traffic, and compare direct authored links.</small></span>+ <kbd aria-hidden="true">L</kbd>+ </button>+ <button class="diagram-guide-action" type="button" data-guide-action="present" aria-label="Enter presentation stage">+ <span class="diagram-guide-index" aria-hidden="true">05</span>+ <span class="diagram-guide-action-copy"><strong>Enter Presentation Stage</strong><small>Give the live diagram the viewport without changing export.</small></span>+ <kbd aria-hidden="true">F</kbd>+ </button>+ </div>+ <div class="diagram-guide-shortcuts" aria-label="Additional keyboard shortcuts">+ <span><kbd>E</kbd> Export</span><span><kbd>T</kbd> Theme</span><span><kbd>S</kbd> Style</span><span><kbd>0</kbd> Reset</span><span><kbd>+</kbd> Zoom in</span><span><kbd>-</kbd> Zoom out</span><span><kbd>Esc</kbd> Close</span>+ </div>+ <p class="diagram-guide-feedback" id="diagram-guide-feedback" aria-live="polite"></p>+ </div>+ <div class="node-finder no-print" id="node-finder" hidden role="dialog" aria-modal="false" aria-labelledby="node-finder-title">+ <div class="node-finder-head">+ <strong id="node-finder-title">Find a node</strong>+ <button class="node-finder-close" id="node-finder-close" type="button" aria-label="Close node finder">×</button>+ </div>+ <div class="node-finder-search">+ <span aria-hidden="true">⌕</span>+ <input class="node-finder-input" id="node-finder-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search labels or IDs" aria-label="Search diagram nodes" aria-describedby="node-finder-status">+ <kbd aria-hidden="true">/</kbd>+ </div>+ <div class="node-finder-results" id="node-finder-results" role="group" aria-label="Diagram nodes"></div>+ <p class="node-finder-empty" id="node-finder-empty" hidden>No matching nodes</p>+ <p class="node-finder-status" id="node-finder-status" aria-live="polite"></p>+ </div>+ <div class="focus-chip relationship-lens no-print" id="focus-chip" hidden role="region" aria-labelledby="relationship-lens-title">+ <div class="relationship-lens-head">+ <button class="relationship-lens-drag-handle" id="btn-focus-move" type="button" data-focus-drag-handle aria-label="Move semantic passport. Drag, use arrow keys, or press Home to reset." title="Move semantic passport. Drag, use arrow keys, or press Home to reset."></button>+ <div class="relationship-lens-copy">+ <span class="relationship-lens-eyebrow">Semantic passport</span>+ <strong class="relationship-lens-title" id="relationship-lens-title"><span id="focus-label"></span></strong>+ <span class="semantic-passport-detail" id="focus-detail" hidden></span>+ <div class="semantic-passport-meta" id="focus-passport-meta" aria-label="Node metadata">+ <span id="focus-kind" data-passport="kind"></span>+ <span id="focus-context" data-passport="context" hidden></span>+ <span id="focus-tag" data-passport="tag" hidden></span>+ <span id="focus-brand" data-passport="brand" hidden></span>+ <code id="focus-id" data-passport="id"></code>+ </div>+ <div class="semantic-passport-evidence" id="focus-evidence" hidden aria-label="Verified source evidence">+ <div class="semantic-passport-evidence-head">+ <span class="semantic-passport-evidence-status">Verified source</span>+ <a class="semantic-passport-repository" id="focus-repository" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer"></a>+ </div>+ <div class="semantic-passport-evidence-links" id="focus-evidence-links"></div>+ </div>+ <span class="relationship-lens-summary" id="focus-summary" aria-live="polite"></span>+ <div class="semantic-passport-reach" id="focus-reach" hidden>+ <span class="semantic-passport-reach-label">Authored reach</span>+ <div class="semantic-passport-reach-actions" role="group" aria-label="Trace authored reachability">+ <button id="btn-reach-upstream" type="button" aria-label="Trace upstream authored reachability" aria-pressed="false">+ <span>Upstream</span><strong id="focus-reach-upstream-count">0</strong>+ </button>+ <button id="btn-reach-downstream" type="button" aria-label="Trace downstream authored reachability" aria-pressed="false">+ <span>Downstream</span><strong id="focus-reach-downstream-count">0</strong>+ </button>+ </div>+ <small class="semantic-passport-reach-status" id="focus-reach-status" hidden aria-live="polite"></small>+ </div>+ </div>+ <div class="relationship-lens-actions">+ <button id="btn-focus-clear" type="button" aria-label="Close semantic passport" title="Close">×</button>+ <button id="btn-focus-copy" type="button" aria-label="Copy link to focused node">Copy link</button>+ <button id="btn-focus-relations" type="button" aria-label="Show connected relationships" aria-expanded="false" aria-controls="relationship-lens-list">Relations</button>+ </div>+ </div>+ <div class="relationship-lens-list" id="relationship-lens-list" aria-label="Connected relationships"></div>+ </div>+ <div class="route-probe no-print" id="route-probe" hidden role="region" aria-labelledby="route-probe-title" data-state="idle">+ <div class="route-probe-head">+ <span class="route-probe-copy">+ <span class="route-probe-eyebrow">Path</span>+ <strong class="route-probe-title" id="route-probe-title">Click where the path starts</strong>+ </span>+ <span class="route-probe-actions">+ <button class="route-probe-find" id="route-probe-find" type="button" aria-label="Find a route start" data-node-finder-trigger>Find start</button>+ <button class="route-probe-copy-link" id="route-probe-copy" type="button" aria-label="Copy link to traced route" hidden>Copy link</button>+ <button id="route-probe-clear" type="button" aria-label="Clear route probe">Clear</button>+ </span>+ </div>+ <div class="route-probe-path" id="route-probe-path" aria-label="Path">+ <span class="route-probe-placeholder">Click two nodes on the diagram</span>+ </div>+ <div class="route-journey-controls" id="route-journey-controls" hidden role="group" aria-label="Route journey controls" data-playing="false">+ <button id="route-journey-prev" type="button" aria-label="Previous route position" title="Previous route position">←</button>+ <button class="route-journey-play" id="route-journey-play" type="button" aria-label="Play route journey" aria-pressed="false" title="Play route journey">+ <span id="route-journey-play-icon" aria-hidden="true">▶</span>+ <span id="route-journey-play-label">Journey</span>+ </button>+ <button id="route-journey-next" type="button" aria-label="Next route position" title="Next route position">→</button>+ <button class="route-journey-overview" id="route-journey-overview" type="button" aria-label="Show complete route overview" title="Show complete route overview">Overview</button>+ </div>+ <small class="route-probe-status" id="route-probe-status" aria-live="polite">Click a start, then an end. Paths follow the arrows.</small>+ </div>+ <div class="semantic-lens no-print" id="semantic-lens" hidden role="dialog" aria-modal="false" aria-labelledby="semantic-lens-title">+ <div class="semantic-lens-head">+ <span>+ <span class="semantic-lens-eyebrow">Semantic lens</span>+ <strong class="semantic-lens-title" id="semantic-lens-title">Compare system roles</strong>+ </span>+ <button class="semantic-lens-close" id="semantic-lens-close" type="button" aria-label="Close semantic lens">×</button>+ </div>+ <p class="semantic-lens-instruction">Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.</p>+ <div class="semantic-lens-kinds" id="semantic-lens-kinds" role="group" aria-label="Semantic kinds"></div>+ <p class="semantic-lens-status" id="semantic-lens-status" aria-live="polite">Choose a kind to inspect its nodes and touching relationships.</p>+ <div class="semantic-lens-actions">+ <button id="semantic-lens-copy" type="button" aria-label="Copy link to semantic lens" hidden>Copy link</button>+ <button id="semantic-lens-clear" type="button" aria-label="Clear semantic lens">Clear</button>+ </div>+ </div>+ <div class="overview-map no-print" id="overview-map" hidden role="region" aria-labelledby="overview-map-title">+ <div class="overview-map-head">+ <span class="overview-map-live" aria-hidden="true"></span>+ <span class="overview-map-copy">+ <strong id="overview-map-title">Semantic radar</strong>+ <small id="overview-map-status" aria-live="polite">Building overview</small>+ </span>+ <button class="overview-map-expand" id="overview-map-expand" type="button" aria-label="Open full semantic radar">Open radar</button>+ <button class="overview-map-close" id="overview-map-close" type="button" aria-label="Close semantic radar">×</button>+ </div>+ <div class="overview-map-surface" id="overview-map-surface" tabindex="0" role="group" aria-label="Diagram overview. Click a node to focus it, or use arrow keys to pan."></div>+ <div class="overview-map-hint" aria-hidden="true"><span>Click node</span><span>Drag to pan</span></div>+ </div>+ <p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>+ <button class="rail-reveal no-print" id="rail-reveal" type="button" hidden aria-controls="reader-rail" aria-expanded="false"><span class="rail-reveal-icon" aria-hidden="true"></span><span>Notes & index</span></button>+ <div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">+ <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>+ <button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>+ <button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>+ <button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" hidden aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button>+ <button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button>+ <button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>+ </div>+ </div>++ <aside class="reader-rail" id="reader-rail">+ <div class="rail-controls no-print" role="toolbar" aria-label="Side panel">+ <button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>+ <button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>+ </div>+ <!-- Info Cards -->+ <div class="cards">+ <div class="card">+ <div class="card-header">+ <div class="card-dot cyan"></div>+ <h3>Scope</h3>+ </div>+ <ul>+ <li>A redacted subscription-billing model: eleven tables, the fields the service actually stores.</li>+ <li>Money is numeric(12,2) rather than float; every amount column records a currency or inherits one from price.</li>+ <li>Timestamps are timestamptz, so an invoice keeps the instant it was issued, not a local reading of it.</li>+ </ul>+ </div>++ <div class="card">+ <div class="card-header">+ <div class="card-dot amber"></div>+ <h3>Optionality</h3>+ </div>+ <ul>+ <li>An invoice may exist before a payment attempt, so the payment side is zero or many.</li>+ <li>A refund is mandatory on its payment: nothing is refunded that was never captured.</li>+ <li>membership carries both foreign keys; a user with no tenant has no membership row at all.</li>+ </ul>+ </div>+ </div>+ <nav class="node-outline no-print" id="node-outline" hidden aria-labelledby="node-outline-title">+ <div class="node-outline-head">+ <strong id="node-outline-title">Node index</strong>+ <span class="node-outline-count" id="node-outline-count"></span>+ </div>+ <ol class="node-outline-list" id="node-outline-list"></ol>+ </nav>+ </aside>++ </div>++ <script>+ var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }++ function hasDrawableGeometry(element) {+ if (!element) return false;+ var geometries = /^(path|line|polyline)$/i.test(element.tagName)+ ? [element]+ : Array.prototype.slice.call(element.querySelectorAll('path, line, polyline'));+ return geometries.some(function (geometry) {+ var source = geometry.tagName.toLowerCase() === 'path'+ ? geometry.getAttribute('d')+ : geometry.tagName.toLowerCase() === 'polyline'+ ? geometry.getAttribute('points')+ : [geometry.getAttribute('x1'), geometry.getAttribute('y1'), geometry.getAttribute('x2'), geometry.getAttribute('y2')].join(' ');+ if (!source || /(?:^|[^a-z])(?:nan|infinity)(?:[^a-z]|$)/i.test(source) || typeof geometry.getTotalLength !== 'function') return false;+ try {+ var length = Number(geometry.getTotalLength());+ return Number.isFinite(length) && length > 0;+ } catch (_) {+ return false;+ }+ });+ }++ /* ============================================================+ Visual style try-on — one topology, four bundled presets.+ The reader's choice is intentionally session-only: it updates the+ live page and canonical SVG together, but never rewrites the source,+ URL, or a later diagram's authored default.+ ============================================================ */+ Archify.preset = (function () {+ var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };+ var html = document.documentElement;+ var svg = document.querySelector('.diagram-container svg');+ var btn = document.getElementById('btn-preset');+ var label = document.getElementById('preset-label');+ var menu = document.getElementById('preset-menu');+ var options = function () {+ return Array.prototype.slice.call(menu.querySelectorAll('[data-preset-value]'));+ };+ var authored = PRESETS.indexOf(html.getAttribute('data-preset')) >= 0+ ? html.getAttribute('data-preset')+ : 'classic';++ function current() {+ var value = html.getAttribute('data-preset');+ return PRESETS.indexOf(value) >= 0 ? value : authored;+ }+ function nextAfter(preset) {+ return PRESETS[(PRESETS.indexOf(preset) + 1) % PRESETS.length];+ }+ function apply(preset) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (PRESETS.indexOf(preset) < 0) return false;+ html.setAttribute('data-preset', preset);+ svg.setAttribute('data-preset', preset);+ btn.setAttribute('data-preset-option', preset);+ label.textContent = LABELS[preset];+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');+ options().forEach(function (option) {+ var selected = option.getAttribute('data-preset-value') === preset;+ option.setAttribute('aria-checked', String(selected));+ });+ return true;+ }+ function cycle() { return apply(nextAfter(current())); }++ function isOpen() { return menu.classList.contains('open'); }+ function open(focusLast) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ menu.classList.add('open');+ btn.setAttribute('aria-expanded', 'true');+ var available = options();+ var selected = available.find(function (option) { return option.getAttribute('aria-checked') === 'true'; });+ var target = focusLast ? available[available.length - 1] : (selected || available[0]);+ if (target) target.focus();+ return true;+ }+ function close(focusTrigger) {+ menu.classList.remove('open');+ btn.setAttribute('aria-expanded', 'false');+ if (focusTrigger) btn.focus();+ return false;+ }++ apply(authored);+ btn.addEventListener('click', function (e) {+ e.stopPropagation();+ if (isOpen()) close(false);+ else open(false);+ });+ btn.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault();+ if (!isOpen()) open(e.key === 'ArrowUp');+ }+ });+ document.addEventListener('click', function (e) {+ if (!menu.contains(e.target) && e.target !== btn) close(false);+ });+ menu.addEventListener('click', function (e) {+ var option = e.target.closest('[data-preset-value]');+ if (!option || !menu.contains(option)) return;+ if (apply(option.getAttribute('data-preset-value'))) close(true);+ });+ menu.addEventListener('keydown', function (e) {+ if (e.key === 'Escape') { e.preventDefault(); close(true); return; }+ if (e.key === 'Tab') { close(false); return; }+ var available = options();+ var active = available.indexOf(document.activeElement);+ switch (e.key) {+ case 'ArrowDown':+ e.preventDefault();+ if (available.length) available[(active + 1 + available.length) % available.length].focus();+ break;+ case 'ArrowUp':+ e.preventDefault();+ if (available.length) available[(active - 1 + available.length) % available.length].focus();+ break;+ case 'Home':+ e.preventDefault();+ if (available[0]) available[0].focus();+ break;+ case 'End':+ e.preventDefault();+ if (available.length) available[available.length - 1].focus();+ break;+ }+ });+ return { cycle: cycle, apply: apply, current: current, authored: authored, open: open, close: close, isOpen: isOpen };+ })();++ /* ============================================================+ Theme toggle — persists to localStorage, respects system pref+ ============================================================ */++ Archify.theme = (function () {+ var STORAGE_KEY = 'archify-theme';+ var html = document.documentElement;+ var btn = document.getElementById('btn-theme');+ var label = document.getElementById('theme-label');++ // localStorage can throw (blocked cookies, sandboxed iframes); the whole+ // script element dies on an uncaught error, so guard every access.+ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored(value) {+ try { localStorage.setItem(STORAGE_KEY, value); } catch (_) {}+ }+ function urlOverride() {+ // URL param wins (useful for deterministic screenshots / share links)+ try {+ var param = new URLSearchParams(window.location.search).get('theme');+ if (param === 'light' || param === 'dark') return param;+ } catch (_) {}+ return null;+ }++ function resolveInitial() {+ var fromUrl = urlOverride();+ if (fromUrl) return fromUrl;+ var saved = readStored();+ if (saved === 'light' || saved === 'dark') return saved;+ return window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';+ }++ function apply(theme) {+ html.setAttribute('data-theme', theme);+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');+ btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');+ }++ function toggle() {+ var next = html.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';+ apply(next);+ writeStored(next);+ }++ apply(resolveInitial());+ btn.addEventListener('click', toggle);++ // Follow live OS theme changes while the user has no explicit preference.+ try {+ var media = window.matchMedia('(prefers-color-scheme: light)');+ var onChange = function (e) {+ var saved = readStored();+ if (urlOverride() || saved === 'light' || saved === 'dark') return;+ apply(e.matches ? 'light' : 'dark');+ };+ if (media.addEventListener) media.addEventListener('change', onChange);+ else if (media.addListener) media.addListener(onChange);+ } catch (_) {}++ return { toggle: toggle };+ })();++ /* ============================================================+ Export — Share Card / PNG / JPEG / WebP / SVG / WebM and clipboard++ Raster exports are always rendered at 4x source resolution for+ maximum sharpness. The trick: we set the serialized SVG's+ `width`/`height` to viewBox * 4 so the browser rasterizes the+ vectors at that resolution natively. drawImage then draws at+ the image's natural size (no upscaling = no blur).++ JPEG/WebP paint the current theme's background explicitly since+ those formats have no alpha channel.+ ============================================================ */+ (function () {+ var RASTER_SCALE = 4;+ var MOTION_DURATION = 6000;+ var MOTION_FPS = 30;+ var SHARE_CARD_WIDTH = 1200;+ var SHARE_CARD_HEIGHT = 630;+ var SHARE_CARD_PADDING = 40;+ var SHARE_CARD_HEADER = 124;++ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }++ function diagramFilename() {+ var title = (document.title || 'diagram')+ .replace(/\s+Architecture(\s+Diagram)?$/i, '')+ .replace(/\s+Diagram$/i, '')+ .trim();+ return title.replace(/[^a-z0-9_\-]+/gi, '-')+ .toLowerCase()+ .replace(/^-+|-+$/g, '') || 'diagram';+ }++ function currentBg() {+ return getComputedStyle(document.body).backgroundColor || '#ffffff';+ }++ function cleanExportClone(clone) {+ // View transforms and neighborhood focus are HTML exploration state,+ // never part of a downloaded full-diagram artifact.+ clone.style.removeProperty('transform');+ clone.style.removeProperty('clip-path');+ clone.removeAttribute('data-view-scale');+ clone.removeAttribute('data-focus-active');+ clone.removeAttribute('data-reach-active');+ clone.removeAttribute('data-lens-active');+ clone.removeAttribute('data-lens-flow-count');+ clone.removeAttribute('data-lens-flow-density');+ clone.removeAttribute('data-legend-preview-active');+ clone.removeAttribute('data-relationship-preview-active');+ clone.removeAttribute('data-relationship-direct-active');+ clone.removeAttribute('data-relationship-pin-active');+ clone.removeAttribute('data-intent-trace-active');+ clone.removeAttribute('data-route-picking');+ clone.removeAttribute('data-route-active');+ clone.removeAttribute('data-route-journey');+ clone.removeAttribute('data-share-route');+ clone.removeAttribute('data-share-reach');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-probe-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-journey-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-semantic-lens-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-bridge-runtime]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-kind]'), function (el) {+ el.removeAttribute('data-legend-kind');+ el.removeAttribute('data-legend-label');+ el.removeAttribute('data-legend-count');+ el.removeAttribute('data-legend-zero');+ el.removeAttribute('data-legend-selected');+ el.removeAttribute('role');+ el.removeAttribute('tabindex');+ el.removeAttribute('aria-label');+ el.removeAttribute('aria-pressed');+ el.removeAttribute('aria-haspopup');+ el.removeAttribute('aria-controls');+ el.removeAttribute('aria-expanded');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-bridge]'), function (el) {+ el.removeAttribute('data-legend-bridge');+ el.removeAttribute('role');+ el.removeAttribute('aria-label');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-pulse-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-hit-overlay]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-beacon]'), function (el) {+ el.remove();+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-source-evidence-count]'), function (el) {+ var originalLabel = el.getAttribute('data-source-evidence-original-label');+ if (originalLabel == null || originalLabel === '') el.removeAttribute('aria-label');+ else el.setAttribute('aria-label', originalLabel);+ el.removeAttribute('data-source-evidence-count');+ el.removeAttribute('data-source-evidence-original-label');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-focus-match], [data-focus-selected]'), function (el) {+ el.removeAttribute('data-focus-match');+ el.removeAttribute('data-focus-selected');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-reach-match], [data-reach-origin], [data-reach-depth]'), function (el) {+ el.removeAttribute('data-reach-match');+ el.removeAttribute('data-reach-origin');+ el.removeAttribute('data-reach-depth');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-lens-match], [data-lens-selected], [data-lens-peer]'), function (el) {+ el.removeAttribute('data-lens-match');+ el.removeAttribute('data-lens-selected');+ el.removeAttribute('data-lens-peer');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer]'), function (el) {+ el.removeAttribute('data-legend-preview-match');+ el.removeAttribute('data-legend-preview-selected');+ el.removeAttribute('data-legend-preview-peer');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target]'), function (el) {+ el.removeAttribute('data-relationship-preview');+ el.removeAttribute('data-relationship-preview-node');+ el.removeAttribute('data-relationship-preview-source');+ el.removeAttribute('data-relationship-preview-target');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-intent-trace-match], [data-intent-trace-selected]'), function (el) {+ el.removeAttribute('data-intent-trace-match');+ el.removeAttribute('data-intent-trace-selected');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current]'), function (el) {+ el.removeAttribute('data-route-match');+ el.removeAttribute('data-route-start');+ el.removeAttribute('data-route-end');+ el.removeAttribute('data-route-step');+ el.removeAttribute('data-route-candidate');+ el.removeAttribute('data-route-journey-state');+ el.removeAttribute('data-route-journey-current');+ el.style.removeProperty('--route-step');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle]'), function (el) {+ el.removeAttribute('data-share-route-match');+ el.removeAttribute('data-share-route-step');+ el.removeAttribute('data-share-route-start');+ el.removeAttribute('data-share-route-end');+ el.removeAttribute('data-share-route-middle');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth]'), function (el) {+ el.removeAttribute('data-share-reach-match');+ el.removeAttribute('data-share-reach-origin');+ el.removeAttribute('data-share-reach-depth');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-detail], [data-detail-anchor]'), function (el) {+ el.removeAttribute('data-detail');+ el.removeAttribute('data-detail-anchor');+ });+ Array.prototype.forEach.call(clone.querySelectorAll('[data-node-id][aria-pressed]'), function (el) {+ el.setAttribute('aria-pressed', 'false');+ });+ return !clone.hasAttribute('data-view-scale') &&+ !clone.hasAttribute('data-focus-active') &&+ !clone.hasAttribute('data-reach-active') &&+ !clone.hasAttribute('data-lens-active') &&+ !clone.hasAttribute('data-lens-flow-count') &&+ !clone.hasAttribute('data-lens-flow-density') &&+ !clone.hasAttribute('data-legend-preview-active') &&+ !clone.hasAttribute('data-relationship-preview-active') &&+ !clone.hasAttribute('data-relationship-direct-active') &&+ !clone.hasAttribute('data-intent-trace-active') &&+ !clone.hasAttribute('data-route-picking') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ !clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-share-reach') &&+ !clone.style.getPropertyValue('transform') &&+ !clone.style.getPropertyValue('clip-path') &&+ clone.querySelectorAll('[data-focus-match], [data-focus-selected], [data-reach-match], [data-reach-origin], [data-reach-depth], [data-semantic-lens-overlay], [data-lens-match], [data-lens-selected], [data-lens-peer], [data-legend-bridge], [data-legend-kind], [data-legend-bridge-runtime], [data-legend-count], [data-legend-zero], [data-legend-selected], [data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer], [data-relationship-hit-overlay], [data-relationship-pulse-overlay], [data-relationship-preview], [data-relationship-preview-node], [data-relationship-preview-source], [data-relationship-preview-target], [data-intent-trace-overlay], [data-intent-trace-match], [data-intent-trace-selected], [data-route-probe-overlay], [data-route-journey-overlay], [data-route-match], [data-route-start], [data-route-end], [data-route-step], [data-route-candidate], [data-route-journey-state], [data-route-journey-current], [data-share-route-match], [data-share-route-step], [data-share-route-start], [data-share-route-end], [data-share-route-middle], [data-share-reach-match], [data-share-reach-origin], [data-share-reach-depth], [data-source-evidence-beacon], [data-source-evidence-count], [data-source-evidence-original-label], [data-detail], [data-detail-anchor]').length === 0;+ }+++ /**+ * Serialize the main SVG into a standalone document.+ *+ * Two modes:+ * - Default (opts.autoTheme=false) — locks the serialized SVG to the+ * viewer's current theme. Used by the raster pipeline+ * (PNG/JPEG/WebP/clipboard) because canvas rasterization needs+ * deterministic colors; a raster cannot react to+ * prefers-color-scheme after encoding.+ * - theme=auto — emits BOTH dark and light variable sets plus a+ * `@media (prefers-color-scheme)` rule so the resulting SVG+ * self-themes when embedded in GitHub READMEs or other hosts that+ * expose a color scheme. Used for the default "Download SVG".+ * - theme=light|dark — locks the standalone SVG to the requested+ * theme, independently of its source Viewer and host OS themes.+ */+ function applyRouteSnapshot(clone, snapshot) {+ if (!snapshot || !Array.isArray(snapshot.nodeIds) || !Array.isArray(snapshot.edges) ||+ snapshot.nodeIds.length < 2 || snapshot.edges.length !== snapshot.nodeIds.length - 1 ||+ snapshot.hops !== snapshot.edges.length ||+ !snapshot.source || !snapshot.target ||+ snapshot.source.id !== snapshot.nodeIds[0] ||+ snapshot.target.id !== snapshot.nodeIds[snapshot.nodeIds.length - 1]) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId]) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ nodeMatches.push(matchedNodes);+ }++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ var fromId = snapshot.nodeIds[edgeIndex];+ var toId = snapshot.nodeIds[edgeIndex + 1];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ edge.from !== fromId || edge.to !== toId) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push(matchedEdges);+ }++ clone.setAttribute('data-share-route', '');+ nodeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ if (step === 0) element.setAttribute('data-share-route-start', '');+ else if (step === snapshot.nodeIds.length - 1) element.setAttribute('data-share-route-end', '');+ else element.setAttribute('data-share-route-middle', '');+ });+ });+ edgeMatches.forEach(function (matches, step) {+ matches.forEach(function (element) {+ element.setAttribute('data-share-route-match', '');+ element.setAttribute('data-share-route-step', String(step));+ });+ });++ return clone.hasAttribute('data-share-route') &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-route-active') &&+ !clone.hasAttribute('data-route-journey') &&+ clone.querySelectorAll('[data-animate], [data-route-match], [data-route-step], [data-route-start], [data-route-end], [data-route-journey-state], [data-route-journey-current], [data-route-journey-overlay]').length === 0 &&+ clone.querySelectorAll('[data-share-route-match]').length ===+ nodeMatches.reduce(function (count, matches) { return count + matches.length; }, 0) ++ edgeMatches.reduce(function (count, matches) { return count + matches.length; }, 0);+ }++ function applyReachSnapshot(clone, snapshot) {+ if (!snapshot || (snapshot.direction !== 'upstream' && snapshot.direction !== 'downstream') ||+ !snapshot.origin || typeof snapshot.origin.id !== 'string' || !snapshot.origin.id ||+ typeof snapshot.origin.label !== 'string' || !snapshot.origin.label.trim() ||+ !Array.isArray(snapshot.nodeIds) || snapshot.nodeIds.length < 2 ||+ !Array.isArray(snapshot.edges) || !snapshot.edges.length ||+ !snapshot.depths || typeof snapshot.depths !== 'object' ||+ !Number.isInteger(snapshot.maxDepth) || snapshot.maxDepth < 1 ||+ snapshot.nodeIds[0] !== snapshot.origin.id) return false;++ clone.removeAttribute('data-animation');+ Array.prototype.forEach.call(clone.querySelectorAll('[data-animate]'), function (element) {+ element.removeAttribute('data-animate');+ element.style.removeProperty('--step');+ });++ var cloneNodes = Array.prototype.slice.call(clone.querySelectorAll('[data-node-id]'));+ var cloneEdges = Array.prototype.slice.call(clone.querySelectorAll('[data-edge-key]'));+ var nodeIds = Object.create(null);+ var edgeKeys = Object.create(null);+ var nodeMatches = [];+ var edgeMatches = [];+ var measuredMaxDepth = 0;++ for (var nodeIndex = 0; nodeIndex < snapshot.nodeIds.length; nodeIndex++) {+ var nodeId = snapshot.nodeIds[nodeIndex];+ var depth = snapshot.depths[nodeId];+ if (typeof nodeId !== 'string' || !nodeId || nodeIds[nodeId] ||+ !Number.isInteger(depth) || depth < 0 || depth > snapshot.maxDepth ||+ (nodeId === snapshot.origin.id ? depth !== 0 : depth < 1)) return false;+ var matchedNodes = cloneNodes.filter(function (candidate) {+ return candidate.getAttribute('data-node-id') === nodeId;+ });+ if (matchedNodes.length !== 1) return false;+ nodeIds[nodeId] = true;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ nodeMatches.push({ elements: matchedNodes, id: nodeId, depth: depth });+ }+ if (measuredMaxDepth !== snapshot.maxDepth) return false;++ for (var edgeIndex = 0; edgeIndex < snapshot.edges.length; edgeIndex++) {+ var edge = snapshot.edges[edgeIndex];+ if (!edge || typeof edge.key !== 'string' || !edge.key || edgeKeys[edge.key] ||+ !nodeIds[edge.from] || !nodeIds[edge.to] ||+ !Number.isInteger(edge.depth) || edge.depth < 1 || edge.depth > snapshot.maxDepth ||+ edge.depth !== Math.max(snapshot.depths[edge.from], snapshot.depths[edge.to])) return false;+ var matchedEdges = cloneEdges.filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edge.key;+ });+ var drawableMatches = matchedEdges.filter(hasDrawableGeometry);+ if (!matchedEdges.length || drawableMatches.length !== 1 || !matchedEdges.every(function (candidate) {+ return candidate.getAttribute('data-edge-from') === edge.from &&+ candidate.getAttribute('data-edge-to') === edge.to &&+ (candidate.getAttribute('data-edge-id') || '') === (edge.id || '');+ })) return false;+ edgeKeys[edge.key] = true;+ edgeMatches.push({ elements: matchedEdges, depth: edge.depth });+ }++ clone.setAttribute('data-share-reach', snapshot.direction);+ nodeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ if (match.id === snapshot.origin.id) element.setAttribute('data-share-reach-origin', '');+ });+ });+ edgeMatches.forEach(function (match) {+ match.elements.forEach(function (element) {+ element.setAttribute('data-share-reach-match', '');+ element.setAttribute('data-share-reach-depth', String(match.depth));+ });+ });++ return clone.getAttribute('data-share-reach') === snapshot.direction &&+ !clone.hasAttribute('data-animation') &&+ !clone.hasAttribute('data-reach-active') &&+ clone.querySelectorAll('[data-animate], [data-reach-match], [data-reach-origin], [data-reach-depth]').length === 0 &&+ clone.querySelectorAll('[data-share-reach-origin]').length === 1 &&+ clone.querySelectorAll('[data-share-reach-match]').length ===+ nodeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0) ++ edgeMatches.reduce(function (count, match) { return count + match.elements.length; }, 0);+ }++ function serializeSvg(scale, opts) {+ // scale: multiplier (integer unless the figure is oversized) for intrinsic SVG pixel dimensions used by+ // the raster path. Defaults to 1 (natural size) for SVG download.+ scale = scale || 1;+ opts = opts || {};+ var requestedTheme = opts.theme || (opts.autoTheme === true ? 'auto' : null);+ if (requestedTheme && requestedTheme !== 'auto' && requestedTheme !== 'light' && requestedTheme !== 'dark') {+ throw new Error('Unsupported SVG theme: ' + requestedTheme);+ }+ var autoTheme = requestedTheme === 'auto';+ var svg = document.querySelector('.diagram-container svg');+ var clone = svg.cloneNode(true);++ var canonicalStateClean = cleanExportClone(clone);++ var vb = svg.viewBox.baseVal;+ var finiteSvgDimensions = Number.isFinite(vb.x) && Number.isFinite(vb.y) &&+ Number.isFinite(vb.width) && Number.isFinite(vb.height) && vb.width > 0 && vb.height > 0;+ var routeStateClean = opts.routeSnapshot+ ? canonicalStateClean && finiteSvgDimensions && applyRouteSnapshot(clone, opts.routeSnapshot)+ : null;+ var reachStateClean = opts.reachSnapshot+ ? canonicalStateClean && finiteSvgDimensions && !opts.routeSnapshot && applyReachSnapshot(clone, opts.reachSnapshot)+ : null;+ // Scale width/height so the browser rasterizes the vectors at target+ // resolution directly. viewBox stays unchanged so coordinates don't+ // shift. This is the key to sharp rasters — do NOT scale later via+ // canvas upscaling.+ clone.setAttribute('width', vb.width * scale);+ clone.setAttribute('height', vb.height * scale);+ // Keep copied Viewer layout rules from overriding the export's size.+ clone.style.width = vb.width * scale + 'px';+ clone.style.height = vb.height * scale + 'px';+ clone.style.minWidth = '0';+ clone.setAttribute('xmlns', 'http://www.w3.org/2000/svg');++ // Only the SVG-relevant rules: semantic classes, markers, and the+ // theme variable blocks. Toolbar/cards/print CSS can never apply+ // inside a standalone SVG and would only bloat the export.+ var hostStyle = (function () {+ var out = [];+ Array.prototype.forEach.call(document.styleSheets, function (sheet) {+ var rules;+ try { rules = sheet.cssRules; } catch (_) { return; } // cross-origin+ if (!rules) return;+ Array.prototype.forEach.call(rules, function (rule) {+ if (rule.type === 7 && /^archify-/.test(rule.name || '')) {+ out.push(rule.cssText);+ return;+ }+ if (rule.type !== 1) return; // plain style rules only+ var sel = rule.selectorText || '';+ if (/(^|,)\s*(svg|:root|\[data-theme|\[data-preset|\.c-|\.t-|\.a-|\.m-)/.test(sel)) {+ out.push(rule.cssText);+ } else if (opts.figure && sel.indexOf('.diagram-container > svg') !== -1) {+ // Figures look like the Viewer canvas: keep its preset/theme paint+ // (quiet grid, lifted nodes) by rescoping matching rules to svg.+ var scoped = sel.split(',').map(function (part) {+ var at = part.indexOf('.diagram-container > svg');+ if (at === -1) return null;+ var prefix = part.slice(0, at).trim();+ try { if (prefix && !document.documentElement.matches(prefix)) return null; } catch (_) { return null; }+ return 'svg' + part.slice(at + '.diagram-container > svg'.length);+ }).filter(Boolean);+ if (scoped.length) out.push(scoped.join(', ') + ' { ' + rule.style.cssText + ' }');+ }+ });+ });+ return out.join('\n');+ })();++ // Derive the variable list from the stylesheet so newly added theme+ // variables can never be missed by the export pipeline again+ // (--lane-fill/--lane-stroke once were).+ var varNames = (function () {+ var seen = {};+ var names = [];+ (hostStyle.match(/--[a-zA-Z0-9-]+(?=\s*:)/g) || []).forEach(function (n) {+ if (!seen[n]) { seen[n] = true; names.push(n); }+ });+ return names;+ })();++ // Resolve the full variable set for a given data-theme via an+ // off-DOM probe, independent of what the viewer is currently set to.+ function resolveVars(themeAttr) {+ var probe = document.createElement('div');+ probe.setAttribute('data-theme', themeAttr);+ probe.setAttribute('data-preset', document.documentElement.getAttribute('data-preset') || 'classic');+ probe.style.cssText = 'position:absolute;width:0;height:0;visibility:hidden;';+ document.body.appendChild(probe);+ try {+ var c = getComputedStyle(probe);+ return {+ background: c.getPropertyValue('--bg').trim(),+ vars: varNames.map(function (n) {+ return n + ': ' + c.getPropertyValue(n).trim() + ';';+ }).join(' ')+ };+ } finally {+ document.body.removeChild(probe);+ }+ }++ // Keep the same font bytes, character coverage, and attribution in+ // standalone SVGs and the SVG images used by every raster export.+ var fontCss = document.getElementById('archify-fonts').textContent;++ var style = document.createElementNS('http://www.w3.org/2000/svg', 'style');+ var bgRect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');+ // Cover the real viewBox: auto-cropped canvases start below y=0, and a+ // 100% rect anchored at the origin left an unpainted band at the bottom.+ bgRect.setAttribute('x', vb.x);+ bgRect.setAttribute('y', vb.y);+ bgRect.setAttribute('width', vb.width);+ bgRect.setAttribute('height', vb.height);++ if (autoTheme) {+ // Dual-theme SVG. Dark is the default (so hosts without+ // prefers-color-scheme still render), light swaps in via media+ // query, and svg[data-theme="..."] still lets downstream+ // consumers force a specific theme.+ var darkTheme = resolveVars('dark');+ var lightTheme = resolveVars('light');++ style.textContent =+ fontCss + "\n" ++ "svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" ++ hostStyle + "\n" ++ ":root, svg { " + darkTheme.vars + " }\n" ++ "@media (prefers-color-scheme: light) { :root, svg { " + lightTheme.vars + " } }\n" ++ "svg[data-theme=\"light\"] { " + lightTheme.vars + " }\n" ++ "svg[data-theme=\"dark\"] { " + darkTheme.vars + " }\n" ++ "rect.c-bg-rect { fill: var(--bg); }\n";++ // Don't lock the serialized SVG to the viewer's current theme.+ clone.removeAttribute('data-theme');+ // Background follows the CSS variable, not a fixed color, so it+ // swaps with the media query.+ bgRect.setAttribute('class', 'c-bg-rect');+ } else {+ // Raster exports keep the viewer's current theme. Explicit SVG+ // exports instead select their own stable light/dark source.+ var lockedTheme = requestedTheme || document.documentElement.getAttribute('data-theme') || 'dark';+ var resolvedTheme = requestedTheme && resolveVars(lockedTheme);+ var computed = getComputedStyle(document.documentElement);+ var vars = resolvedTheme ? resolvedTheme.vars : varNames.map(function (n) {+ return n + ': ' + computed.getPropertyValue(n).trim() + ';';+ }).join(' ');++ // IMPORTANT: inject the resolved variables AFTER hostStyle,+ // otherwise hostStyle's ":root, [data-theme=\"dark\"] { ... }" rule+ // overrides our chosen theme via later-in-cascade equal-specificity.+ // Keep this order.+ style.textContent =+ fontCss + "\n" ++ "svg { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', monospace; }\n" ++ hostStyle + "\n" ++ ":root, svg { " + vars + " }\n";++ if (requestedTheme) clone.setAttribute('data-theme', lockedTheme);+ bgRect.setAttribute('fill', (resolvedTheme ? resolvedTheme.background : computed.getPropertyValue('--bg').trim()) || '#ffffff');+ }++ if (opts.routeSnapshot) {+ style.textContent += "\nsvg[data-share-route] [data-node-id], svg[data-share-route] [data-edge-from], svg[data-share-route] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.18; }\n" ++ "svg[data-share-route] [data-share-route-match], svg[data-share-route] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-route-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" ++ "svg[data-share-route] [data-share-route-start] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3; stroke-dasharray: 5 3; }\n" ++ "svg[data-share-route] [data-share-route-middle] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 2.2; }\n" ++ "svg[data-share-route] [data-share-route-end] > :is(rect, circle, polygon):not(.c-mask) { stroke-width: 3.4; stroke-dasharray: 1 0; }\n";+ }+ if (opts.reachSnapshot) {+ style.textContent += "\nsvg[data-share-reach] [data-node-id], svg[data-share-reach] [data-edge-from], svg[data-share-reach] [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 0.14; }\n" ++ "svg[data-share-reach] [data-share-reach-match], svg[data-share-reach] [data-graph-role=\"automatic-crossover\"]:has(> [data-share-reach-match]) > [data-graph-role=\"automatic-crossover-underlay\"] { opacity: 1; }\n" ++ "svg[data-share-reach] [data-edge-from][data-share-reach-match] { stroke-width: 1.55; }\n" ++ "svg[data-share-reach=\"upstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--database-stroke); stroke-width: 3.4; stroke-dasharray: 5 3; }\n" ++ "svg[data-share-reach=\"downstream\"] [data-share-reach-origin] > :is(rect, circle, polygon):not(.c-mask) { stroke: var(--backend-stroke); stroke-width: 3.4; stroke-dasharray: 1 0; }\n" ++ "svg[data-preset=\"blueprint\"][data-share-reach] [data-share-reach-origin], svg[data-preset=\"blueprint\"][data-share-reach] [data-edge-from][data-share-reach-match] { filter: none; }\n";+ }++ // Figures draw the diagram on a painted canvas card, like the Viewer.+ if (opts.figure) bgRect.setAttribute('fill', 'none');++ clone.insertBefore(style, clone.firstChild);+ clone.insertBefore(bgRect, style.nextSibling);++ // The XML declaration pins UTF-8: without it, consumers that guess an+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.+ return {+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' ++ new XMLSerializer().serializeToString(clone),+ width: vb.width * scale,+ height: vb.height * scale,+ canonicalStateClean: canonicalStateClean,+ routeStateClean: routeStateClean,+ reachStateClean: reachStateClean+ };+ }++ function download(blob, filename) {+ var url = URL.createObjectURL(blob);+ var a = document.createElement('a');+ a.href = url;+ a.download = filename;+ document.body.appendChild(a);+ a.click();+ a.remove();+ setTimeout(function () { URL.revokeObjectURL(url); }, 1000);+ }++ // Conservative upper bound on total canvas pixels. Older Safari on iOS+ // silently produces a blank canvas above ~16 Mpx; Chrome / Firefox /+ // desktop Safari are far higher but start failing on memory-constrained+ // devices. We pick the largest integer scale in {4,3,2,1} whose target+ // pixel count fits under this cap; a figure too large even at 1x is+ // downscaled to fit rather than allocating an oversized canvas.+ var MAX_CANVAS_PIXELS = 16 * 1024 * 1024;++ function pickSafeScale(vbW, vbH) {+ for (var s = RASTER_SCALE; s >= 1; s--) {+ if (vbW * s * vbH * s <= MAX_CANVAS_PIXELS) return s;+ }+ return Math.sqrt(MAX_CANVAS_PIXELS / (vbW * vbH)) * 0.999;+ }++ // Raster exports reproduce the Viewer page without its controls: the+ // title row with its accent dot, then the diagram on the same rounded+ // canvas card (fill, hairline, shadow, dot field). CSS pixels.+ var FIGURE_MARGIN = 28;+ var FIGURE_CARD_PADDING = 24;+ var FIGURE_TITLE_SIZE = 24;+ var FIGURE_SUBTITLE_SIZE = 14;++ function figureLayout(vb) {+ var titleNode = document.querySelector('.header h1');+ var subtitleNode = document.querySelector('.header .subtitle');+ var container = document.querySelector('.diagram-container');+ var root = getComputedStyle(document.documentElement);+ var card = container ? getComputedStyle(container) : null;+ var title = titleNode ? titleNode.textContent.trim() : '';+ var subtitle = subtitleNode ? subtitleNode.textContent.trim() : '';+ var header = title ? 32 + (subtitle ? 24 : 0) + 18 : 0;+ var cardWidth = vb.width + FIGURE_CARD_PADDING * 2;+ var cardHeight = vb.height + FIGURE_CARD_PADDING * 2;+ var cardFill = card && card.backgroundColor && !/rgba\(0, 0, 0, 0\)|transparent/.test(card.backgroundColor)+ ? card.backgroundColor : (root.getPropertyValue('--panel').trim() || 'transparent');+ return {+ title: title,+ subtitle: subtitle,+ family: titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif',+ text: root.getPropertyValue('--text').trim() || '#111827',+ muted: root.getPropertyValue('--text-muted').trim() || '#64748b',+ accent: root.getPropertyValue('--frontend-stroke').trim() || '#0891b2',+ bg: root.getPropertyValue('--bg').trim() || currentBg(),+ cardFill: cardFill,+ cardBorder: root.getPropertyValue('--panel-border').trim() || 'transparent',+ dot: card && /radial-gradient/.test(card.backgroundImage) ? (root.getPropertyValue('--canvas-dot').trim() || '') : '',+ light: (document.documentElement.getAttribute('data-theme') || 'dark') === 'light',+ header: header,+ cardWidth: cardWidth,+ cardHeight: cardHeight,+ width: cardWidth + FIGURE_MARGIN * 2,+ height: cardHeight + FIGURE_MARGIN * 2 + header+ };+ }++ function paintFigure(ctx, layout) {+ var m = FIGURE_MARGIN;+ ctx.fillStyle = layout.bg;+ ctx.fillRect(0, 0, layout.width, layout.height);+ if (layout.title) {+ var titleMid = m + 16;+ ctx.fillStyle = layout.accent;+ ctx.globalAlpha = 0.16;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 9, 0, Math.PI * 2); ctx.fill();+ ctx.globalAlpha = 1;+ ctx.beginPath(); ctx.arc(m + 5, titleMid, 5, 0, Math.PI * 2); ctx.fill();+ ctx.textBaseline = 'middle';+ ctx.fillStyle = layout.text;+ ctx.fillText(fitCanvasText(ctx, layout.title, layout.width - m * 2 - 22, FIGURE_TITLE_SIZE, 14, '650', layout.family), m + 22, titleMid + 1);+ if (layout.subtitle) {+ ctx.fillStyle = layout.muted;+ ctx.fillText(fitCanvasText(ctx, layout.subtitle, layout.width - m * 2, FIGURE_SUBTITLE_SIZE, 11, '400', layout.family), m, titleMid + 30);+ }+ ctx.textBaseline = 'alphabetic';+ }+ var x = m, y = m + layout.header, w = layout.cardWidth, h = layout.cardHeight, r = 16;+ function cardPath() {+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(x, y, w, h, r);+ else ctx.rect(x, y, w, h);+ }+ ctx.save();+ if (layout.light) {+ ctx.shadowColor = 'rgba(15, 23, 42, 0.08)';+ ctx.shadowBlur = 28;+ ctx.shadowOffsetY = 10;+ }+ cardPath();+ ctx.fillStyle = layout.bg;+ ctx.fill();+ ctx.restore();+ cardPath();+ ctx.fillStyle = layout.cardFill;+ ctx.fill();+ if (layout.dot) {+ ctx.save();+ cardPath();+ ctx.clip();+ ctx.fillStyle = layout.dot;+ for (var dy = y + 1; dy < y + h; dy += 20) {+ for (var dx = x + 1; dx < x + w; dx += 20) {+ ctx.beginPath(); ctx.arc(dx, dy, 1, 0, Math.PI * 2); ctx.fill();+ }+ }+ ctx.restore();+ }+ cardPath();+ ctx.strokeStyle = layout.cardBorder;+ ctx.lineWidth = 1;+ ctx.stroke();+ return { x: x + FIGURE_CARD_PADDING, y: y + FIGURE_CARD_PADDING };+ }++ function rasterize(format) {+ // Serialize at a safe scale (RASTER_SCALE=4 by default, reduced if the+ // resulting canvas would exceed MAX_CANVAS_PIXELS). The SVG itself is+ // rasterized at target resolution natively; drawImage draws at natural+ // size — no upsampling blur.+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var layout = figureLayout(vb);+ var scale = pickSafeScale(layout.width, layout.height);+ var data = serializeSvg(scale, { figure: true });+ var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });+ var svgUrl = URL.createObjectURL(svgBlob);++ return new Promise(function (resolve, reject) {+ var img = new Image();+ img.onload = function () {+ try {+ var canvas = document.createElement('canvas');+ canvas.width = Math.round(layout.width * scale);+ canvas.height = Math.round(layout.height * scale);+ var ctx = canvas2dOrThrow(canvas, format);+ // Paint in CSS pixels; the SVG image is already rendered at scale,+ // so drawing it at CSS size under this transform stays 1:1.+ ctx.setTransform(scale, 0, 0, scale, 0, 0);+ var origin = paintFigure(ctx, layout);+ ctx.drawImage(img, origin.x, origin.y, vb.width, vb.height);+ ctx.setTransform(1, 0, 0, 1, 0, 0);+ URL.revokeObjectURL(svgUrl);+ var mime = format === 'jpeg' ? 'image/jpeg' :+ format === 'webp' ? 'image/webp' : 'image/png';+ var quality = format === 'png' ? undefined : 0.95;+ canvas.toBlob(function (blob) {+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));+ else resolve(blob);+ }, mime, quality);+ } catch (error) {+ URL.revokeObjectURL(svgUrl);+ reject(error);+ }+ };+ img.onerror = function (e) {+ URL.revokeObjectURL(svgUrl);+ reject(e);+ };+ img.src = svgUrl;+ });+ }++ function fitCanvasText(ctx, text, maxWidth, startSize, minSize, weight, fontFamily) {+ var value = String(text || '').trim();+ var size = startSize;+ var family = fontFamily || "'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";+ while (size > minSize) {+ ctx.font = (weight || '600') + ' ' + size + 'px ' + family;+ if (ctx.measureText(value).width <= maxWidth) return value;+ size -= 1;+ }+ ctx.font = (weight || '600') + ' ' + minSize + 'px ' + family;+ if (ctx.measureText(value).width <= maxWidth) return value;+ var suffix = '\u2026';+ while (value.length > 1 && ctx.measureText(value + suffix).width > maxWidth) {+ value = value.slice(0, -1);+ }+ return value + suffix;+ }++ function canvas2dOrThrow(canvas, label) {+ if (!canvas || typeof canvas.getContext !== 'function') {+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });+ }+ var ctx = canvas.getContext('2d');+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });+ return ctx;+ }++ function renderShareCard(options) {+ var routeSnapshot = options.routeSnapshot || null;+ var reachSnapshot = options.reachSnapshot || null;+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));+ var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot, figure: true });+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));+ var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });+ var svgUrl = URL.createObjectURL(svgBlob);++ return new Promise(function (resolve, reject) {+ var img = new Image();+ img.onload = function () {+ try {+ var canvas = document.createElement('canvas');+ canvas.width = SHARE_CARD_WIDTH;+ canvas.height = SHARE_CARD_HEIGHT;+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));+ var computed = getComputedStyle(document.documentElement);+ var bg = computed.getPropertyValue('--bg').trim() || currentBg();+ var text = computed.getPropertyValue('--text').trim() || '#ffffff';+ var muted = computed.getPropertyValue('--text-muted').trim() || '#94a3b8';+ var border = computed.getPropertyValue('--panel-border').trim() || '#334155';+ var accentProperty = reachSnapshot+ ? (reachSnapshot.direction === 'upstream' ? '--database-stroke' : '--backend-stroke')+ : '--frontend-stroke';+ var accent = computed.getPropertyValue(accentProperty).trim() || '#22d3ee';+ var titleNode = document.querySelector('.header h1');+ var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';+ var subtitle = routeSnapshot+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ })+ : viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ });+ var cardLabel = routeSnapshot+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ })+ : viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() });++ var family = titleNode ? getComputedStyle(titleNode).fontFamily : 'sans-serif';+ var panelFill = bg;++ ctx.fillStyle = bg;+ ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);++ // Header: a short accent rule and badge over the title and summary.+ ctx.fillStyle = accent;+ ctx.fillRect(SHARE_CARD_PADDING, 34, 28, 3);+ ctx.textBaseline = 'alphabetic';+ ctx.font = '600 12px ' + family;+ ctx.textAlign = 'right';+ ctx.fillStyle = muted;+ ctx.fillText(cardLabel, SHARE_CARD_WIDTH - SHARE_CARD_PADDING, 40);+ ctx.textAlign = 'left';++ ctx.fillStyle = text;+ var fittedTitle = fitCanvasText(ctx, title, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2 - 260, 30, 18, '650', family);+ ctx.fillText(fittedTitle, SHARE_CARD_PADDING, 74);++ ctx.fillStyle = muted;+ var fittedSubtitle = fitCanvasText(ctx, subtitle, SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2, 15, 12, '400', family);+ ctx.fillText(fittedSubtitle, SHARE_CARD_PADDING, 99);++ // The diagram sits on one soft rounded panel with an even inset.+ var panelX = SHARE_CARD_PADDING;+ var panelY = SHARE_CARD_HEADER;+ var panelWidth = SHARE_CARD_WIDTH - SHARE_CARD_PADDING * 2;+ var panelHeight = SHARE_CARD_HEIGHT - SHARE_CARD_HEADER - SHARE_CARD_PADDING;+ var inset = 18;+ ctx.beginPath();+ if (typeof ctx.roundRect === 'function') ctx.roundRect(panelX, panelY, panelWidth, panelHeight, 14);+ else ctx.rect(panelX, panelY, panelWidth, panelHeight);+ ctx.fillStyle = panelFill;+ ctx.fill();+ ctx.strokeStyle = border;+ ctx.lineWidth = 1;+ ctx.stroke();++ var availableWidth = panelWidth - inset * 2;+ var availableHeight = panelHeight - inset * 2;+ var fit = Math.min(availableWidth / data.width, availableHeight / data.height);+ var drawWidth = data.width * fit;+ var drawHeight = data.height * fit;+ var drawX = panelX + inset + (availableWidth - drawWidth) / 2;+ var drawY = panelY + inset + (availableHeight - drawHeight) / 2;+ ctx.drawImage(img, drawX, drawY, drawWidth, drawHeight);+ URL.revokeObjectURL(svgUrl);++ canvas.toBlob(function (blob) {+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));+ else resolve(blob);+ }, 'image/png');+ } catch (error) {+ URL.revokeObjectURL(svgUrl);+ reject(error);+ }+ };+ img.onerror = function (e) {+ URL.revokeObjectURL(svgUrl);+ reject(e);+ };+ img.src = svgUrl;+ });+ }++ function rasterizeShareCard(options) {+ options = options || {};+ if (options.variant !== 'route' && options.variant !== 'reach') {+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));+ }+ if (options.variant === 'route') {+ var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));+ return renderShareCard({ routeSnapshot: routeSnapshot });+ }+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));+ return renderShareCard({ reachSnapshot: snapshot });+ }++ function motionMimeType() {+ if (typeof MediaRecorder === 'undefined') return '';+ var candidates = [+ 'video/webm;codecs=vp9',+ 'video/webm;codecs=vp8',+ 'video/webm'+ ];+ for (var i = 0; i < candidates.length; i++) {+ if (!MediaRecorder.isTypeSupported || MediaRecorder.isTypeSupported(candidates[i])) return candidates[i];+ }+ return '';+ }++ function canRecordMotion() {+ var svg = document.querySelector('.diagram-container svg');+ return !!(svg && svg.getAttribute('data-animation') === 'trace' &&+ typeof MediaRecorder !== 'undefined' && motionMimeType() &&+ typeof HTMLCanvasElement !== 'undefined' &&+ typeof HTMLCanvasElement.prototype.captureStream === 'function');+ }++ // Record the live CSS animation without Puppeteer, ffmpeg, or a network+ // dependency. SVG files loaded through Image are commonly rasterized as+ // one cached bitmap, so repeatedly drawing that Image does not reliably+ // advance its CSS animation. Keep one crisp static SVG background, then+ // render an explicit time-varying signal scene over the real authored+ // relationship geometry on every captured canvas frame.+ function recordWebm(options) {+ options = options || {};+ if (!canRecordMotion()) {+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));+ }+ var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);+ var fps = Math.max(1, Number(options.fps) || MOTION_FPS);+ var svg = document.querySelector('.diagram-container svg');+ var vb = svg.viewBox.baseVal;+ var scale = Math.min(1, 1280 / vb.width);+ var data = serializeSvg(scale);+ var sourceUrl = URL.createObjectURL(new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' }));++ function createMotionScene(root) {+ var rootMatrix = root.getCTM ? root.getCTM() : null;++ function pointInRoot(element, point) {+ if (!rootMatrix || !element.getCTM || !point.matrixTransform) return { x: point.x, y: point.y };+ try {+ var elementMatrix = element.getCTM();+ if (!elementMatrix) return { x: point.x, y: point.y };+ var mapped = point.matrixTransform(rootMatrix.inverse().multiply(elementMatrix));+ return { x: mapped.x, y: mapped.y };+ } catch (_) {+ return { x: point.x, y: point.y };+ }+ }++ function samplesFor(element) {+ if (typeof element.getTotalLength !== 'function' || typeof element.getPointAtLength !== 'function') return [];+ var length;+ try { length = element.getTotalLength(); } catch (_) { return []; }+ if (!Number.isFinite(length) || length <= 0) return [];+ var count = Math.max(12, Math.min(72, Math.ceil(length / 12)));+ var points = [];+ for (var i = 0; i <= count; i++) {+ points.push(pointInRoot(element, element.getPointAtLength(length * i / count)));+ }+ return points;+ }++ function authoredStep(element, fallback) {+ var raw = element.style.getPropertyValue('--step') || getComputedStyle(element).getPropertyValue('--step');+ var value = Number(raw);+ return Number.isFinite(value) ? value : fallback;+ }++ var edges = Array.prototype.slice.call(root.querySelectorAll('[data-animate="edge"]')).map(function (element, index) {+ var computed = getComputedStyle(element);+ return {+ points: samplesFor(element),+ color: computed.stroke && computed.stroke !== 'none' ? computed.stroke : '#22d3ee',+ width: Math.max(1.5, parseFloat(computed.strokeWidth) || 1.5),+ delay: Math.min(12, authoredStep(element, index)) * 0.16+ };+ }).filter(function (edge) { return edge.points.length > 1; });++ var nodes = Array.prototype.slice.call(root.querySelectorAll('[data-node-id][data-animate="node"]')).map(function (element, index) {+ var box;+ try { box = element.getBBox(); } catch (_) { return null; }+ var painted = element.querySelector('[class*="c-"]') || element;+ var computed = getComputedStyle(painted);+ return {+ x: box.x,+ y: box.y,+ width: box.width,+ height: box.height,+ color: computed.stroke && computed.stroke !== 'none' ? computed.stroke : '#22d3ee',+ delay: Math.min(12, authoredStep(element, index)) * 0.16+ };+ }).filter(Boolean);++ return { edges: edges, nodes: nodes, x: vb.x, y: vb.y, width: vb.width, height: vb.height };+ }++ function pointAlong(points, progress) {+ var scaled = Math.max(0, Math.min(1, progress)) * (points.length - 1);+ var index = Math.min(points.length - 2, Math.floor(scaled));+ var mix = scaled - index;+ return {+ x: points[index].x + (points[index + 1].x - points[index].x) * mix,+ y: points[index].y + (points[index + 1].y - points[index].y) * mix+ };+ }++ function roundedRectPath(ctx, x, y, width, height, radius) {+ var r = Math.max(0, Math.min(radius, width / 2, height / 2));+ ctx.beginPath();+ ctx.moveTo(x + r, y);+ ctx.lineTo(x + width - r, y);+ ctx.quadraticCurveTo(x + width, y, x + width, y + r);+ ctx.lineTo(x + width, y + height - r);+ ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);+ ctx.lineTo(x + r, y + height);+ ctx.quadraticCurveTo(x, y + height, x, y + height - r);+ ctx.lineTo(x, y + r);+ ctx.quadraticCurveTo(x, y, x + r, y);+ ctx.closePath();+ }++ function drawMotionFrame(ctx, backgroundImage, motionScene, elapsed) {+ ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);+ ctx.drawImage(backgroundImage, 0, 0, ctx.canvas.width, ctx.canvas.height);+ ctx.save();+ ctx.scale(ctx.canvas.width / motionScene.width, ctx.canvas.height / motionScene.height);+ ctx.translate(-motionScene.x, -motionScene.y);++ motionScene.edges.forEach(function (edge) {+ var duration = 1.75;+ var progress = (elapsed - edge.delay) / duration;+ if (progress < 0 || progress > 1) return;+ var head = Math.max(0, Math.min(1, progress));+ var tail = Math.max(0, head - 0.24);+ var opacity = Math.sin(Math.PI * Math.min(1, progress));++ ctx.save();+ ctx.strokeStyle = edge.color;+ ctx.fillStyle = edge.color;+ ctx.lineCap = 'round';+ ctx.lineJoin = 'round';+ ctx.lineWidth = Math.max(3.2, edge.width * 2.2);+ ctx.globalAlpha = 0.42 + opacity * 0.5;+ ctx.shadowColor = edge.color;+ ctx.shadowBlur = 10;+ ctx.beginPath();+ for (var i = 0; i <= 14; i++) {+ var trailPoint = pointAlong(edge.points, tail + (head - tail) * i / 14);+ if (i === 0) ctx.moveTo(trailPoint.x, trailPoint.y);+ else ctx.lineTo(trailPoint.x, trailPoint.y);+ }+ ctx.stroke();++ var point = pointAlong(edge.points, head);+ ctx.globalAlpha = 0.95;+ ctx.beginPath();+ ctx.arc(point.x, point.y, 4.8, 0, Math.PI * 2);+ ctx.fill();+ ctx.restore();+ });++ motionScene.nodes.forEach(function (node) {+ var progress = (elapsed - node.delay) / 2.6;+ if (progress < 0 || progress > 1) return;+ var pulse = Math.sin(Math.PI * progress);+ if (pulse <= 0.02) return;+ ctx.save();+ ctx.strokeStyle = node.color;+ ctx.lineWidth = 1.4 + pulse * 1.8;+ ctx.globalAlpha = pulse * 0.5;+ ctx.shadowColor = node.color;+ ctx.shadowBlur = 12 * pulse;+ var inset = 2 + pulse * 3;+ roundedRectPath(ctx, node.x - inset, node.y - inset, node.width + inset * 2, node.height + inset * 2, 8);+ ctx.stroke();+ ctx.restore();+ });++ ctx.restore();+ }++ var motionScene = createMotionScene(svg);++ return new Promise(function (resolve, reject) {+ var backgroundImage = new Image();+ backgroundImage.onload = function () {+ var canvas = document.createElement('canvas');+ canvas.width = Math.max(2, Math.round(data.width / 2) * 2);+ canvas.height = Math.max(2, Math.round(data.height / 2) * 2);+ var ctx = canvas.getContext('2d');+ var stream = canvas.captureStream(fps);+ var mime = motionMimeType();+ var recorder;+ try {+ recorder = new MediaRecorder(stream, { mimeType: mime, videoBitsPerSecond: 6000000 });+ } catch (err) {+ URL.revokeObjectURL(sourceUrl);+ stream.getTracks().forEach(function (track) { track.stop(); });+ reject(err);+ return;+ }+ var chunks = [];+ var raf = 0;+ var stopped = false;+ var startedAt = performance.now();+ function cleanup() {+ if (stopped) return;+ stopped = true;+ cancelAnimationFrame(raf);+ URL.revokeObjectURL(sourceUrl);+ stream.getTracks().forEach(function (track) { track.stop(); });+ }+ function draw(now) {+ var elapsed = Math.max(0, ((Number(now) || performance.now()) - startedAt) / 1000);+ drawMotionFrame(ctx, backgroundImage, motionScene, elapsed);+ raf = requestAnimationFrame(draw);+ }+ recorder.ondataavailable = function (event) {+ if (event.data && event.data.size) chunks.push(event.data);+ };+ recorder.onerror = function (event) {+ cleanup();+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));+ };+ recorder.onstop = function () {+ cleanup();+ var blob = new Blob(chunks, { type: recorder.mimeType || mime });+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));+ else resolve(blob);+ };+ drawMotionFrame(ctx, backgroundImage, motionScene, 0);+ recorder.start(250);+ startedAt = performance.now();+ raf = requestAnimationFrame(draw);+ setTimeout(function () {+ if (recorder.state === 'inactive') return;+ // Chromium normally emits the final chunk during stop(), but+ // some embedded browser shells need an explicit encoder flush+ // first. Keep the short grace window bounded and harmless for+ // browsers that already delivered timeslice chunks.+ try { recorder.requestData(); } catch (_) {}+ setTimeout(function () {+ if (recorder.state !== 'inactive') recorder.stop();+ }, 120);+ }, duration);+ };+ backgroundImage.onerror = function () {+ URL.revokeObjectURL(sourceUrl);+ reject(exportError('viewer.export.error.webmBackground'));+ };+ backgroundImage.src = sourceUrl;+ });+ }++ var menu = document.getElementById('export-menu');+ var btn = document.getElementById('btn-export');+ var routeShareItem = menu.querySelector('button[data-action="route-share-card"]');+ var reachShareItem = menu.querySelector('button[data-action="reach-share-card"]');+ var items = function () {+ return Array.prototype.slice.call(menu.querySelectorAll('button[role="menuitem"]'));+ };++ function syncRouteShareItem() {+ var snapshot = Archify.routeProbe && typeof Archify.routeProbe.exportSnapshot === 'function'+ ? Archify.routeProbe.exportSnapshot()+ : null;+ routeShareItem.hidden = !snapshot;+ routeShareItem.disabled = !snapshot;+ return snapshot;+ }++ function syncReachShareItem() {+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ reachShareItem.hidden = !snapshot;+ reachShareItem.disabled = !snapshot;+ return snapshot;+ }++ // ---- Clipboard support ----------------------------------------------+ function canCopyImage() {+ return typeof ClipboardItem !== 'undefined' &&+ navigator.clipboard &&+ typeof navigator.clipboard.write === 'function';+ }++ // ---- Raster format detection ----------------------------------------+ // canvas.toBlob('image/webp') silently returns a PNG on browsers without+ // WebP encoding (older Safari), so detect explicitly.+ function supports(format) {+ if (format === 'svg' || format === 'svg-light' || format === 'svg-dark' || format === 'png') return true;+ if (format === 'webm') return canRecordMotion();+ var mime = format === 'jpeg' ? 'image/jpeg' : 'image/webp';+ try {+ var c = document.createElement('canvas');+ c.width = c.height = 2;+ return c.toDataURL(mime).indexOf('data:' + mime) === 0;+ } catch (_) { return false; }+ }++ // Gray out unsupported items.+ items().forEach(function (it) {+ if (it.dataset.format && !supports(it.dataset.format)) {+ it.disabled = true;+ it.title = viewerText('viewer.export.unsupported');+ }+ if (it.dataset.action === 'copy' && !canCopyImage()) {+ it.disabled = true;+ it.title = viewerText('viewer.export.clipboardUnsupported');+ }+ });++ // ---- Toast ----------------------------------------------------------+ // A live region only announces CHANGES to an existing node, so the toast+ // element is created once up front and updated in place.+ var toastEl = document.createElement('div');+ toastEl.className = 'archify-toast';+ toastEl.setAttribute('role', 'status');+ document.body.appendChild(toastEl);+ var toastTimer = null;++ function toast(msg) {+ toastEl.textContent = '';+ requestAnimationFrame(function () {+ toastEl.textContent = msg;+ toastEl.classList.add('show');+ });+ clearTimeout(toastTimer);+ toastTimer = setTimeout(function () { toastEl.classList.remove('show'); }, 1500);+ }++ function open(focusLast) {+ if (Archify.preset && Archify.preset.isOpen()) Archify.preset.close(false);+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ syncRouteShareItem();+ syncReachShareItem();+ menu.classList.add('open');+ btn.setAttribute('aria-expanded', 'true');+ var available = items().filter(function (i) { return !i.hidden && !i.disabled; });+ var target = focusLast ? available[available.length - 1] : available[0];+ if (target) target.focus();+ }+ function close(focusTrigger) {+ menu.classList.remove('open');+ btn.setAttribute('aria-expanded', 'false');+ if (focusTrigger) btn.focus();+ }+ function isOpen() { return menu.classList.contains('open'); }++ btn.addEventListener('click', function (e) {+ e.stopPropagation();+ if (isOpen()) close(false);+ else open();+ });+ // APG menu-button pattern: ArrowDown/ArrowUp on the trigger opens the menu.+ btn.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {+ e.preventDefault();+ if (!isOpen()) open(e.key === 'ArrowUp');+ }+ });+ document.addEventListener('click', function (e) {+ if (!menu.contains(e.target) && e.target !== btn) close(false);+ });++ // Keyboard navigation inside the menu.+ // Menu items: Up/Down, Home/End.+ // Esc closes + returns focus to trigger; Tab closes.+ menu.addEventListener('keydown', function (e) {+ if (e.key === 'Escape') { e.preventDefault(); close(true); return; }+ if (e.key === 'Tab') { close(false); return; }++ var available = items().filter(function (i) { return !i.hidden && !i.disabled; });+ var current = available.indexOf(document.activeElement);+ switch (e.key) {+ case 'ArrowDown':+ e.preventDefault();+ if (available.length) available[(current + 1 + available.length) % available.length].focus();+ break;+ case 'ArrowUp':+ e.preventDefault();+ if (available.length) available[(current - 1 + available.length) % available.length].focus();+ break;+ case 'Home':+ e.preventDefault();+ if (available[0]) available[0].focus();+ break;+ case 'End':+ e.preventDefault();+ if (available.length) available[available.length - 1].focus();+ break;+ }+ });++ function runExport(format) {+ if (['svg', 'svg-light', 'svg-dark', 'png', 'jpeg', 'webp', 'webm'].indexOf(format) === -1) {+ return Promise.reject(exportError('viewer.export.unsupported'));+ }+ var base = diagramFilename();+ var svgTheme = format === 'svg' ? 'auto' :+ format === 'svg-light' ? 'light' :+ format === 'svg-dark' ? 'dark' : null;+ close(true);+ clearExportReceipt();+ if (format === 'webm') toast(viewerText('viewer.export.recording'));+ return (svgTheme+ ? Promise.resolve(serializeSvg(1, { theme: svgTheme })).then(function (d) {+ var blob = new Blob([d.svgString], { type: 'image/svg+xml;charset=utf-8' });+ recordExportReceipt('svg', blob, d.canonicalStateClean);+ download(blob, base + (svgTheme === 'auto' ? '' : '-' + svgTheme) + '.svg');+ })+ : format === 'webm'+ ? recordWebm().then(function (blob) {+ document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));+ recordExportReceipt('webm', blob, true);+ download(blob, base + '.webm');+ toast(viewerText('viewer.export.downloadedWebm'));+ })+ : rasterize(format).then(function (blob) {+ recordExportReceipt(format, blob, true);+ download(blob, base + '.' + format);+ })+ ).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', format);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {+ var motionItem = menu.querySelector('button[data-format="webm"]');+ if (motionItem) {+ motionItem.disabled = true;+ motionItem.title = viewerText('viewer.export.motionUnavailable');+ motionItem.style.opacity = '0.5';+ }+ toast(viewerText('viewer.export.webmUnavailable'));+ return;+ }+ alert(viewerText('viewer.export.failed', { message: message }));+ });+ }++ function runRouteShareCard() {+ close(false);+ clearExportReceipt();+ var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();+ var blobPromise = snapshot+ ? renderShareCard({ routeSnapshot: snapshot })+ : Promise.reject(exportError('viewer.export.routeRequired'));+ return blobPromise.then(function (blob) {+ recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);+ download(blob, diagramFilename() + '-route-share-card.png');+ toast(viewerText('viewer.export.downloadedRoute'));+ return blob;+ }).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', 'share-card');+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));+ });+ }++ function runReachShareCard() {+ close(false);+ clearExportReceipt();+ var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'+ ? Archify.focus.reachabilitySnapshot()+ : null;+ var blobPromise = snapshot+ ? renderShareCard({ reachSnapshot: snapshot })+ : Promise.reject(exportError('viewer.export.reachRequired'));+ return blobPromise.then(function (blob) {+ recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);+ download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');+ toast(viewerText('viewer.export.downloadedReach'));+ return blob;+ }).catch(function (err) {+ console.error(err);+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);+ document.documentElement.setAttribute('data-last-export-error-format', 'share-card');+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));+ });+ }++ // A compact, machine-readable receipt for local QA and generated proof+ // galleries. It exposes no diagram contents, only the completed format,+ // byte count, and whether temporary viewer state was excluded.+ function recordExportReceipt(format, blob, canonical, dimensions, variant, routeStateClean, reachStateClean) {+ document.documentElement.setAttribute('data-last-export-format', format);+ document.documentElement.setAttribute('data-last-export-bytes', String(blob.size));+ document.documentElement.setAttribute('data-last-export-canonical', canonical ? 'true' : 'false');+ if (variant) {+ document.documentElement.setAttribute('data-last-export-variant', variant);+ } else {+ document.documentElement.removeAttribute('data-last-export-variant');+ }+ if (routeStateClean === true) {+ document.documentElement.setAttribute('data-last-export-route-state-clean', 'true');+ } else {+ document.documentElement.removeAttribute('data-last-export-route-state-clean');+ }+ if (reachStateClean === true) {+ document.documentElement.setAttribute('data-last-export-reach-state-clean', 'true');+ } else {+ document.documentElement.removeAttribute('data-last-export-reach-state-clean');+ }+ if (dimensions) {+ document.documentElement.setAttribute('data-last-export-width', String(dimensions.width));+ document.documentElement.setAttribute('data-last-export-height', String(dimensions.height));+ } else {+ document.documentElement.removeAttribute('data-last-export-width');+ document.documentElement.removeAttribute('data-last-export-height');+ }+ }++ function clearExportReceipt() {+ document.documentElement.removeAttribute('data-last-export-format');+ document.documentElement.removeAttribute('data-last-export-bytes');+ document.documentElement.removeAttribute('data-last-export-canonical');+ document.documentElement.removeAttribute('data-last-export-width');+ document.documentElement.removeAttribute('data-last-export-height');+ document.documentElement.removeAttribute('data-last-export-variant');+ document.documentElement.removeAttribute('data-last-export-route-state-clean');+ document.documentElement.removeAttribute('data-last-export-reach-state-clean');+ document.documentElement.removeAttribute('data-last-export-error-format');+ document.documentElement.removeAttribute('data-last-export-error');+ }++ function writePngToClipboard(blobPromise) {+ // WebKit requires ClipboardItem to be constructed synchronously inside+ // the user gesture. Chromium accepts the same pending Promise<Blob>;+ // engines that reject promise values fall back to an awaited Blob.+ try {+ return navigator.clipboard.write([new ClipboardItem({ 'image/png': blobPromise })]);+ } catch (_) {+ return blobPromise.then(function (blob) {+ return navigator.clipboard.write([new ClipboardItem({ 'image/png': blob })]);+ });+ }+ }++ function runCopy() {+ close(true);+ clearExportReceipt();+ if (!canCopyImage()) {+ alert(viewerText('viewer.export.clipboardUnsupported.short'));+ return;+ }+ var blobPromise = rasterize('png');+ return writePngToClipboard(blobPromise).then(function () {+ toast(viewerText('viewer.export.copiedPng'));+ }).catch(function (err) {+ console.error(err);+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));+ });+ }++ menu.addEventListener('click', function (e) {+ var routeShareCardBtn = e.target.closest('button[data-action="route-share-card"]');+ if (routeShareCardBtn && !routeShareCardBtn.disabled && !routeShareCardBtn.hidden) { runRouteShareCard(); return; }++ var reachShareCardBtn = e.target.closest('button[data-action="reach-share-card"]');+ if (reachShareCardBtn && !reachShareCardBtn.disabled && !reachShareCardBtn.hidden) { runReachShareCard(); return; }++ var copyBtn = e.target.closest('button[data-action="copy"]');+ if (copyBtn && !copyBtn.disabled) { runCopy(); return; }++ var formatBtn = e.target.closest('button[data-format]');+ if (formatBtn && !formatBtn.disabled) { runExport(formatBtn.dataset.format); }+ });++ Archify.motion = { canRecord: canRecordMotion, recordWebm: recordWebm };+ Archify.exportMenu = {+ open: open,+ close: close,+ isOpen: isOpen,+ run: runExport,+ shareCard: rasterizeShareCard,+ downloadRouteShareCard: runRouteShareCard,+ downloadReachShareCard: runReachShareCard,+ syncRouteShare: syncRouteShareItem,+ syncReachShare: syncReachShareItem+ };++ // Auto-open on page load for demo/screenshot purposes: ?openExport=1+ // Wait for fonts (so the menu doesn't flash before typography lands)+ // and paint before opening. Fallback timeout for browsers without the+ // Font Loading API.+ try {+ if (new URLSearchParams(window.location.search).get('openExport') === '1') {+ var openWhenReady = function () {+ requestAnimationFrame(function () { requestAnimationFrame(open); });+ };+ if (document.fonts && document.fonts.ready) {+ document.fonts.ready.then(openWhenReady);+ } else {+ setTimeout(openWhenReady, 200);+ }+ }+ } catch (_) {}+ })();+++ /* ============================================================+ Motion Governor — one reader switch and one motion budget. Ambient+ trace yields to the strongest semantic owner; Still also parks bounded+ viewer signals without discarding their static meaning.+ ============================================================ */+ Archify.motionGovernor = (function () {+ var STORAGE_KEY = 'archify-motion';+ var html = document.documentElement;+ var svg = document.querySelector('.diagram-container svg');+ var btn = document.getElementById('btn-motion');+ var label = document.getElementById('motion-label');+ var motionQuery = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;+ var capable = !!(svg && svg.getAttribute('data-animation') === 'trace');+ var readerPaused = false;+ var suspensions = Object.create(null);+ var explicitOwner = '';+ var owner = '';+ var ownerToken = 0;+ var ownerCleanup = null;+ var lastEffectivePaused = null;+ var ambientStarted = false;+ var ambientPending = new Set();++ function detachAmbientBoundary() {+ if (!svg) return;+ svg.removeEventListener('animationend', onAmbientBoundary, true);+ svg.removeEventListener('animationcancel', onAmbientBoundary, true);+ }+ function settleAmbient(reason) {+ if (!capable) return false;+ ambientStarted = true;+ ambientPending.clear();+ detachAmbientBoundary();+ html.setAttribute('data-ambient-motion', 'settled');+ html.setAttribute('data-ambient-settle-reason', reason || 'complete');+ return true;+ }+ function onAmbientBoundary(event) {+ if (!ambientPending.has(event.target)) return;+ ambientPending.delete(event.target);+ if (!ambientPending.size) settleAmbient('complete');+ }+ function startAmbient() {+ if (ambientStarted || !capable) return false;+ ambientStarted = true;+ ambientPending = new Set(Array.prototype.slice.call(svg.querySelectorAll('[data-animate="edge"], [data-animate="node"]')));+ if (!ambientPending.size) return settleAmbient('empty');+ svg.addEventListener('animationend', onAmbientBoundary, true);+ svg.addEventListener('animationcancel', onAmbientBoundary, true);+ html.setAttribute('data-ambient-motion', 'running');+ html.removeAttribute('data-ambient-settle-reason');+ return true;+ }++ function readStored() {+ try { return localStorage.getItem(STORAGE_KEY); } catch (_) { return null; }+ }+ function writeStored() {+ try {+ if (readerPaused) localStorage.setItem(STORAGE_KEY, 'still');+ else localStorage.removeItem(STORAGE_KEY);+ } catch (_) {}+ }+ function reducedMotion() {+ return !!(motionQuery && motionQuery.matches);+ }+ function hasSuspension() {+ return Object.keys(suspensions).length > 0;+ }+ function effectivePaused() {+ return readerPaused || reducedMotion() || hasSuspension();+ }+ function ownerLabel(value) {+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');+ }+ function render() {+ if (!capable) return;+ var systemPaused = reducedMotion();+ var paused = effectivePaused();+ html.setAttribute('data-motion', paused ? 'still' : 'live');+ if (paused || owner || html.hasAttribute('data-embed') || html.hasAttribute('data-share-playback') || html.hasAttribute('data-document-hidden')) {+ settleAmbient('suppressed');+ } else if (!ambientStarted) {+ startAmbient();+ }+ btn.setAttribute('aria-pressed', paused ? 'false' : 'true');+ btn.disabled = systemPaused;+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');+ if (paused && lastEffectivePaused !== true && Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: systemPaused ? 'reduced-motion' : (hasSuspension() ? 'hidden' : 'still') });+ }+ lastEffectivePaused = paused;+ if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();+ if (systemPaused) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');+ } else if (hasSuspension()) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');+ } else if (paused) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');+ } else if (owner) {+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });+ } else {+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');+ }+ }+ function setPaused(next, options) {+ options = options || {};+ readerPaused = !!next;+ if (options.persist !== false) writeStored();+ render();+ return readerPaused;+ }+ function publishOwner() {+ owner = explicitOwner || deriveOwner();+ if (owner) html.setAttribute('data-motion-owner', owner);+ else html.removeAttribute('data-motion-owner');+ render();+ return owner;+ }+ function deriveOwner() {+ if (!svg) return '';+ if (svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active')) return 'route';+ if (svg.hasAttribute('data-lens-active')) return 'lens';+ if (svg.hasAttribute('data-relationship-preview-active')) return 'relationship';+ if (svg.hasAttribute('data-intent-trace-active')) return 'intent';+ if (svg.hasAttribute('data-focus-active')) return 'focus';+ if (svg.hasAttribute('data-legend-preview-active')) return 'legend';+ return '';+ }+ function clearClaim(preempted) {+ var cleanup = ownerCleanup;+ ownerCleanup = null;+ explicitOwner = '';+ if (preempted && cleanup) {+ try { cleanup(); } catch (_) {}+ }+ }+ function claim(next, cleanup) {+ if (!capable || !next) return 0;+ clearClaim(true);+ ownerToken += 1;+ explicitOwner = next;+ ownerCleanup = typeof cleanup === 'function' ? cleanup : null;+ publishOwner();+ return ownerToken;+ }+ function release(token) {+ if (!capable || token !== ownerToken || !explicitOwner) return false;+ clearClaim(false);+ ownerToken += 1;+ publishOwner();+ return true;+ }+ function suspend(reason) {+ var key = String(reason || 'runtime');+ var active = true;+ suspensions[key] = (suspensions[key] || 0) + 1;+ render();+ return function () {+ if (!active) return false;+ active = false;+ if (suspensions[key] > 1) suspensions[key] -= 1;+ else delete suspensions[key];+ render();+ return true;+ };+ }+ function syncVisibility() {+ if (document.hidden) {+ suspensions.visibility = true;+ html.setAttribute('data-document-hidden', 'true');+ } else {+ delete suspensions.visibility;+ html.removeAttribute('data-document-hidden');+ }+ render();+ }++ if (!capable) {+ btn.hidden = true;+ html.removeAttribute('data-motion-capable');+ html.removeAttribute('data-motion');+ html.removeAttribute('data-motion-owner');+ html.removeAttribute('data-ambient-motion');+ html.removeAttribute('data-ambient-settle-reason');+ return {+ capable: false,+ pause: function () { return false; },+ resume: function () { return false; },+ toggle: function () { return false; },+ setMode: function () { return 'still'; },+ mode: function () { return 'still'; },+ claim: function () { return 0; },+ release: function () { return false; },+ suspend: function () { return function () { return false; }; },+ isPaused: function () { return true; },+ owner: function () { return ''; }+ };+ }++ html.setAttribute('data-motion-capable', 'true');+ btn.hidden = false;+ readerPaused = readStored() === 'still';+ btn.addEventListener('click', function () { setPaused(!readerPaused); });+ if (motionQuery) {+ if (typeof motionQuery.addEventListener === 'function') motionQuery.addEventListener('change', render);+ else if (typeof motionQuery.addListener === 'function') motionQuery.addListener(render);+ }+ document.addEventListener('visibilitychange', syncVisibility);+ if (document.documentElement.getAttribute('data-embed') !== 'true' && typeof MutationObserver !== 'undefined' && typeof Node !== 'undefined' && svg instanceof Node) {+ var ownerObserver = new MutationObserver(function () { publishOwner(); });+ ownerObserver.observe(svg, {+ attributes: true,+ attributeFilter: [+ 'data-route-picking', 'data-route-active',+ 'data-lens-active', 'data-relationship-preview-active', 'data-intent-trace-active',+ 'data-focus-active', 'data-legend-preview-active'+ ]+ });+ }+ syncVisibility();+ publishOwner();+ render();++ return {+ capable: true,+ pause: function () { return setPaused(true); },+ resume: function () { return setPaused(false); },+ toggle: function () { return setPaused(!readerPaused); },+ setMode: function (next, options) {+ setPaused(next === 'still', options);+ return effectivePaused() ? 'still' : 'live';+ },+ mode: function () { return effectivePaused() ? 'still' : 'live'; },+ claim: claim,+ release: release,+ suspend: suspend,+ isPaused: effectivePaused,+ owner: function () { return owner; }+ };+ })();++ /* Verified repository evidence is emitted only after the renderer checks+ the authored GitHub revision, source blobs, and optional line ranges+ against the explicit --repo-root. It remains outside the SVG so every+ canonical visual export stays free of repository paths. */+ Archify.sourceEvidence = (function () {+ var element = document.getElementById('archify-source-evidence-data');+ var payload = null;+ var svgNamespace = 'http://www.w3.org/2000/svg';+ if (element) {+ try {+ var parsed = JSON.parse(element.textContent || 'null');+ if (parsed && parsed.verified === true && parsed.repository && parsed.nodes) payload = parsed;+ } catch (_) {}+ }+ function installBeacons() {+ if (!payload) return 0;+ var svg = document.querySelector('.diagram-container svg');+ if (!svg) return 0;+ var installed = 0;+ Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ var id = node.getAttribute('data-node-id');+ var sources = payload.nodes[id];+ if (!Array.isArray(sources) || !sources.length || node.querySelector('[data-source-evidence-beacon]')) return;+ var shape = node.querySelector('[data-animate="node"]') || node.querySelector('[class*="c-"]');+ var box;+ try { box = (shape || node).getBBox(); } catch (_) { return; }+ if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;++ var count = sources.length;+ var label = viewerCount('viewer.passport.beacon', count);+ var beacon = document.createElementNS(svgNamespace, 'g');+ beacon.classList.add('source-evidence-beacon');+ beacon.setAttribute('data-source-evidence-beacon', '');+ beacon.setAttribute('aria-hidden', 'true');+ var brandOffset = node.hasAttribute('data-node-brand') ? 22 : 0;+ var title = document.createElementNS(svgNamespace, 'title');+ title.textContent = label;+ var plate = document.createElementNS(svgNamespace, 'rect');+ plate.setAttribute('height', '13');+ plate.setAttribute('rx', '6.5');+ var text = document.createElementNS(svgNamespace, 'text');+ text.setAttribute('y', '9.4');+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;+ beacon.appendChild(title);+ beacon.appendChild(plate);+ beacon.appendChild(text);+ node.appendChild(beacon);++ // Measure the real glyph advance, then clamp the plate between 24+ // and 36px; a still-wider label is squeezed with textLength so the+ // badge never overlaps the neighbouring brand mark or sigil.+ var textWidth = 16;+ try {+ var measured = text.getComputedTextLength();+ if (Number.isFinite(measured) && measured > 0) textWidth = measured;+ } catch (_) {}+ var plateWidth = Math.min(36, Math.max(24, textWidth + 8));+ if (textWidth > plateWidth - 8) {+ text.setAttribute('textLength', String(plateWidth - 8));+ text.setAttribute('lengthAdjust', 'spacingAndGlyphs');+ }+ plate.setAttribute('width', String(plateWidth));+ text.setAttribute('x', String(plateWidth / 2));+ beacon.setAttribute('transform', 'translate(' + (box.x + box.width - 6 - brandOffset - plateWidth) + ' ' + (box.y + 4.5) + ')');++ var originalLabel = node.getAttribute('aria-label') || '';+ node.setAttribute('data-source-evidence-count', String(count));+ node.setAttribute('data-source-evidence-original-label', originalLabel);+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));+ installed += 1;+ });+ return installed;+ }+ return {+ available: function () { return Boolean(payload); },+ repository: function () { return payload ? payload.repository : null; },+ node: function (id) {+ var sources = payload && payload.nodes ? payload.nodes[id] : null;+ return Array.isArray(sources) ? sources.slice() : [];+ },+ installBeacons: installBeacons+ };+ })();+ Archify.sourceEvidence.installBeacons();++ /* ============================================================+ Explore — stable-ID neighborhood focus + dependency-free pan/zoom.+ Renderer IDs become deep-linkable semantic hooks without turning the+ standalone artifact into a canvas editor.+ ============================================================ */+ Archify.focus = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var chip = document.getElementById('focus-chip');+ var label = document.getElementById('focus-label');+ var detail = document.getElementById('focus-detail');+ var kind = document.getElementById('focus-kind');+ var context = document.getElementById('focus-context');+ var tag = document.getElementById('focus-tag');+ var semanticId = document.getElementById('focus-id');+ var evidence = document.getElementById('focus-evidence');+ var repositoryLink = document.getElementById('focus-repository');+ var evidenceLinks = document.getElementById('focus-evidence-links');+ var summary = document.getElementById('focus-summary');+ var reachSection = document.getElementById('focus-reach');+ var reachStatus = document.getElementById('focus-reach-status');+ var upstreamBtn = document.getElementById('btn-reach-upstream');+ var downstreamBtn = document.getElementById('btn-reach-downstream');+ var upstreamCount = document.getElementById('focus-reach-upstream-count');+ var downstreamCount = document.getElementById('focus-reach-downstream-count');+ var relationshipList = document.getElementById('relationship-lens-list');+ var copyBtn = document.getElementById('btn-focus-copy');+ var relationsBtn = document.getElementById('btn-focus-relations');+ var clearBtn = document.getElementById('btn-focus-clear');+ var moveBtn = document.getElementById('btn-focus-move');+ var activeIds = [];+ var hoveredRelationship = null;+ var focusedRelationship = null;+ var pinnedRelationship = null;+ var pinnedRelationshipKey = null;+ var activeRelationshipPreview = null;+ var relationshipHitOverlay = null;+ var relationshipHitTargets = [];+ var directPreviewTimer = null;+ var lensDrag = null;+ var lensDragClickPointer = null;+ var manualLensPosition = null;+ var reachabilityMode = null;+ var activeReachability = null;+ var svgNamespace = 'http://www.w3.org/2000/svg';+ var reducedMotionQuery = window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;+ var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') || (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '');+ }+ function reachabilityRelationships() {+ var seen = Object.create(null);+ var relationships = [];+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!from || !to || seen[key]) return;+ seen[key] = true;+ relationships.push({ key: key, from: from, to: to });+ });+ return relationships;+ }+ function computeReachability(originId, direction, relationships) {+ if (typeof originId !== 'string' || !originId ||+ (direction !== 'upstream' && direction !== 'downstream') ||+ !Array.isArray(relationships)) return null;+ var records = [];+ var seenKeys = Object.create(null);+ relationships.forEach(function (relationship, index) {+ if (!relationship || typeof relationship.from !== 'string' || !relationship.from ||+ typeof relationship.to !== 'string' || !relationship.to) return;+ var key = typeof relationship.key === 'string' && relationship.key+ ? relationship.key : String(index);+ if (seenKeys[key]) return;+ seenKeys[key] = true;+ records.push({ key: key, from: relationship.from, to: relationship.to });+ });++ var depths = Object.create(null);+ var order = [];+ var queue = [originId];+ depths[originId] = 0;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var current = queue[cursor];+ records.forEach(function (relationship) {+ var next = null;+ if (direction === 'downstream' && relationship.from === current) next = relationship.to;+ else if (direction === 'upstream' && relationship.to === current) next = relationship.from;+ if (next == null || Object.prototype.hasOwnProperty.call(depths, next)) return;+ depths[next] = depths[current] + 1;+ queue.push(next);+ });+ }+ queue.forEach(function (id) { order.push(id); });++ var edgeKeys = [];+ records.forEach(function (relationship) {+ if (Object.prototype.hasOwnProperty.call(depths, relationship.from) &&+ Object.prototype.hasOwnProperty.call(depths, relationship.to)) edgeKeys.push(relationship.key);+ });+ var maxDepth = order.reduce(function (maximum, id) {+ return Math.max(maximum, depths[id]);+ }, 0);+ return {+ direction: direction,+ originId: originId,+ nodeIds: order,+ edgeKeys: edgeKeys,+ depths: depths,+ maxDepth: maxDepth+ };+ }+ function reachabilityFor(id, direction) {+ return computeReachability(id, direction, reachabilityRelationships());+ }+ function resetReachabilityButtons() {+ upstreamBtn.setAttribute('aria-pressed', 'false');+ downstreamBtn.setAttribute('aria-pressed', 'false');+ }+ function clearReachability(options) {+ options = options || {};+ reachabilityMode = null;+ activeReachability = null;+ svg.removeAttribute('data-reach-active');+ chip.removeAttribute('data-reach-mode');+ nodes().forEach(function (node) {+ node.removeAttribute('data-reach-match');+ node.removeAttribute('data-reach-origin');+ node.removeAttribute('data-reach-depth');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-reach-match');+ edge.removeAttribute('data-reach-depth');+ });+ resetReachabilityButtons();+ reachStatus.textContent = '';+ reachStatus.hidden = true;+ if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {+ Archify.exportMenu.syncReachShare();+ }+ if (options.updateUrl === true && activeIds.length === 1) {+ try {+ history.replaceState(null, '', location.pathname + location.search + '#focus=' + encodeURIComponent(activeIds[0]));+ } catch (_) {}+ }+ }+ function renderReachabilityControls(id) {+ var upstream = reachabilityFor(id, 'upstream');+ var downstream = reachabilityFor(id, 'downstream');+ var upstreamReach = upstream ? Math.max(0, upstream.nodeIds.length - 1) : 0;+ var downstreamReach = downstream ? Math.max(0, downstream.nodeIds.length - 1) : 0;+ upstreamCount.textContent = String(upstreamReach);+ downstreamCount.textContent = String(downstreamReach);+ upstreamBtn.disabled = upstreamReach === 0;+ downstreamBtn.disabled = downstreamReach === 0;+ upstreamBtn.setAttribute('aria-label', upstreamReach+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));+ downstreamBtn.setAttribute('aria-label', downstreamReach+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));+ reachSection.hidden = false;+ }+ function applyReachability(direction, options) {+ options = options || {};+ if (activeIds.length !== 1 || (direction !== 'upstream' && direction !== 'downstream')) return false;+ if (reachabilityMode === direction && options.toggle !== false) {+ clearReachability({ updateUrl: options.updateUrl !== false });+ return true;+ }+ var result = reachabilityFor(activeIds[0], direction);+ if (!result || result.nodeIds.length <= 1) return false;+ clearRelationshipPreview({ clearPin: true });+ clearReachability({ updateUrl: false });+ reachabilityMode = direction;+ activeReachability = result;+ var edgeKeySet = Object.create(null);+ result.edgeKeys.forEach(function (key) { edgeKeySet[key] = true; });+ svg.setAttribute('data-reach-active', direction);+ chip.setAttribute('data-reach-mode', direction);+ nodes().forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ if (!Object.prototype.hasOwnProperty.call(result.depths, id)) return;+ node.setAttribute('data-reach-match', '');+ node.setAttribute('data-reach-depth', String(result.depths[id]));+ if (id === result.originId) node.setAttribute('data-reach-origin', '');+ });+ edges().forEach(function (edge) {+ var key = edge.getAttribute('data-edge-key') || (+ edge.getAttribute('data-edge-from') + '\u0000' ++ edge.getAttribute('data-edge-to') + '\u0000' ++ (edge.getAttribute('data-edge-label') || '')+ );+ if (!edgeKeySet[key]) return;+ edge.setAttribute('data-reach-match', '');+ var fromDepth = result.depths[edge.getAttribute('data-edge-from')];+ var toDepth = result.depths[edge.getAttribute('data-edge-to')];+ edge.setAttribute('data-reach-depth', String(Math.max(fromDepth || 0, toDepth || 0)));+ });+ resetReachabilityButtons();+ var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;+ activeButton.setAttribute('aria-pressed', 'true');+ var reachableCount = result.nodeIds.length - 1;+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });+ reachStatus.hidden = false;+ if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {+ Archify.exportMenu.syncReachShare();+ }+ if (options.updateUrl !== false) {+ try {+ history.replaceState(null, '', location.pathname + location.search + '#focus=' ++ encodeURIComponent(activeIds[0]) + '&reach=' + direction);+ } catch (_) {}+ }+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(result.nodeIds, { includeNeighbors: false, reason: 'reachability' });+ }+ placeRelationshipLens();+ return true;+ }+ function reachabilitySnapshot() {+ if (!activeReachability || activeIds.length !== 1 ||+ (reachabilityMode !== 'upstream' && reachabilityMode !== 'downstream') ||+ activeReachability.direction !== reachabilityMode ||+ activeReachability.originId !== activeIds[0] ||+ svg.getAttribute('data-reach-active') !== reachabilityMode) return null;++ var originId = activeReachability.originId;+ var nodeIds = activeReachability.nodeIds.slice();+ var edgeKeys = activeReachability.edgeKeys.slice();+ if (nodeIds.length < 2 || nodeIds[0] !== originId || !edgeKeys.length ||+ !activeReachability.depths || !Number.isInteger(activeReachability.maxDepth) ||+ activeReachability.maxDepth < 1) return null;++ var allNodes = nodes();+ var allEdges = edges();+ var seenNodeIds = Object.create(null);+ var seenEdgeKeys = Object.create(null);+ var nodeIdSet = Object.create(null);+ var depths = Object.create(null);+ var originNode = null;+ var measuredMaxDepth = 0;++ if (nodeIds.some(function (id) {+ var depth = activeReachability.depths[id];+ var matches = allNodes.filter(function (node) {+ return node.getAttribute('data-node-id') === id;+ });+ if (typeof id !== 'string' || !id || seenNodeIds[id] || matches.length !== 1 ||+ !matches[0].hasAttribute('data-reach-match') ||+ !Number.isInteger(depth) || depth < 0 || depth > activeReachability.maxDepth ||+ (id === originId+ ? (!matches[0].hasAttribute('data-reach-origin') || depth !== 0)+ : depth < 1)) return true;+ seenNodeIds[id] = true;+ nodeIdSet[id] = true;+ depths[id] = depth;+ measuredMaxDepth = Math.max(measuredMaxDepth, depth);+ if (id === originId) originNode = matches[0];+ return false;+ }) || !originNode || measuredMaxDepth !== activeReachability.maxDepth ||+ allNodes.filter(function (node) { return node.hasAttribute('data-reach-match'); }).length !== nodeIds.length) return null;++ var edgeRecords = [];+ if (edgeKeys.some(function (key) {+ if (typeof key !== 'string' || !key || seenEdgeKeys[key]) return true;+ var fragments = allEdges.filter(function (edge) {+ return edge.getAttribute('data-edge-key') === key;+ });+ var drawableFragments = fragments.filter(hasDrawableGeometry);+ if (!fragments.length || drawableFragments.length !== 1 ||+ !fragments.every(function (fragment) { return fragment.hasAttribute('data-reach-match'); })) return true;+ var first = fragments[0];+ var from = first.getAttribute('data-edge-from');+ var to = first.getAttribute('data-edge-to');+ var id = first.getAttribute('data-edge-id') || '';+ var labelValue = first.getAttribute('data-edge-label') || '';+ if (!nodeIdSet[from] || !nodeIdSet[to] || !fragments.every(function (fragment) {+ return fragment.getAttribute('data-edge-from') === from &&+ fragment.getAttribute('data-edge-to') === to &&+ (fragment.getAttribute('data-edge-id') || '') === id;+ })) return true;+ seenEdgeKeys[key] = true;+ edgeRecords.push({+ key: key,+ id: id,+ from: from,+ to: to,+ label: labelValue,+ depth: Math.max(depths[from], depths[to])+ });+ return false;+ })) return null;++ var liveEdgeKeys = Object.create(null);+ if (allEdges.some(function (edge) {+ if (!edge.hasAttribute('data-reach-match')) return false;+ var key = edge.getAttribute('data-edge-key');+ if (!key || !seenEdgeKeys[key]) return true;+ liveEdgeKeys[key] = true;+ return false;+ }) || Object.keys(liveEdgeKeys).length !== edgeKeys.length) return null;++ return {+ direction: reachabilityMode,+ origin: { id: originId, label: nodeLabel(originNode, originId) },+ nodeIds: nodeIds,+ depths: depths,+ maxDepth: activeReachability.maxDepth,+ edges: edgeRecords+ };+ }+ function setPassportValue(element, value) {+ var normalized = value == null ? '' : String(value).trim();+ element.textContent = normalized;+ element.hidden = !normalized;+ }+ function renderSourceEvidence(id) {+ evidenceLinks.textContent = '';+ repositoryLink.removeAttribute('href');+ repositoryLink.removeAttribute('aria-label');+ repositoryLink.textContent = '';+ var sources = Archify.sourceEvidence.node(id);+ var repository = Archify.sourceEvidence.repository();+ if (!repository || !sources.length) {+ evidence.hidden = true;+ return;+ }+ repositoryLink.textContent = repository.label + ' @ ' + repository.shortRevision;+ if (repository.href) {+ repositoryLink.href = repository.href;+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));+ }+ evidence.title = viewerText('viewer.passport.verificationScope');+ sources.forEach(function (source) {+ var link = document.createElement(source.href ? 'a' : 'div');+ link.className = 'semantic-passport-source';+ if (source.href) {+ link.href = source.href;+ link.target = '_blank';+ link.rel = 'noopener noreferrer';+ link.referrerPolicy = 'no-referrer';+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));+ }+ var name = document.createElement('strong');+ name.textContent = source.label || source.path.split('/').pop() || source.path;+ var location = document.createElement('code');+ location.textContent = source.line+ ? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + (source.href ? ' ↗' : '')+ : source.href ? viewerText('viewer.passport.source.openLink') : '';+ var sourcePath = document.createElement('small');+ sourcePath.textContent = source.path;+ link.appendChild(name);+ link.appendChild(location);+ link.appendChild(sourcePath);+ evidenceLinks.appendChild(link);+ });+ evidence.hidden = false;+ }+ function renderPassport(id, node) {+ setPassportValue(detail, node.getAttribute('data-node-sublabel'));+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));+ setPassportValue(context, node.getAttribute('data-node-context'));+ setPassportValue(tag, node.getAttribute('data-node-tag'));+ setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));+ semanticId.textContent = id;+ semanticId.hidden = false;+ renderSourceEvidence(id);+ }+ function relationshipsFor(id, byId) {+ var seen = {};+ var relationships = [];+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (from !== id && to !== id) return;+ var edgeLabel = edge.getAttribute('data-edge-label') || '';+ var edgeKey = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + edgeLabel);+ var edgeId = edge.getAttribute('data-edge-id') || '';+ if (seen[edgeKey]) return;+ seen[edgeKey] = true;+ var direction = from === id && to === id ? 'loop' : (from === id ? 'out' : 'in');+ var neighborId = direction === 'in' ? from : to;+ var neighbor = byId[neighborId];+ relationships.push({+ key: edgeKey,+ id: edgeId,+ from: from,+ to: to,+ direction: direction,+ neighborId: neighborId,+ neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')+ });+ });+ return relationships;+ }+ function relationshipEdgeShapes(edge) {+ if (!edge) return [];+ if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function relationshipHitRecords() {+ var recordsByKey = {};+ var recordsById = Object.create(null);+ var byId = Object.create(null);+ nodes().forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var records = [];+ edges().forEach(function (edge) {+ var shapes = relationshipEdgeShapes(edge);+ if (!shapes.length) return;+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var labelValue = edge.getAttribute('data-edge-label') || '';+ var edgeId = edge.getAttribute('data-edge-id') || '';+ var key = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + labelValue);+ var existing = recordsByKey[key];+ if (existing) {+ if (existing.from !== from || existing.to !== to || existing.labelValue !== labelValue || existing.id !== edgeId) {+ existing.invalid = true;+ return;+ }+ shapes.forEach(function (shape) {+ if (existing.shapes.indexOf(shape) === -1) existing.shapes.push(shape);+ });+ return;+ }+ var record = {+ key: key,+ id: edgeId,+ from: from,+ to: to,+ fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,+ toLabel: byId[to] ? nodeLabel(byId[to], to) : to,+ labelValue: labelValue,+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),+ edge: edge,+ shapes: shapes,+ invalid: false+ };+ recordsByKey[key] = record;+ if (edgeId) {+ if (recordsById[edgeId]) {+ recordsById[edgeId].invalid = true;+ record.invalid = true;+ } else {+ recordsById[edgeId] = record;+ }+ }+ records.push(record);+ });+ return records.filter(function (record) { return !record.invalid && record.from && record.to; });+ }+ function relationshipRecordForKey(key) {+ return relationshipHitRecords().find(function (record) { return record.key === key; }) || null;+ }+ function pinnedRelationshipRecord() {+ return pinnedRelationshipKey ? relationshipRecordForKey(pinnedRelationshipKey) : null;+ }+ function renderRelationshipCopyAction() {+ var record = pinnedRelationshipRecord();+ if (record && record.id) {+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));+ } else if (pinnedRelationshipKey) {+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));+ } else {+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ }+ }+ function relationshipHitGeometry(shape, className) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('filter');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('tabindex');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.setAttribute('class', className || 'relationship-hit-rail');+ return clone;+ }+ function removeRelationshipPulse() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-relationship-pulse-overlay]'), function (element) {+ element.remove();+ });+ }+ function relationshipPulseGeometry(shape) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('transform');+ clone.removeAttribute('filter');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('tabindex');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-focus-match');+ clone.removeAttribute('data-relationship-preview');+ clone.setAttribute('class', 'relationship-flow-pulse');+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function relationshipTokenKind(edge) {+ var shapes = relationshipEdgeShapes(edge);+ var classEvidence = [edge.getAttribute('class') || ''].concat(shapes.map(function (shape) {+ return shape.getAttribute('class') || '';+ })).join(' ');+ var from = edge.getAttribute('data-edge-from') || '';+ var to = edge.getAttribute('data-edge-to') || '';+ var source = nodes().find(function (node) { return node.getAttribute('data-node-id') === from; });+ var target = nodes().find(function (node) { return node.getAttribute('data-node-id') === to; });+ var sourceKind = source ? source.getAttribute('data-node-kind') || 'neutral' : 'neutral';+ var targetKind = target ? target.getAttribute('data-node-kind') || 'neutral' : 'neutral';+ if (/\ba-security\b/.test(classEvidence) || sourceKind === 'security' || targetKind === 'security' || targetKind === 'failure') return 'security';+ if (/\ba-dashed\b/.test(classEvidence) || sourceKind === 'messagebus' || targetKind === 'messagebus') return 'event';+ if (sourceKind === 'database' || targetKind === 'database') return 'data';+ if (targetKind === 'waiting' || targetKind === 'success') return 'state';+ return 'call';+ }+ function relationshipTokenPath(shape) {+ if (!shape) return '';+ var tagName = String(shape.tagName || '').toLowerCase();+ if (tagName === 'path') return shape.getAttribute('d') || '';+ if (tagName === 'line') {+ return 'M ' + shape.getAttribute('x1') + ' ' + shape.getAttribute('y1') ++ ' L ' + shape.getAttribute('x2') + ' ' + shape.getAttribute('y2');+ }+ if (tagName === 'polyline' && shape.points && shape.points.numberOfItems > 1) {+ var commands = [];+ for (var i = 0; i < shape.points.numberOfItems; i += 1) {+ var point = shape.points.getItem(i);+ commands.push((i === 0 ? 'M ' : 'L ') + point.x + ' ' + point.y);+ }+ return commands.join(' ');+ }+ return '';+ }+ function relationshipTokenPart(tagName, className, attrs) {+ var part = document.createElementNS(svgNamespace, tagName);+ part.setAttribute('class', className);+ Object.keys(attrs || {}).forEach(function (name) { part.setAttribute(name, attrs[name]); });+ return part;+ }+ function relationshipTokenGeometry(shape, kind, key, options) {+ options = options || {};+ var pathData = relationshipTokenPath(shape);+ if (!pathData) return null;+ var token = document.createElementNS(svgNamespace, 'g');+ token.setAttribute('class', 'semantic-flow-token ' + (options.className || 'relationship-flow-token'));+ token.setAttribute('data-token-kind', kind);+ token.setAttribute('data-token-edge-key', key);+ token.setAttribute('aria-hidden', 'true');+ token.appendChild(relationshipTokenPart('circle', 'semantic-flow-token-halo', { cx: '0', cy: '0', r: '7' }));+ if (kind === 'data') {+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-5', y: '-4', width: '10', height: '8', rx: '2' }));+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'M -2.8 -1.2 h 5.6 M -2.8 1.4 h 3.8' }));+ } else if (kind === 'event') {+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-7', y: '-3', width: '4', height: '6', rx: '1' }));+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '-2', y: '-3', width: '4', height: '6', rx: '1' }));+ token.appendChild(relationshipTokenPart('rect', 'relationship-flow-token-shape', { x: '3', y: '-3', width: '4', height: '6', rx: '1' }));+ } else if (kind === 'security') {+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-shape', { d: 'M 0 -5 L 4 -3.4 V 0 c 0 3 -1.6 4.5 -4 5.5 C -2.4 4.5 -4 3 -4 0 v -3.4 Z' }));+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'm -2 .2 1.4 1.4 L 2 -1.4' }));+ } else if (kind === 'state') {+ token.appendChild(relationshipTokenPart('circle', 'relationship-flow-token-shape', { cx: '0', cy: '0', r: '5' }));+ token.appendChild(relationshipTokenPart('circle', 'relationship-flow-token-dot', { cx: '0', cy: '0', r: '1.35' }));+ } else {+ token.appendChild(relationshipTokenPart('path', 'relationship-flow-token-ink', { d: 'M -5 -3 L -1 0 L -5 3 M 0 -3 L 4 0 L 0 3' }));+ }+ var motion = document.createElementNS(svgNamespace, 'animateMotion');+ motion.setAttribute('path', pathData);+ motion.setAttribute('dur', options.duration || '1.2s');+ motion.setAttribute('begin', '0s');+ motion.setAttribute('fill', 'freeze');+ motion.setAttribute('rotate', 'auto');+ motion.setAttribute('calcMode', 'spline');+ motion.setAttribute('keyTimes', '0;1');+ motion.setAttribute('keySplines', '.2 0 .2 1');+ token.appendChild(motion);+ return token;+ }+ function createSemanticFlowToken(edge, shape, options) {+ if (!edge || !shape) return null;+ var key = edge.getAttribute('data-edge-key') || (+ edge.getAttribute('data-edge-from') + '\u0000' ++ edge.getAttribute('data-edge-to') + '\u0000' ++ (edge.getAttribute('data-edge-label') || '')+ );+ return relationshipTokenGeometry(shape, relationshipTokenKind(edge), key, options);+ }+ Archify.flowTokens = {+ create: createSemanticFlowToken,+ kind: function (edge) { return relationshipTokenKind(edge); },+ path: relationshipTokenPath+ };+ function renderRelationshipPulse(key) {+ removeRelationshipPulse();+ if (!key || document.documentElement.getAttribute('data-embed') === 'true') return false;+ if (document.hidden || (Archify.motionGovernor && Archify.motionGovernor.isPaused())) return false;+ if (reducedMotionQuery && reducedMotionQuery.matches) return false;+ var matchingEdges = edges().filter(function (edge) {+ return edge.getAttribute('data-edge-key') === key;+ });+ if (!matchingEdges.length) return false;+ var overlay = document.createElementNS(svgNamespace, 'g');+ overlay.setAttribute('class', 'relationship-pulse-overlay');+ overlay.setAttribute('data-relationship-pulse-overlay', '');+ overlay.setAttribute('data-relationship-pulse-key', key);+ overlay.setAttribute('aria-hidden', 'true');+ var tokenAdded = false;+ matchingEdges.forEach(function (edge) {+ var wrapper = document.createElementNS(svgNamespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ var shapes = relationshipEdgeShapes(edge);+ shapes.forEach(function (shape) {+ wrapper.appendChild(relationshipPulseGeometry(shape));+ });+ if (!tokenAdded && shapes.length) {+ var tokenKind = relationshipTokenKind(edge);+ var token = relationshipTokenGeometry(shapes[0], tokenKind, key);+ if (token) {+ wrapper.appendChild(token);+ overlay.setAttribute('data-relationship-token-kind', tokenKind);+ tokenAdded = true;+ }+ }+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ if (!overlay.childNodes.length) return false;+ var finishPulse = function () {+ if (overlay.parentNode) overlay.remove();+ };+ overlay.addEventListener('animationend', finishPulse, { once: true });+ overlay.addEventListener('animationcancel', finishPulse, { once: true });+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ return true;+ }+ function clearRelationshipPreview(options) {+ options = options || {};+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ directPreviewTimer = null;+ removeRelationshipPulse();+ activeRelationshipPreview = null;+ svg.removeAttribute('data-relationship-preview-active');+ svg.removeAttribute('data-relationship-direct-active');+ if (options.clearPin === true) {+ pinnedRelationship = null;+ pinnedRelationshipKey = null;+ svg.removeAttribute('data-relationship-pin-active');+ }+ chip.removeAttribute('data-relationship-previewing');+ edges().forEach(function (edge) { edge.removeAttribute('data-relationship-preview'); });+ nodes().forEach(function (node) {+ node.removeAttribute('data-relationship-preview-node');+ node.removeAttribute('data-relationship-preview-source');+ node.removeAttribute('data-relationship-preview-target');+ });+ Array.prototype.forEach.call(relationshipList.querySelectorAll('[data-preview-active]'), function (button) {+ button.removeAttribute('data-preview-active');+ });+ relationshipHitTargets.forEach(function (target) {+ target.setAttribute('aria-pressed', pinnedRelationshipKey && target.getAttribute('data-relationship-key') === pinnedRelationshipKey ? 'true' : 'false');+ target.removeAttribute('data-preview-active');+ });+ renderRelationshipCopyAction();+ placeRelationshipLens();+ }+ function previewRelationship(button, options) {+ options = options || {};+ if (pinnedRelationshipKey && pinnedRelationship && button !== pinnedRelationship) return;+ clearRelationshipPreview();+ if (!button) return;+ var key = button.getAttribute('data-relationship-key');+ var from = button.getAttribute('data-relationship-from');+ var to = button.getAttribute('data-relationship-to');+ if (!key || !from || !to) return;+ svg.setAttribute('data-relationship-preview-active', key);+ if (options.direct === true) svg.setAttribute('data-relationship-direct-active', key);+ edges().forEach(function (edge) {+ if (edge.getAttribute('data-edge-key') === key) edge.setAttribute('data-relationship-preview', '');+ });+ nodes().forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ if (id !== from && id !== to) return;+ node.setAttribute('data-relationship-preview-node', '');+ if (id === from) node.setAttribute('data-relationship-preview-source', '');+ if (id === to) node.setAttribute('data-relationship-preview-target', '');+ });+ button.setAttribute('data-preview-active', 'true');+ if (!chip.hidden && options.direct !== true) chip.setAttribute('data-relationship-previewing', 'true');+ activeRelationshipPreview = button;+ renderRelationshipPulse(key);+ placeRelationshipLens();+ }+ function syncRelationshipPreview() {+ var next = pinnedRelationship || focusedRelationship || hoveredRelationship;+ if (next === activeRelationshipPreview) return;+ previewRelationship(next, { direct: !!(next && next.hasAttribute('data-relationship-hit-key')) });+ }+ function directRelationshipBlocked() {+ return html.getAttribute('data-embed') === 'true' ||+ html.getAttribute('data-guide-open') === 'true' ||+ container.classList.contains('is-panning') ||+ (activeIds.length > 0 && !pinnedRelationshipKey) ||+ svg.hasAttribute('data-route-picking') ||+ svg.hasAttribute('data-route-active') ||+ svg.hasAttribute('data-lens-active');+ }+ function scheduleDirectRelationshipPreview(target) {+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ if (pinnedRelationshipKey) return;+ directPreviewTimer = window.setTimeout(function () {+ directPreviewTimer = null;+ if (pinnedRelationshipKey || hoveredRelationship !== target || directRelationshipBlocked()) return;+ previewRelationship(target, { direct: true });+ }, reducedMotionQuery && reducedMotionQuery.matches ? 0 : 90);+ }+ function relationshipHitTarget(key) {+ return relationshipHitTargets.find(function (target) {+ return target.getAttribute('data-relationship-key') === key;+ }) || null;+ }+ function revealPinnedRelationship(record) {+ function reveal() {+ if (!record || pinnedRelationshipKey !== record.key) return true;+ if (!Archify.view || typeof Archify.view.reveal !== 'function') return false;+ Archify.view.reveal([record.from, record.to], { reason: 'relationship-direct' });+ return true;+ }+ if (!reveal()) requestAnimationFrame(reveal);+ }+ function inspectRelationship(key, options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ if (directPreviewTimer) window.clearTimeout(directPreviewTimer);+ directPreviewTimer = null;+ hoveredRelationship = null;+ focusedRelationship = null;+ if (pinnedRelationshipKey === key) {+ if (options.toggle === false) return true;+ clear({ updateUrl: options.updateUrl !== false });+ return true;+ }+ var record = relationshipRecordForKey(key);+ if (!record) return false;+ set(record.from, { toggle: false, updateUrl: false });+ var row = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-key]')).find(function (candidate) {+ return candidate.getAttribute('data-relationship-key') === key;+ });+ if (!row) return false;+ previewRelationship(row);+ pinnedRelationship = row;+ pinnedRelationshipKey = key;+ svg.setAttribute('data-relationship-pin-active', key);+ var target = relationshipHitTarget(key);+ if (target) target.setAttribute('aria-pressed', 'true');+ renderRelationshipCopyAction();+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });+ revealPinnedRelationship(record);+ if (options.updateUrl !== false && record.id) {+ try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}+ }+ return true;+ }+ function inspectRelationshipById(id, options) {+ var record = relationshipHitRecords().find(function (item) { return item.id === id; });+ return record ? inspectRelationship(record.key, options) : false;+ }+ function installRelationshipHitTargets() {+ if (html.getAttribute('data-embed') === 'true') return 0;+ var records = relationshipHitRecords();+ if (!records.length) return 0;+ relationshipHitOverlay = document.createElementNS(svgNamespace, 'g');+ relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');+ relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');+ relationshipHitOverlay.setAttribute('role', 'group');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));+ var relationshipHelp = document.createElementNS(svgNamespace, 'desc');+ relationshipHelp.id = 'archify-relationship-help';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');+ relationshipHitOverlay.appendChild(relationshipHelp);+ records.forEach(function (record, index) {+ var target = document.createElementNS(svgNamespace, 'g');+ target.setAttribute('class', 'relationship-hit-target');+ target.setAttribute('data-relationship-hit-key', record.key);+ target.setAttribute('data-relationship-key', record.key);+ target.setAttribute('data-relationship-from', record.from);+ target.setAttribute('data-relationship-to', record.to);+ if (record.id) target.setAttribute('data-relationship-id', record.id);+ target.setAttribute('role', 'button');+ target.setAttribute('tabindex', index === 0 ? '0' : '-1');+ target.setAttribute('aria-pressed', 'false');+ target.setAttribute('aria-describedby', relationshipHelp.id);+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });+ target.setAttribute('aria-label', description);+ var title = document.createElementNS(svgNamespace, 'title');+ title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;+ target.appendChild(title);+ record.shapes.forEach(function (shape) {+ target.appendChild(relationshipHitGeometry(shape));+ target.appendChild(relationshipHitGeometry(shape, 'relationship-focus-rail'));+ });+ if (target.childNodes.length > 1) {+ relationshipHitTargets.push(target);+ relationshipHitOverlay.appendChild(target);+ }+ });+ if (!relationshipHitTargets.length) return 0;+ var firstNode = svg.querySelector('[data-node-id]');+ var nodeLayer = firstNode;+ while (nodeLayer && nodeLayer.parentNode && nodeLayer.parentNode !== svg) nodeLayer = nodeLayer.parentNode;+ if (nodeLayer && nodeLayer.parentNode === svg) svg.insertBefore(relationshipHitOverlay, nodeLayer);+ else svg.appendChild(relationshipHitOverlay);++ relationshipHitOverlay.addEventListener('pointerdown', function (event) {+ if (event.target.closest('[data-relationship-hit-key]')) event.stopPropagation();+ });+ relationshipHitOverlay.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch') return;+ if (finePointerQuery && !finePointerQuery.matches) return;+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked() || pinnedRelationshipKey) return;+ if (event.relatedTarget && target.contains(event.relatedTarget)) return;+ hoveredRelationship = target;+ scheduleDirectRelationshipPreview(target);+ });+ relationshipHitOverlay.addEventListener('pointerout', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || (event.relatedTarget && target.contains(event.relatedTarget))) return;+ if (hoveredRelationship === target) hoveredRelationship = null;+ syncRelationshipPreview();+ });+ relationshipHitOverlay.addEventListener('focusin', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked()) return;+ focusedRelationship = target;+ if (!pinnedRelationshipKey) previewRelationship(target, { direct: true });+ });+ relationshipHitOverlay.addEventListener('focusout', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || (event.relatedTarget && target.contains(event.relatedTarget))) return;+ if (focusedRelationship === target) focusedRelationship = null;+ syncRelationshipPreview();+ });+ relationshipHitOverlay.addEventListener('click', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target || directRelationshipBlocked()) return;+ event.preventDefault();+ event.stopPropagation();+ focusedRelationship = null;+ hoveredRelationship = null;+ inspectRelationship(target.getAttribute('data-relationship-key'));+ });+ relationshipHitOverlay.addEventListener('keydown', function (event) {+ var target = event.target.closest('[data-relationship-hit-key]');+ if (!target) return;+ if (event.key === 'Escape' && pinnedRelationshipKey) {+ event.preventDefault();+ clear({ updateUrl: false });+ return;+ }+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ focusedRelationship = null;+ hoveredRelationship = null;+ inspectRelationship(target.getAttribute('data-relationship-key'));+ return;+ }+ if (event.key !== 'ArrowRight' && event.key !== 'ArrowLeft' && event.key !== 'ArrowDown' && event.key !== 'ArrowUp' && event.key !== 'Home' && event.key !== 'End') return;+ var index = relationshipHitTargets.indexOf(target);+ if (event.key === 'Home') index = 0;+ else if (event.key === 'End') index = relationshipHitTargets.length - 1;+ else if (event.key === 'ArrowRight' || event.key === 'ArrowDown') index = (index + 1) % relationshipHitTargets.length;+ else index = (index - 1 + relationshipHitTargets.length) % relationshipHitTargets.length;+ event.preventDefault();+ relationshipHitTargets.forEach(function (item, itemIndex) { item.setAttribute('tabindex', itemIndex === index ? '0' : '-1'); });+ try { relationshipHitTargets[index].focus({ preventScroll: true }); }+ catch (_) { try { relationshipHitTargets[index].focus(); } catch (_) {} }+ });+ return relationshipHitTargets.length;+ }+ function renderRelationshipLens(id, byId) {+ hoveredRelationship = null;+ focusedRelationship = null;+ clearRelationshipPreview({ clearPin: true });+ renderPassport(id, byId[id]);+ var relationships = relationshipsFor(id, byId);+ chip.removeAttribute('data-relations-expanded');+ relationsBtn.setAttribute('aria-expanded', 'false');+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));+ var counts = { out: 0, in: 0, loop: 0 };+ relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });+ renderReachabilityControls(id);+ relationshipList.textContent = '';+ if (!relationships.length) {+ var empty = document.createElement('p');+ empty.className = 'relationship-lens-empty';+ empty.textContent = viewerText('viewer.passport.relationship.none');+ relationshipList.appendChild(empty);+ return;+ }++ [+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }+ ].forEach(function (group) {+ var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });+ if (!items.length) return;+ var section = document.createElement('div');+ section.className = 'relationship-lens-group';+ var heading = document.createElement('span');+ heading.className = 'relationship-lens-group-title';+ heading.textContent = group.label + ' · ' + items.length;+ section.appendChild(heading);+ items.forEach(function (relationship) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'relationship-lens-row';+ button.setAttribute('data-direction', relationship.direction);+ button.setAttribute('data-relationship-target', relationship.neighborId);+ button.setAttribute('data-relationship-key', relationship.key);+ button.setAttribute('data-relationship-from', relationship.from);+ button.setAttribute('data-relationship-to', relationship.to);+ if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));+ var direction = document.createElement('span');+ direction.className = 'relationship-lens-direction';+ direction.setAttribute('aria-hidden', 'true');+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');+ var target = document.createElement('strong');+ target.textContent = relationship.neighborLabel;+ var relation = document.createElement('small');+ relation.textContent = relationship.label;+ button.appendChild(direction);+ button.appendChild(target);+ button.appendChild(relation);+ section.appendChild(button);+ });+ relationshipList.appendChild(section);+ });+ }+ function lensPlacementBounds() {+ var containerRect = container.getBoundingClientRect();+ if (containerRect.width <= 0 || containerRect.height <= 0 || chip.offsetWidth <= 0 || chip.offsetHeight <= 0) return null;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleLeft = Math.max(padding, -containerRect.left + padding);+ var visibleRight = Math.min(+ container.clientWidth - padding,+ window.innerWidth - containerRect.left - padding+ );+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(+ container.clientHeight - padding,+ window.innerHeight - containerRect.top - padding+ );+ var minLeft = visibleLeft;+ var minTop = Math.min(visibleTop, Math.max(padding, visibleBottom - chip.offsetHeight));+ return {+ containerRect: containerRect,+ minLeft: minLeft,+ maxLeft: Math.max(minLeft, visibleRight - chip.offsetWidth),+ minTop: minTop,+ maxTop: Math.max(minTop, visibleBottom - chip.offsetHeight)+ };+ }+ function manualLensPlacementAvailable() {+ return window.innerWidth > 720 && (!finePointerQuery || finePointerQuery.matches);+ }+ function clampLensPosition(position, bounds) {+ if (!position || !bounds) return null;+ return {+ left: Math.max(bounds.minLeft, Math.min(bounds.maxLeft, position.left)),+ top: Math.max(bounds.minTop, Math.min(bounds.maxTop, position.top))+ };+ }+ function currentLensPosition() {+ var bounds = lensPlacementBounds();+ if (!bounds) return null;+ var rect = chip.getBoundingClientRect();+ return clampLensPosition({+ left: rect.left - bounds.containerRect.left,+ top: rect.top - bounds.containerRect.top+ }, bounds);+ }+ function applyManualLensPosition(position) {+ if (!manualLensPlacementAvailable()) return false;+ var bounds = lensPlacementBounds();+ var clamped = clampLensPosition(position, bounds);+ if (!clamped) return false;+ manualLensPosition = clamped;+ chip.setAttribute('data-manual-placement', 'true');+ chip.style.left = Math.round(clamped.left) + 'px';+ chip.style.top = Math.round(clamped.top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ return true;+ }+ function resetLensPlacement(options) {+ options = options || {};+ manualLensPosition = null;+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (options.reposition !== false && !chip.hidden) requestLensPlacement();+ }+ function beginLensDrag(event) {+ if (!manualLensPlacementAvailable() || event.button !== 0 || lensDrag) return;+ var start = currentLensPosition();+ if (!start) return;+ event.preventDefault();+ event.stopPropagation();+ lensDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: start,+ previousManual: manualLensPosition ? { left: manualLensPosition.left, top: manualLensPosition.top } : null,+ moved: false+ };+ chip.setAttribute('data-panel-dragging', 'true');+ try { moveBtn.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function moveLensDrag(event) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ var dx = event.clientX - lensDrag.originX;+ var dy = event.clientY - lensDrag.originY;+ if (!lensDrag.moved && Math.hypot(dx, dy) <= 3) return;+ lensDrag.moved = true;+ event.preventDefault();+ event.stopPropagation();+ applyManualLensPosition({ left: lensDrag.start.left + dx, top: lensDrag.start.top + dy });+ }+ function finishLensDrag(event, cancel) {+ if (!lensDrag || lensDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = lensDrag;+ lensDrag = null;+ if (activeDrag.moved) lensDragClickPointer = activeDrag.pointerId;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(event.pointerId); } catch (_) {}+ if (!cancel) return;+ manualLensPosition = activeDrag.previousManual+ ? { left: activeDrag.previousManual.left, top: activeDrag.previousManual.top }+ : null;+ if (manualLensPosition && manualLensPlacementAvailable()) {+ applyManualLensPosition(manualLensPosition);+ } else {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ chip.style.removeProperty('top');+ if (!chip.hidden) requestLensPlacement();+ }+ }+ function moveLensWithKeyboard(event) {+ if (event.key === 'Home') {+ event.preventDefault();+ resetLensPlacement();+ return;+ }+ if (event.metaKey || event.ctrlKey || event.altKey || !manualLensPlacementAvailable()) return;+ var directions = {+ ArrowLeft: [-1, 0],+ ArrowRight: [1, 0],+ ArrowUp: [0, -1],+ ArrowDown: [0, 1]+ };+ var direction = directions[event.key];+ if (!direction) return;+ event.preventDefault();+ var current = manualLensPosition || currentLensPosition();+ if (!current) return;+ var distance = event.shiftKey ? 4 : 16;+ applyManualLensPosition({+ left: current.left + direction[0] * distance,+ top: current.top + direction[1] * distance+ });+ }+ var lensFrame = 0;+ function placeRelationshipLens() {+ if (lensFrame) {+ cancelAnimationFrame(lensFrame);+ lensFrame = 0;+ }+ if (chip.hidden || activeIds.length !== 1) return;+ var node = svg.querySelector('[data-node-id="' + activeIds[0] + '"]');+ if (!node) return;+ var containerRect = container.getBoundingClientRect();+ var nodeRect = node.getBoundingClientRect();+ if (containerRect.bottom <= 0 || containerRect.top >= window.innerHeight) return;+ var padding = window.innerWidth <= 720 ? 8 : 16;+ var visibleTop = Math.max(padding, -containerRect.top + padding);+ var visibleBottom = Math.min(containerRect.height - padding, window.innerHeight - containerRect.top - padding);+ var maxTop = Math.max(padding, visibleBottom - chip.offsetHeight);+ var minTop = Math.min(visibleTop, maxTop);+ var mobile = window.innerWidth <= 720;+ if (!manualLensPlacementAvailable()) {+ chip.removeAttribute('data-manual-placement');+ chip.style.removeProperty('left');+ } else if (manualLensPosition) {+ applyManualLensPosition(manualLensPosition);+ return;+ }+ var nodeCenter = nodeRect.top - containerRect.top + nodeRect.height / 2;+ var previewingOnMobile = mobile && chip.getAttribute('data-relationship-previewing') === 'true';+ var compactOnMobile = mobile && chip.getAttribute('data-relations-expanded') !== 'true';+ var preferred;+ if (compactOnMobile) {+ var nodeTop = nodeRect.top - containerRect.top;+ var nodeBottom = nodeRect.bottom - containerRect.top;+ var gap = 10;+ var above = nodeTop - chip.offsetHeight - gap;+ var below = nodeBottom + gap;+ if (above >= visibleTop) preferred = above;+ else if (below + chip.offsetHeight <= visibleBottom - 56) preferred = below;+ else preferred = nodeCenter < (visibleTop + visibleBottom) / 2+ ? Math.max(minTop, visibleBottom - chip.offsetHeight - 56)+ : visibleTop;+ } else if (previewingOnMobile) {+ var pinnedTop = visibleTop;+ var pinnedBottom = Math.max(minTop, visibleBottom - chip.offsetHeight - 56);+ preferred = nodeCenter < (visibleTop + visibleBottom) / 2 ? pinnedBottom : pinnedTop;+ } else {+ preferred = nodeCenter - chip.offsetHeight / 2;+ }+ var top = Math.max(minTop, Math.min(maxTop, preferred));+ var chipRect = chip.getBoundingClientRect();+ var safeGap = 10;+ var protectViewerChrome = !mobile || compactOnMobile || previewingOnMobile;+ var protectedRects = (protectViewerChrome+ ? [svg.querySelector('[data-legend]'), container.querySelector('.diagram-nav')]+ : [])+ .filter(function (element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ })+ .map(function (element) { return element.getBoundingClientRect(); })+ .filter(function (rect) {+ return rect.width > 0 && rect.height > 0 &&+ chipRect.left < rect.right + safeGap && chipRect.right > rect.left - safeGap;+ });+ if (protectedRects.length) {+ var candidates = [top, minTop, maxTop];+ protectedRects.forEach(function (rect) {+ candidates.push(+ rect.top - containerRect.top - chip.offsetHeight - safeGap,+ rect.bottom - containerRect.top + safeGap+ );+ });+ var valid = candidates.map(function (candidate) {+ return Math.max(minTop, Math.min(maxTop, candidate));+ }).filter(function (candidate, index, all) {+ if (all.indexOf(candidate) !== index) return false;+ var candidateTop = containerRect.top + candidate;+ var candidateBottom = candidateTop + chip.offsetHeight;+ return protectedRects.every(function (rect) {+ return candidateBottom <= rect.top - safeGap || candidateTop >= rect.bottom + safeGap;+ });+ });+ valid.sort(function (first, second) {+ return Math.abs(first - preferred) - Math.abs(second - preferred);+ });+ if (valid.length) top = valid[0];+ }+ chip.style.top = Math.round(top) + 'px';+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ }+ function requestLensPlacement() {+ if (lensFrame) return;+ lensFrame = requestAnimationFrame(placeRelationshipLens);+ }+ function clear(options) {+ options = options || {};+ if (lensDrag) {+ var dragPointerId = lensDrag.pointerId;+ lensDrag = null;+ chip.removeAttribute('data-panel-dragging');+ try { moveBtn.releasePointerCapture(dragPointerId); } catch (_) {}+ }+ var restoreNode = options.restoreFocus === true && activeIds.length === 1+ ? svg.querySelector('[data-node-id="' + activeIds[0] + '"]')+ : null;+ clearReachability({ updateUrl: false });+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {+ Archify.intentTrace.clear({ announce: false });+ }+ hoveredRelationship = null;+ focusedRelationship = null;+ clearRelationshipPreview({ clearPin: true });+ activeIds = [];+ svg.removeAttribute('data-focus-active');+ nodes().forEach(function (node) {+ node.removeAttribute('data-focus-match');+ node.removeAttribute('data-focus-selected');+ node.setAttribute('aria-pressed', 'false');+ });+ edges().forEach(function (edge) { edge.removeAttribute('data-focus-match'); });+ chip.hidden = true;+ label.textContent = '';+ detail.textContent = '';+ detail.hidden = true;+ kind.textContent = '';+ kind.hidden = true;+ context.textContent = '';+ context.hidden = true;+ tag.textContent = '';+ tag.hidden = true;+ semanticId.textContent = '';+ semanticId.hidden = true;+ evidence.hidden = true;+ evidenceLinks.textContent = '';+ repositoryLink.removeAttribute('href');+ repositoryLink.textContent = '';+ summary.textContent = '';+ reachSection.hidden = true;+ upstreamCount.textContent = '0';+ downstreamCount.textContent = '0';+ upstreamBtn.disabled = true;+ downstreamBtn.disabled = true;+ relationshipList.textContent = '';+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));+ relationsBtn.setAttribute('aria-expanded', 'false');+ chip.removeAttribute('data-relations-expanded');+ if (options.preserveLensPlacement !== true) resetLensPlacement({ reposition: false });+ if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.updateUrl !== false) {+ try { history.replaceState(null, '', location.pathname + location.search); } catch (_) {}+ }+ if (restoreNode) {+ try { restoreNode.focus({ preventScroll: true }); }+ catch (_) { try { restoreNode.focus(); } catch (_) {} }+ }+ }++ function setMany(ids, options) {+ options = options || {};+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.active()) {+ Archify.semanticLens.clear({ updateUrl: false, preserveView: true, closePanel: true });+ }+ if (options.preserveRoute !== true && Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {+ Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });+ }+ var nodeList = nodes();+ var byId = Object.create(null);+ nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var normalized = [];+ (ids || []).forEach(function (id) {+ if (byId[id] && normalized.indexOf(id) === -1) normalized.push(id);+ });+ if (!normalized.length) return false;+ if (normalized.length === activeIds.length && normalized.every(function (id, index) { return activeIds[index] === id; }) && options.toggle !== false) {+ clear();+ return true;+ }++ var preserveLensPlacement = activeIds.length === 1 && normalized.length === 1 && !chip.hidden;+ clear({ updateUrl: false, preserveView: true, preserveLensPlacement: preserveLensPlacement });+ activeIds = normalized;+ var selected = Object.create(null);+ var related = Object.create(null);+ var seenEdges = {};+ var matchedEdges = 0;+ normalized.forEach(function (id) { selected[id] = true; related[id] = true; });+ var selectionMode = options.mode === 'selection' || normalized.length > 1;++ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var match = selectionMode ? selected[from] && selected[to] : selected[from] || selected[to];+ if (!match) return;+ edge.setAttribute('data-focus-match', '');+ if (!selectionMode) { related[from] = true; related[to] = true; }+ var edgeKey = edge.getAttribute('data-edge-key') || (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!seenEdges[edgeKey]) { seenEdges[edgeKey] = true; matchedEdges += 1; }+ });+ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-focus-match', '');+ if (selected[nodeId]) {+ node.setAttribute('data-focus-selected', '');+ node.setAttribute('aria-pressed', 'true');+ }+ });+ svg.setAttribute('data-focus-active', normalized.join(' '));+ var defaultLabel = normalized.length === 1+ ? nodeLabel(byId[normalized[0]], normalized[0])+ : viewerText('viewer.focus.selectedNodes', { count: normalized.length });+ label.textContent = options.label || defaultLabel;+ chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;+ if (!chip.hidden) {+ renderRelationshipLens(normalized[0], byId);+ placeRelationshipLens();+ }+ if (options.updateUrl !== false) {+ var key = options.urlKey || 'focus';+ var value = options.urlValue || normalized[0];+ try { history.replaceState(null, '', location.pathname + location.search + '#' + key + '=' + encodeURIComponent(value)); } catch (_) {}+ }+ return true;+ }++ function set(id, options) {+ options = options || {};+ options.mode = 'neighborhood';+ return setMany([id], options);+ }++ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }++ function copyFocusLink() {+ if (activeIds.length !== 1) return Promise.resolve(false);+ var record = pinnedRelationshipRecord();+ var relationId = record && record.id;+ var value = location.href.replace(/#.*$/, '') + (relationId+ ? '#relation=' + encodeURIComponent(relationId)+ : '#focus=' + encodeURIComponent(activeIds[0]) + (reachabilityMode ? '&reach=' + reachabilityMode : ''));+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', copied+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));+ window.setTimeout(function () {+ renderRelationshipCopyAction();+ }, 1600);+ return copied;+ });+ }++ svg.addEventListener('click', function (event) {+ if (container.getAttribute('data-just-panned') === 'true') return;+ var node = event.target.closest('[data-node-id]');+ if (node) {+ var id = node.getAttribute('data-node-id');+ set(id);+ if (activeIds.indexOf(id) !== -1 && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });+ }+ }+ else if (activeIds.length) clear();+ });+ svg.addEventListener('keydown', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.key !== 'Enter' && event.key !== ' ')) return;+ event.preventDefault();+ var id = node.getAttribute('data-node-id');+ set(id);+ if (activeIds.indexOf(id) !== -1 && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'focus' });+ }+ });+ moveBtn.addEventListener('pointerdown', beginLensDrag);+ moveBtn.addEventListener('pointermove', moveLensDrag);+ moveBtn.addEventListener('pointerup', function (event) { finishLensDrag(event, false); });+ moveBtn.addEventListener('pointercancel', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('lostpointercapture', function (event) { finishLensDrag(event, true); });+ moveBtn.addEventListener('dblclick', function (event) {+ event.preventDefault();+ event.stopPropagation();+ resetLensPlacement();+ });+ moveBtn.addEventListener('keydown', moveLensWithKeyboard);+ clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });+ copyBtn.addEventListener('click', copyFocusLink);+ upstreamBtn.addEventListener('click', function () { applyReachability('upstream'); });+ downstreamBtn.addEventListener('click', function () { applyReachability('downstream'); });+ relationsBtn.addEventListener('click', function () {+ var expanded = chip.getAttribute('data-relations-expanded') === 'true';+ if (expanded) chip.removeAttribute('data-relations-expanded');+ else chip.setAttribute('data-relations-expanded', 'true');+ relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));+ placeRelationshipLens();+ });+ relationshipList.addEventListener('click', function (event) {+ var button = event.target.closest('[data-relationship-target]');+ if (!button) return;+ var id = button.getAttribute('data-relationship-target');+ set(id, { toggle: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'relationship' });+ }+ var node = svg.querySelector('[data-node-id="' + id + '"]');+ if (node) {+ try { node.focus({ preventScroll: true }); } catch (_) { try { node.focus(); } catch (_) {} }+ }+ });+ relationshipList.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch') return;+ if (finePointerQuery && !finePointerQuery.matches) return;+ var button = event.target.closest('[data-relationship-key]');+ if (!button || !relationshipList.contains(button)) return;+ if (event.relatedTarget && button.contains(event.relatedTarget)) return;+ hoveredRelationship = button;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('pointerout', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;+ if (hoveredRelationship === button) hoveredRelationship = null;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('focusin', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button) return;+ focusedRelationship = button;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('focusout', function (event) {+ var button = event.target.closest('[data-relationship-key]');+ if (!button || (event.relatedTarget && button.contains(event.relatedTarget))) return;+ if (focusedRelationship === button) focusedRelationship = null;+ syncRelationshipPreview();+ });+ relationshipList.addEventListener('keydown', function (event) {+ if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp' && event.key !== 'Home' && event.key !== 'End') return;+ var buttons = Array.prototype.slice.call(relationshipList.querySelectorAll('[data-relationship-target]'));+ if (!buttons.length) return;+ var index = buttons.indexOf(document.activeElement);+ if (event.key === 'Home') index = 0;+ else if (event.key === 'End') index = buttons.length - 1;+ else if (event.key === 'ArrowDown') index = Math.min(buttons.length - 1, Math.max(0, index + 1));+ else index = Math.max(0, index < 0 ? 0 : index - 1);+ event.preventDefault();+ buttons[index].focus();+ });+ document.addEventListener('pointerdown', function () {+ lensDragClickPointer = null;+ }, true);+ document.addEventListener('click', function (event) {+ // Losing capture (for example when a resize hides the handle) can+ // retarget this drag's final click to the page. It is not dismissal.+ // A new pointerdown releases the guard; keyboard clicks remain live.+ if (lensDragClickPointer != null && event.detail > 0 &&+ (event.pointerId == null || event.pointerId === lensDragClickPointer)) {+ lensDragClickPointer = null;+ event.preventDefault();+ event.stopPropagation();+ return;+ }+ var target = event.target;+ if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;+ if (container.getAttribute('data-just-panned') === 'true') return;+ if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map')) return;+ clear();+ }, true);+ window.addEventListener('scroll', requestLensPlacement, { passive: true });+ window.addEventListener('resize', requestLensPlacement);+ container.addEventListener('scroll', requestLensPlacement, { passive: true });+ document.addEventListener('visibilitychange', function () {+ if (document.hidden) removeRelationshipPulse();+ });+ function syncRelationshipMotionPreference(event) {+ if (event.matches) removeRelationshipPulse();+ }+ if (reducedMotionQuery) {+ if (typeof reducedMotionQuery.addEventListener === 'function') {+ reducedMotionQuery.addEventListener('change', syncRelationshipMotionPreference);+ } else if (typeof reducedMotionQuery.addListener === 'function') {+ reducedMotionQuery.addListener(syncRelationshipMotionPreference);+ }+ }++ installRelationshipHitTargets();++ function syncFocusFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var relation = params.get('relation');+ var initial = params.get('focus');+ var reach = params.get('reach');+ if (relation) {+ if (html.getAttribute('data-embed') === 'true' ||+ !inspectRelationshipById(relation, { updateUrl: false, toggle: false })) clear({ updateUrl: false });+ }+ else if (initial) {+ if (set(initial, { updateUrl: false, toggle: false }) &&+ (reach === 'upstream' || reach === 'downstream')) {+ applyReachability(reach, { updateUrl: false, toggle: false, reveal: false });+ }+ }+ else clear({ updateUrl: false });+ } catch (_) {}+ }++ window.addEventListener('hashchange', syncFocusFromHash);+ syncFocusFromHash();++ return {+ set: set,+ setMany: setMany,+ clear: clear,+ copyLink: copyFocusLink,+ reach: applyReachability,+ clearReach: clearReachability,+ reachabilitySnapshot: reachabilitySnapshot,+ inspectRelationship: inspectRelationship,+ inspectRelationshipById: inspectRelationshipById,+ reposition: placeRelationshipLens,+ relationship: function () {+ var record = pinnedRelationshipRecord();+ return record ? { id: record.id || null, key: record.key, from: record.from, to: record.to, label: record.label } : null;+ },+ reachability: function () {+ return activeReachability ? {+ direction: activeReachability.direction,+ originId: activeReachability.originId,+ nodeIds: activeReachability.nodeIds.slice(),+ edgeKeys: activeReachability.edgeKeys.slice(),+ maxDepth: activeReachability.maxDepth+ } : null;+ },+ active: function () { return activeIds.length === 0 ? null : (activeIds.length === 1 ? activeIds[0] : activeIds.slice()); }+ };+ })();+++ /* ============================================================+ Intent Trace — temporary one-hop topology before durable focus.+ Fine-pointer hover and keyboard focus share the same stable-ID preview;+ touch continues directly to the existing click-to-focus contract.+ ============================================================ */+ Archify.intentTrace = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var status = document.getElementById('intent-trace-status');+ var namespace = 'http://www.w3.org/2000/svg';+ var activeId = null;+ var hoveredNode = null;+ var focusedNode = null;+ var enterTimer = null;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function finePointer() {+ return !window.matchMedia || window.matchMedia('(hover: hover) and (pointer: fine)').matches;+ }+ function reducedMotion() {+ return !!(window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches);+ }+ function blocked() {+ return html.getAttribute('data-embed') === 'true' ||+ html.getAttribute('data-guide-open') === 'true' ||+ container.classList.contains('is-panning') ||+ svg.hasAttribute('data-lens-active') ||+ svg.hasAttribute('data-relationship-preview-active') ||+ !!(Archify.routeProbe && typeof Archify.routeProbe.active === 'function' && Archify.routeProbe.active()) ||+ !!(Archify.focus && typeof Archify.focus.active === 'function' && Archify.focus.active());+ }+ function edgeShapes(edge) {+ if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function removeOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-intent-trace-overlay]'), function (overlay) {+ overlay.remove();+ });+ }+ function clear(options) {+ options = options || {};+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = null;+ activeId = null;+ svg.removeAttribute('data-intent-trace-active');+ removeOverlay();+ nodes().forEach(function (node) {+ node.removeAttribute('data-intent-trace-match');+ node.removeAttribute('data-intent-trace-selected');+ });+ edges().forEach(function (edge) { edge.removeAttribute('data-intent-trace-match'); });+ if (options.announce !== false) status.textContent = '';+ }+ function traceGeometry(shape, direction) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-intent-trace-match');+ clone.removeAttribute('data-intent-trace-selected');+ clone.setAttribute('class', 'intent-trace-flow');+ clone.setAttribute('data-direction', direction);+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function show(id, options) {+ options = options || {};+ if (!id || blocked()) {+ clear({ announce: false });+ return false;+ }+ if (activeId === id) return true;+ clear({ announce: false });+ var nodeList = nodes();+ var edgeList = edges();+ var byId = Object.create(null);+ nodeList.forEach(function (node) { byId[node.getAttribute('data-node-id')] = node; });+ var selected = byId[id];+ if (!selected) return false;++ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'intent-trace-overlay');+ overlay.setAttribute('data-intent-trace-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ var related = Object.create(null);+ var seen = {};+ var counts = { out: 0, in: 0, loop: 0 };+ related[id] = true;++ edgeList.forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (from !== id && to !== id) return;+ var direction = from === id && to === id ? 'loop' : (from === id ? 'out' : 'in');+ var key = edge.getAttribute('data-edge-key') ||+ (from + '\u0000' + to + '\u0000' + (edge.getAttribute('data-edge-label') || ''));+ if (!seen[key]) {+ seen[key] = true;+ counts[direction] += 1;+ }+ related[from] = true;+ related[to] = true;+ edge.setAttribute('data-intent-trace-match', '');+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) {+ wrapper.appendChild(traceGeometry(shape, direction));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });++ nodeList.forEach(function (node) {+ var nodeId = node.getAttribute('data-node-id');+ if (related[nodeId]) node.setAttribute('data-intent-trace-match', '');+ if (nodeId === id) node.setAttribute('data-intent-trace-selected', '');+ });+ if (overlay.childNodes.length) {+ var firstEdge = edgeList[0];+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstEdge && firstEdge.parentNode) firstEdge.parentNode.insertBefore(overlay, firstEdge);+ else if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ activeId = id;+ svg.setAttribute('data-intent-trace-active', id);+ if (options.announce === true) {+ var total = counts.out + counts.in + counts.loop;+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });+ }+ return true;+ }+ function schedule(node) {+ if (enterTimer) window.clearTimeout(enterTimer);+ enterTimer = window.setTimeout(function () {+ enterTimer = null;+ if (hoveredNode === node) show(node.getAttribute('data-node-id'), { announce: false });+ }, reducedMotion() ? 0 : 90);+ }+ function sync() {+ var candidate = focusedNode || hoveredNode;+ if (!candidate) {+ clear();+ return;+ }+ show(candidate.getAttribute('data-node-id'), { announce: candidate === focusedNode });+ }++ svg.addEventListener('pointerover', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || !finePointer() || event.pointerType === 'touch') return;+ if (event.relatedTarget && node.contains(event.relatedTarget)) return;+ hoveredNode = node;+ schedule(node);+ });+ svg.addEventListener('pointerout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (hoveredNode === node) hoveredNode = null;+ sync();+ });+ svg.addEventListener('focusin', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ focusedNode = node;+ show(node.getAttribute('data-node-id'), { announce: true });+ });+ svg.addEventListener('focusout', function (event) {+ var node = event.target.closest('[data-node-id]');+ if (!node || (event.relatedTarget && node.contains(event.relatedTarget))) return;+ if (focusedNode === node) focusedNode = null;+ sync();+ });+ container.addEventListener('pointerdown', function (event) {+ if (!event.target.closest('[data-node-id]')) clear({ announce: false });+ });+ window.addEventListener('blur', function () { clear({ announce: false }); });++ return {+ show: show,+ clear: clear,+ active: function () { return activeId; }+ };+ })();++ /* ============================================================+ Adaptive Reader Shell — one diagram across laptop and monitor.+ The canonical SVG and viewBox never change. On ordinary desktop pages,+ wide diagrams and measured intrinsic tall workflows receive enough outer width to use the available+ height without pushing summary cards below the viewport. Mobile,+ embed, presentation, print, and unmarked non-wide diagrams retain their own+ established layout contracts.+ ============================================================ */+ // Fixed script-private participants; the CLI sees only the joint wait below.+ const archifyLayoutOwners = { reader: null, viewerChrome: null };+ Archify.waitForStableLayout = function (options) {+ options = options || {};+ var maximumFrames = Math.max(1, Number(options.maximumFrames) || 240);+ var fontsReady = document.fonts && document.fonts.ready+ ? document.fonts.ready.catch(function () {})+ : Promise.resolve();+ return fontsReady.then(function () {+ if (typeof options.schedule === 'function') options.schedule();+ return new Promise(function (resolve, reject) {+ var previous = '';+ var stableFrames = 0;+ var sampledFrames = 0;+ function sample() {+ sampledFrames += 1;+ if (typeof options.pending === 'function' && options.pending()) {+ previous = '';+ stableFrames = 0;+ } else {+ var current = typeof options.snapshot === 'function' ? options.snapshot() : '';+ if (current === previous) stableFrames += 1;+ else {+ previous = current;+ stableFrames = 0;+ }+ if (stableFrames >= 3) {+ resolve({ stable: true, snapshot: current, sampledFrames: sampledFrames });+ return;+ }+ }+ if (sampledFrames >= maximumFrames) {+ reject(new Error(options.timeoutMessage || 'Layout did not reach stable dimensions.'));+ return;+ }+ requestAnimationFrame(sample);+ }+ requestAnimationFrame(sample);+ });+ });+ };++ Archify.readerLayout = (function () {+ var html = document.documentElement;+ var body = document.body;+ var shell = document.querySelector('.container');+ var diagram = document.querySelector('.diagram-container');+ var svg = diagram && diagram.querySelector(':scope > svg');+ var header = shell && shell.querySelector('.header');+ var cards = shell && shell.querySelector('.cards');+ var viewBox = svg && svg.viewBox && svg.viewBox.baseVal;+ var ratio = viewBox && viewBox.height > 0 ? viewBox.width / viewBox.height : 0;+ var measuredHeightFit = svg && svg.getAttribute('data-reader-fit') === 'intrinsic-height';+ var frame = 0;+ var settleFrame = 0;+ var lastWidth = 0;+ // Widest reader the overflow settle has accepted for this viewport (0 =+ // uncapped). Card copy rewraps as the reader narrows, so recomputing+ // from fixed heights alone would widen again and oscillate; only a+ // resize lifts the cap.+ var settledCap = 0;+ var WIDE_RATIO = 1.55;+ var MIN_DESKTOP_WIDTH = 1024;+ var MIN_READER_WIDTH = 960;+ var MAX_READER_WIDTH = 1920;+ var MIN_PROJECTED_NODE_TEXT_PX = 6;+ var declaredMinimumText = svg ? parseFloat(svg.getAttribute('data-reader-min-text') || '') : null;+ var requestedMinimumText = Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_PROJECTED_NODE_TEXT_PX, declaredMinimumText)+ : MIN_PROJECTED_NODE_TEXT_PX;+ var declaredPrimaryText = svg ? parseFloat(svg.getAttribute('data-reader-primary-text') || '') : null;+ var SAFE_BOTTOM_GAP = 12;+ // Wide viewports move summary cards beside the diagram, so the height+ // budget belongs to the diagram and spare width holds the notes.+ var RAIL_MIN_VIEWPORT = 1280;+ var RAIL_WIDTH = 288;+ var RAIL_GAP = 20;+ // A default rail must leave primary node labels comfortably readable;+ // otherwise it starts collapsed and the reader can still open it.+ var RAIL_COMFORT_PRIMARY_PX = 12;+ var railPanel = shell && shell.querySelector('.reader-rail');+ var railReveal = document.getElementById('rail-reveal');+ var railCollapse = document.getElementById('rail-collapse');+ var railPlacement = document.getElementById('rail-placement');+ var RAIL_COLLAPSED_KEY = 'archify-rail-collapsed';+ var RAIL_PLACEMENT_KEY = 'archify-rail-placement';+ // Memory is the page's source of truth; storage only carries the choice+ // to later artifacts, so a blocked or full localStorage cannot freeze it.+ var preferences = Object.create(null);+ function readPreference(key) {+ if (key in preferences) return preferences[key];+ try { return localStorage.getItem(key); } catch (_) { return null; }+ }+ function writePreference(key, value) {+ preferences[key] = value;+ try { localStorage.setItem(key, value); } catch (_) {}+ }++ if (diagram && ratio >= WIDE_RATIO) {+ diagram.setAttribute('data-wide-diagram', 'true');+ html.setAttribute('data-diagram-shape', 'wide');+ }++ function number(value) {+ var parsed = parseFloat(value);+ return Number.isFinite(parsed) ? parsed : 0;+ }+ function visible(element) {+ return Boolean(element && !element.hidden && window.getComputedStyle(element).display !== 'none');+ }+ function outerHeight(element) {+ if (!visible(element)) return 0;+ var style = window.getComputedStyle(element);+ return element.getBoundingClientRect().height + number(style.marginTop) + number(style.marginBottom);+ }+ // Smallest scale that keeps node text at the requested floor and+ // context relationship labels readable. A declared wide reader holds+ // relationship labels to the requested floor too; every other reader+ // still keeps them at the 6px hard floor the browser gate enforces, so+ // a first-screen fit can never push them below it.+ function minimumReadableScale() {+ var nodeMinimum = null;+ var edgeMinimum = null;+ var selectors = 'text[data-node-label], text[data-boundary-label], text[data-detail="context"], g[data-detail="context"] text';+ Array.from(svg.querySelectorAll(selectors)).forEach(function (text) {+ if (text.getAttribute('data-detail') === 'fine' || text.closest('[data-detail="fine"]')) return;+ var sourceFontPx = parseFloat(text.getAttribute('font-size') || '');+ if (!Number.isFinite(sourceFontPx)) return;+ var primary = text.hasAttribute('data-node-label') || text.hasAttribute('data-boundary-label');+ var context = text.getAttribute('data-detail') === 'context' || Boolean(text.closest('g[data-detail="context"]'));+ if (!primary && context && text.closest('[data-edge-from][data-edge-to]')) {+ edgeMinimum = edgeMinimum == null ? sourceFontPx : Math.min(edgeMinimum, sourceFontPx);+ } else if (primary || text.closest('[data-node-id]')) {+ nodeMinimum = nodeMinimum == null ? sourceFontPx : Math.min(nodeMinimum, sourceFontPx);+ }+ });+ var edgeTarget = measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? requestedMinimumText+ : MIN_PROJECTED_NODE_TEXT_PX;+ var scale = 0;+ if (nodeMinimum != null) scale = Math.max(scale, requestedMinimumText / nodeMinimum);+ if (edgeMinimum != null) scale = Math.max(scale, edgeTarget / edgeMinimum);+ return scale > 0 ? Math.min(1, scale) : 1;+ }+ var sourcePrimary = null;+ if (svg) Array.from(svg.querySelectorAll('text[data-node-label]')).forEach(function (text) {+ var size = parseFloat(text.getAttribute('font-size') || '');+ if (Number.isFinite(size) && size > 0) sourcePrimary = sourcePrimary == null ? size : Math.max(sourcePrimary, size);+ });+ // SVG width at which the largest node label renders at targetPx. Every+ // renderer writes label font sizes, so the rail comfort check works for+ // all diagram types; only the renderer-declared floor needs metadata.+ function labelWidth(targetPx) {+ return sourcePrimary == null || !viewBox ? 0 : viewBox.width * targetPx / sourcePrimary;+ }+ function primaryReadingWidth() {+ if (!measuredHeightFit || !Number.isFinite(declaredPrimaryText) || declaredPrimaryText <= 0) return 0;+ // Primary labels should remain comfortable to read when cards or+ // auxiliary rows make a one-screen fit too small. Ordinary page+ // scroll preserves that reading size; viewport width still caps it.+ // A long title may already use a smaller fitted font. Preserve that+ // hierarchy rather than enlarging every other node to compensate.+ return labelWidth(declaredPrimaryText);+ }+ function eligible() {+ return Boolean(+ shell && diagram && svg && (ratio >= WIDE_RATIO || measuredHeightFit) &&+ window.innerWidth >= MIN_DESKTOP_WIDTH &&+ html.getAttribute('data-embed') !== 'true' &&+ html.getAttribute('data-present') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches)+ );+ }+ function clear() {+ html.style.removeProperty('--archify-reader-width');+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ html.removeAttribute('data-reader-layout');+ html.removeAttribute('data-reader-overflow');+ setRail(false);+ lastWidth = 0;+ settledCap = 0;+ }+ // Rail modes: "true" docks beside the diagram, "collapsed" leaves only the+ // reveal control, "overlay" opens a drawer when docking would break the+ // readable floor, and "bottom" stacks notes and index below the diagram.+ function setRail(mode) {+ if (mode) {+ html.setAttribute('data-reader-rail', mode);+ html.style.setProperty('--archify-rail-width', RAIL_WIDTH + 'px');+ html.style.setProperty('--archify-rail-gap', RAIL_GAP + 'px');+ } else {+ html.removeAttribute('data-reader-rail');+ html.style.removeProperty('--archify-rail-width');+ html.style.removeProperty('--archify-rail-gap');+ }+ if (railReveal) railReveal.hidden = mode !== 'collapsed';+ if (railCollapse) {+ railCollapse.hidden = mode !== 'true' && mode !== 'overlay';+ railCollapse.setAttribute('aria-expanded', String(mode === 'true' || mode === 'overlay'));+ }+ if (railPlacement) {+ railPlacement.hidden = !mode || mode === 'collapsed' || (mode === 'bottom' && window.innerWidth < RAIL_MIN_VIEWPORT);+ railPlacement.setAttribute('data-placement', mode === 'bottom' ? 'bottom' : 'right');+ railPlacement.setAttribute('aria-label', viewerText(mode === 'bottom' ? 'viewer.rail.right' : 'viewer.rail.bottom'));+ railPlacement.title = railPlacement.getAttribute('aria-label');+ }+ }+ var outline = document.getElementById('node-outline');+ function hasCards() {+ return Boolean((cards && cards.children.length && !cards.hidden) || (outline && !outline.hidden));+ }+ // Bottom notes and index are reading material below the fold: the first+ // screen belongs to the interactive diagram and its controls.+ function belowFold() {+ return html.getAttribute('data-reader-rail') === 'bottom' ? outerHeight(railPanel) : 0;+ }+ // A docked rail may run past a short diagram down to the viewport floor,+ // so the index uses that space instead of scrolling inside the diagram's+ // height; it never pushes the page into overflow.+ function fitDockedRail() {+ if (html.getAttribute('data-reader-rail') !== 'true' || !railPanel) return;+ var top = railPanel.getBoundingClientRect().top + window.scrollY;+ var floor = window.innerHeight - number(window.getComputedStyle(body).paddingBottom) - top;+ html.style.setProperty('--archify-rail-max', Math.max(diagram.getBoundingClientRect().height, floor) + 'px');+ }+ function chromeMetrics() {+ var bodyStyle = window.getComputedStyle(body);+ var diagramStyle = window.getComputedStyle(diagram);+ return {+ bodyX: number(bodyStyle.paddingLeft) + number(bodyStyle.paddingRight),+ bodyY: number(bodyStyle.paddingTop) + number(bodyStyle.paddingBottom),+ diagramX: number(diagramStyle.paddingLeft) + number(diagramStyle.paddingRight) ++ number(diagramStyle.borderLeftWidth) + number(diagramStyle.borderRightWidth),+ diagramY: number(diagramStyle.paddingTop) + number(diagramStyle.paddingBottom) ++ number(diagramStyle.borderTopWidth) + number(diagramStyle.borderBottomWidth)+ };+ }+ // `width` is the diagram's reading width. The page shell never narrows+ // below the desktop reader floor, so a narrow, tall diagram keeps a+ // usable header, toolbar, and controls; its SVG is centred instead.+ function applyWidth(width, minWidth) {+ var rounded = Math.max(Math.ceil(minWidth || 0), Math.round(width));+ if (Math.abs(rounded - lastWidth) < 1) return false;+ lastWidth = rounded;+ var shellFloor = Math.min(MIN_READER_WIDTH, Math.max(0, window.innerWidth - chromeMetrics().bodyX));+ html.style.setProperty('--archify-reader-width', Math.max(rounded, shellFloor) + 'px');+ if (rounded < shellFloor) {+ // `rounded` already includes a docked rail and its gap; the SVG cap+ // is only the diagram's share, not the space beside it.+ var railShare = html.getAttribute('data-reader-rail') === 'true' ? RAIL_WIDTH + RAIL_GAP : 0;+ html.style.setProperty('--archify-diagram-max-width', Math.max(1, rounded - railShare - chromeMetrics().diagramX) + 'px');+ html.setAttribute('data-reader-narrow', 'true');+ } else {+ html.style.removeProperty('--archify-diagram-max-width');+ html.removeAttribute('data-reader-narrow');+ }+ html.setAttribute('data-reader-layout', 'adaptive');+ return true;+ }+ function settleOverflow(minWidth) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ if (!eligible() || !lastWidth) return;+ fitDockedRail();+ var overflow = Math.max(+ document.documentElement.scrollHeight,+ document.body.scrollHeight+ ) - window.innerHeight - belowFold();+ if (overflow > 1 && lastWidth > Math.ceil(minWidth)) {+ applyWidth(Math.max(minWidth, lastWidth - overflow * ratio - 4), minWidth);+ settledCap = lastWidth;+ html.setAttribute('data-reader-overflow', 'reduced');+ } else if (overflow > 1) {+ html.setAttribute('data-reader-overflow', 'authored');+ } else {+ html.removeAttribute('data-reader-overflow');+ }+ });+ }+ function measure() {+ frame = 0;+ if (!eligible()) {+ clear();+ return null;+ }+ var chrome = chromeMetrics();+ var viewportCap = Math.max(0, window.innerWidth - chrome.bodyX);+ var readableWidth = viewBox && viewBox.width > 0+ ? viewBox.width * minimumReadableScale() + chrome.diagramX+ : MIN_READER_WIDTH;+ var maxWidth = Math.min(MAX_READER_WIDTH, viewportCap);+ var readableMinimumWidth = measuredHeightFit && ratio < WIDE_RATIO+ ? readableWidth+ : measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)+ ? Math.max(MIN_READER_WIDTH, readableWidth)+ : MIN_READER_WIDTH;+ var minWidth;+ if (measuredHeightFit && ratio < WIDE_RATIO) {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ } else if (measuredHeightFit && ratio >= WIDE_RATIO && Number.isFinite(declaredMinimumText)) {+ minWidth = Math.min(readableMinimumWidth, maxWidth);+ } else {+ minWidth = Math.min(readableMinimumWidth, viewportCap);+ }+ var primaryWidth = primaryReadingWidth();+ var railExtra = RAIL_WIDTH + RAIL_GAP;+ var mode = null;+ // Notes default below the diagram; the right rail is the reader's+ // opt-in and needs a wide viewport.+ if (hasCards() && (readPreference(RAIL_PLACEMENT_KEY) !== 'right' || window.innerWidth < RAIL_MIN_VIEWPORT)) {+ mode = 'bottom';+ } else if (hasCards()) {+ var fitsReadable = readableMinimumWidth + railExtra <= maxWidth;+ var comfortWidth = labelWidth(RAIL_COMFORT_PRIMARY_PX);+ var comfortable = fitsReadable && (!comfortWidth || comfortWidth + chrome.diagramX + railExtra <= maxWidth);+ var collapsedPreference = readPreference(RAIL_COLLAPSED_KEY);+ if (collapsedPreference === '1' || (collapsedPreference !== '0' && !comfortable)) mode = 'collapsed';+ else mode = fitsReadable ? 'true' : 'overlay';+ }+ // With notes below the fold, the first screen belongs to the whole+ // diagram and its controls: it may shrink past the comfortable primary+ // size down to the renderer's readable text floor, and zoom restores+ // detail. Only a graph taller than that floor allows still scrolls.+ if (mode === 'bottom') primaryWidth = 0;+ if (primaryWidth > 0) minWidth = Math.max(minWidth, Math.min(maxWidth, primaryWidth + chrome.diagramX));+ var docked = mode === 'true';+ setRail(mode);+ chrome = chromeMetrics();+ if (docked) minWidth = Math.min(maxWidth, minWidth + railExtra);+ var stackedBelow = mode === 'bottom' ? 0 : docked ? 0 : outerHeight(cards);+ var fixedHeight = chrome.bodyY + chrome.diagramY + SAFE_BOTTOM_GAP ++ outerHeight(header) + stackedBelow;+ var availableSvgHeight = Math.max(1, window.innerHeight - fixedHeight);+ var desiredWidth = availableSvgHeight * ratio + chrome.diagramX + (docked ? railExtra : 0);+ var width = Math.max(minWidth, Math.min(maxWidth, desiredWidth, settledCap || desiredWidth));+ applyWidth(width, minWidth);+ settleOverflow(minWidth);+ return {+ ratio: ratio,+ width: lastWidth,+ availableSvgHeight: Math.round(availableSvgHeight),+ fixedHeight: Math.round(fixedHeight)+ };+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var shellRect = shell ? shell.getBoundingClientRect() : { width: 0, height: 0 };+ var diagramRect = diagram ? diagram.getBoundingClientRect() : { width: 0, height: 0 };+ return [+ lastWidth,+ html.getAttribute('data-reader-layout') || '',+ html.getAttribute('data-reader-overflow') || '',+ Math.ceil(document.documentElement.scrollWidth),+ Math.ceil(document.documentElement.scrollHeight),+ Math.ceil(document.body.scrollWidth),+ Math.ceil(document.body.scrollHeight),+ Math.round(shellRect.width * 100) / 100,+ Math.round(shellRect.height * 100) / 100,+ Math.round(diagramRect.width * 100) / 100,+ Math.round(diagramRect.height * 100) / 100+ ].join('|');+ }+ function layoutPending() { return Boolean(frame || settleFrame); }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: layoutPending,+ snapshot: stableSnapshot,+ timeoutMessage: 'Adaptive reader layout did not reach stable dimensions.'+ });+ }+ archifyLayoutOwners.reader = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };++ window.addEventListener('resize', function () {+ settledCap = 0;+ schedule();+ }, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(schedule).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [header, cards].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(schedule);+ if (cards) contentObserver.observe(cards, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, { attributes: true, attributeFilter: ['data-embed', 'data-present'] });+ }+ // Reader choices persist across artifacts; a resize-style remeasure+ // applies them without reloading.+ function chooseRail(key, value) {+ writePreference(key, value);+ settledCap = 0;+ schedule();+ }+ function collapseRail() {+ chooseRail(RAIL_COLLAPSED_KEY, '1');+ if (railReveal) requestAnimationFrame(function () { try { railReveal.focus({ preventScroll: true }); } catch (_) {} });+ }+ if (railReveal) railReveal.addEventListener('click', function () { chooseRail(RAIL_COLLAPSED_KEY, '0'); });+ if (railCollapse) railCollapse.addEventListener('click', collapseRail);+ if (railPlacement) railPlacement.addEventListener('click', function () {+ var toBottom = html.getAttribute('data-reader-rail') !== 'bottom';+ if (!toBottom) writePreference(RAIL_COLLAPSED_KEY, '0');+ chooseRail(RAIL_PLACEMENT_KEY, toBottom ? 'bottom' : 'right');+ });+ document.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' && html.getAttribute('data-reader-rail') === 'overlay') collapseRail();+ });+ document.addEventListener('pointerdown', function (event) {+ if (html.getAttribute('data-reader-rail') !== 'overlay' || !railPanel) return;+ if (!railPanel.contains(event.target) && !(railReveal && railReveal.contains(event.target))) chooseRail(RAIL_COLLAPSED_KEY, '1');+ });+ if (typeof ResizeObserver === 'function' && railPanel) new ResizeObserver(schedule).observe(railPanel);+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ whenStable: whenStable,+ active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },+ receipt: function () { return { ratio: ratio, width: lastWidth }; }+ };+ })();++ /* ============================================================+ Viewer Chrome Layout — keep HTML controls clear of the canonical SVG+ stage without changing authored geometry. The dock keeps its floating+ appearance while a small bottom stage rail becomes part of the reader+ budget whenever its zero-reserve position would enter the stage.+ ============================================================ */+ Archify.viewerChromeLayout = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container && container.querySelector(':scope > svg');+ var nav = container && container.querySelector('.diagram-nav');+ var legend = svg && svg.querySelector('[data-legend]');+ var frame = 0;+ var settleFrame = 0;+ var reserve = 0;+ var railLatched = false;+ var probingBaseline = false;+ var probePromise = null;+ var baselineIntersectionArea = 0;+ var baselineStageGap = null;+ var restorableReserve = 0;+ var probeFallbackReserve = 0;+ var lastReceipt = null;+ var SAFE_GAP = 10;++ function visible(element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ }+ function usable(rect) {+ return Boolean(rect && rect.width > 0 && rect.height > 0);+ }+ function intersectionArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function protectedStageRect() {+ if (!svg) return null;+ var rect = svg.getBoundingClientRect();+ var transform = '';+ try { transform = window.getComputedStyle(svg).transform || ''; } catch (_) {}+ var scaleX = 1;+ var scaleY = 1;+ var translateX = 0;+ var translateY = 0;+ var matrix = transform.match(/^matrix\(([^)]+)\)$/);+ var matrix3d = transform.match(/^matrix3d\(([^)]+)\)$/);+ if (matrix) {+ var values = matrix[1].split(',').map(Number);+ if (values.length === 6 && values.every(Number.isFinite)) {+ scaleX = Math.abs(values[0]) || 1;+ scaleY = Math.abs(values[3]) || 1;+ translateX = values[4];+ translateY = values[5];+ }+ } else if (matrix3d) {+ var values3d = matrix3d[1].split(',').map(Number);+ if (values3d.length === 16 && values3d.every(Number.isFinite)) {+ scaleX = Math.abs(values3d[0]) || 1;+ scaleY = Math.abs(values3d[5]) || 1;+ translateX = values3d[12];+ translateY = values3d[13];+ }+ }+ var width = rect.width / scaleX;+ var height = rect.height / scaleY;+ var left = rect.left - translateX;+ var top = rect.top - translateY;+ return {+ x: left,+ y: top,+ left: left,+ top: top,+ right: left + width,+ bottom: top + height,+ width: width,+ height: height+ };+ }+ function eligible() {+ return Boolean(+ container && svg && nav &&+ window.innerWidth > 720 &&+ html.getAttribute('data-embed') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches) &&+ visible(nav)+ );+ }+ function cameraAtBaseline() {+ var scale = Number(svg && svg.getAttribute('data-view-scale'));+ return !Number.isFinite(scale) || Math.abs(scale - 1) < 0.001;+ }+ function writeReserve(next, options) {+ options = options || {};+ next = Math.max(0, Math.ceil(next));+ if (Math.abs(next - reserve) < 1) return false;+ reserve = next;+ if (reserve) {+ if (options.remember !== false) restorableReserve = reserve;+ container.style.setProperty('--archify-nav-reserve', reserve + 'px');+ container.setAttribute('data-nav-stage-rail', 'true');+ html.setAttribute('data-nav-stage-rail', 'true');+ } else {+ container.style.removeProperty('--archify-nav-reserve');+ container.removeAttribute('data-nav-stage-rail');+ html.removeAttribute('data-nav-stage-rail');+ }+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') {+ Archify.readerLayout.schedule();+ }+ if (options.quiet !== true) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ schedule();+ });+ }+ return true;+ }+ function clear(options) {+ options = options || {};+ railLatched = false;+ if (options.preserveBaseline !== true) {+ baselineIntersectionArea = 0;+ baselineStageGap = null;+ restorableReserve = 0;+ }+ writeReserve(0, { quiet: probingBaseline });+ lastReceipt = {+ eligible: false,+ active: false,+ reserve: 0,+ gap: SAFE_GAP,+ baselineStageGap: null,+ stageGap: null,+ stageIntersectionArea: 0,+ baselineIntersectionArea: 0,+ intersectionArea: 0+ };+ return lastReceipt;+ }+ /* When the stage runs below the viewport, the dock lifts to the viewport+ floor so its controls stay reachable while reading. Stage-rail+ decisions and receipts use its resting position, so the lift never+ feeds back into layout. */+ var lift = 0;+ var liftFrame = 0;+ function restingNavRect() {+ var rect = nav.getBoundingClientRect();+ if (!lift) return rect;+ return { x: rect.x, y: rect.y + lift, left: rect.left, right: rect.right, top: rect.top + lift, bottom: rect.bottom + lift, width: rect.width, height: rect.height };+ }+ function updateLift() {+ liftFrame = 0;+ var next = 0;+ if (eligible()) {+ var rest = restingNavRect();+ var box = container.getBoundingClientRect();+ next = Math.round(Math.max(0, Math.min(rest.bottom - (window.innerHeight - 16), rest.top - box.top - 16)));+ }+ if (next === lift) return;+ lift = next;+ if (lift) container.style.setProperty('--archify-dock-lift', lift + 'px');+ else container.style.removeProperty('--archify-dock-lift');+ }+ function scheduleLift() {+ if (!liftFrame) liftFrame = requestAnimationFrame(updateLift);+ }+ function measure() {+ frame = 0;+ scheduleLift();+ if (probingBaseline) return null;+ if (!eligible()) return clear({ preserveBaseline: !cameraAtBaseline() });++ /* Camera transforms enlarge and translate authored paint inside the+ fixed, clipped root SVG viewport. They must not redefine the+ reader's baseline rail.+ Restore that baseline after temporary mobile/embed/print states.+ Camera Reset preserves the established rail while viewport, mode,+ and content changes remain responsible for baseline reprobes. */+ if (!cameraAtBaseline()) {+ if (reserve === 0 && restorableReserve > 0) {+ if (writeReserve(restorableReserve)) return null;+ }+ var cameraNavRect = restingNavRect();+ var cameraLegendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ var cameraStageRect = protectedStageRect();+ var cameraIntersectionArea = usable(cameraLegendRect) && intersectionArea(cameraNavRect, cameraStageRect) > 0+ ? intersectionArea(cameraNavRect, cameraLegendRect)+ : 0;+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineStageGap: baselineStageGap == null ? null : Math.round(baselineStageGap * 100) / 100,+ stageGap: Math.round((cameraNavRect.top - cameraStageRect.bottom) * 100) / 100,+ stageIntersectionArea: Math.round(intersectionArea(cameraNavRect, cameraStageRect) * 100) / 100,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round(cameraIntersectionArea * 100) / 100+ };+ return lastReceipt;+ }++ var navRect = restingNavRect();+ var legendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ var stageRect = protectedStageRect();+ if (!usable(navRect) || !usable(stageRect)) return clear();++ var actualIntersectionArea = usable(legendRect) ? intersectionArea(navRect, legendRect) : 0;+ var stageGap = navRect.top - stageRect.bottom;+ if (!railLatched && reserve === 0) {+ baselineIntersectionArea = actualIntersectionArea;+ baselineStageGap = stageGap;+ if (stageGap < SAFE_GAP) {+ railLatched = true;+ if (writeReserve(Math.max(0, SAFE_GAP - stageGap))) return null;+ }+ } else if (railLatched && reserve > 0 && stageGap < SAFE_GAP) {+ /* Keep the decision latched while Adaptive Reader incorporates the+ rail. Presentation and rounded layout values can require one+ bounded follow-up before the full stage gap is established. */+ var remaining = Math.max(1, SAFE_GAP - stageGap);+ if (writeReserve(reserve + remaining)) return null;+ }++ navRect = restingNavRect();+ legendRect = visible(legend) ? legend.getBoundingClientRect() : null;+ stageRect = protectedStageRect();+ stageGap = navRect.top - stageRect.bottom;+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineStageGap: baselineStageGap == null ? null : Math.round(baselineStageGap * 100) / 100,+ stageGap: Math.round(stageGap * 100) / 100,+ stageIntersectionArea: Math.round(intersectionArea(navRect, stageRect) * 100) / 100,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round((usable(legendRect) ? intersectionArea(navRect, legendRect) : 0) * 100) / 100+ };+ return lastReceipt;+ }+ function reprobe() {+ if (probingBaseline) return probePromise || Promise.resolve(false);+ if (!cameraAtBaseline()) {+ schedule();+ return Promise.resolve(false);+ }+ if (!reserve && !railLatched && !restorableReserve) {+ schedule();+ return Promise.resolve(false);+ }+ probeFallbackReserve = restorableReserve || reserve;+ probingBaseline = true;+ railLatched = false;+ baselineIntersectionArea = 0;+ baselineStageGap = null;+ restorableReserve = 0;+ writeReserve(0, { quiet: true });+ var readerReady = Archify.readerLayout && typeof Archify.readerLayout.whenStable === 'function'+ ? Archify.readerLayout.whenStable().catch(function () {})+ : Promise.resolve();+ probePromise = readerReady.then(function () {+ probingBaseline = false;+ probePromise = null;+ if (!cameraAtBaseline() && probeFallbackReserve > 0) {+ restorableReserve = probeFallbackReserve;+ }+ probeFallbackReserve = 0;+ schedule();+ return true;+ });+ return probePromise;+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var containerRect = container ? container.getBoundingClientRect() : { width: 0, height: 0 };+ var navRect = nav ? restingNavRect() : { top: 0, left: 0 };+ var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };+ return [+ reserve,+ Math.round(containerRect.width * 100) / 100,+ Math.round(containerRect.height * 100) / 100,+ Math.round(navRect.left * 100) / 100,+ Math.round(navRect.top * 100) / 100,+ Math.round(legendRect.left * 100) / 100,+ Math.round(legendRect.top * 100) / 100,+ railLatched ? 'latched' : 'clear',+ lastReceipt ? lastReceipt.stageGap : ''+ ].join('|');+ }+ function layoutPending() { return Boolean(frame || settleFrame || probingBaseline); }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: layoutPending,+ snapshot: stableSnapshot,+ timeoutMessage: 'Viewer chrome layout did not reach stable dimensions.'+ });+ }+ archifyLayoutOwners.viewerChrome = { schedule: schedule, pending: layoutPending, snapshot: stableSnapshot };++ window.addEventListener('resize', reprobe, { passive: true });+ window.addEventListener('scroll', scheduleLift, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', schedule);+ window.addEventListener('afterprint', reprobe);+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(reprobe).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [nav, svg, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(function (records) {+ // A theme switch changes paint, not the stage geometry. Reprobing+ // drops the bottom rail for several frames and makes the diagram jump.+ var viewerModeChanged = records.some(function (record) {+ return record.target === html && record.attributeName !== 'data-theme';+ });+ if (viewerModeChanged) reprobe();+ else schedule();+ });+ if (legend) contentObserver.observe(legend, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, {+ attributes: true,+ attributeFilter: ['data-embed', 'data-present', 'data-preset', 'data-theme']+ });+ }+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ reprobe: reprobe,+ whenStable: whenStable,+ stageRect: protectedStageRect,+ dockRect: function () { return nav ? restingNavRect() : null; },+ active: function () { return reserve > 0; },+ receipt: function () { return lastReceipt || measure(); }+ };+ })();++ Archify.layoutStability = {+ whenStable: function () {+ var reader = archifyLayoutOwners.reader;+ var chrome = archifyLayoutOwners.viewerChrome;+ if (!reader || !chrome) {+ return Promise.reject(new Error('Joint layout owners are unavailable.'));+ }+ var observedFontsReady = document.fonts && document.fonts.ready;+ var fontCyclePending = false;+ var fontGeneration = 0;+ function scheduleOwners() { reader.schedule(); chrome.schedule(); }+ function fontsPending() {+ var fonts = document.fonts;+ var ready = fonts && fonts.ready;+ if (ready && (ready !== observedFontsReady || (fonts.status === 'loading' && !fontCyclePending))) {+ observedFontsReady = ready;+ fontCyclePending = true;+ var generation = ++fontGeneration;+ ready.catch(function () {}).then(function () {+ if (generation !== fontGeneration) return;+ fontCyclePending = false;+ scheduleOwners();+ });+ }+ return fontCyclePending || Boolean(fonts && fonts.status === 'loading');+ }+ return Archify.waitForStableLayout({+ maximumFrames: 960,+ schedule: scheduleOwners,+ pending: function () {+ // Recapture readiness for font cycles that begin during sampling.+ return fontsPending() || reader.pending() || chrome.pending();+ },+ snapshot: function () {+ return JSON.stringify([+ ['reader', reader.snapshot()],+ ['viewerChrome', chrome.snapshot()]+ ]);+ },+ timeoutMessage: 'Joint reader and viewer chrome layout did not reach stable dimensions.'+ });+ }+ };+ Archify.view = (function () {+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var outBtn = container.querySelector('[data-view="out"]');+ var resetBtn = container.querySelector('[data-view="reset"]');+ var resetDetailLabel = resetBtn.querySelector('[data-view-detail]');+ var resetPercentLabel = resetBtn.querySelector('[data-view-percent]');+ var inBtn = container.querySelector('[data-view="in"]');+ var state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ var drag = null;+ var cameraTimer = null;+ var cameraFrame = null;+ var cameraGeneration = 0;+ var cameraTransaction = null;+ var clipFrame = 0;+ var resizeFrame = 0;+ var autoScrollUntil = 0;++ var viewBox = svg.viewBox && svg.viewBox.baseVal;++ function clamp() {+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ state.x = Math.min(0, Math.max(width - width * state.scale, state.x));+ state.y = Math.min(0, Math.max(height - height * state.scale, state.y));+ }+ function reducedMotion() {+ return window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;+ }+ function contentMetrics() {+ if (!viewBox || viewBox.width <= 0 || viewBox.height <= 0) return null;+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ var scale = Math.min(width / viewBox.width, height / viewBox.height);+ return {+ width: width,+ height: height,+ scale: scale,+ offsetX: (width - viewBox.width * scale) / 2,+ offsetY: (height - viewBox.height * scale) / 2+ };+ }+ function logicalViewport() {+ var metrics = contentMetrics();+ if (!metrics) return null;+ var x;+ var y;+ var width;+ var height;+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ x = viewBox.x + container.scrollLeft / metrics.scale;+ y = viewBox.y;+ width = Math.min(viewBox.width, Math.max(1, container.clientWidth / metrics.scale));+ height = viewBox.height;+ } else {+ x = viewBox.x + ((-state.x / state.scale) - metrics.offsetX) / metrics.scale;+ y = viewBox.y + ((-state.y / state.scale) - metrics.offsetY) / metrics.scale;+ width = Math.min(viewBox.width, metrics.width / state.scale / metrics.scale);+ height = Math.min(viewBox.height, metrics.height / state.scale / metrics.scale);+ }+ width = Math.max(1, Math.min(viewBox.width, width));+ height = Math.max(1, Math.min(viewBox.height, height));+ x = Math.max(viewBox.x, Math.min(viewBox.x + viewBox.width - width, x));+ y = Math.max(viewBox.y, Math.min(viewBox.y + viewBox.height - height, y));+ return { x: x, y: y, width: width, height: height, scale: state.scale };+ }+ function detailLevel() {+ if (state.mode === 'semantic') return 'full';+ if (state.scale >= 1.75) return 'full';+ if (state.scale >= 1) return 'read';+ return 'map';+ }+ function renderControls() {+ var semantic = state.mode === 'semantic' && state.scale > 1.01;+ var detail = detailLevel();+ var percent = Math.round(state.scale * 100) + '%';+ var levelLabel = viewerText('viewer.nav.level.' + detail);+ var detailHint = detail === 'map'+ ? viewerText('viewer.nav.detail.map')+ : detail === 'read'+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';+ if (resetDetailLabel) {+ resetDetailLabel.textContent = resolvedLevel;+ resetDetailLabel.hidden = !showDetailLevel;+ }+ if (resetPercentLabel) resetPercentLabel.textContent = percent;+ resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));+ resetBtn.setAttribute('data-detail-level', detail);+ container.setAttribute('data-detail-level', detail);+ container.setAttribute('data-camera-mode', state.mode);+ container.setAttribute('data-camera-indicator', semantic ? 'true' : 'false');+ }+ function clipToViewport(camera) {+ camera = camera || state;+ if (camera.scale <= 1.001) {+ svg.style.removeProperty('clip-path');+ return;+ }+ var width = svg.clientWidth || 1;+ var height = svg.clientHeight || 1;+ var scale = camera.scale;+ var top = Math.max(0, Math.min(height, -camera.y / scale));+ var left = Math.max(0, Math.min(width, -camera.x / scale));+ var right = Math.max(0, Math.min(width, width - (width - camera.x) / scale));+ var bottom = Math.max(0, Math.min(height, height - (height - camera.y) / scale));+ svg.style.clipPath = 'inset(' + [top, right, bottom, left].map(function (value) {+ return Math.round(value * 1000) / 1000 + 'px';+ }).join(' ') + ')';+ }+ function cameraSettled(rendered) {+ return Math.abs(rendered.scale - state.scale) < 0.001 &&+ Math.abs(rendered.x - state.x) < 0.05 &&+ Math.abs(rendered.y - state.y) < 0.05;+ }+ function syncViewportClip() {+ if (clipFrame) cancelAnimationFrame(clipFrame);+ clipFrame = 0;+ function sample() {+ clipFrame = 0;+ var rendered = sampleRenderedState();+ clipToViewport(rendered);+ if (!cameraSettled(rendered)) clipFrame = requestAnimationFrame(sample);+ }+ sample();+ }+ function apply() {+ clamp();+ svg.style.transform = 'translate(' + state.x + 'px,' + state.y + 'px) scale(' + state.scale + ')';+ syncViewportClip();+ renderControls();+ outBtn.disabled = state.scale <= 1;+ inBtn.disabled = state.scale >= 3;+ container.classList.toggle('is-pannable', state.scale > 1);+ svg.setAttribute('data-view-scale', String(state.scale));+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {+ Archify.viewerChromeLayout.schedule();+ }+ }+ function sampleRenderedState() {+ var transform = '';+ try { transform = getComputedStyle(svg).transform || ''; } catch (_) {}+ var match = transform.match(/^matrix\(([^)]+)\)$/);+ if (!match) return { scale: state.scale, x: state.x, y: state.y, mode: state.mode };+ var values = match[1].split(',').map(Number);+ if (values.length !== 6 || !values.every(Number.isFinite)) {+ return { scale: state.scale, x: state.x, y: state.y, mode: state.mode };+ }+ return { scale: values[0], x: values[4], y: values[5], mode: state.mode };+ }+ function finishCameraTransaction(transaction, outcome) {+ if (!transaction || transaction.settled) return false;+ transaction.settled = true;+ transaction.state = outcome || 'complete';+ if (transaction.frame) cancelAnimationFrame(transaction.frame);+ if (transaction.timer) clearTimeout(transaction.timer);+ transaction.frame = null;+ transaction.timer = null;+ if (cameraTransaction === transaction) cameraTransaction = null;+ cameraFrame = null;+ cameraTimer = null;+ container.classList.remove('is-camera-moving');+ container.classList.remove('is-camera-transaction');+ container.removeAttribute('data-camera-transaction');+ if (Archify.focus && Archify.focus.reposition) Archify.focus.reposition();+ transaction.resolve({ id: transaction.id, state: transaction.state });+ return true;+ }+ function cameraReceipt(target, options) {+ var resolver;+ var transaction = {+ id: ++cameraGeneration,+ state: 'running',+ target: target,+ settled: false,+ frame: null,+ timer: null,+ finished: new Promise(function (resolve) { resolver = resolve; }),+ resolve: resolver,+ cancel: function (reason, commitTarget) {+ if (transaction.settled) return false;+ if (commitTarget && transaction.target) {+ if (Object.prototype.hasOwnProperty.call(transaction.target, 'scrollLeft')) {+ container.scrollLeft = transaction.target.scrollLeft;+ } else {+ state = {+ scale: transaction.target.scale,+ x: transaction.target.x,+ y: transaction.target.y,+ mode: transaction.target.mode+ };+ apply();+ }+ }+ return finishCameraTransaction(transaction, reason || 'cancelled');+ }+ };+ return transaction;+ }+ function stopCameraMotion(reason, commitTarget) {+ if (cameraTransaction && !cameraTransaction.settled) {+ cameraTransaction.cancel(reason || 'cancelled', commitTarget === true);+ return;+ }+ if (cameraTimer) clearTimeout(cameraTimer);+ if (cameraFrame) cancelAnimationFrame(cameraFrame);+ cameraTimer = null;+ cameraFrame = null;+ container.classList.remove('is-camera-moving');+ container.classList.remove('is-camera-transaction');+ container.removeAttribute('data-camera-transaction');+ }+ function interruptCamera(reason) {+ var rendered = sampleRenderedState();+ stopCameraMotion(reason || 'manual', false);+ state = rendered;+ state.mode = 'manual';+ apply();+ renderControls();+ if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: reason || 'manual' });+ }+ }+ function zoom(next, options) {+ options = options || {};+ if (options.manual !== false) interruptCamera();+ var previous = state.scale;+ next = Math.max(1, Math.min(3, Math.round(next * 4) / 4));+ if (next === previous) return;+ var centerX = (svg.clientWidth || 1) / 2;+ var centerY = (svg.clientHeight || 1) / 2;+ var contentX = (centerX - state.x) / previous;+ var contentY = (centerY - state.y) / previous;+ state.scale = next;+ state.x = centerX - contentX * next;+ state.y = centerY - contentY * next;+ apply();+ }+ function reset(options) {+ options = options || {};+ if (options.automatic !== true) interruptCamera();+ else stopCameraMotion('reset', false);+ state = { scale: 1, x: 0, y: 0, mode: 'overview' };+ apply();+ }+ function centerAt(logicalX, logicalY, options) {+ options = options || {};+ logicalX = Number(logicalX);+ logicalY = Number(logicalY);+ var metrics = contentMetrics();+ if (!metrics || !Number.isFinite(logicalX) || !Number.isFinite(logicalY)) return false;+ interruptCamera();+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram')) {+ state.scale = 1;+ state.x = 0;+ state.y = 0;+ state.mode = 'manual';+ apply();+ var mobileTarget = (logicalX - viewBox.x) * metrics.scale - container.clientWidth / 2;+ mobileTarget = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, mobileTarget));+ autoScrollUntil = Date.now() + 80;+ try { container.scrollTo({ left: mobileTarget, behavior: options.instant ? 'auto' : 'smooth' }); }+ catch (_) { container.scrollLeft = mobileTarget; }+ return true;+ }+ var minimumScale = Math.max(1, Math.min(3, Number(options.minimumScale) || 1));+ var requestedScale = Number(options.scale);+ state.scale = Math.max(minimumScale, Math.min(3, Number.isFinite(requestedScale) ? requestedScale : state.scale));+ var contentX = metrics.offsetX + (logicalX - viewBox.x) * metrics.scale;+ var contentY = metrics.offsetY + (logicalY - viewBox.y) * metrics.scale;+ state.x = metrics.width / 2 - contentX * state.scale;+ state.y = metrics.height / 2 - contentY * state.scale;+ state.mode = 'manual';+ apply();+ if (Archify.focus && Archify.focus.reposition) Archify.focus.reposition();+ return true;+ }+ function semanticIds(ids, includeNeighbors) {+ var seeds = Object.create(null);+ var wanted = Object.create(null);+ (ids || []).forEach(function (id) { seeds[id] = true; wanted[id] = true; });+ if (includeNeighbors) {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (seeds[from] || seeds[to]) { wanted[from] = true; wanted[to] = true; }+ });+ }+ return wanted;+ }+ function boxesFor(ids, includeNeighbors) {+ var wanted = semanticIds(ids, includeNeighbors);+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'))+ .filter(function (node) { return wanted[node.getAttribute('data-node-id')]; })+ .map(function (node) {+ try { return node.getBBox(); } catch (_) { return null; }+ })+ .filter(Boolean);+ }+ function frameDesktop(ids, options) {+ options = options || {};+ var boxes = boxesFor(ids, options.includeNeighbors === true);+ if (!boxes.length || !viewBox || viewBox.width <= 0 || viewBox.height <= 0) return false;+ var svgWidth = svg.clientWidth || 1;+ var svgHeight = svg.clientHeight || 1;+ var contentScale = Math.min(svgWidth / viewBox.width, svgHeight / viewBox.height);+ var contentOffsetX = (svgWidth - viewBox.width * contentScale) / 2;+ var contentOffsetY = (svgHeight - viewBox.height * contentScale) / 2;+ var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));+ var minY = Math.min.apply(Math, boxes.map(function (box) { return box.y; }));+ var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));+ var maxY = Math.max.apply(Math, boxes.map(function (box) { return box.y + box.height; }));+ var bounds = {+ x: contentOffsetX + (minX - viewBox.x) * contentScale,+ y: contentOffsetY + (minY - viewBox.y) * contentScale,+ width: Math.max(1, (maxX - minX) * contentScale),+ height: Math.max(1, (maxY - minY) * contentScale)+ };+ var padding = options.padding || 48;+ var left = padding;+ var right = svgWidth - padding;+ var top = padding;+ var bottom = svgHeight - Math.max(padding, 72);+ var containerRect = container.getBoundingClientRect();+ var visibleTop = Math.max(0, -containerRect.top);+ var visibleBottom = Math.min(svgHeight, window.innerHeight - containerRect.top);+ if (visibleBottom - visibleTop >= 240) {+ top = Math.max(top, visibleTop + padding);+ bottom = Math.min(bottom, visibleBottom - Math.max(padding, 72));+ }+ var chip = document.getElementById('focus-chip');+ if (chip && !chip.hidden) {+ var lensEnd = chip.offsetLeft + chip.offsetWidth + 24 - (svg.offsetLeft || 0);+ left = Math.max(left, Math.min(svgWidth * 0.42, lensEnd));+ }+ var routeReceipt = document.getElementById('route-probe');+ if (routeReceipt && !routeReceipt.hidden && routeReceipt.hasAttribute('data-route-journey')) {+ var receiptTop = routeReceipt.offsetTop;+ var receiptBottom = receiptTop + routeReceipt.offsetHeight;+ if (receiptTop < svgHeight / 2) top = Math.max(top, receiptBottom + 24);+ else bottom = Math.min(bottom, receiptTop - 24);+ }+ if (right <= left || bottom <= top) return false;+ var maxScale = options.maxScale || (options.includeNeighbors ? 1.9 : 2.15);+ var targetScale = Math.min((right - left) / bounds.width, (bottom - top) / bounds.height) * 0.9;+ targetScale = Math.max(1, Math.min(maxScale, targetScale));+ if (targetScale < 1.08) targetScale = 1;+ var target = {+ scale: Math.round(targetScale * 100) / 100,+ x: 0,+ y: 0,+ mode: 'semantic'+ };+ target.x = (left + right) / 2 - (bounds.x + bounds.width / 2) * target.scale;+ target.y = (top + bottom) / 2 - (bounds.y + bounds.height / 2) * target.scale;+ var start = sampleRenderedState();+ stopCameraMotion('replaced', false);+ var transaction = cameraReceipt(target, options);+ cameraTransaction = transaction;+ var instant = options.instant === true || reducedMotion() || document.hidden;+ if (instant) {+ state = target;+ apply();+ finishCameraTransaction(transaction, reducedMotion() ? 'reduced-motion' : (document.hidden ? 'hidden' : 'complete'));+ return transaction;+ }+ var duration = Math.max(180, Math.min(520, Number(options.duration) || 420));+ var startedAt = 0;+ state = start;+ state.mode = 'semantic';+ apply();+ container.classList.add('is-camera-moving');+ container.classList.add('is-camera-transaction');+ container.setAttribute('data-camera-transaction', String(transaction.id));+ var step = function (timestamp) {+ if (cameraTransaction !== transaction || transaction.settled) return;+ if (!startedAt) startedAt = timestamp;+ var fraction = Math.max(0, Math.min(1, (timestamp - startedAt) / duration));+ var eased = 1 - Math.pow(1 - fraction, 3);+ state = {+ scale: start.scale + (target.scale - start.scale) * eased,+ x: start.x + (target.x - start.x) * eased,+ y: start.y + (target.y - start.y) * eased,+ mode: 'semantic'+ };+ apply();+ if (fraction < 1) {+ transaction.frame = requestAnimationFrame(step);+ cameraFrame = transaction.frame;+ } else {+ state = target;+ apply();+ finishCameraTransaction(transaction, 'complete');+ }+ };+ transaction.frame = requestAnimationFrame(step);+ cameraFrame = transaction.frame;+ return transaction;+ }+ function reveal(ids, options) {+ options = options || {};+ if (window.innerWidth > 720) return frameDesktop(ids, options);+ stopCameraMotion('replaced', false);+ state.scale = 1;+ state.x = 0;+ state.y = 0;+ state.mode = 'semantic';+ apply();+ if (!container.hasAttribute('data-wide-diagram')) {+ var contained = cameraReceipt({ scale: 1, x: 0, y: 0, mode: 'semantic' }, options);+ cameraTransaction = contained;+ finishCameraTransaction(contained, 'complete');+ return contained;+ }+ var boxes = boxesFor(ids, options.includeNeighbors === true);+ if (!boxes.length || !viewBox || viewBox.width <= 0) return false;+ var minX = Math.min.apply(Math, boxes.map(function (box) { return box.x; }));+ var maxX = Math.max.apply(Math, boxes.map(function (box) { return box.x + box.width; }));+ var center = (((minX + maxX) / 2 - viewBox.x) / viewBox.width) * (svg.clientWidth || 1);+ var target = Math.max(0, Math.min(svg.clientWidth - container.clientWidth, center - container.clientWidth / 2));+ var transaction = cameraReceipt({ scrollLeft: target }, options);+ cameraTransaction = transaction;+ var instant = options.instant === true || reducedMotion() || document.hidden;+ autoScrollUntil = Date.now() + (instant ? 50 : 470);+ try { container.scrollTo({ left: target, behavior: instant ? 'auto' : 'smooth' }); }+ catch (_) { container.scrollLeft = target; }+ if (instant) finishCameraTransaction(transaction, reducedMotion() ? 'reduced-motion' : (document.hidden ? 'hidden' : 'complete'));+ else {+ transaction.timer = setTimeout(function () { finishCameraTransaction(transaction, 'complete'); }, 460);+ cameraTimer = transaction.timer;+ container.classList.add('is-camera-moving');+ container.setAttribute('data-camera-transaction', String(transaction.id));+ }+ return transaction;+ }+ function syncSemantic() {+ var active = Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null;+ if (typeof active === 'string') return reveal([active], { includeNeighbors: true, reason: 'focus-sync' });+ if (Array.isArray(active) && active.length) return reveal(active, { reason: 'selection-sync' });+ return false;+ }+ function pinControls() {+ container.style.setProperty('--archify-scroll-x', container.scrollLeft + 'px');+ }+ function onScroll() {+ pinControls();+ if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram') && Date.now() > autoScrollUntil) {+ interruptCamera();+ }+ }+ function onPointerEnd(event) {+ if (!drag) return;+ var moved = drag.moved;+ drag = null;+ container.classList.remove('is-panning');+ try { container.releasePointerCapture(event.pointerId); } catch (_) {}+ if (moved) {+ container.setAttribute('data-just-panned', 'true');+ setTimeout(function () { container.removeAttribute('data-just-panned'); }, 80);+ }+ }++ inBtn.addEventListener('click', function () { zoom(state.scale + 0.25); });+ outBtn.addEventListener('click', function () { zoom(state.scale - 0.25); });+ resetBtn.addEventListener('click', reset);+ container.addEventListener('pointerdown', function (event) {+ if (state.scale <= 1 || event.button !== 0 || event.target.closest('.diagram-nav, .focus-chip, .node-finder, .diagram-guide, .overview-map, .route-probe, .semantic-lens') || event.target.closest('[data-node-id]') || event.target.closest('[data-relationship-hit-key]')) return;+ interruptCamera();+ drag = { startX: event.clientX, startY: event.clientY, x: state.x, y: state.y, moved: false };+ container.classList.add('is-panning');+ try { container.setPointerCapture(event.pointerId); } catch (_) {}+ });+ container.addEventListener('pointermove', function (event) {+ if (!drag) return;+ var dx = event.clientX - drag.startX;+ var dy = event.clientY - drag.startY;+ if (Math.abs(dx) + Math.abs(dy) > 3) drag.moved = true;+ state.x = drag.x + dx;+ state.y = drag.y + dy;+ apply();+ });+ container.addEventListener('pointerup', onPointerEnd);+ container.addEventListener('pointercancel', onPointerEnd);+ container.addEventListener('scroll', onScroll, { passive: true });+ window.addEventListener('resize', function () {+ if (resizeFrame) cancelAnimationFrame(resizeFrame);+ resizeFrame = requestAnimationFrame(function () {+ resizeFrame = 0;+ if (state.mode === 'semantic') syncSemantic();+ else apply();+ });+ });+ window.addEventListener('hashchange', function () { requestAnimationFrame(syncSemantic); });+ apply();+ pinControls();+ requestAnimationFrame(syncSemantic);++ return {+ zoomIn: function () { zoom(state.scale + 0.25); },+ zoomOut: function () { zoom(state.scale - 0.25); },+ reset: reset,+ reveal: reveal,+ centerAt: centerAt,+ logicalViewport: logicalViewport,+ sync: syncSemantic,+ state: function () { return { scale: state.scale, x: state.x, y: state.y, mode: state.mode }; }+ };+ })();++ /* ============================================================+ Semantic Radar — simplified semantic bounds + live viewport.+ The radar is built at runtime so the checked artifact still contains+ one canonical SVG block, and export serialization remains untouched.+ ============================================================ */+ Archify.radar = (function () {+ var container = document.querySelector('.diagram-container');+ var diagram = container.querySelector(':scope > svg');+ var panel = document.getElementById('overview-map');+ var panelHead = panel.querySelector('.overview-map-head');+ var surface = document.getElementById('overview-map-surface');+ var status = document.getElementById('overview-map-status');+ var trigger = document.getElementById('btn-overview-map');+ var closeBtn = document.getElementById('overview-map-close');+ var expandBtn = document.getElementById('overview-map-expand');+ var feedback = document.getElementById('overview-map-feedback');+ var navigation = container.querySelector('.diagram-nav');+ var passport = document.getElementById('focus-chip');+ var namespace = 'http://www.w3.org/2000/svg';+ var viewBox = diagram.viewBox && diagram.viewBox.baseVal;+ var mapSvg = document.createElementNS(namespace, 'svg');+ var nodeLayer = document.createElementNS(namespace, 'g');+ var viewport = document.createElementNS(namespace, 'rect');+ var nodes = [];+ var viewportDrag = null;+ var panelDrag = null;+ var manualPosition = null;+ var lastPlacement = null;+ var requestedOpen = false;+ var passportYielded = false;+ var passportPreviousAriaHidden = null;+ var syncFrame = 0;+ var spaceRetryTimer = 0;+ var spaceRetryCount = 0;+ var placementGap = 16;++ mapSvg.setAttribute('role', 'group');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));+ mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');+ nodeLayer.setAttribute('class', 'overview-map-nodes');+ viewport.setAttribute('class', 'overview-map-viewport');+ viewport.setAttribute('rx', '3');+ viewport.setAttribute('ry', '3');+ mapSvg.appendChild(nodeLayer);+ mapSvg.appendChild(viewport);+ surface.appendChild(mapSvg);++ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function build() {+ if (!viewBox || viewBox.width <= 0 || viewBox.height <= 0) return false;+ mapSvg.setAttribute('viewBox', [viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' '));+ nodeLayer.textContent = '';+ nodes = [];+ Array.prototype.forEach.call(diagram.querySelectorAll('[data-node-id]'), function (node) {+ var box;+ try { box = node.getBBox(); } catch (_) { box = null; }+ if (!box || box.width <= 0 || box.height <= 0) return;+ var id = node.getAttribute('data-node-id');+ var rect = document.createElementNS(namespace, 'rect');+ rect.setAttribute('class', 'overview-map-node');+ rect.setAttribute('x', String(box.x));+ rect.setAttribute('y', String(box.y));+ rect.setAttribute('width', String(Math.max(3, box.width)));+ rect.setAttribute('height', String(Math.max(3, box.height)));+ rect.setAttribute('rx', String(Math.max(2, Math.min(8, Math.min(box.width, box.height) * 0.1))));+ rect.setAttribute('data-radar-node-id', id);+ rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');+ rect.setAttribute('tabindex', '0');+ rect.setAttribute('role', 'button');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));+ nodeLayer.appendChild(rect);+ nodes.push({ id: id, node: node, rect: rect });+ });+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });+ return true;+ }+ function visibleRect(element) {+ if (!element || element.hidden) return null;+ var rect = element.getBoundingClientRect();+ if (rect.width <= 0 || rect.height <= 0 || rect.right <= 0 || rect.bottom <= 0 || rect.left >= window.innerWidth || rect.top >= window.innerHeight) return null;+ return { left: rect.left, top: rect.top, right: rect.right, bottom: rect.bottom, width: rect.width, height: rect.height };+ }+ function panelRectAt(position) {+ return {+ left: position.left,+ top: position.top,+ right: position.left + panel.offsetWidth,+ bottom: position.top + panel.offsetHeight,+ width: panel.offsetWidth,+ height: panel.offsetHeight+ };+ }+ function rectsIntersect(first, second, gap) {+ gap = Number(gap) || 0;+ return first.left < second.right + gap &&+ first.right > second.left - gap &&+ first.top < second.bottom + gap &&+ first.bottom > second.top - gap;+ }+ function intersectionArea(first, second) {+ var width = Math.max(0, Math.min(first.right, second.right) - Math.max(first.left, second.left));+ var height = Math.max(0, Math.min(first.bottom, second.bottom) - Math.max(first.top, second.top));+ return width * height;+ }+ function clamp(value, minimum, maximum) {+ if (maximum < minimum) return minimum;+ return Math.max(minimum, Math.min(maximum, value));+ }+ function placementContext() {+ var containerRect = visibleRect(container);+ if (!containerRect) return null;+ var controlRect = visibleRect(navigation);+ var left = Math.max(placementGap, containerRect.left + placementGap);+ var top = Math.max(placementGap, containerRect.top + placementGap);+ var right = Math.min(window.innerWidth - placementGap, containerRect.right - placementGap);+ var bottom = Math.min(window.innerHeight - placementGap, containerRect.bottom - placementGap);+ if (controlRect) bottom = Math.min(bottom, controlRect.top - placementGap);+ var lens = document.getElementById('focus-chip');+ var lensRect = visibleRect(lens);+ var legendRect = visibleRect(diagram.querySelector('[data-legend]'));+ var active = diagram.querySelector('[data-focus-selected]');+ var activeRect = visibleRect(active);+ return {+ bounds: { left: left, top: top, right: right, bottom: bottom },+ hardBlockers: [lensRect, controlRect, legendRect].filter(Boolean),+ softBlockers: [activeRect].filter(Boolean),+ preferredSide: !activeRect || activeRect.left + activeRect.width / 2 > window.innerWidth / 2 ? 'left' : 'right'+ };+ }+ function positionIsValid(position, context) {+ if (!position || !context) return false;+ var rect = panelRectAt(position);+ var bounds = context.bounds;+ if (rect.left < bounds.left || rect.top < bounds.top || rect.right > bounds.right || rect.bottom > bounds.bottom) return false;+ return context.hardBlockers.every(function (blocker) { return !rectsIntersect(rect, blocker, placementGap); });+ }+ function cornerCandidates(context) {+ var bounds = context.bounds;+ var left = bounds.left;+ var right = Math.max(left, bounds.right - panel.offsetWidth);+ var top = bounds.top;+ var bottom = Math.max(top, bounds.bottom - panel.offsetHeight);+ var preferredLeft = context.preferredSide === 'left' ? left : right;+ var alternateLeft = context.preferredSide === 'left' ? right : left;+ return [+ { left: preferredLeft, top: bottom },+ { left: alternateLeft, top: bottom },+ { left: preferredLeft, top: top },+ { left: alternateLeft, top: top }+ ].filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function nearbyCandidates(context, reference) {+ var bounds = context.bounds;+ var maximumLeft = bounds.right - panel.offsetWidth;+ var maximumTop = bounds.bottom - panel.offsetHeight;+ var requested = reference ? {+ left: clamp(reference.left, bounds.left, maximumLeft),+ top: clamp(reference.top, bounds.top, maximumTop)+ } : null;+ var horizontal = [bounds.left, maximumLeft];+ var vertical = [bounds.top, maximumTop];+ if (requested) {+ horizontal.push(requested.left);+ vertical.push(requested.top);+ }+ context.hardBlockers.forEach(function (blocker) {+ horizontal.push(+ blocker.left - placementGap - panel.offsetWidth,+ blocker.right + placementGap+ );+ vertical.push(+ blocker.top - placementGap - panel.offsetHeight,+ blocker.bottom + placementGap+ );+ });+ horizontal = horizontal.map(function (left) { return clamp(left, bounds.left, maximumLeft); });+ vertical = vertical.map(function (top) { return clamp(top, bounds.top, maximumTop); });+ var candidates = [];+ horizontal.forEach(function (left) {+ vertical.forEach(function (top) { candidates.push({ left: left, top: top }); });+ });+ return candidates.filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function placementScore(position, context, reference, softWeight) {+ var rect = panelRectAt(position);+ var referenceLeft = reference ? reference.left : (context.preferredSide === 'left' ? context.bounds.left : context.bounds.right - panel.offsetWidth);+ var referenceTop = reference ? reference.top : context.bounds.bottom - panel.offsetHeight;+ var distance = Math.pow(position.left - referenceLeft, 2) + Math.pow(position.top - referenceTop, 2);+ var softOverlap = context.softBlockers.reduce(function (total, blocker) { return total + intersectionArea(rect, blocker); }, 0);+ return distance + softOverlap * softWeight;+ }+ function chooseRadarPlacement(context, reference, options) {+ options = options || {};+ var softWeight = Number.isFinite(options.softWeight) ? options.softWeight : 100;+ var candidates = nearbyCandidates(context, reference).concat(cornerCandidates(context));+ var valid = candidates.filter(function (candidate) { return positionIsValid(candidate, context); });+ valid.sort(function (first, second) {+ return placementScore(first, context, reference, softWeight) - placementScore(second, context, reference, softWeight);+ });+ return valid.length ? valid[0] : null;+ }+ function applyPlacement(position, remember) {+ var useLeft = position.left + panel.offsetWidth / 2 <= window.innerWidth / 2;+ panel.setAttribute('data-docked', 'true');+ panel.setAttribute('data-dock-side', useLeft ? 'left' : 'right');+ if (useLeft) {+ panel.style.setProperty('--archify-radar-left', Math.round(position.left) + 'px');+ panel.style.removeProperty('--archify-radar-right');+ } else {+ panel.style.setProperty('--archify-radar-right', Math.round(window.innerWidth - position.left - panel.offsetWidth) + 'px');+ panel.style.removeProperty('--archify-radar-left');+ }+ panel.style.setProperty('--archify-radar-top', Math.round(position.top) + 'px');+ if (remember !== false) lastPlacement = { left: position.left, top: position.top };+ }+ function resetDockingStyles() {+ panel.removeAttribute('data-docked');+ panel.removeAttribute('data-dock-side');+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('data-compact');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ panel.style.removeProperty('--archify-radar-right');+ panel.style.removeProperty('--archify-radar-left');+ panel.style.removeProperty('--archify-radar-top');+ }+ function updateDocking() {+ var options = arguments[0] || {};+ if (panel.hidden) return false;+ if (panelDrag) return true;+ panel.removeAttribute('data-compact');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ var context = placementContext();+ if (!context) {+ resetDockingStyles();+ return false;+ }+ var reference = manualPosition || lastPlacement;+ var placementOptions = { softWeight: manualPosition ? 0 : 100 };+ var placement = manualPosition && positionIsValid(manualPosition, context)+ ? manualPosition+ : chooseRadarPlacement(context, reference, placementOptions);+ var compact = false;+ if (!placement && options.allowCompact !== false) {+ compact = true;+ panel.setAttribute('data-compact', 'true');+ panel.setAttribute('data-placement-degraded', 'true');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));+ context = placementContext();+ placement = chooseRadarPlacement(context, reference, placementOptions);+ }+ if (!placement) {+ resetDockingStyles();+ panel.setAttribute('data-placement-unavailable', 'true');+ return false;+ }+ if (manualPosition && !compact) manualPosition = { left: placement.left, top: placement.top };+ applyPlacement(placement, true);+ return true;+ }+ function clearSpaceRetry() {+ if (spaceRetryTimer) window.clearTimeout(spaceRetryTimer);+ spaceRetryTimer = 0;+ }+ function yieldPassport() {+ if (!passport || passport.hidden || passportYielded) return passportYielded;+ passportPreviousAriaHidden = passport.getAttribute('aria-hidden');+ passportYielded = true;+ passport.setAttribute('data-radar-yielded', 'true');+ passport.setAttribute('aria-hidden', 'true');+ return true;+ }+ function restorePassport() {+ if (!passport || !passportYielded) return;+ passportYielded = false;+ passport.removeAttribute('data-radar-yielded');+ if (passportPreviousAriaHidden === null) passport.removeAttribute('aria-hidden');+ else passport.setAttribute('aria-hidden', passportPreviousAriaHidden);+ passportPreviousAriaHidden = null;+ }+ function reflectVisible() {+ panel.hidden = false;+ panel.removeAttribute('data-placement-unavailable');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');+ feedback.hidden = true;+ }+ function scheduleSpaceRetry() {+ if (!requestedOpen || spaceRetryTimer || spaceRetryCount >= 4) return;+ spaceRetryCount += 1;+ spaceRetryTimer = window.setTimeout(function () {+ spaceRetryTimer = 0;+ attemptRequestedOpen();+ }, 60);+ }+ function reflectUnavailable() {+ restorePassport();+ panel.hidden = true;+ panel.setAttribute('data-placement-unavailable', 'true');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));+ trigger.setAttribute('data-radar-space-limited', 'true');+ trigger.title = viewerText('viewer.radar.needsSpace');+ feedback.hidden = false;+ scheduleSpaceRetry();+ }+ function attemptRequestedOpen(options) {+ options = options || {};+ if (!requestedOpen) return false;+ panel.hidden = false;+ if (!updateDocking(options)) {+ reflectUnavailable();+ return false;+ }+ clearSpaceRetry();+ spaceRetryCount = 0;+ reflectVisible();+ sync();+ if (options.focus === true && !panel.hasAttribute('data-compact')) surface.focus();+ return true;+ }+ function expandCompactRadar() {+ if (!requestedOpen || panel.hidden || !panel.hasAttribute('data-compact')) return false;+ yieldPassport();+ if (!updateDocking({ allowCompact: false })) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return false;+ }+ }+ reflectVisible();+ sync();+ if (!panel.hasAttribute('data-compact')) surface.focus();+ return !panel.hasAttribute('data-compact');+ }+ function syncNow() {+ syncFrame = 0;+ if (panel.hidden || !Archify.view || typeof Archify.view.logicalViewport !== 'function') return;+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ if (passportYielded && panel.hasAttribute('data-compact')) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ }+ reflectVisible();+ var visible = Archify.view.logicalViewport();+ if (!visible) return;+ viewport.setAttribute('x', String(visible.x));+ viewport.setAttribute('y', String(visible.y));+ viewport.setAttribute('width', String(visible.width));+ viewport.setAttribute('height', String(visible.height));+ var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;+ var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');+ var viewportCopy = full+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });+ nodes.forEach(function (item) {+ var active = item.node.hasAttribute('data-focus-selected');+ if (active) item.rect.setAttribute('data-radar-active', 'true');+ else item.rect.removeAttribute('data-radar-active');+ });+ }+ function sync() {+ if (requestedOpen && panel.hidden) {+ attemptRequestedOpen();+ return;+ }+ if (syncFrame) return;+ syncFrame = requestAnimationFrame(syncNow);+ }+ function setOpen(next, options) {+ options = options || {};+ next = Boolean(next);+ if (next && Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (next && Archify.semanticLens && Archify.semanticLens.isOpen()) {+ Archify.semanticLens.close({ restoreFocus: false });+ }+ requestedOpen = next;+ if (next) {+ clearSpaceRetry();+ spaceRetryCount = 0;+ trigger.setAttribute('data-radar-requested', 'true');+ build();+ attemptRequestedOpen(options);+ } else {+ clearSpaceRetry();+ spaceRetryCount = 0;+ viewportDrag = null;+ panelDrag = null;+ container.classList.remove('is-panning');+ panel.hidden = true;+ resetDockingStyles();+ restorePassport();+ feedback.hidden = true;+ // Focus before collapsing: the dock hides this trigger at 100% unless it holds focus.+ if (options.restoreFocus === true) trigger.focus();+ trigger.setAttribute('aria-expanded', 'false');+ trigger.removeAttribute('data-radar-requested');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');+ }+ return next;+ }+ function toggle() { return setOpen(!requestedOpen, { focus: false }); }+ function close(options) { return setOpen(false, options); }+ function bringNodeIntoWindow(node) {+ var delay = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 0 : 540;+ window.setTimeout(function () {+ var rect = node.getBoundingClientRect();+ var safeTop = 64;+ var safeBottom = window.innerHeight - 64;+ if (rect.top >= safeTop && rect.bottom <= safeBottom) return;+ var top = Math.max(0, window.scrollY + rect.top + rect.height / 2 - window.innerHeight / 2);+ try { window.scrollTo({ top: top, behavior: delay ? 'smooth' : 'auto' }); }+ catch (_) { window.scrollTo(0, top); }+ }, delay);+ }+ function focusNode(id) {+ var main = diagram.querySelector('[data-node-id="' + id + '"]');+ if (!main) return false;+ if (Archify.focus && typeof Archify.focus.set === 'function') {+ Archify.focus.set(id, { toggle: false });+ }+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'radar' });+ }+ bringNodeIntoWindow(main);+ try { main.focus({ preventScroll: true }); } catch (_) { try { main.focus(); } catch (_) {} }+ sync();+ return true;+ }+ function diagramPoint(event) {+ var matrix = mapSvg.getScreenCTM();+ if (!matrix) return null;+ var point = mapSvg.createSVGPoint();+ point.x = event.clientX;+ point.y = event.clientY;+ return point.matrixTransform(matrix.inverse());+ }+ function navigate(event) {+ var point = diagramPoint(event);+ if (!point || !Archify.view || typeof Archify.view.centerAt !== 'function') return;+ Archify.view.centerAt(point.x, point.y, { minimumScale: 1.5, instant: true });+ sync();+ }+ function endViewportDrag(event) {+ if (!viewportDrag) return;+ viewportDrag = null;+ panel.removeAttribute('data-dragging');+ container.classList.remove('is-panning');+ try { surface.releasePointerCapture(event.pointerId); } catch (_) {}+ }+ function beginPanelDrag(event) {+ if (event.button !== 0 || event.target.closest('button, a, input, [role="button"]')) return;+ var context = placementContext();+ if (!context) return;+ var rect = panel.getBoundingClientRect();+ event.preventDefault();+ event.stopPropagation();+ panelDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: { left: rect.left, top: rect.top },+ current: { left: rect.left, top: rect.top },+ previousManual: manualPosition ? { left: manualPosition.left, top: manualPosition.top } : null+ };+ panel.setAttribute('data-panel-dragging', 'true');+ try { panelHead.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function movePanelDrag(event) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ var context = placementContext();+ if (!context) return;+ event.preventDefault();+ event.stopPropagation();+ var bounds = context.bounds;+ var position = {+ left: clamp(panelDrag.start.left + event.clientX - panelDrag.originX, bounds.left, bounds.right - panel.offsetWidth),+ top: clamp(panelDrag.start.top + event.clientY - panelDrag.originY, bounds.top, bounds.bottom - panel.offsetHeight)+ };+ panelDrag.current = position;+ if (positionIsValid(position, context)) panel.removeAttribute('data-placement-invalid');+ else panel.setAttribute('data-placement-invalid', 'true');+ applyPlacement(position, false);+ }+ function finishPanelDrag(event, cancel) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = panelDrag;+ panelDrag = null;+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ try { panelHead.releasePointerCapture(event.pointerId); } catch (_) {}+ var context = placementContext();+ if (!context) return;+ if (cancel) {+ manualPosition = activeDrag.previousManual;+ lastPlacement = { left: activeDrag.start.left, top: activeDrag.start.top };+ updateDocking();+ return;+ }+ var requested = activeDrag.current;+ manualPosition = { left: requested.left, top: requested.top };+ updateDocking();+ }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close({ restoreFocus: true }); });+ expandBtn.addEventListener('click', expandCompactRadar);+ panelHead.addEventListener('pointerdown', beginPanelDrag);+ panelHead.addEventListener('pointermove', movePanelDrag);+ panelHead.addEventListener('pointerup', function (event) { finishPanelDrag(event, false); });+ panelHead.addEventListener('pointercancel', function (event) { finishPanelDrag(event, true); });+ surface.addEventListener('pointerdown', function (event) {+ if (event.button !== 0 || event.target.closest('[data-radar-node-id]')) return;+ event.preventDefault();+ viewportDrag = { pointerId: event.pointerId };+ panel.setAttribute('data-dragging', 'true');+ container.classList.add('is-panning');+ try { surface.setPointerCapture(event.pointerId); } catch (_) {}+ navigate(event);+ });+ surface.addEventListener('pointermove', function (event) {+ if (!viewportDrag || viewportDrag.pointerId !== event.pointerId) return;+ navigate(event);+ });+ surface.addEventListener('pointerup', endViewportDrag);+ surface.addEventListener('pointercancel', endViewportDrag);+ surface.addEventListener('click', function (event) {+ var node = event.target.closest('[data-radar-node-id]');+ if (node) focusNode(node.getAttribute('data-radar-node-id'));+ });+ surface.addEventListener('keydown', function (event) {+ if (event.key === 'Escape') {+ event.preventDefault();+ event.stopPropagation();+ close({ restoreFocus: true });+ return;+ }+ var node = event.target.closest('[data-radar-node-id]');+ if (node && (event.key === 'Enter' || event.key === ' ')) {+ event.preventDefault();+ focusNode(node.getAttribute('data-radar-node-id'));+ return;+ }+ if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight' && event.key !== 'ArrowUp' && event.key !== 'ArrowDown') return;+ var visible = Archify.view && Archify.view.logicalViewport ? Archify.view.logicalViewport() : null;+ if (!visible) return;+ event.preventDefault();+ var x = visible.x + visible.width / 2;+ var y = visible.y + visible.height / 2;+ var stepX = Math.max(12, visible.width * 0.24);+ var stepY = Math.max(12, visible.height * 0.24);+ if (event.key === 'ArrowLeft') x -= stepX;+ else if (event.key === 'ArrowRight') x += stepX;+ else if (event.key === 'ArrowUp') y -= stepY;+ else y += stepY;+ Archify.view.centerAt(x, y, { minimumScale: 1.5, instant: true });+ sync();+ });+ document.addEventListener('keydown', function (event) {+ if (!panelDrag || event.key !== 'Escape') return;+ finishPanelDrag({+ pointerId: panelDrag.pointerId,+ preventDefault: function () { event.preventDefault(); },+ stopPropagation: function () { event.stopPropagation(); }+ }, true);+ }, true);+ function reflow() {+ if (!requestedOpen) return;+ clearSpaceRetry();+ spaceRetryCount = 0;+ sync();+ }+ window.addEventListener('resize', reflow);+ window.addEventListener('scroll', reflow, { passive: true });+ if (typeof ResizeObserver === 'function') {+ var radarResizeObserver = new ResizeObserver(function (entries) {+ if (!requestedOpen) return;+ if (panel.hidden && entries.every(function (entry) { return entry.target === panel; })) return;+ reflow();+ });+ [container, navigation, document.getElementById('focus-chip'), panel].filter(Boolean).forEach(function (element) {+ radarResizeObserver.observe(element);+ });+ }+ requestAnimationFrame(build);++ return {+ open: function () { return setOpen(true); },+ close: close,+ toggle: toggle,+ sync: sync,+ focus: focusNode,+ isOpen: function () { return requestedOpen; },+ count: function () { return nodes.length; }+ };+ })();++ /* ============================================================+ Presentation Stage — a shareable, viewport-filling live view.+ It changes only HTML layout and URL state; SVG semantics and export+ serialization remain untouched. Escape first clears an active+ focus, then exits the stage.+ ============================================================ */+ Archify.presentation = (function () {+ var html = document.documentElement;+ var btn = document.getElementById('btn-present');+ var label = document.getElementById('present-label');+ var previousScrollY = 0;++ function active() { return html.getAttribute('data-present') === 'true'; }++ function updateUrl(next) {+ try {+ var url = new URL(window.location.href);+ if (next) url.searchParams.set('present', '1');+ else url.searchParams.delete('present');+ history.replaceState(null, '', url.pathname + url.search + url.hash);+ } catch (_) {}+ }++ function render(next) {+ btn.setAttribute('aria-pressed', next ? 'true' : 'false');+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');+ }++ function setActive(next, options) {+ options = options || {};+ next = Boolean(next);+ if (next === active()) {+ render(next);+ return next;+ }+ if (next) {+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ previousScrollY = window.scrollY || 0;+ html.setAttribute('data-present', 'true');+ try { window.scrollTo(0, 0); } catch (_) {}+ } else {+ html.removeAttribute('data-present');+ }+ render(next);+ if (options.updateUrl !== false) updateUrl(next);+ requestAnimationFrame(function () {+ if (Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ requestAnimationFrame(function () {+ if (Archify.view && typeof Archify.view.sync === 'function') Archify.view.sync();+ });+ }+ if (!next && previousScrollY) {+ try { window.scrollTo(0, previousScrollY); } catch (_) {}+ }+ });+ return next;+ }++ function toggle() { return setActive(!active()); }++ render(active());+ btn.addEventListener('click', toggle);++ return {+ enter: function () { return setActive(true); },+ exit: function () { return setActive(false); },+ toggle: toggle,+ active: active+ };+ })();++ /* ============================================================+ Node Finder — stable-ID search over the existing semantic SVG.+ Search never changes the IR or SVG geometry: selecting a result resets+ the viewport and delegates to semantic focus.+ ============================================================ */+ Archify.finder = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector('svg');+ var trigger = document.getElementById('btn-node-finder');+ var panel = document.getElementById('node-finder');+ var heading = document.getElementById('node-finder-title');+ var closeBtn = document.getElementById('node-finder-close');+ var input = document.getElementById('node-finder-input');+ var results = document.getElementById('node-finder-results');+ var empty = document.getElementById('node-finder-empty');+ var status = document.getElementById('node-finder-status');+ var visibleItems = [];++ function defaultContext() {+ return {+ kind: 'focus',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),+ allowedIds: null,+ badges: null+ };+ }++ var context = defaultContext();++ function semanticType(node) {+ var authored = node.getAttribute('data-node-kind');+ if (authored) return authored;+ var types = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ return types.find(function (type) { return node.querySelector('.c-' + type); }) || 'node';+ }++ function connectionsFor(id) {+ var count = 0;+ var seen = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = from + '\u0000' + to;+ if ((from === id || to === id) && !seen[key]) {+ seen[key] = true;+ count += 1;+ }+ });+ return count;+ }++ var items = Array.prototype.map.call(svg.querySelectorAll('[data-node-id]'), function (node) {+ var id = node.getAttribute('data-node-id');+ var label = node.getAttribute('data-node-label') || (node.getAttribute('aria-label') || id).replace(/^Focus\s+/, '');+ var text = (node.textContent || '').replace(/\s+/g, ' ').trim();+ var sublabel = node.getAttribute('data-node-sublabel') || '';+ var context = node.getAttribute('data-node-context') || '';+ var tag = node.getAttribute('data-node-tag') || '';+ var brand = node.getAttribute('data-node-brand') || '';+ var type = semanticType(node);+ var sources = Archify.sourceEvidence.node(id);+ var sourceSearch = sources.map(function (source) {+ return [source.path, source.label, source.line, source.endLine].filter(Boolean).join(' ');+ }).join(' ');+ return {+ id: id,+ label: label,+ type: type,+ sublabel: sublabel,+ context: context,+ tag: tag,+ brand: brand,+ sources: sources,+ links: connectionsFor(id),+ search: (id + ' ' + label + ' ' + type + ' ' + sublabel + ' ' + context + ' ' + tag + ' ' + sourceSearch + ' ' + text).toLowerCase() + ' ' + brand.toLowerCase(),+ node: node+ };+ });++ function resultButtons() {+ return Array.prototype.slice.call(results.querySelectorAll('.node-finder-result'));+ }++ function resolveContext(options) {+ var requested = options && options.context ? options.context : null;+ if (!requested && Archify.routeProbe && typeof Archify.routeProbe.finderContext === 'function') {+ requested = Archify.routeProbe.finderContext();+ }+ if (!requested) return defaultContext();+ var resolved = defaultContext();+ Object.keys(requested).forEach(function (key) { resolved[key] = requested[key]; });+ return resolved;+ }++ function availableItems() {+ if (!context.allowedIds) return items.slice();+ return items.filter(function (item) { return context.allowedIds.indexOf(item.id) !== -1; });+ }++ function applyContext() {+ panel.setAttribute('data-context', context.kind);+ heading.textContent = context.title;+ input.placeholder = context.placeholder;+ empty.textContent = context.empty;+ results.setAttribute('aria-label', context.resultsLabel);+ }++ function select(id) {+ var item = items.find(function (candidate) { return candidate.id === id; });+ if (!item) return false;+ var routeSelection = context.kind === 'route-source' || context.kind === 'route-target';+ if (routeSelection) {+ if (!Archify.routeProbe || typeof Archify.routeProbe.choose !== 'function' || !Archify.routeProbe.choose(id)) return false;+ if (Archify.routeProbe.active() === 'target' && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'route-pick' });+ }+ close({ restoreFocus: false });+ try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }+ return true;+ }+ if (Archify.view && typeof Archify.view.reset === 'function') Archify.view.reset({ automatic: true });+ Archify.focus.set(id, { toggle: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal([id], { includeNeighbors: true, reason: 'finder' });+ }+ close({ restoreFocus: false });+ try { item.node.focus({ preventScroll: true }); } catch (_) { try { item.node.focus(); } catch (_) {} }+ return true;+ }++ function render(query) {+ query = (query || '').trim().toLowerCase();+ var available = availableItems();+ visibleItems = available.filter(function (item) { return !query || item.search.indexOf(query) !== -1; });+ results.textContent = '';+ visibleItems.forEach(function (item) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-finder-result';+ button.setAttribute('data-node-id', item.id);+ var badge = context.badges && context.badges[item.id]+ ? context.badges[item.id]+ : context.kind === 'focus'+ ? viewerCount('viewer.finder.link', item.links)+ : String(item.links);+ var action = context.kind === 'route-source'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label })+ : context.kind === 'route-target'+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });+ button.setAttribute('aria-label', action);++ var name = document.createElement('strong');+ name.textContent = item.label;+ var links = document.createElement('em');+ links.textContent = badge;+ links.title = context.kind === 'focus' ? badge : action;+ var meta = document.createElement('small');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ button.appendChild(name);+ button.appendChild(links);+ button.appendChild(meta);+ button.addEventListener('click', function () { select(item.id); });+ results.appendChild(button);+ });+ empty.hidden = visibleItems.length !== 0;+ status.textContent = query+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });+ }++ function open(options) {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ context = resolveContext(options || {});+ applyContext();+ panel.hidden = false;+ trigger.setAttribute('aria-expanded', 'true');+ if (context.kind.indexOf('route-') === 0 && Archify.routeProbe && typeof Archify.routeProbe.finderOpening === 'function') {+ Archify.routeProbe.finderOpening();+ }+ input.value = '';+ render('');+ requestAnimationFrame(function () { input.focus(); });+ return true;+ }++ function close(options) {+ options = options || {};+ var routeContext = context.kind.indexOf('route-') === 0;+ panel.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ input.value = '';+ if (routeContext && Archify.routeProbe && typeof Archify.routeProbe.finderClosed === 'function') {+ Archify.routeProbe.finderClosed({ restoreFocus: options.restoreFocus !== false });+ } else if (options.restoreFocus !== false) {+ trigger.focus();+ }+ }++ function toggle() { return panel.hidden ? open() : (close(), false); }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close(); });+ input.addEventListener('input', function () { render(input.value); });+ input.addEventListener('keydown', function (event) {+ var buttons = resultButtons();+ if (event.key === 'ArrowDown' && buttons.length) {+ event.preventDefault();+ buttons[0].focus();+ } else if (event.key === 'Enter' && visibleItems.length) {+ event.preventDefault();+ select(visibleItems[0].id);+ }+ });+ results.addEventListener('keydown', function (event) {+ var buttons = resultButtons();+ var index = buttons.indexOf(document.activeElement);+ if (index < 0 || !buttons.length) return;+ var next = null;+ if (event.key === 'ArrowDown') next = (index + 1) % buttons.length;+ else if (event.key === 'ArrowUp') next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = buttons.length - 1;+ if (next !== null) {+ event.preventDefault();+ buttons[next].focus();+ }+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key !== 'Escape') return;+ event.preventDefault();+ event.stopPropagation();+ close();+ });+ document.addEventListener('click', function (event) {+ if (!panel.hidden && !panel.contains(event.target) && !event.target.closest('[data-node-finder-trigger]')) close({ restoreFocus: false });+ });++ render('');+ return {+ open: open,+ close: close,+ toggle: toggle,+ select: select,+ isOpen: function () { return !panel.hidden; },+ context: function () { return context.kind; },+ count: items.length+ };+ })();++ /* ============================================================+ Node Outline — a rail index of the semantic nodes, grouped by their+ authored context. Hover previews neighbors through Intent Trace;+ selection delegates to the Finder's focus-and-reveal path. It reads+ the canonical SVG and never changes geometry or export state.+ ============================================================ */+ Archify.outline = (function () {+ var panel = document.getElementById('node-outline');+ var list = document.getElementById('node-outline-list');+ var count = document.getElementById('node-outline-count');+ var svg = document.querySelector('.diagram-container > svg');+ if (!panel || !list || !svg) return { count: 0 };+ var TONES = ['frontend', 'backend', 'database', 'cloud', 'security', 'messagebus', 'external'];+ var nodes = Array.from(svg.querySelectorAll('[data-node-id]')).filter(function (node) {+ return !node.closest('[data-legend-hit], .legend') && node.getAttribute('data-node-label');+ });+ var buttons = Object.create(null);++ function tone(node) {+ var shape = node.querySelector('[class*="c-"]:not(.c-mask)');+ var match = shape && /(?:^|\s)c-([a-z]+)/.exec(shape.getAttribute('class') || '');+ return match && TONES.indexOf(match[1]) !== -1 ? match[1] : 'external';+ }+ function preview(id) {+ if (Archify.intentTrace && typeof Archify.intentTrace.show === 'function') Archify.intentTrace.show(id);+ }+ function clearPreview() {+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ }+ function select(id) {+ clearPreview();+ var finder = Archify.finder;+ if (finder && typeof finder.select === 'function') {+ if (finder.select(id)) return;+ var routeMode = Archify.routeProbe && typeof Archify.routeProbe.active === 'function' ? Archify.routeProbe.active() : 'idle';+ // Only an active endpoint picker owns a refused selection.+ if (routeMode === 'source' || routeMode === 'target') return;+ }+ if (Archify.focus && typeof Archify.focus.set === 'function') Archify.focus.set(id, { toggle: false });+ }++ var groups = [];+ var byContext = Object.create(null);+ nodes.forEach(function (node) {+ // Group by the outermost context (lane or stage); deeper segments+ // such as workflow groups and columns would split the index into+ // one-node sections.+ var context = (node.getAttribute('data-node-context') || '').split(' \u203a ')[0];+ if (!byContext[context]) {+ byContext[context] = { label: context, nodes: [] };+ groups.push(byContext[context]);+ }+ byContext[context].nodes.push(node);+ });++ groups.forEach(function (group) {+ var section = document.createElement('li');+ section.className = 'node-outline-group';+ if (groups.length > 1 && group.label) {+ var heading = document.createElement('span');+ heading.className = 'node-outline-heading';+ var headingLabel = document.createElement('span');+ headingLabel.textContent = group.label;+ var headingCount = document.createElement('small');+ headingCount.textContent = String(group.nodes.length);+ heading.appendChild(headingLabel);+ heading.appendChild(headingCount);+ section.appendChild(heading);+ }+ var items = document.createElement('ul');+ group.nodes.forEach(function (node) {+ var id = node.getAttribute('data-node-id');+ var item = document.createElement('li');+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'node-outline-item';+ button.setAttribute('data-outline-node', id);+ button.style.setProperty('--outline-tone', 'var(--' + tone(node) + '-stroke)');+ var dot = document.createElement('span');+ dot.className = 'node-outline-dot';+ dot.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = node.getAttribute('data-node-label');+ button.appendChild(dot);+ button.appendChild(label);+ var sublabel = node.getAttribute('data-node-sublabel');+ if (sublabel) {+ var detail = document.createElement('small');+ detail.textContent = sublabel;+ button.appendChild(detail);+ }+ button.addEventListener('pointerenter', function () { preview(id); });+ button.addEventListener('focus', function () { preview(id); });+ button.addEventListener('pointerleave', clearPreview);+ button.addEventListener('blur', clearPreview);+ button.addEventListener('click', function () { select(id); });+ buttons[id] = button;+ item.appendChild(button);+ items.appendChild(item);+ });+ section.appendChild(items);+ list.appendChild(section);+ });++ var previewing = null;+ function syncCurrent() {+ nodes.forEach(function (node) {+ var button = buttons[node.getAttribute('data-node-id')];+ if (!button) return;+ if (node.getAttribute('aria-pressed') === 'true') button.setAttribute('aria-current', 'true');+ else button.removeAttribute('aria-current');+ });+ // Mirror a diagram-side hover so the index answers "where is this?".+ var active = buttons[svg.getAttribute('data-intent-trace-active') || ''] || null;+ if (active === previewing) return;+ if (previewing) previewing.removeAttribute('data-previewing');+ previewing = active;+ if (!active) return;+ active.setAttribute('data-previewing', '');+ if (!active.matches(':hover') && panel.offsetParent) {+ var box = list.getBoundingClientRect();+ var item = active.getBoundingClientRect();+ if (item.top < box.top || item.bottom > box.bottom - 24) {+ list.scrollTop += item.top - box.top - box.height / 2 + item.height / 2;+ }+ }+ }+ if (typeof MutationObserver === 'function') {+ new MutationObserver(syncCurrent).observe(svg, { attributes: true, subtree: true, attributeFilter: ['aria-pressed', 'data-intent-trace-active'] });+ }+ if (count) count.textContent = String(nodes.length);+ panel.hidden = nodes.length < 2;+ syncCurrent();+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') Archify.readerLayout.schedule();++ return { count: nodes.length, select: select };+ })();+++ /* ============================================================+ Route Probe — shortest directed path over compiled semantics.+ The graph is read from renderer-owned stable IDs and relationship+ endpoints. BFS order follows authored DOM edge order, so equal-length+ choices are deterministic without adding weights or a graph runtime.+ ============================================================ */+ Archify.routeProbe = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-route-probe');+ var panel = document.getElementById('route-probe');+ var title = document.getElementById('route-probe-title');+ var path = document.getElementById('route-probe-path');+ var status = document.getElementById('route-probe-status');+ var findBtn = document.getElementById('route-probe-find');+ var copyBtn = document.getElementById('route-probe-copy');+ var clearBtn = document.getElementById('route-probe-clear');+ var journeyControls = document.getElementById('route-journey-controls');+ var journeyPrevBtn = document.getElementById('route-journey-prev');+ var journeyPlayBtn = document.getElementById('route-journey-play');+ var journeyPlayIcon = document.getElementById('route-journey-play-icon');+ var journeyPlayLabel = document.getElementById('route-journey-play-label');+ var journeyNextBtn = document.getElementById('route-journey-next');+ var journeyOverviewBtn = document.getElementById('route-journey-overview');+ var namespace = 'http://www.w3.org/2000/svg';+ var mode = 'idle';+ var startId = null;+ var endId = null;+ var activeNodeIds = [];+ var activeEdges = [];+ var journeyIndex = -1;+ var journeyPlaying = false;+ var journeyComplete = false;+ var journeyGeneration = 0;+ var journeyTimer = null;+ var journeyStartedAt = 0;+ var journeyElapsedMs = 0;+ var journeyOwnerToken = 0;+ var JOURNEY_DWELL_MS = 1100;++ function nodes() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-node-id]'));+ }+ function edges() {+ return Array.prototype.slice.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'));+ }+ function nodesById() {+ var out = Object.create(null);+ nodes().forEach(function (node) { out[node.getAttribute('data-node-id')] = node; });+ return out;+ }+ function nodeLabel(node, fallback) {+ return node.getAttribute('data-node-label') ||+ (node.getAttribute('aria-label') || fallback).replace(/^Focus\s+/, '').split(',')[0];+ }+ function exportSnapshot() {+ if (mode !== 'result' || activeNodeIds.length < 2 || activeEdges.length !== activeNodeIds.length - 1) return null;+ var allNodes = nodes();+ var byId = nodesById();+ var seenNodeIds = Object.create(null);+ var seenEdgeKeys = Object.create(null);+ if (startId !== activeNodeIds[0] || endId !== activeNodeIds[activeNodeIds.length - 1] ||+ activeNodeIds.some(function (id) {+ if (seenNodeIds[id] || allNodes.filter(function (node) {+ return node.getAttribute('data-node-id') === id;+ }).length !== 1) return true;+ seenNodeIds[id] = true;+ return !byId[id];+ }) ||+ activeEdges.some(function (edge, index) {+ if (!edge || !svg.contains(edge)) return true;+ var edgeKey = edge.getAttribute('data-edge-key');+ var edgeId = edge.getAttribute('data-edge-id') || '';+ if (!edgeKey || seenEdgeKeys[edgeKey]) return true;+ seenEdgeKeys[edgeKey] = true;+ var fragments = Array.prototype.slice.call(svg.querySelectorAll('[data-edge-key]')).filter(function (candidate) {+ return candidate.getAttribute('data-edge-key') === edgeKey;+ });+ var drawableFragments = fragments.filter(hasDrawableGeometry);+ return !fragments.length || !fragments.every(function (fragment) {+ return fragment.getAttribute('data-edge-from') === activeNodeIds[index] &&+ fragment.getAttribute('data-edge-to') === activeNodeIds[index + 1] &&+ (fragment.getAttribute('data-edge-id') || '') === edgeId;+ }) || drawableFragments.length !== 1 || drawableFragments[0] !== edge ||+ edge.getAttribute('data-edge-from') !== activeNodeIds[index] ||+ edge.getAttribute('data-edge-to') !== activeNodeIds[index + 1];+ })) return null;+ return {+ source: { id: startId, label: nodeLabel(byId[startId], startId) },+ target: { id: endId, label: nodeLabel(byId[endId], endId) },+ nodeIds: activeNodeIds.slice(),+ hops: activeEdges.length,+ edges: activeEdges.map(function (edge) {+ return {+ key: edge.getAttribute('data-edge-key'),+ id: edge.getAttribute('data-edge-id') || '',+ from: edge.getAttribute('data-edge-from'),+ to: edge.getAttribute('data-edge-to'),+ label: edge.getAttribute('data-edge-label') || ''+ };+ })+ };+ }+ function edgeShapes(edge) {+ if (/^(path|line|polyline)$/i.test(edge.tagName)) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function removeOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-route-probe-overlay]'), function (overlay) {+ overlay.remove();+ });+ }+ function removeJourneyPulse(options) {+ options = options || {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-route-journey-overlay]'), function (overlay) {+ overlay.remove();+ });+ if (journeyOwnerToken && options.release !== false && Archify.motionGovernor) {+ var token = journeyOwnerToken;+ journeyOwnerToken = 0;+ Archify.motionGovernor.release(token);+ }+ }+ function stopJourneyTimer(options) {+ options = options || {};+ journeyGeneration += 1;+ if (journeyTimer) {+ if (options.preserveElapsed === true && journeyStartedAt) {+ journeyElapsedMs = Math.min(JOURNEY_DWELL_MS, journeyElapsedMs + Math.max(0, Date.now() - journeyStartedAt));+ }+ window.clearTimeout(journeyTimer);+ }+ journeyTimer = null;+ journeyStartedAt = 0;+ if (options.preserveElapsed !== true) journeyElapsedMs = 0;+ }+ function clearJourneyPresentation(options) {+ options = options || {};+ removeJourneyPulse();+ svg.removeAttribute('data-route-journey');+ panel.removeAttribute('data-route-journey');+ nodes().forEach(function (node) {+ node.removeAttribute('data-route-journey-state');+ node.removeAttribute('data-route-journey-current');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-route-journey-state');+ edge.removeAttribute('data-route-journey-current');+ });+ Array.prototype.forEach.call(path.querySelectorAll('[data-route-journey-index]'), function (button, index) {+ button.removeAttribute('data-route-journey-state');+ button.removeAttribute('aria-current');+ button.setAttribute('tabindex', index === 0 ? '0' : '-1');+ });+ if (options.keepControls !== true) journeyControls.hidden = true;+ journeyControls.setAttribute('data-playing', 'false');+ }+ function resetJourneyState() {+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ journeyIndex = -1;+ clearJourneyPresentation();+ }+ function cleanSvgState() {+ resetJourneyState();+ svg.removeAttribute('data-route-picking');+ svg.removeAttribute('data-route-active');+ removeOverlay();+ nodes().forEach(function (node) {+ node.removeAttribute('data-route-match');+ node.removeAttribute('data-route-start');+ node.removeAttribute('data-route-end');+ node.removeAttribute('data-route-step');+ node.removeAttribute('data-route-candidate');+ node.style.removeProperty('--route-step');+ });+ edges().forEach(function (edge) {+ edge.removeAttribute('data-route-match');+ edge.removeAttribute('data-route-step');+ edge.style.removeProperty('--route-step');+ });+ panel.removeAttribute('data-route-dock');+ }+ function replaceRouteHash(value) {+ try {+ history.replaceState(null, '', location.pathname + location.search + (value ? '#route=' + value : ''));+ } catch (_) {}+ }+ function renderPlaceholder(copy) {+ path.textContent = '';+ var placeholder = document.createElement('span');+ placeholder.className = 'route-probe-placeholder';+ placeholder.textContent = copy;+ path.appendChild(placeholder);+ }+ function renderPath(ids, options) {+ options = options || {};+ var byId = nodesById();+ path.textContent = '';+ ids.forEach(function (id, index) {+ if (index) {+ var arrow = document.createElement('span');+ arrow.className = 'route-probe-arrow';+ arrow.setAttribute('aria-hidden', 'true');+ arrow.textContent = '\u2192';+ path.appendChild(arrow);+ }+ var item = document.createElement(options.interactive === true ? 'button' : 'span');+ if (options.interactive === true) {+ item.type = 'button';+ item.setAttribute('data-route-journey-index', String(index));+ item.setAttribute('data-route-node-id', id);+ item.setAttribute('tabindex', index === 0 ? '0' : '-1');+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));+ }+ item.className = 'route-probe-node';+ item.textContent = nodeLabel(byId[id], id);+ item.title = nodeLabel(byId[id], id) + ' · ' + id;+ if (index === 0) item.setAttribute('data-endpoint', 'start');+ if (index === ids.length - 1 && ids.length > 1) item.setAttribute('data-endpoint', 'end');+ path.appendChild(item);+ });+ }+ function setTrigger(active) {+ trigger.setAttribute('aria-pressed', active ? 'true' : 'false');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));+ }+ function clear(options) {+ options = options || {};+ var wasActive = mode !== 'idle';+ if (Archify.finder && Archify.finder.isOpen() && typeof Archify.finder.context === 'function' && Archify.finder.context().indexOf('route-') === 0) {+ Archify.finder.close({ restoreFocus: false });+ }+ mode = 'idle';+ startId = null;+ endId = null;+ activeNodeIds = [];+ activeEdges = [];+ cleanSvgState();+ panel.hidden = true;+ panel.setAttribute('data-state', 'idle');+ panel.removeAttribute('data-finder-open');+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');+ findBtn.hidden = true;+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));+ copyBtn.hidden = true;+ copyBtn.textContent = viewerText('viewer.route.copy');+ if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();+ setTrigger(false);+ if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.updateUrl !== false) replaceRouteHash('');+ if (options.restoreFocus === true) trigger.focus();+ }+ function outgoingByNode() {+ var byId = nodesById();+ var outgoing = Object.create(null);+ edges().forEach(function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ if (!byId[from] || !byId[to] || from === to) return;+ if (!outgoing[from]) outgoing[from] = [];+ outgoing[from].push({ edge: edge, to: to });+ });+ return outgoing;+ }+ function reachableFrom(source) {+ var outgoing = outgoingByNode();+ var reached = Object.create(null);+ var queue = [source];+ reached[source] = true;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.forEach(function (link) {+ if (reached[link.to]) return;+ reached[link.to] = true;+ queue.push(link.to);+ });+ }+ return reached;+ }+ function hopDistancesFrom(source) {+ var outgoing = outgoingByNode();+ var distances = Object.create(null);+ var queue = [source];+ distances[source] = 0;+ for (var cursor = 0; cursor < queue.length; cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.forEach(function (link) {+ if (Object.prototype.hasOwnProperty.call(distances, link.to)) return;+ distances[link.to] = distances[queue[cursor]] + 1;+ queue.push(link.to);+ });+ }+ return distances;+ }+ function shortestDirectedPath(source, target) {+ if (source === target) return null;+ var outgoing = outgoingByNode();+ var previous = Object.create(null);+ var queue = [source];+ previous[source] = null;+ for (var cursor = 0; cursor < queue.length && !Object.prototype.hasOwnProperty.call(previous, target); cursor += 1) {+ var links = outgoing[queue[cursor]] || [];+ links.some(function (link) {+ if (Object.prototype.hasOwnProperty.call(previous, link.to)) return false;+ previous[link.to] = { from: queue[cursor], edge: link.edge };+ queue.push(link.to);+ return link.to === target;+ });+ }+ if (!Object.prototype.hasOwnProperty.call(previous, target)) return null;+ var nodeIds = [target];+ var routeEdges = [];+ var current = target;+ while (current !== source) {+ var step = previous[current];+ if (!step) return null;+ routeEdges.unshift(step.edge);+ nodeIds.unshift(step.from);+ current = step.from;+ }+ return { nodes: nodeIds, edges: routeEdges };+ }+ function traceGeometry(shape, step) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-route-match');+ clone.removeAttribute('data-route-step');+ clone.setAttribute('class', 'route-probe-flow');+ clone.setAttribute('pathLength', '1');+ clone.style.setProperty('--route-step', String(step));+ return clone;+ }+ function renderOverlay(routeEdges) {+ removeOverlay();+ if (!routeEdges.length) return;+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'route-probe-overlay');+ overlay.setAttribute('data-route-probe-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ routeEdges.forEach(function (edge, step) {+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) { wrapper.appendChild(traceGeometry(shape, step)); });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ }+ function journeyButtons() {+ return Array.prototype.slice.call(path.querySelectorAll('[data-route-journey-index]'));+ }+ function journeyMotionAllowed() {+ return html.getAttribute('data-embed') !== 'true' &&+ !document.hidden &&+ Archify.motionGovernor &&+ Archify.motionGovernor.capable === true &&+ !Archify.motionGovernor.isPaused();+ }+ function routeOverviewStatus() {+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });+ }+ function centerJourneyButton(button) {+ if (!button) return;+ var target = button.offsetLeft - Math.max(0, (path.clientWidth - button.offsetWidth) / 2);+ path.scrollLeft = Math.max(0, target);+ }+ function focusJourneyButton(index) {+ var buttons = journeyButtons();+ if (!buttons.length) return false;+ var next = Math.max(0, Math.min(buttons.length - 1, index));+ buttons.forEach(function (button, buttonIndex) {+ button.setAttribute('tabindex', buttonIndex === next ? '0' : '-1');+ });+ try { buttons[next].focus({ preventScroll: true }); } catch (_) { buttons[next].focus(); }+ centerJourneyButton(buttons[next]);+ return true;+ }+ function renderJourneyControls() {+ var hasRoute = mode === 'result' && activeNodeIds.length > 1;+ var canPlay = hasRoute && journeyMotionAllowed();+ journeyControls.hidden = !hasRoute;+ journeyControls.setAttribute('data-playing', journeyPlaying ? 'true' : 'false');+ journeyPrevBtn.disabled = !hasRoute || journeyIndex <= 0;+ journeyNextBtn.disabled = !hasRoute || journeyIndex >= activeNodeIds.length - 1;+ journeyOverviewBtn.disabled = !hasRoute || journeyIndex < 0;+ journeyPlayBtn.disabled = !canPlay;+ journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');+ if (journeyPlaying) {+ journeyPlayIcon.textContent = '\u275a\u275a';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');+ } else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {+ journeyPlayIcon.textContent = '\u21bb';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');+ } else {+ journeyPlayIcon.textContent = '\u25b6';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');+ }+ }+ function journeyGeometry(shape) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-labelledby');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-route-match');+ clone.removeAttribute('data-route-step');+ clone.removeAttribute('data-route-journey-state');+ clone.removeAttribute('data-route-journey-current');+ clone.setAttribute('class', 'route-journey-flow');+ clone.setAttribute('pathLength', '1');+ return clone;+ }+ function renderJourneyPulse(edge) {+ removeJourneyPulse();+ if (!edge || !journeyMotionAllowed()) return false;+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'route-journey-overlay');+ overlay.setAttribute('data-route-journey-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ var wrapper = document.createElementNS(namespace, 'g');+ if (edge.hasAttribute('transform')) wrapper.setAttribute('transform', edge.getAttribute('transform'));+ edgeShapes(edge).forEach(function (shape) { wrapper.appendChild(journeyGeometry(shape)); });+ if (!wrapper.childNodes.length) return false;+ overlay.appendChild(wrapper);+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ if (Archify.motionGovernor && Archify.motionGovernor.capable) {+ var token = 0;+ token = Archify.motionGovernor.claim('route', function () {+ if (journeyOwnerToken === token) journeyOwnerToken = 0;+ removeJourneyPulse({ release: false });+ });+ journeyOwnerToken = token;+ }+ overlay.addEventListener('animationend', function () {+ if (overlay.isConnected) removeJourneyPulse();+ }, { once: true });+ window.setTimeout(function () {+ if (overlay.isConnected) removeJourneyPulse();+ }, 860);+ return true;+ }+ function applyJourneyState(index, options) {+ options = options || {};+ if (mode !== 'result' || !activeNodeIds.length) return false;+ var byId = nodesById();+ journeyIndex = Math.max(0, Math.min(activeNodeIds.length - 1, index));+ removeJourneyPulse();+ svg.setAttribute('data-route-journey', (journeyIndex + 1) + '/' + activeNodeIds.length);+ panel.setAttribute('data-route-journey', String(journeyIndex));+ activeNodeIds.forEach(function (id, step) {+ var node = byId[id];+ if (!node) return;+ var state = step < journeyIndex ? 'past' : (step === journeyIndex ? 'current' : 'future');+ node.setAttribute('data-route-journey-state', state);+ if (step === journeyIndex) node.setAttribute('data-route-journey-current', '');+ else node.removeAttribute('data-route-journey-current');+ });+ activeEdges.forEach(function (edge, step) {+ var destination = step + 1;+ var state = destination < journeyIndex ? 'past' : (destination === journeyIndex ? 'current' : 'future');+ edge.setAttribute('data-route-journey-state', state);+ if (destination === journeyIndex) edge.setAttribute('data-route-journey-current', '');+ else edge.removeAttribute('data-route-journey-current');+ });+ var buttons = journeyButtons();+ buttons.forEach(function (button, step) {+ var state = step < journeyIndex ? 'past' : (step === journeyIndex ? 'current' : 'future');+ button.setAttribute('data-route-journey-state', state);+ button.setAttribute('tabindex', step === journeyIndex ? '0' : '-1');+ if (step === journeyIndex) button.setAttribute('aria-current', 'step');+ else button.removeAttribute('aria-current');+ });+ if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });+ if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {+ includeNeighbors: false,+ reason: 'route-journey',+ maxScale: 1.65,+ padding: 64,+ duration: 360,+ instant: !journeyMotionAllowed()+ });+ }+ renderJourneyControls();+ requestDocking();+ return true;+ }+ function pauseJourney(options) {+ options = options || {};+ if (!journeyPlaying && options.complete !== true) {+ renderJourneyControls();+ return false;+ }+ stopJourneyTimer({ preserveElapsed: options.complete !== true && options.preserveElapsed !== false });+ journeyPlaying = false;+ journeyComplete = options.complete === true;+ if (journeyComplete) journeyElapsedMs = 0;+ removeJourneyPulse();+ if (journeyIndex >= 0) applyJourneyState(journeyIndex, { center: false, pulse: false, reveal: false });+ else renderJourneyControls();+ return true;+ }+ function selectJourneyIndex(index) {+ if (mode !== 'result') return false;+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ return applyJourneyState(index, { pulse: true, reveal: true });+ }+ function showJourneyOverview(options) {+ options = options || {};+ if (mode !== 'result') return false;+ stopJourneyTimer();+ journeyPlaying = false;+ journeyComplete = false;+ journeyIndex = -1;+ clearJourneyPresentation({ keepControls: true });+ status.textContent = routeOverviewStatus();+ renderJourneyControls();+ if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(activeNodeIds, { includeNeighbors: false, reason: 'route', instant: !journeyMotionAllowed() });+ }+ requestDocking();+ return true;+ }+ function scheduleJourney() {+ if (!journeyPlaying || !journeyMotionAllowed()) {+ pauseJourney({ preserveElapsed: true });+ return false;+ }+ var generation = ++journeyGeneration;+ var remaining = Math.max(0, JOURNEY_DWELL_MS - journeyElapsedMs);+ journeyStartedAt = Date.now();+ journeyTimer = window.setTimeout(function () {+ if (generation !== journeyGeneration || !journeyPlaying) return;+ journeyTimer = null;+ journeyStartedAt = 0;+ journeyElapsedMs = 0;+ if (journeyIndex >= activeNodeIds.length - 1) {+ pauseJourney({ complete: true, preserveElapsed: false });+ return;+ }+ applyJourneyState(journeyIndex + 1, { pulse: true, reveal: true });+ // Camera and motion-owner handoff are allowed to synchronously+ // settle the previous step. The new step always starts with a fresh+ // dwell; never carry cleanup time into the next scheduler lease.+ journeyElapsedMs = 0;+ journeyStartedAt = 0;+ scheduleJourney();+ }, remaining);+ return true;+ }+ function playJourney() {+ if (mode !== 'result' || activeNodeIds.length < 2 || !journeyMotionAllowed()) {+ renderJourneyControls();+ return false;+ }+ if (journeyPlaying) return true;+ if (journeyComplete || journeyIndex >= activeNodeIds.length - 1) {+ journeyIndex = -1;+ journeyElapsedMs = 0;+ journeyComplete = false;+ }+ journeyPlaying = true;+ if (journeyIndex < 0) applyJourneyState(0, { pulse: false, reveal: true });+ else applyJourneyState(journeyIndex, { center: false, pulse: false, reveal: false });+ scheduleJourney();+ return true;+ }+ function toggleJourney() {+ return journeyPlaying ? pauseJourney({ preserveElapsed: true }) : playJourney();+ }+ function previousJourney() {+ return selectJourneyIndex(Math.max(0, journeyIndex < 0 ? 0 : journeyIndex - 1));+ }+ function nextJourney() {+ return selectJourneyIndex(Math.min(activeNodeIds.length - 1, journeyIndex + 1));+ }+ function overlapArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function updateDocking() {+ if (panel.hidden) {+ panel.removeAttribute('data-route-dock');+ return;+ }+ var containerRect = container.getBoundingClientRect();+ var width = panel.offsetWidth;+ var height = panel.offsetHeight;+ if (!width || !height) return;+ var currentRect = panel.getBoundingClientRect();+ var left = currentRect.left;+ var topCandidate = {+ left: left,+ right: left + width,+ top: containerRect.top + 8,+ bottom: containerRect.top + 8 + height+ };+ var nav = container.querySelector('.diagram-nav');+ var navRect = nav ? nav.getBoundingClientRect() : null;+ var bottom = navRect ? navRect.top - 9 : containerRect.bottom - 8;+ var bottomCandidate = {+ left: left,+ right: left + width,+ top: bottom - height,+ bottom: bottom+ };+ var byId = nodesById();+ var relevant = activeNodeIds.length ? activeNodeIds : (startId ? [startId] : []);+ var blockers = relevant.map(function (id) { return byId[id]; }).filter(Boolean).map(function (node) {+ return node.getBoundingClientRect();+ });+ function score(candidate) {+ var value = blockers.reduce(function (sum, rect) { return sum + overlapArea(candidate, rect); }, 0);+ if (navRect) value += overlapArea(candidate, navRect) * 4;+ if (candidate.top < containerRect.top || candidate.bottom > containerRect.bottom) value += 1000000;+ return value;+ }+ if (score(topCandidate) <= score(bottomCandidate)) panel.setAttribute('data-route-dock', 'top');+ else panel.setAttribute('data-route-dock', 'bottom');+ }+ function requestDocking() {+ requestAnimationFrame(updateDocking);+ window.setTimeout(updateDocking, 120);+ window.setTimeout(updateDocking, 560);+ }+ function chooseStart(id) {+ var byId = nodesById();+ if (!byId[id]) return false;+ cleanSvgState();+ startId = id;+ endId = null;+ mode = 'target';+ var reached = reachableFrom(id);+ byId[id].setAttribute('data-route-start', '');+ byId[id].setAttribute('data-route-match', '');+ Object.keys(reached).forEach(function (candidateId) {+ if (candidateId !== id && byId[candidateId]) byId[candidateId].setAttribute('data-route-candidate', '');+ });+ svg.setAttribute('data-route-picking', 'target');+ panel.setAttribute('data-state', 'target');+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });+ renderPath([id]);+ var count = Math.max(0, Object.keys(reached).length - 1);+ status.textContent = count+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');+ findBtn.hidden = false;+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));+ requestDocking();+ return true;+ }+ function showResult(result, options) {+ options = options || {};+ var byId = nodesById();+ cleanSvgState();+ mode = 'result';+ startId = result.nodes[0];+ endId = result.nodes[result.nodes.length - 1];+ activeNodeIds = result.nodes.slice();+ activeEdges = result.edges.slice();+ result.nodes.forEach(function (id, step) {+ var node = byId[id];+ if (!node) return;+ node.setAttribute('data-route-match', '');+ node.setAttribute('data-route-step', String(step));+ node.style.setProperty('--route-step', String(step));+ if (step === 0) node.setAttribute('data-route-start', '');+ if (step === result.nodes.length - 1) node.setAttribute('data-route-end', '');+ });+ result.edges.forEach(function (edge, step) {+ edge.setAttribute('data-route-match', '');+ edge.setAttribute('data-route-step', String(step));+ edge.style.setProperty('--route-step', String(step));+ });+ svg.setAttribute('data-route-active', startId + '~' + endId);+ renderOverlay(result.edges);+ renderPath(result.nodes, { interactive: true });+ panel.setAttribute('data-state', 'result');+ panel.hidden = false;+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });+ findBtn.hidden = true;+ copyBtn.hidden = false;+ setTrigger(true);+ if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();+ if (options.updateUrl !== false) {+ replaceRouteHash(encodeURIComponent(startId) + '~' + encodeURIComponent(endId));+ }+ showJourneyOverview({ reveal: false });+ if (Archify.view && typeof Archify.view.reveal === 'function') {+ Archify.view.reveal(result.nodes, { includeNeighbors: false, reason: 'route' });+ }+ return true;+ }+ function choose(id, options) {+ options = options || {};+ var byId = nodesById();+ if (!byId[id]) return false;+ if (mode === 'source') return chooseStart(id);+ if (mode !== 'target') return false;+ if (id === startId) {+ panel.setAttribute('data-state', 'error');+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');+ return false;+ }+ var result = shortestDirectedPath(startId, id);+ if (!result) {+ panel.setAttribute('data-state', 'error');+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });+ return false;+ }+ return showResult(result, options);+ }+ function begin(options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.semanticLens && Archify.semanticLens.active()) {+ Archify.semanticLens.clear({ updateUrl: false, preserveView: true, closePanel: true });+ }+ var focused = options.source || (Archify.focus && typeof Archify.focus.active === 'function' ? Archify.focus.active() : null);+ if (Array.isArray(focused)) focused = null;+ clear({ updateUrl: false, preserveView: true, restoreFocus: false });+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') Archify.intentTrace.clear({ announce: false });+ if (Archify.focus && typeof Archify.focus.clear === 'function') {+ Archify.focus.clear({ updateUrl: false, preserveView: true });+ }+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ mode = 'source';+ panel.hidden = false;+ panel.setAttribute('data-state', 'source');+ svg.setAttribute('data-route-picking', 'source');+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');+ findBtn.hidden = false;+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));+ copyBtn.hidden = true;+ setTrigger(true);+ if (focused && nodesById()[focused]) chooseStart(focused);+ if (options.focusNode === true && !focused) {+ var first = nodes()[0];+ if (first) {+ try { first.focus({ preventScroll: true }); } catch (_) { try { first.focus(); } catch (_) {} }+ }+ }+ return true;+ }+ function toggle(options) {+ if (mode !== 'idle') {+ clear({ restoreFocus: true });+ return false;+ }+ return begin(options);+ }+ function finderContext() {+ var byId = nodesById();+ if (mode === 'source') {+ var outgoing = outgoingByNode();+ var sourceIds = nodes().map(function (node) { return node.getAttribute('data-node-id'); }).filter(function (id) {+ return outgoing[id] && outgoing[id].length;+ });+ var sourceBadges = Object.create(null);+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });+ return {+ kind: 'route-source',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),+ allowedIds: sourceIds,+ badges: sourceBadges+ };+ }+ if (mode === 'target' && startId && byId[startId]) {+ var distances = hopDistancesFrom(startId);+ var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });+ var targetBadges = Object.create(null);+ targetIds.forEach(function (id) {+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);+ });+ return {+ kind: 'route-target',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),+ allowedIds: targetIds,+ badges: targetBadges+ };+ }+ return null;+ }+ function finderOpening() {+ panel.setAttribute('data-finder-open', 'true');+ }+ function finderClosed(options) {+ options = options || {};+ panel.removeAttribute('data-finder-open');+ requestDocking();+ if (options.restoreFocus === true && !findBtn.hidden) findBtn.focus();+ }+ function openFinder() {+ var context = finderContext();+ if (!context || !Archify.finder) return false;+ return Archify.finder.open({ context: context });+ }+ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }+ function copyLink() {+ if (mode !== 'result') return Promise.resolve(false);+ var value = location.href.replace(/#.*$/, '') + '#route=' + encodeURIComponent(startId) + '~' + encodeURIComponent(endId);+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));+ window.setTimeout(function () {+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));+ }, 1600);+ return copied;+ });+ }+ function interceptSelection(event) {+ if (mode !== 'source' && mode !== 'target') return;+ if (container.getAttribute('data-just-panned') === 'true') return;+ var node = event.target.closest('[data-node-id]');+ if (!node) return;+ if (event.type === 'keydown' && event.key !== 'Enter' && event.key !== ' ') return;+ event.preventDefault();+ event.stopImmediatePropagation();+ choose(node.getAttribute('data-node-id'));+ }+ function syncFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var route = params.get('route');+ if (!route) {+ if (mode !== 'idle') clear({ updateUrl: false, restoreFocus: false });+ return;+ }+ var parts = route.split('~');+ if (parts.length !== 2) return;+ var byId = nodesById();+ if (!byId[parts[0]] || !byId[parts[1]]) return;+ begin({ source: parts[0], focusNode: false });+ choose(parts[1], { updateUrl: false });+ } catch (_) {}+ }+ function escapeRoute(options) {+ options = options || {};+ if (journeyPlaying) {+ pauseJourney({ preserveElapsed: true });+ if (options.restoreFocus === true) journeyPlayBtn.focus();+ return 'paused';+ }+ if (journeyIndex >= 0) {+ showJourneyOverview({ reveal: true });+ if (options.restoreFocus === true) journeyOverviewBtn.focus();+ return 'overview';+ }+ clear({ restoreFocus: options.restoreFocus === true });+ return 'cleared';+ }+ function syncJourneyMotion() {+ if (journeyPlaying && !journeyMotionAllowed()) pauseJourney({ preserveElapsed: true });+ renderJourneyControls();+ return journeyMotionAllowed();+ }++ trigger.addEventListener('click', function () { toggle({ focusNode: false }); });+ findBtn.addEventListener('click', openFinder);+ clearBtn.addEventListener('click', function () { clear({ restoreFocus: true }); });+ copyBtn.addEventListener('click', copyLink);+ journeyPrevBtn.addEventListener('click', previousJourney);+ journeyPlayBtn.addEventListener('click', toggleJourney);+ journeyNextBtn.addEventListener('click', nextJourney);+ journeyOverviewBtn.addEventListener('click', function () { showJourneyOverview({ reveal: true }); });+ path.addEventListener('click', function (event) {+ var button = event.target.closest('[data-route-journey-index]');+ if (!button) return;+ selectJourneyIndex(Number(button.getAttribute('data-route-journey-index')));+ });+ path.addEventListener('focusin', function (event) {+ if (journeyPlaying && event.target.closest('[data-route-journey-index]')) pauseJourney({ preserveElapsed: true });+ });+ path.addEventListener('keydown', function (event) {+ var button = event.target.closest('[data-route-journey-index]');+ if (!button) return;+ var index = Number(button.getAttribute('data-route-journey-index'));+ var next = null;+ if (event.key === 'ArrowRight') next = Math.min(activeNodeIds.length - 1, index + 1);+ else if (event.key === 'ArrowLeft') next = Math.max(0, index - 1);+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = activeNodeIds.length - 1;+ if (next !== null) {+ event.preventDefault();+ focusJourneyButton(next);+ return;+ }+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ selectJourneyIndex(index);+ }+ });+ svg.addEventListener('click', interceptSelection, true);+ svg.addEventListener('keydown', interceptSelection, true);+ container.addEventListener('scroll', updateDocking, { passive: true });+ window.addEventListener('resize', requestDocking);+ window.addEventListener('beforeprint', function () {+ if (journeyPlaying) pauseJourney({ preserveElapsed: true, reason: 'print' });+ else removeJourneyPulse();+ });+ window.addEventListener('hashchange', function () { requestAnimationFrame(syncFromHash); });+ syncFromHash();++ return {+ begin: begin,+ choose: choose,+ clear: clear,+ toggle: toggle,+ escape: escapeRoute,+ copyLink: copyLink,+ playJourney: playJourney,+ pauseJourney: pauseJourney,+ showOverview: showJourneyOverview,+ selectJourneyIndex: selectJourneyIndex,+ syncMotion: syncJourneyMotion,+ isJourneyPlaying: function () { return journeyPlaying; },+ finderContext: finderContext,+ finderOpening: finderOpening,+ finderClosed: finderClosed,+ openFinder: openFinder,+ exportSnapshot: exportSnapshot,+ active: function () { return mode === 'idle' ? null : mode; },+ result: function () {+ return mode === 'result'+ ? { source: startId, target: endId, nodes: activeNodeIds.slice(), hops: activeEdges.length, journey: journeyIndex, playing: journeyPlaying }+ : null;+ }+ };+ })();++ /* ============================================================+ Semantic Lens — a counted, viewer-only legend over data-node-kind.+ One selected kind reveals every authored relationship touching it.+ Two selected kinds compare only direct cross-kind relationships while+ preserving the full diagram as a dimmed spatial reference.+ ============================================================ */+ Archify.semanticLens = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-semantic-lens');+ var panel = document.getElementById('semantic-lens');+ var closeBtn = document.getElementById('semantic-lens-close');+ var kindsRoot = document.getElementById('semantic-lens-kinds');+ var status = document.getElementById('semantic-lens-status');+ var copyBtn = document.getElementById('semantic-lens-copy');+ var clearBtn = document.getElementById('semantic-lens-clear');+ var legendBridge = svg.querySelector('[data-legend-bridge]');+ var legendEntries = [];+ var hoveredLegendEntry = null;+ var focusedLegendEntry = null;+ var activeLegendPreview = null;+ var lensOpener = trigger;+ var selectedKinds = [];+ var namespace = 'http://www.w3.org/2000/svg';+ var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;+ var MAX_LENS_FLOW_EDGES = 24;++ function nodesById() {+ var byId = Object.create(null);+ Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {+ var id = node.getAttribute('data-node-id');+ if (id && !byId[id]) byId[id] = node;+ });+ return byId;+ }+ function collectKinds() {+ var kinds = {};+ var byId = nodesById();+ Object.keys(byId).forEach(function (id) {+ var node = byId[id];+ var value = node.getAttribute('data-node-kind') || 'neutral';+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });+ kind.nodes.push(node);+ });+ return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {+ return b.nodes.length - a.nodes.length || a.label.localeCompare(b.label);+ });+ }+ function edgeGroups() {+ var groups = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var from = edge.getAttribute('data-edge-from');+ var to = edge.getAttribute('data-edge-to');+ var key = edge.getAttribute('data-edge-key') || [from, to, edge.getAttribute('data-edge-label') || ''].join('\u0000');+ if (!groups[key]) groups[key] = { key: key, from: from, to: to, members: [] };+ groups[key].members.push(edge);+ });+ return Object.keys(groups).map(function (key) { return groups[key]; });+ }+ function edgeShapes(edge) {+ if (!edge) return [];+ if (/^(path|line|polyline)$/i.test(edge.tagName || '')) return [edge];+ return Array.prototype.slice.call(edge.querySelectorAll('path, line, polyline'));+ }+ function legendSourceBounds(entry) {+ var bounds = null;+ Array.prototype.forEach.call(entry.children, function (child) {+ if (child.hasAttribute('data-legend-bridge-runtime')) return;+ var box;+ try { box = child.getBBox(); } catch (_) { return; }+ if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y)) return;+ var next = { left: box.x, top: box.y, right: box.x + box.width, bottom: box.y + box.height };+ if (!bounds) bounds = next;+ else {+ bounds.left = Math.min(bounds.left, next.left);+ bounds.top = Math.min(bounds.top, next.top);+ bounds.right = Math.max(bounds.right, next.right);+ bounds.bottom = Math.max(bounds.bottom, next.bottom);+ }+ });+ return bounds;+ }+ function layoutLegendEntry(entry) {+ var bounds = legendSourceBounds(entry);+ var hit = entry.querySelector('[data-legend-hit]');+ var badge = entry.querySelector('[data-legend-count-badge]');+ if (!bounds || !hit || !badge) return false;+ var count = entry.getAttribute('data-legend-count') || '0';+ var centerY = (bounds.top + bounds.bottom) / 2;+ var badgeWidth = Math.max(14, count.length * 5 + 8);+ var badgeX = bounds.right + 3;+ var hitX = bounds.left - 5;+ var hitRight = badgeX + badgeWidth + 4;+ hit.setAttribute('x', hitX.toFixed(2));+ hit.setAttribute('y', (centerY - 12).toFixed(2));+ hit.setAttribute('width', Math.max(24, hitRight - hitX).toFixed(2));+ hit.setAttribute('height', '24');+ hit.setAttribute('rx', '4');+ var badgeRect = badge.querySelector('rect');+ var badgeText = badge.querySelector('text');+ badgeRect.setAttribute('x', badgeX.toFixed(2));+ badgeRect.setAttribute('y', (centerY - 7).toFixed(2));+ badgeRect.setAttribute('width', badgeWidth.toFixed(2));+ badgeRect.setAttribute('height', '14');+ badgeRect.setAttribute('rx', '7');+ badgeText.setAttribute('x', (badgeX + badgeWidth / 2).toFixed(2));+ badgeText.setAttribute('y', (centerY + 2.5).toFixed(2));+ return true;+ }+ function layoutLegendBridge() {+ legendEntries.forEach(layoutLegendEntry);+ if (!legendBridge) return;+ Array.prototype.forEach.call(legendBridge.querySelectorAll('[data-legend-zero]'), layoutLegendEntry);+ }+ function decorateLegendBridge() {+ legendEntries = [];+ if (!legendBridge || html.getAttribute('data-embed') === 'true') return false;+ var facts = {};+ collectKinds().forEach(function (kind) { facts[kind.id] = kind; });+ Array.prototype.forEach.call(legendBridge.querySelectorAll('[data-legend-kind]'), function (entry) {+ var kind = entry.getAttribute('data-legend-kind');+ var fact = facts[kind];+ var count = fact ? fact.nodes.length : 0;+ entry.setAttribute('data-legend-count', String(count));+ var hit = document.createElementNS(namespace, 'rect');+ hit.setAttribute('data-legend-bridge-runtime', '');+ hit.setAttribute('data-legend-hit', '');+ hit.setAttribute('aria-hidden', 'true');+ entry.insertBefore(hit, entry.firstChild);+ var badge = document.createElementNS(namespace, 'g');+ badge.setAttribute('data-legend-bridge-runtime', '');+ badge.setAttribute('data-legend-count-badge', '');+ badge.setAttribute('aria-hidden', 'true');+ badge.appendChild(document.createElementNS(namespace, 'rect'));+ var countText = document.createElementNS(namespace, 'text');+ countText.textContent = String(count);+ badge.appendChild(countText);+ entry.appendChild(badge);+ if (!fact || !count) {+ entry.setAttribute('data-legend-zero', '');+ return;+ }+ entry.setAttribute('role', 'button');+ entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');+ var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));+ entry.setAttribute('aria-pressed', 'false');+ entry.setAttribute('aria-haspopup', 'dialog');+ entry.setAttribute('aria-controls', 'semantic-lens');+ entry.setAttribute('aria-expanded', 'false');+ legendEntries.push(entry);+ });+ if (!legendEntries.length) return false;+ legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));+ syncLegendBridge();+ layoutLegendBridge();+ try {+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(layoutLegendBridge);+ } catch (_) {}+ return true;+ }+ function syncLegendBridge() {+ legendEntries.forEach(function (entry) {+ var selected = selectedKinds.indexOf(entry.getAttribute('data-legend-kind')) >= 0;+ entry.setAttribute('aria-pressed', selected ? 'true' : 'false');+ entry.setAttribute('aria-expanded', !panel.hidden && lensOpener === entry ? 'true' : 'false');+ if (selected) entry.setAttribute('data-legend-selected', '');+ else entry.removeAttribute('data-legend-selected');+ });+ }+ function clearLegendPreview() {+ activeLegendPreview = null;+ svg.removeAttribute('data-legend-preview-active');+ Array.prototype.forEach.call(svg.querySelectorAll('[data-legend-preview-match], [data-legend-preview-selected], [data-legend-preview-peer]'), function (element) {+ element.removeAttribute('data-legend-preview-match');+ element.removeAttribute('data-legend-preview-selected');+ element.removeAttribute('data-legend-preview-peer');+ });+ }+ function strongerLegendOwnerActive() {+ return selectedKinds.length > 0 || !panel.hidden || html.getAttribute('data-present') === 'true' ||+ svg.hasAttribute('data-focus-active') || svg.hasAttribute('data-intent-trace-active') ||+ svg.hasAttribute('data-route-picking') || svg.hasAttribute('data-route-active') ||+ svg.hasAttribute('data-relationship-preview-active');+ }+ function previewLegendKind(entry) {+ clearLegendPreview();+ if (!entry || strongerLegendOwnerActive()) return false;+ var kind = entry.getAttribute('data-legend-kind');+ var byId = nodesById();+ var matches = Object.keys(byId).filter(function (id) {+ return (byId[id].getAttribute('data-node-kind') || 'neutral') === kind;+ });+ if (!matches.length) return false;+ var chosen = Object.create(null);+ matches.forEach(function (id) {+ chosen[id] = true;+ byId[id].setAttribute('data-legend-preview-match', '');+ byId[id].setAttribute('data-legend-preview-selected', '');+ });+ edgeGroups().forEach(function (edge) {+ if (!chosen[edge.from] && !chosen[edge.to]) return;+ edge.members.forEach(function (member) { member.setAttribute('data-legend-preview-match', ''); });+ [edge.from, edge.to].forEach(function (id) {+ if (!byId[id] || chosen[id]) return;+ byId[id].setAttribute('data-legend-preview-match', '');+ byId[id].setAttribute('data-legend-preview-peer', '');+ });+ });+ svg.setAttribute('data-legend-preview-active', kind);+ activeLegendPreview = entry;+ return true;+ }+ function syncLegendPreview() {+ var next = focusedLegendEntry || hoveredLegendEntry;+ if (next === activeLegendPreview) return;+ clearLegendPreview();+ if (next) previewLegendKind(next);+ }+ function activateLegendEntry(entry) {+ if (!entry || entry.getAttribute('role') !== 'button') return false;+ clearLegendPreview();+ select(entry.getAttribute('data-legend-kind'));+ return open({ opener: entry });+ }+ function removeFlowOverlay() {+ Array.prototype.forEach.call(svg.querySelectorAll('[data-semantic-lens-overlay]'), function (element) {+ element.remove();+ });+ svg.removeAttribute('data-lens-flow-count');+ svg.removeAttribute('data-lens-flow-density');+ }+ function flowGeometry(shape, direction, step) {+ var clone = shape.cloneNode(false);+ clone.removeAttribute('id');+ clone.removeAttribute('class');+ clone.removeAttribute('style');+ clone.removeAttribute('marker-start');+ clone.removeAttribute('marker-mid');+ clone.removeAttribute('marker-end');+ clone.removeAttribute('role');+ clone.removeAttribute('aria-label');+ clone.removeAttribute('aria-hidden');+ clone.removeAttribute('data-animate');+ clone.removeAttribute('data-edge-from');+ clone.removeAttribute('data-edge-to');+ clone.removeAttribute('data-edge-key');+ clone.removeAttribute('data-edge-id');+ clone.removeAttribute('data-edge-label');+ clone.removeAttribute('data-lens-match');+ clone.setAttribute('class', 'semantic-lens-flow');+ clone.setAttribute('data-direction', direction);+ clone.setAttribute('pathLength', '1');+ clone.style.setProperty('--lens-flow-delay', (step * 0.08).toFixed(2) + 's');+ return clone;+ }+ function renderFlowOverlay(entries) {+ removeFlowOverlay();+ svg.setAttribute('data-lens-flow-count', String(entries.length));+ if (!entries.length || html.getAttribute('data-embed') === 'true') return false;+ if (entries.length > MAX_LENS_FLOW_EDGES) {+ svg.setAttribute('data-lens-flow-density', 'quiet');+ return false;+ }+ var overlay = document.createElementNS(namespace, 'g');+ overlay.setAttribute('class', 'semantic-lens-overlay');+ overlay.setAttribute('data-semantic-lens-overlay', '');+ overlay.setAttribute('aria-hidden', 'true');+ entries.forEach(function (entry, step) {+ var wrapper = document.createElementNS(namespace, 'g');+ if (entry.edge.members[0].hasAttribute('transform')) {+ wrapper.setAttribute('transform', entry.edge.members[0].getAttribute('transform'));+ }+ edgeShapes(entry.edge.members[0]).forEach(function (shape) {+ wrapper.appendChild(flowGeometry(shape, entry.direction, step));+ });+ if (wrapper.childNodes.length) overlay.appendChild(wrapper);+ });+ if (!overlay.childNodes.length) return false;+ var firstNode = svg.querySelector('[data-node-id]');+ if (firstNode) svg.insertBefore(overlay, firstNode);+ else svg.appendChild(overlay);+ return true;+ }+ function cleanSvgState() {+ removeFlowOverlay();+ svg.removeAttribute('data-lens-active');+ Array.prototype.forEach.call(svg.querySelectorAll('[data-lens-match], [data-lens-selected], [data-lens-peer]'), function (element) {+ element.removeAttribute('data-lens-match');+ element.removeAttribute('data-lens-selected');+ element.removeAttribute('data-lens-peer');+ });+ }+ function renderKinds() {+ kindsRoot.textContent = '';+ collectKinds().forEach(function (kind) {+ var button = document.createElement('button');+ button.type = 'button';+ button.className = 'semantic-lens-kind';+ button.setAttribute('data-kind', kind.id);+ button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));+ button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;+ var swatch = document.createElement('span');+ swatch.className = 'semantic-lens-swatch';+ swatch.setAttribute('aria-hidden', 'true');+ var label = document.createElement('strong');+ label.textContent = kind.label;+ var count = document.createElement('em');+ count.textContent = String(kind.nodes.length);+ button.appendChild(swatch);+ button.appendChild(label);+ button.appendChild(count);+ kindsRoot.appendChild(button);+ });+ }+ function updateHash() {+ try {+ var hash = selectedKinds.length+ ? '#lens=' + selectedKinds.map(encodeURIComponent).join('~')+ : '';+ history.replaceState(null, '', location.pathname + location.search + hash);+ } catch (_) {}+ }+ function updateTrigger() {+ var active = selectedKinds.length > 0;+ trigger.setAttribute('aria-pressed', active ? 'true' : 'false');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));+ copyBtn.hidden = !active;+ syncLegendBridge();+ }+ function overlapArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function dockPanel(byId) {+ panel.removeAttribute('data-dock-side');+ if (panel.hidden || window.innerWidth <= 720) return 'right';+ var panelRect = panel.getBoundingClientRect();+ var containerRect = container.getBoundingClientRect();+ if (!panelRect.width || !panelRect.height) return 'right';+ var selectedRects = Object.keys(byId).filter(function (id) {+ return selectedKinds.indexOf(byId[id].getAttribute('data-node-kind') || 'neutral') >= 0;+ }).map(function (id) { return byId[id].getBoundingClientRect(); });+ var top = panelRect.top;+ var width = panelRect.width;+ var leftCandidate = { left: containerRect.left + 16, right: containerRect.left + 16 + width, top: top, bottom: panelRect.bottom };+ var rightCandidate = { left: containerRect.right - 16 - width, right: containerRect.right - 16, top: top, bottom: panelRect.bottom };+ var leftScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(leftCandidate, rect); }, 0);+ var rightScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(rightCandidate, rect); }, 0);+ var legend = svg.querySelector('[data-legend]');+ var nav = container.querySelector('.diagram-nav');+ var protectedRects = [legend, nav].filter(function (element) {+ return element && !element.hidden && window.getComputedStyle(element).display !== 'none';+ }).map(function (element) { return element.getBoundingClientRect(); });+ leftScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(leftCandidate, rect) * 1000;+ }, 0);+ rightScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(rightCandidate, rect) * 1000;+ }, 0);+ var side = leftScore < rightScore ? 'left' : 'right';+ panel.setAttribute('data-dock-side', side);+ return side;+ }+ function applySelection(options) {+ options = options || {};+ cleanSvgState();+ var byId = nodesById();+ var nodeKind = Object.create(null);+ Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });+ if (!selectedKinds.length) {+ status.textContent = viewerText('viewer.lens.choose');+ updateTrigger();+ renderKinds();+ dockPanel(byId);+ if (options.updateUrl !== false) updateHash();+ return false;+ }++ var chosen = {};+ selectedKinds.forEach(function (kind) { chosen[kind] = true; });+ Object.keys(byId).forEach(function (id) {+ if (!chosen[nodeKind[id]]) return;+ byId[id].setAttribute('data-lens-match', '');+ byId[id].setAttribute('data-lens-selected', '');+ });++ var touching = 0;+ var forward = 0;+ var reverse = 0;+ var crossKind = selectedKinds.length === 2;+ var matchedFlow = [];+ edgeGroups().forEach(function (edge) {+ var fromKind = nodeKind[edge.from];+ var toKind = nodeKind[edge.to];+ var match = false;+ if (crossKind) {+ if (fromKind === selectedKinds[0] && toKind === selectedKinds[1]) { match = true; forward += 1; }+ if (fromKind === selectedKinds[1] && toKind === selectedKinds[0]) { match = true; reverse += 1; }+ } else if (fromKind === selectedKinds[0] || toKind === selectedKinds[0]) {+ match = true;+ touching += 1;+ }+ if (!match) return;+ var direction = 'within';+ if (crossKind) {+ direction = fromKind === selectedKinds[0] ? 'forward' : 'reverse';+ } else {+ direction = fromKind === selectedKinds[0] && toKind !== selectedKinds[0] ? 'out'+ : (toKind === selectedKinds[0] && fromKind !== selectedKinds[0] ? 'in' : 'within');+ }+ matchedFlow.push({ edge: edge, direction: direction });+ edge.members.forEach(function (member) { member.setAttribute('data-lens-match', ''); });+ if (!crossKind) {+ [edge.from, edge.to].forEach(function (id) {+ if (!byId[id]) return;+ byId[id].setAttribute('data-lens-match', '');+ if (!chosen[nodeKind[id]]) byId[id].setAttribute('data-lens-peer', '');+ });+ }+ });++ svg.setAttribute('data-lens-active', selectedKinds.join(' '));+ renderFlowOverlay(matchedFlow);+ if (crossKind) {+ var total = forward + reverse;+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });+ } else {+ var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });+ }+ updateTrigger();+ renderKinds();+ dockPanel(byId);+ if (options.updateUrl !== false) updateHash();+ return true;+ }+ function prepareForLens() {+ clearLegendPreview();+ if (Archify.focus && typeof Archify.focus.clear === 'function') {+ Archify.focus.clear({ updateUrl: false, preserveView: true });+ }+ if (Archify.routeProbe && typeof Archify.routeProbe.clear === 'function') {+ Archify.routeProbe.clear({ updateUrl: false, restoreFocus: false });+ }+ if (Archify.intentTrace && typeof Archify.intentTrace.clear === 'function') {+ Archify.intentTrace.clear({ announce: false });+ }+ }+ function select(kind, options) {+ options = options || {};+ clearLegendPreview();+ var exists = collectKinds().some(function (entry) { return entry.id === kind; });+ if (!exists) return false;+ var index = selectedKinds.indexOf(kind);+ if (index >= 0) selectedKinds.splice(index, 1);+ else {+ if (selectedKinds.length >= 2) return false;+ if (!selectedKinds.length) prepareForLens();+ selectedKinds.push(kind);+ }+ return applySelection(options);+ }+ function close(options) {+ options = options || {};+ panel.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ updateTrigger();+ if (options.restoreFocus !== false && lensOpener && typeof lensOpener.focus === 'function') lensOpener.focus();+ return false;+ }+ function open(options) {+ options = options || {};+ if (html.getAttribute('data-embed') === 'true') return false;+ lensOpener = options.opener || trigger;+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ if (Archify.guide && Archify.guide.isOpen()) Archify.guide.close({ restoreFocus: false });+ renderKinds();+ panel.hidden = false;+ trigger.setAttribute('aria-expanded', 'true');+ updateTrigger();+ requestAnimationFrame(function () {+ dockPanel(nodesById());+ var activeButton = kindsRoot.querySelector('[aria-pressed="true"]');+ var firstButton = activeButton || kindsRoot.querySelector('button:not(:disabled)');+ if (firstButton) firstButton.focus();+ });+ return true;+ }+ function toggle() { return panel.hidden ? open({ opener: trigger }) : close(); }+ function clear(options) {+ options = options || {};+ selectedKinds = [];+ cleanSvgState();+ panel.removeAttribute('data-dock-side');+ updateTrigger();+ renderKinds();+ status.textContent = viewerText('viewer.lens.choose');+ if (options.updateUrl !== false) updateHash();+ if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {+ Archify.view.reset({ automatic: true });+ }+ if (options.closePanel === true) close({ restoreFocus: false });+ return false;+ }+ function fallbackCopy(value) {+ var field = document.createElement('textarea');+ field.value = value;+ field.setAttribute('readonly', '');+ field.style.position = 'fixed';+ field.style.opacity = '0';+ document.body.appendChild(field);+ field.select();+ var copied = false;+ try { copied = document.execCommand('copy'); } catch (_) {}+ field.remove();+ return copied;+ }+ function copyLink() {+ if (!selectedKinds.length) return Promise.resolve(false);+ var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');+ var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'+ ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })+ : Promise.resolve(fallbackCopy(value));+ return copy.then(function (copied) {+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);+ return copied;+ });+ }+ function syncFromHash() {+ try {+ var params = new URLSearchParams(location.hash.replace(/^#/, ''));+ var value = params.get('lens');+ if (!value) {+ if (selectedKinds.length) clear({ updateUrl: false, preserveView: true });+ return;+ }+ var available = collectKinds().map(function (kind) { return kind.id; });+ var requested = value.split('~').filter(function (kind, index, list) {+ return available.indexOf(kind) >= 0 && list.indexOf(kind) === index;+ }).slice(0, 2);+ if (!requested.length) return;+ prepareForLens();+ selectedKinds = requested;+ applySelection({ updateUrl: false });+ } catch (_) {}+ }++ trigger.addEventListener('click', toggle);+ if (decorateLegendBridge()) {+ legendBridge.addEventListener('click', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (entry) activateLegendEntry(entry);+ });+ legendBridge.addEventListener('pointerover', function (event) {+ if (event.pointerType === 'touch' || (finePointerQuery && !finePointerQuery.matches)) return;+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ hoveredLegendEntry = entry;+ syncLegendPreview();+ });+ legendBridge.addEventListener('pointerout', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ if (hoveredLegendEntry === entry) hoveredLegendEntry = null;+ syncLegendPreview();+ });+ legendBridge.addEventListener('focusin', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry) return;+ focusedLegendEntry = entry;+ legendEntries.forEach(function (candidate) {+ candidate.setAttribute('tabindex', candidate === entry ? '0' : '-1');+ });+ syncLegendPreview();+ });+ legendBridge.addEventListener('focusout', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry || (event.relatedTarget && entry.contains(event.relatedTarget))) return;+ if (focusedLegendEntry === entry) focusedLegendEntry = null;+ syncLegendPreview();+ });+ legendBridge.addEventListener('keydown', function (event) {+ var entry = event.target.closest('[data-legend-kind][role="button"]');+ if (!entry) return;+ if (event.key === 'Enter' || event.key === ' ') {+ event.preventDefault();+ activateLegendEntry(entry);+ return;+ }+ var index = legendEntries.indexOf(entry);+ var next = null;+ if (event.key === 'ArrowRight') next = (index + 1) % legendEntries.length;+ else if (event.key === 'ArrowLeft') next = (index - 1 + legendEntries.length) % legendEntries.length;+ else if (event.key === 'Home') next = 0;+ else if (event.key === 'End') next = legendEntries.length - 1;+ if (next === null) return;+ event.preventDefault();+ legendEntries.forEach(function (candidate, candidateIndex) {+ candidate.setAttribute('tabindex', candidateIndex === next ? '0' : '-1');+ });+ legendEntries[next].focus();+ });+ }+ closeBtn.addEventListener('click', function () { close(); });+ clearBtn.addEventListener('click', function () { clear({ preserveView: true }); });+ copyBtn.addEventListener('click', copyLink);+ kindsRoot.addEventListener('click', function (event) {+ var button = event.target.closest('[data-kind]');+ if (!button || button.disabled) return;+ select(button.getAttribute('data-kind'));+ });+ kindsRoot.addEventListener('keydown', function (event) {+ var buttons = Array.prototype.slice.call(kindsRoot.querySelectorAll('button:not(:disabled)'));+ var index = buttons.indexOf(document.activeElement);+ var next = null;+ if (index >= 0 && (event.key === 'ArrowRight' || event.key === 'ArrowDown')) next = (index + 1) % buttons.length;+ else if (index >= 0 && (event.key === 'ArrowLeft' || event.key === 'ArrowUp')) next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home' && buttons.length) next = 0;+ else if (event.key === 'End' && buttons.length) next = buttons.length - 1;+ if (next !== null) { event.preventDefault(); buttons[next].focus(); }+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key !== 'Escape') return;+ event.preventDefault();+ event.stopPropagation();+ close();+ });+ document.addEventListener('click', function (event) {+ var eventPath = typeof event.composedPath === 'function' ? event.composedPath() : [];+ var clickedInside = eventPath.indexOf(panel) >= 0 || panel.contains(event.target);+ var clickedLauncher = event.target === trigger || legendEntries.some(function (entry) {+ return event.target === entry || entry.contains(event.target);+ });+ if (!panel.hidden && !clickedInside && !clickedLauncher) close({ restoreFocus: false });+ });+ window.addEventListener('hashchange', syncFromHash);+ window.addEventListener('resize', function () {+ if (!panel.hidden && selectedKinds.length) dockPanel(nodesById());+ layoutLegendBridge();+ });+ renderKinds();+ syncFromHash();++ return {+ open: open,+ close: close,+ toggle: toggle,+ clear: clear,+ clearPreview: clearLegendPreview,+ select: select,+ copyLink: copyLink,+ isOpen: function () { return !panel.hidden; },+ active: function () { return selectedKinds.length ? selectedKinds.slice() : null; },+ kinds: function () { return collectKinds().map(function (kind) { return { id: kind.id, count: kind.nodes.length }; }); }+ };+ })();++ /* ============================================================+ Diagram Guide — a factual command deck over existing interactions.+ Counts come from compiled semantics; actions delegate to Finder, Route+ Probe, Semantic Radar, Semantic Lens, Presentation, theme, export, and+ camera without adding a second command implementation or SVG state.+ ============================================================ */+ Archify.guide = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container.querySelector(':scope > svg');+ var trigger = document.getElementById('btn-diagram-guide');+ var panel = document.getElementById('diagram-guide');+ var closeBtn = document.getElementById('diagram-guide-close');+ var stats = document.getElementById('diagram-guide-stats');+ var actions = document.getElementById('diagram-guide-actions');+ var feedback = document.getElementById('diagram-guide-feedback');+ var routePanel = document.getElementById('route-probe');+ var returnFocus = null;++ function relationshipCount() {+ var seen = {};+ Array.prototype.forEach.call(svg.querySelectorAll('[data-edge-from][data-edge-to]'), function (edge) {+ var key = edge.getAttribute('data-edge-key') || [+ edge.getAttribute('data-edge-from'),+ edge.getAttribute('data-edge-to'),+ edge.getAttribute('data-edge-label') || ''+ ].join('\u0000');+ seen[key] = true;+ });+ return Object.keys(seen).length;+ }+ function renderFacts() {+ var nodes = svg.querySelectorAll('[data-node-id]').length;+ var relationships = relationshipCount();+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships)+ });+ }+ function actionButtons() {+ return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));+ }+ function close(options) {+ options = options || {};+ panel.hidden = true;+ html.removeAttribute('data-guide-open');+ routePanel.removeAttribute('data-guide-open');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));+ feedback.textContent = '';+ if (options.restoreFocus !== false) {+ var target = trigger.hidden ? returnFocus : trigger;+ if (target && typeof target.focus === 'function') target.focus();+ }+ return false;+ }+ function open() {+ if (html.getAttribute('data-embed') === 'true') return false;+ if (Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function') Archify.semanticLens.clearPreview();+ if (Archify.exportMenu && Archify.exportMenu.isOpen()) Archify.exportMenu.close(false);+ if (Archify.finder && Archify.finder.isOpen()) Archify.finder.close({ restoreFocus: false });+ if (Archify.radar && Archify.radar.isOpen()) Archify.radar.close({ restoreFocus: false });+ if (Archify.semanticLens && Archify.semanticLens.isOpen()) Archify.semanticLens.close({ restoreFocus: false });+ if (Archify.routeProbe && Archify.routeProbe.isJourneyPlaying && Archify.routeProbe.isJourneyPlaying()) {+ Archify.routeProbe.pauseJourney({ preserveElapsed: true, reason: 'guide' });+ }+ returnFocus = document.activeElement;+ renderFacts();+ panel.hidden = false;+ html.setAttribute('data-guide-open', 'true');+ routePanel.setAttribute('data-guide-open', 'true');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));+ feedback.textContent = '';+ requestAnimationFrame(function () {+ var first = actionButtons()[0];+ if (first) first.focus();+ });+ return true;+ }+ function toggle() { return panel.hidden ? open() : close(); }+ function execute(action) {+ feedback.textContent = '';+ close({ restoreFocus: false });+ if (action === 'find') return Archify.finder.open();+ if (action === 'route') return Archify.routeProbe.begin({ focusNode: true });+ if (action === 'map') return Archify.radar.open();+ if (action === 'lens') return Archify.semanticLens.open();+ if (action === 'present') return Archify.presentation.enter();+ if (action === 'export') return Archify.exportMenu.open();+ if (action === 'theme') return Archify.theme.toggle();+ if (action === 'preset') return Archify.preset.cycle();+ if (action === 'reset') return Archify.view.reset();+ if (action === 'zoom-in') return Archify.view.zoomIn();+ if (action === 'zoom-out') return Archify.view.zoomOut();+ return false;+ }+ function actionForKey(key) {+ return {+ '/': 'find',+ r: 'route',+ m: 'map',+ l: 'lens',+ f: 'present',+ e: 'export',+ t: 'theme',+ s: 'preset',+ '0': 'reset',+ '+': 'zoom-in',+ '=': 'zoom-in',+ '-': 'zoom-out'+ }[key] || null;+ }++ trigger.addEventListener('click', toggle);+ closeBtn.addEventListener('click', function () { close(); });+ actions.addEventListener('click', function (event) {+ var button = event.target.closest('[data-guide-action]');+ if (!button || button.disabled) return;+ event.stopPropagation();+ execute(button.getAttribute('data-guide-action'));+ });+ panel.addEventListener('keydown', function (event) {+ if (event.key === 'Escape' || event.key === '?') {+ event.preventDefault();+ event.stopPropagation();+ close();+ return;+ }+ var buttons = actionButtons();+ var index = buttons.indexOf(document.activeElement);+ var next = null;+ if (index >= 0 && event.key === 'ArrowRight') next = (index + 1) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowDown') next = (index + 1) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowLeft') next = (index - 1 + buttons.length) % buttons.length;+ else if (index >= 0 && event.key === 'ArrowUp') next = (index - 1 + buttons.length) % buttons.length;+ else if (event.key === 'Home' && buttons.length) next = 0;+ else if (event.key === 'End' && buttons.length) next = buttons.length - 1;+ if (next !== null) {+ event.preventDefault();+ event.stopPropagation();+ buttons[next].focus();+ return;+ }+ var action = actionForKey(event.key.length === 1 ? event.key.toLowerCase() : event.key);+ if (!action) return;+ event.preventDefault();+ event.stopPropagation();+ execute(action);+ });+ document.addEventListener('click', function (event) {+ if (!panel.hidden && !panel.contains(event.target) && event.target !== trigger) close({ restoreFocus: false });+ });++ renderFacts();+ return {+ open: open,+ close: close,+ toggle: toggle,+ execute: execute,+ isOpen: function () { return !panel.hidden; },+ facts: function () {+ return {+ nodes: svg.querySelectorAll('[data-node-id]').length,+ relationships: relationshipCount()+ };+ }+ };+ })();++ /* ============================================================+ Global keyboard shortcuts+ ? -> open Diagram Guide+ T -> toggle theme+ S -> cycle visual style+ E -> open export menu+ F -> toggle presentation stage+ M -> toggle Semantic Radar+ L -> toggle Semantic Lens+ R -> start/clear Route Probe+ / -> open node finder or the active route endpoint picker+ + / - -> zoom, 0 -> reset view+ Escape -> clear temporary trace/focus/view first, then exit presentation+ Ignored when focus is inside an input/textarea/contenteditable.+ ============================================================ */+ document.addEventListener('keydown', function (e) {+ if (e.metaKey || e.ctrlKey || e.altKey) return;+ if (e.defaultPrevented) return;+ var t = e.target;+ if (t && (t.tagName === 'INPUT' || t.tagName === 'TEXTAREA' || t.isContentEditable)) return;+ if (Archify.preset && Archify.preset.isOpen() && e.key !== 'Escape' && e.key !== 's' && e.key !== 'S') {+ Archify.preset.close(false);+ }+ if (e.key === '?') {+ e.preventDefault();+ Archify.guide.toggle();+ } else if (e.key === '/') {+ e.preventDefault();+ Archify.finder.open();+ } else if (e.key === 't' || e.key === 'T') {+ e.preventDefault();+ Archify.theme.toggle();+ } else if (e.key === 's' || e.key === 'S') {+ e.preventDefault();+ Archify.preset.cycle();+ } else if (e.key === 'e' || e.key === 'E') {+ e.preventDefault();+ if (!Archify.exportMenu.isOpen()) Archify.exportMenu.open();+ } else if (e.key === 'f' || e.key === 'F') {+ e.preventDefault();+ Archify.presentation.toggle();+ } else if (e.key === 'm' || e.key === 'M') {+ e.preventDefault();+ Archify.radar.toggle();+ } else if (e.key === 'l' || e.key === 'L') {+ e.preventDefault();+ Archify.semanticLens.toggle();+ } else if (e.key === 'r' || e.key === 'R') {+ e.preventDefault();+ Archify.routeProbe.toggle({ focusNode: true });+ } else if (e.key === '+' || e.key === '=') {+ e.preventDefault();+ Archify.view.zoomIn();+ } else if (e.key === '-') {+ e.preventDefault();+ Archify.view.zoomOut();+ } else if (e.key === '0') {+ e.preventDefault();+ Archify.view.reset();+ } else if (e.key === 'Escape' && Archify.preset.isOpen()) {+ e.preventDefault();+ Archify.preset.close(true);+ } else if (e.key === 'Escape' && Archify.semanticLens.isOpen()) {+ e.preventDefault();+ Archify.semanticLens.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.semanticLens.active()) {+ e.preventDefault();+ Archify.semanticLens.clear({ preserveView: true });+ } else if (e.key === 'Escape' && Archify.guide.isOpen()) {+ e.preventDefault();+ Archify.guide.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.radar.isOpen()) {+ e.preventDefault();+ Archify.radar.close({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.routeProbe.active()) {+ e.preventDefault();+ Archify.routeProbe.escape({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.intentTrace.active()) {+ e.preventDefault();+ Archify.intentTrace.clear();+ } else if (e.key === 'Escape' && Archify.focus.active()) {+ e.preventDefault();+ Archify.focus.clear({ restoreFocus: true });+ } else if (e.key === 'Escape' && Archify.presentation.active()) {+ e.preventDefault();+ Archify.presentation.exit();+ }+ });+ </script>+</body>+</html>diff --git a/scripts/build-gallery.mjs b/scripts/build-gallery.mjsindex e5d6d51f..02d13994 100644--- a/scripts/build-gallery.mjs+++ b/scripts/build-gallery.mjs@@ -26,6 +26,7 @@ const SHAPES = {sequence: ['participants', 'messages'],dataflow: ['nodes', 'flows'],lifecycle: ['states', 'transitions'],+ erd: ['entities', 'relationships'],};function digest(buffer) {diff --git a/scripts/build-start.mjs b/scripts/build-start.mjsindex 652af73f..4842e7a2 100644--- a/scripts/build-start.mjs+++ b/scripts/build-start.mjs@@ -19,6 +19,7 @@ const START_RECIPE_IDS = Object.freeze({sequence: 'api-request',dataflow: 'event-stream',lifecycle: 'object-lifecycle',+ erd: 'database-schema',});const startData = Object.fromEntries(Object.entries(START_RECIPE_IDS).map(([type, id]) => {diff --git a/scripts/gallery-template.html b/scripts/gallery-template.htmlindex 8527af08..c708c343 100644--- a/scripts/gallery-template.html+++ b/scripts/gallery-template.html@@ -264,6 +264,7 @@<button class="filter-button" type="button" data-filter="sequence" aria-pressed="false" data-en="[[DIAGRAM_TYPE_SEQUENCE_EN]]" data-zh="[[DIAGRAM_TYPE_SEQUENCE_ZH]]">[[DIAGRAM_TYPE_SEQUENCE_EN]]</button><button class="filter-button" type="button" data-filter="dataflow" aria-pressed="false" data-en="[[DIAGRAM_TYPE_DATAFLOW_EN]]" data-zh="[[DIAGRAM_TYPE_DATAFLOW_ZH]]">[[DIAGRAM_TYPE_DATAFLOW_EN]]</button><button class="filter-button" type="button" data-filter="lifecycle" aria-pressed="false" data-en="[[DIAGRAM_TYPE_LIFECYCLE_EN]]" data-zh="[[DIAGRAM_TYPE_LIFECYCLE_ZH]]">[[DIAGRAM_TYPE_LIFECYCLE_EN]]</button>+ <button class="filter-button" type="button" data-filter="erd" aria-pressed="false" data-en="[[DIAGRAM_TYPE_ERD_EN]]" data-zh="[[DIAGRAM_TYPE_ERD_ZH]]">[[DIAGRAM_TYPE_ERD_EN]]</button></div><div class="controls-actions"><button class="filter-button" id="preview-theme" type="button">Preview: dark</button>@@ -275,7 +276,7 @@<section class="gallery-section" id="gallery"><div class="shell"><div class="section-intro">- <h2 data-en="Five lenses. Eleven real stories." data-zh="五种视角,十一个真实故事。">Five lenses. Eleven real stories.</h2>+ <h2 data-en="Six lenses. Twelve real stories." data-zh="六种视角,十二个真实故事。">Six lenses. Twelve real stories.</h2><p data-en="Every scenario has focus, reach, and path exploration, shareable links, dark/light rendering, self-contained export, and a machine-readable quality receipt." data-zh="每个场景都支持聚焦、上下游与路径探索、可分享链接、深浅主题、自包含导出和机器可读质量凭证。">Every scenario has focus, reach, and path exploration, shareable links, dark/light rendering, self-contained export, and a machine-readable quality receipt.</p></div><div class="gallery-grid" id="gallery-grid">@@ -308,11 +309,12 @@<div class="method-code-bar"><span>reproduce locally</span><span>zero runtime deps</span></div><pre><span class="accent">$ node scripts/build-gallery.mjs</span>-render workflow ✓-render sequence ✓-render dataflow ✓-render lifecycle ✓-render architecture ✓+render workflow ✓+render sequence ✓+render dataflow ✓+render lifecycle ✓+render architecture ✓+render erd ✓receipt [[CHECK_COUNT]] checks / [[ENTRY_COUNT]] artifacts / deterministic hashes</pre></div>@@ -382,7 +384,7 @@ receipt [[CHECK_COUNT]] checks / [[ENTRY_COUNT]] artifacts / deterministic hashedocument.getElementById('language').addEventListener('click', function () { applyLanguage(language === 'en' ? 'zh' : 'en'); });document.getElementById('preview-theme').addEventListener('click', function () { applyPreviewTheme(previewTheme === 'dark' ? 'light' : 'dark'); });- var allowed = ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle'];+ var allowed = ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd'];var requested = new URLSearchParams(location.search).get('type') || 'all';applyFilter(allowed.indexOf(requested) >= 0 ? requested : 'all', false);applyLanguage(language);diff --git a/scripts/guide-template.html b/scripts/guide-template.htmlindex 9c131059..d01dc12f 100644--- a/scripts/guide-template.html+++ b/scripts/guide-template.html@@ -209,7 +209,7 @@</div><div class="metrics" aria-label="Guide metrics"><div class="metric"><strong>[[RECIPE_COUNT]]</strong><span data-i18n-html="metricRecipes">real-world<br>recipes</span></div>- <div class="metric"><strong>5</strong><span data-i18n-html="metricModes">typed diagram<br>modes</span></div>+ <div class="metric"><strong>6</strong><span data-i18n-html="metricModes">typed diagram<br>modes</span></div><div class="metric"><strong>0</strong><span data-i18n-html="metricRuntime">runtime<br>dependencies</span></div></div></section>@@ -247,7 +247,7 @@'use strict';var recipes = JSON.parse(document.getElementById('guide-data').textContent);var types = [[DIAGRAM_TYPES_JSON]];- var colors = { architecture:'#0891b2', workflow:'#047857', sequence:'#6d28d9', dataflow:'#b45309', lifecycle:'#be123c' };+ var colors = { architecture:'#0891b2', workflow:'#047857', sequence:'#6d28d9', dataflow:'#b45309', lifecycle:'#be123c', erd:'#0f766e' };var language = ArchifySiteLanguage.read();var activeType = 'all';var lastRecipe = null;diff --git a/scripts/site-copy.mjs b/scripts/site-copy.mjsindex d80a0a0d..23f008be 100644--- a/scripts/site-copy.mjs+++ b/scripts/site-copy.mjs@@ -4,6 +4,7 @@ export const DIAGRAM_TYPES = Object.freeze(['sequence','dataflow','lifecycle',+ 'erd',]);export const DIAGRAM_TYPE_LABELS = Object.freeze({@@ -13,6 +14,7 @@ export const DIAGRAM_TYPE_LABELS = Object.freeze({sequence: 'Sequence',dataflow: 'Data flow',lifecycle: 'Lifecycle',+ erd: 'Entity-relationship',}),zh: Object.freeze({architecture: '架构图',@@ -20,6 +22,7 @@ export const DIAGRAM_TYPE_LABELS = Object.freeze({sequence: '时序图',dataflow: '数据流',lifecycle: '生命周期',+ erd: '实体关系图',}),});diff --git a/scripts/start-template.html b/scripts/start-template.htmlindex 234b58ce..ae993f23 100644--- a/scripts/start-template.html+++ b/scripts/start-template.html@@ -85,7 +85,7 @@.type-shell { margin-bottom:var(--bento-gap,14px); padding:1.25rem 1.5rem 1.5rem; border:1px solid var(--line-hi); border-radius:14px; background:var(--paper-raised); }.type-label { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; color:var(--dim); font-family:var(--font-mono); font-size:.625rem; letter-spacing:.16em; text-transform:uppercase; }.type-label strong { color:var(--accent); font-weight:600; }- .type-tabs { display:grid; grid-template-columns:repeat(5,1fr); gap:1px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--line); }+ .type-tabs { display:grid; grid-template-columns:repeat(6,1fr); gap:1px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--line); }.type-tab {min-height:52px;border:0;@@ -158,9 +158,8 @@main { width:min(100% - 2rem,720px); padding-top:8rem; }.lead { grid-template-columns:1fr; gap:1.5rem; margin-bottom:2.5rem; }.workbench { grid-template-columns:1fr; }- .type-tabs { grid-template-columns:repeat(2,1fr); }+ .type-tabs { grid-template-columns:repeat(3,1fr); }.input-paths { grid-template-columns:1fr; }- .type-tab:last-child { grid-column:1 / -1; }}@media (max-width:560px) {main { width:calc(100% - 1.5rem); padding-top:7rem; }@@ -213,13 +212,14 @@<button class="input-path" type="button" role="tab" data-input="description"><strong data-en="Just describe it" data-zh="直接描述">直接描述</strong><span data-en="Start in any chat. No files or repository needed." data-zh="在任意对话里开始,不需要文件或代码库。">Start in any chat. No files or repository needed.</span></button><button class="input-path" type="button" role="tab" data-input="repository"><strong data-en="Use a repository" data-zh="从代码库开始">Use a repository</strong><span data-en="Let the agent inspect code when source evidence matters." data-zh="需要源码证据时,再让 Agent 检查代码。">Let the agent inspect code when source evidence matters.</span></button></div>- <p class="type-label" id="type-label"><span data-en="Choose the question shape" data-zh="选择问题形态">Choose the question shape</span><strong data-en="5 typed renderers" data-zh="5 种类型化渲染器">5 typed renderers</strong></p>+ <p class="type-label" id="type-label"><span data-en="Choose the question shape" data-zh="选择问题形态">Choose the question shape</span><strong data-en="6 typed renderers" data-zh="6 种类型化渲染器">6 typed renderers</strong></p><div class="type-tabs" role="tablist" aria-label="Diagram type"><button class="type-tab" type="button" role="tab" data-type="architecture" data-en="[[DIAGRAM_TYPE_ARCHITECTURE_EN]]" data-zh="[[DIAGRAM_TYPE_ARCHITECTURE_ZH]]">[[DIAGRAM_TYPE_ARCHITECTURE_EN]]</button><button class="type-tab" type="button" role="tab" data-type="workflow" data-en="[[DIAGRAM_TYPE_WORKFLOW_EN]]" data-zh="[[DIAGRAM_TYPE_WORKFLOW_ZH]]">[[DIAGRAM_TYPE_WORKFLOW_EN]]</button><button class="type-tab" type="button" role="tab" data-type="sequence" data-en="[[DIAGRAM_TYPE_SEQUENCE_EN]]" data-zh="[[DIAGRAM_TYPE_SEQUENCE_ZH]]">[[DIAGRAM_TYPE_SEQUENCE_EN]]</button><button class="type-tab" type="button" role="tab" data-type="dataflow" data-en="[[DIAGRAM_TYPE_DATAFLOW_EN]]" data-zh="[[DIAGRAM_TYPE_DATAFLOW_ZH]]">[[DIAGRAM_TYPE_DATAFLOW_EN]]</button><button class="type-tab" type="button" role="tab" data-type="lifecycle" data-en="[[DIAGRAM_TYPE_LIFECYCLE_EN]]" data-zh="[[DIAGRAM_TYPE_LIFECYCLE_ZH]]">[[DIAGRAM_TYPE_LIFECYCLE_EN]]</button>+ <button class="type-tab" type="button" role="tab" data-type="erd" data-en="[[DIAGRAM_TYPE_ERD_EN]]" data-zh="[[DIAGRAM_TYPE_ERD_ZH]]">[[DIAGRAM_TYPE_ERD_EN]]</button></div></section>@@ -281,7 +281,7 @@'use strict';var DATA = JSON.parse(document.getElementById('start-data').textContent);- var KNOWN_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);+ var KNOWN_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']);var KNOWN_AGENTS = new Set(['cursor', 'codex', 'claude-code', 'opencode', 'github-copilot']);var KNOWN_INPUTS = new Set(['description', 'repository']);var KNOWN_SOURCES = new Set(['artifact', 'gallery', 'readme', 'direct']);diff --git a/website/src/data/gallery-presentation.mjs b/website/src/data/gallery-presentation.mjsindex d9964263..d0a01612 100644--- a/website/src/data/gallery-presentation.mjs+++ b/website/src/data/gallery-presentation.mjs@@ -134,6 +134,19 @@ export const CASES = [descriptionEn: 'A classic AWS web stack with edge delivery, authentication, API services, cache, persistence, and background work.',descriptionZh: '经典 AWS Web 栈:边缘分发、鉴权、API 服务、缓存、持久化与后台任务。',},+ {+ id: 'orders',+ type: 'erd',+ input: 'orders.erd.json',+ output: 'orders.erd.html',+ focus: 'order',+ view: 'checkout',+ accent: '#f472b6',+ titleEn: 'Order Management Schema',+ titleZh: '订单管理表结构',+ descriptionEn: 'Six tables with their complete column lists, primary, foreign, and unique keys, crow-foot cardinality at both ends, and one optional non-identifying payment link.',+ descriptionZh: '六张表及其完整字段清单、主键/外键/唯一键标记、两端鸦爪基数,以及一条可选的非标识性支付连线。',+ },];const TYPE_ACCENTS = {@@ -142,6 +155,7 @@ const TYPE_ACCENTS = {sequence: '#6d28d9',dataflow: '#b45309',lifecycle: '#be123c',+ erd: '#0f766e',};function esc(value) {diff --git a/website/src/data/site.ts b/website/src/data/site.tsindex a63630f2..b705d733 100644--- a/website/src/data/site.ts+++ b/website/src/data/site.ts@@ -13,7 +13,7 @@ export const cards = CASES.map(item => {});const startRecipeIds = {architecture: 'system-overview', workflow: 'agent-tool-call', sequence: 'api-request',- dataflow: 'event-stream', lifecycle: 'object-lifecycle',+ dataflow: 'event-stream', lifecycle: 'object-lifecycle', erd: 'database-schema',};export const starts = Object.fromEntries(Object.entries(startRecipeIds).map(([type, id]) => {const recipe = SCENARIO_RECIPES.find(candidate => candidate.id === id);diff --git a/website/src/pages/gallery.astro b/website/src/pages/gallery.astroindex 556c864c..f5af6272 100644--- a/website/src/pages/gallery.astro+++ b/website/src/pages/gallery.astro@@ -32,12 +32,13 @@ import pageScript from '../scripts/gallery.js?raw';<section class="controls" aria-label="Gallery controls"><div class="shell controls-inner"><div class="filter-group" role="group" aria-label="Filter diagrams by type">- <button class="filter-button" type="button" data-filter="all" aria-pressed="true" data-en="All / 11" data-zh="全部配方 / 11">All / 11</button>+ <button class="filter-button" type="button" data-filter="all" aria-pressed="true" data-en="All / 12" data-zh="全部配方 / 12">All / 12</button><button class="filter-button" type="button" data-filter="architecture" aria-pressed="false" data-en="Architecture" data-zh="架构图">Architecture</button><button class="filter-button" type="button" data-filter="workflow" aria-pressed="false" data-en="Workflow" data-zh="工作流">Workflow</button><button class="filter-button" type="button" data-filter="sequence" aria-pressed="false" data-en="Sequence" data-zh="时序图">Sequence</button><button class="filter-button" type="button" data-filter="dataflow" aria-pressed="false" data-en="Data flow" data-zh="数据流">Data flow</button><button class="filter-button" type="button" data-filter="lifecycle" aria-pressed="false" data-en="Lifecycle" data-zh="生命周期">Lifecycle</button>+ <button class="filter-button" type="button" data-filter="erd" aria-pressed="false" data-en="Entity-relationship" data-zh="实体关系图">Entity-relationship</button></div><div class="controls-actions"><button class="filter-button" id="preview-theme" type="button">Preview: dark</button>@@ -49,7 +50,7 @@ import pageScript from '../scripts/gallery.js?raw';<section class="gallery-section" id="gallery"><div class="shell"><div class="section-intro">- <h2 data-en="Five lenses. Eleven real stories." data-zh="五种视角,十一个真实故事。">Five lenses. Eleven real stories.</h2>+ <h2 data-en="Six lenses. Twelve real stories." data-zh="六种视角,十二个真实故事。">Six lenses. Twelve real stories.</h2><p data-en="Every scenario has focus, reach, and path exploration, shareable links, dark/light rendering, self-contained export, and a machine-readable quality receipt." data-zh="每个场景都支持聚焦、上下游与路径探索、可分享链接、深浅主题、自包含导出和机器可读质量凭证。">Every scenario has focus, reach, and path exploration, shareable links, dark/light rendering, self-contained export, and a machine-readable quality receipt.</p></div><div class="gallery-grid" id="gallery-grid">@@ -82,13 +83,14 @@ import pageScript from '../scripts/gallery.js?raw';<div class="method-code-bar"><span>reproduce locally</span><span>zero runtime deps</span></div><pre><span class="accent">$ node scripts/build-gallery.mjs</span>-render workflow ✓-render sequence ✓-render dataflow ✓-render lifecycle ✓-render architecture ✓+render workflow ✓+render sequence ✓+render dataflow ✓+render lifecycle ✓+render architecture ✓+render erd ✓-receipt 99 checks / 11 artifacts / deterministic hashes</pre>+receipt {gallery.checkCount} checks / {gallery.entryCount} artifacts / deterministic hashes</pre></div></div></section>diff --git a/website/src/pages/guide.astro b/website/src/pages/guide.astroindex ab4adf22..fba9b299 100644--- a/website/src/pages/guide.astro+++ b/website/src/pages/guide.astro@@ -20,8 +20,8 @@ import pageScript from '../scripts/guide.js?raw';<p class="lede" data-i18n="lede">Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.</p></div><div class="metrics" aria-label="Guide metrics">- <div class="metric"><strong>12</strong><span data-i18n-html="metricRecipes">real-world<br>recipes</span></div>- <div class="metric"><strong>5</strong><span data-i18n-html="metricModes">typed diagram<br>modes</span></div>+ <div class="metric"><strong>13</strong><span data-i18n-html="metricRecipes">real-world<br>recipes</span></div>+ <div class="metric"><strong>6</strong><span data-i18n-html="metricModes">typed diagram<br>modes</span></div><div class="metric"><strong>0</strong><span data-i18n-html="metricRuntime">runtime<br>dependencies</span></div></div></section>@@ -42,7 +42,7 @@ import pageScript from '../scripts/guide.js?raw';<section class="library" id="library"><div class="section-head">- <div><div class="lead-label" data-i18n="libraryEyebrow">Recipe library</div><h2 data-i18n="libraryTitle">12 small, opinionated starting points.</h2></div>+ <div><div class="lead-label" data-i18n="libraryEyebrow">Recipe library</div><h2 data-i18n="libraryTitle">13 small, opinionated starting points.</h2></div><p data-i18n="libraryBody">Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.</p></div><div class="filters" id="filters" aria-label="Filter recipes"></div>diff --git a/website/src/pages/start.astro b/website/src/pages/start.astroindex fd16d7b2..ecedaa56 100644--- a/website/src/pages/start.astro+++ b/website/src/pages/start.astro@@ -30,13 +30,14 @@ import pageScript from '../scripts/start.js?raw';<button class="input-path" type="button" role="tab" data-input="description"><strong data-en="Just describe it" data-zh="直接描述">直接描述</strong><span data-en="Start in any chat. No files or repository needed." data-zh="在任意对话里开始,不需要文件或代码库。">Start in any chat. No files or repository needed.</span></button><button class="input-path" type="button" role="tab" data-input="repository"><strong data-en="Use a repository" data-zh="从代码库开始">Use a repository</strong><span data-en="Let the agent inspect code when source evidence matters." data-zh="需要源码证据时,再让 Agent 检查代码。">Let the agent inspect code when source evidence matters.</span></button></div>- <p class="type-label" id="type-label"><span data-en="Choose the question shape" data-zh="选择问题形态">Choose the question shape</span><strong data-en="5 typed renderers" data-zh="5 种类型化渲染器">5 typed renderers</strong></p>+ <p class="type-label" id="type-label"><span data-en="Choose the question shape" data-zh="选择问题形态">Choose the question shape</span><strong data-en="6 typed renderers" data-zh="6 种类型化渲染器">6 typed renderers</strong></p><div class="type-tabs" role="tablist" aria-label="Diagram type"><button class="type-tab" type="button" role="tab" data-type="architecture" data-en="Architecture" data-zh="架构图">Architecture</button><button class="type-tab" type="button" role="tab" data-type="workflow" data-en="Workflow" data-zh="工作流">Workflow</button><button class="type-tab" type="button" role="tab" data-type="sequence" data-en="Sequence" data-zh="时序图">Sequence</button><button class="type-tab" type="button" role="tab" data-type="dataflow" data-en="Data flow" data-zh="数据流">Data flow</button><button class="type-tab" type="button" role="tab" data-type="lifecycle" data-en="Lifecycle" data-zh="生命周期">Lifecycle</button>+ <button class="type-tab" type="button" role="tab" data-type="erd" data-en="Entity-relationship" data-zh="实体关系图">Entity-relationship</button></div></section>diff --git a/website/src/scripts/gallery.js b/website/src/scripts/gallery.jsindex 2f164c1a..137051fe 100644--- a/website/src/scripts/gallery.js+++ b/website/src/scripts/gallery.js@@ -51,7 +51,7 @@document.getElementById('language').addEventListener('click', function () { applyLanguage(language === 'en' ? 'zh' : 'en'); });document.getElementById('preview-theme').addEventListener('click', function () { applyPreviewTheme(previewTheme === 'dark' ? 'light' : 'dark'); });- var allowed = ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle'];+ var allowed = ['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd'];var requested = new URLSearchParams(location.search).get('type') || 'all';applyFilter(allowed.indexOf(requested) >= 0 ? requested : 'all', false);applyLanguage(language);diff --git a/website/src/scripts/guide.js b/website/src/scripts/guide.jsindex 5e6ff866..356bdb38 100644--- a/website/src/scripts/guide.js+++ b/website/src/scripts/guide.js@@ -2,20 +2,20 @@(function () {'use strict';var recipes = JSON.parse(document.getElementById('guide-data').textContent);- var types = ["architecture","workflow","sequence","dataflow","lifecycle"];- var colors = { architecture:'#0891b2', workflow:'#047857', sequence:'#6d28d9', dataflow:'#b45309', lifecycle:'#be123c' };+ var types = ["architecture","workflow","sequence","dataflow","lifecycle","erd"];+ var colors = { architecture:'#0891b2', workflow:'#047857', sequence:'#6d28d9', dataflow:'#b45309', lifecycle:'#be123c', erd:'#0f766e' };var language = ArchifySiteLanguage.read();var activeType = 'all';var lastRecipe = null;var copy = {en: {navGuide:'Guide',navProof:'Proof Lab',navStart:'Start',navInstall:'Install Skill',versionLabel:'Scenario guide / development / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',- metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'12 small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',+ metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'13 small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]},zh: {navGuide:'场景指南',navProof:'验证作品集',navStart:'快速上手',navInstall:'安装技能',versionLabel:'场景指南 / 开发版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',- metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'12 个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',+ metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'13 个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]}};@@ -41,7 +41,7 @@document.getElementById('samples').innerHTML = t('samples').map(function (sample) { return '<button class="chip" type="button" data-query="'+escapeHtml(sample[1])+'">'+escapeHtml(sample[0])+'</button>'; }).join('');}function renderFilters() {- var labels = {"en":{"architecture":"Architecture","workflow":"Workflow","sequence":"Sequence","dataflow":"Data flow","lifecycle":"Lifecycle"},"zh":{"architecture":"架构图","workflow":"工作流","sequence":"时序图","dataflow":"数据流","lifecycle":"生命周期"}};+ var labels = {"en":{"architecture":"Architecture","workflow":"Workflow","sequence":"Sequence","dataflow":"Data flow","lifecycle":"Lifecycle","erd":"Entity-relationship"},"zh":{"architecture":"架构图","workflow":"工作流","sequence":"时序图","dataflow":"数据流","lifecycle":"生命周期","erd":"实体关系图"}};document.getElementById('filters').innerHTML = ['all'].concat(types).map(function (type) { return '<button class="filter '+(activeType === type ? 'active':'')+'" type="button" data-filter="'+type+'">'+escapeHtml(type === 'all' ? t('all') : labels[language][type])+'</button>'; }).join('');}function renderCards() {diff --git a/website/src/scripts/start.js b/website/src/scripts/start.jsindex 535ecb18..bf9081cd 100644--- a/website/src/scripts/start.js+++ b/website/src/scripts/start.js@@ -3,7 +3,7 @@'use strict';var DATA = JSON.parse(document.getElementById('start-data').textContent);- var KNOWN_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle']);+ var KNOWN_TYPES = new Set(['architecture', 'workflow', 'sequence', 'dataflow', 'lifecycle', 'erd']);var KNOWN_AGENTS = new Set(['cursor', 'codex', 'claude-code', 'opencode', 'github-copilot']);var KNOWN_INPUTS = new Set(['description', 'repository']);var KNOWN_SOURCES = new Set(['artifact', 'gallery', 'readme', 'direct']);diff --git a/website/src/styles/start.css b/website/src/styles/start.cssindex 4f5bc44d..45bdb0a3 100644--- a/website/src/styles/start.css+++ b/website/src/styles/start.css@@ -67,7 +67,7 @@.type-shell { margin-bottom:var(--bento-gap,14px); padding:1.25rem 1.5rem 1.5rem; border:1px solid var(--line-hi); border-radius:14px; background:var(--paper-raised); }.type-label { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; color:var(--dim); font-family:var(--font-mono); font-size:.625rem; letter-spacing:.16em; text-transform:uppercase; }.type-label strong { color:var(--accent); font-weight:600; }- .type-tabs { display:grid; grid-template-columns:repeat(5,1fr); gap:1px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--line); }+ .type-tabs { display:grid; grid-template-columns:repeat(6,1fr); gap:1px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--line); }.type-tab {min-height:52px;border:0;@@ -140,9 +140,8 @@main { width:min(100% - 2rem,720px); padding-top:8rem; }.lead { grid-template-columns:1fr; gap:1.5rem; margin-bottom:2.5rem; }.workbench { grid-template-columns:1fr; }- .type-tabs { grid-template-columns:repeat(2,1fr); }+ .type-tabs { grid-template-columns:repeat(3,1fr); }.input-paths { grid-template-columns:1fr; }- .type-tab:last-child { grid-column:1 / -1; }}@media (max-width:560px) {main { width:calc(100% - 1.5rem); padding-top:7rem; }