{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/assets/link.assets.ts",
          "name": "nodeFromPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-assets-link-assets-ts",
            "json": "https://banes-lab.com/json/source/tree/core/assets/link.assets.ts",
            "label": "core/assets/link.assets.ts",
            "markdown": "https://banes-lab.com/source/tree/core/assets/link.assets.ts.md",
            "ref": "anatomy:file-core-assets-link-assets-ts"
          }
        },
        {
          "file": "core/buses/base.bus.ts",
          "name": "emitEvent",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
            "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
            "label": "core/buses/base.bus.ts",
            "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
            "ref": "anatomy:file-core-buses-base-bus-ts"
          }
        },
        {
          "file": "domain/registries/page.registry.ts",
          "name": "loadedPage",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-domain-registries-page-registry-ts",
            "json": "https://banes-lab.com/json/source/tree/domain/registries/page.registry.ts",
            "label": "domain/registries/page.registry.ts",
            "markdown": "https://banes-lab.com/source/tree/domain/registries/page.registry.ts.md",
            "ref": "anatomy:file-domain-registries-page-registry-ts"
          }
        },
        {
          "file": "domain/registries/page.registry.ts",
          "name": "loadPage",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-domain-registries-page-registry-ts",
            "json": "https://banes-lab.com/json/source/tree/domain/registries/page.registry.ts",
            "label": "domain/registries/page.registry.ts",
            "markdown": "https://banes-lab.com/source/tree/domain/registries/page.registry.ts.md",
            "ref": "anatomy:file-domain-registries-page-registry-ts"
          }
        },
        {
          "file": "presentation/renderers/page.renderer.ts",
          "name": "applyHead",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.renderer.ts",
            "label": "presentation/renderers/page.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-page-renderer-ts"
          }
        },
        {
          "file": "presentation/renderers/page.renderer.ts",
          "name": "headOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.renderer.ts",
            "label": "presentation/renderers/page.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-page-renderer-ts"
          }
        },
        {
          "file": "presentation/renderers/page.shell.renderer.ts",
          "name": "renderPage",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-shell-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.shell.renderer.ts",
            "label": "presentation/renderers/page.shell.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.shell.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-page-shell-renderer-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "navigate",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "onPopState",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "startRouting",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "render",
      "signature": "const render = async function render(main: HTMLElement, page: string, rewriteHead = true): Promise<void> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "restoreOnReload",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "startRouting",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 65,
      "name": "unsubscribe",
      "signature": "const unsubscribe = subscribeEvent(ROUTE_REQUESTED, (event) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "restoreOnReload",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "release",
      "signature": "let release = idle;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "startRouting",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "restore",
      "signature": "const restore = restoreOnReload(main);"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/assets/link.assets.ts",
          "name": "pageFromPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-assets-link-assets-ts",
            "json": "https://banes-lab.com/json/source/tree/core/assets/link.assets.ts",
            "label": "core/assets/link.assets.ts",
            "markdown": "https://banes-lab.com/source/tree/core/assets/link.assets.ts.md",
            "ref": "anatomy:file-core-assets-link-assets-ts"
          }
        },
        {
          "file": "presentation/renderers/page.renderer.ts",
          "name": "holdsHead",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-renderer-ts",
            "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.renderer.ts",
            "label": "presentation/renderers/page.renderer.ts",
            "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.renderer.ts.md",
            "ref": "anatomy:file-presentation-renderers-page-renderer-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "render",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "restore",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "unsubscribe",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "startRouting",
      "signature": "export const startRouting = function startRouting(main: HTMLElement): Disposer {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "release",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "unsubscribe",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "restoreOnReload",
      "signature": "const restoreOnReload = function restoreOnReload(main: HTMLElement): Disposer {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/assets/link.assets.ts",
          "name": "pageFromPath",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-assets-link-assets-ts",
            "json": "https://banes-lab.com/json/source/tree/core/assets/link.assets.ts",
            "label": "core/assets/link.assets.ts",
            "markdown": "https://banes-lab.com/source/tree/core/assets/link.assets.ts.md",
            "ref": "anatomy:file-core-assets-link-assets-ts"
          }
        },
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "render",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "onPopState",
      "signature": "const onPopState = function onPopState(): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/coordinators/route.coordinator.ts",
          "name": "render",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
            "json": "https://banes-lab.com/json/source/tree/runtime/coordinators/route.coordinator.ts",
            "label": "runtime/coordinators/route.coordinator.ts",
            "markdown": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.md",
            "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "navigate",
      "signature": "const navigate = function navigate(main: HTMLElement, page: string, path: string): void {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/stores/route.store.ts",
          "name": "writeScroll",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-stores-route-store-ts",
            "json": "https://banes-lab.com/json/source/tree/core/stores/route.store.ts",
            "label": "core/stores/route.store.ts",
            "markdown": "https://banes-lab.com/source/tree/core/stores/route.store.ts.md",
            "ref": "anatomy:file-core-stores-route-store-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "onPageHide",
      "signature": "const onPageHide = function onPageHide(): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "latest",
      "signature": "let latest = 0;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "idle",
      "signature": "const idle: Disposer = () => {};"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "ticket",
      "signature": "const ticket = latest;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "top",
      "signature": "const top = isReload() ? readScroll(window.location.pathname) : null;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-runtime-coordinators-route-coordinator-ts",
  "language": "typescript",
  "layer": "application",
  "name": "route.coordinator.ts",
  "path": "runtime/coordinators/route.coordinator.ts",
  "ref": "anatomy:file-runtime-coordinators-route-coordinator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-runtime-coordinators",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-runtime-coordinators",
          "label": "runtime/coordinators",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-runtime-coordinators.md",
          "ref": "chapter:/anatomy/tree#folder-runtime-coordinators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-assets-link-assets-ts",
          "json": "https://banes-lab.com/json/source/tree/core/assets/link.assets.ts",
          "label": "core/assets/link.assets.ts",
          "markdown": "https://banes-lab.com/source/tree/core/assets/link.assets.ts.md",
          "ref": "anatomy:file-core-assets-link-assets-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-buses-base-bus-ts",
          "json": "https://banes-lab.com/json/source/tree/core/buses/base.bus.ts",
          "label": "core/buses/base.bus.ts",
          "markdown": "https://banes-lab.com/source/tree/core/buses/base.bus.ts.md",
          "ref": "anatomy:file-core-buses-base-bus-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-core-stores-route-store-ts",
          "json": "https://banes-lab.com/json/source/tree/core/stores/route.store.ts",
          "label": "core/stores/route.store.ts",
          "markdown": "https://banes-lab.com/source/tree/core/stores/route.store.ts.md",
          "ref": "anatomy:file-core-stores-route-store-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-domain-registries-page-registry-ts",
          "json": "https://banes-lab.com/json/source/tree/domain/registries/page.registry.ts",
          "label": "domain/registries/page.registry.ts",
          "markdown": "https://banes-lab.com/source/tree/domain/registries/page.registry.ts.md",
          "ref": "anatomy:file-domain-registries-page-registry-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-renderer-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.renderer.ts",
          "label": "presentation/renderers/page.renderer.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.renderer.ts.md",
          "ref": "anatomy:file-presentation-renderers-page-renderer-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#file-presentation-renderers-page-shell-renderer-ts",
          "json": "https://banes-lab.com/json/source/tree/presentation/renderers/page.shell.renderer.ts",
          "label": "presentation/renderers/page.shell.renderer.ts",
          "markdown": "https://banes-lab.com/source/tree/presentation/renderers/page.shell.renderer.ts.md",
          "ref": "anatomy:file-presentation-renderers-page-shell-renderer-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-assets",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-assets",
          "label": "core/assets",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-assets.md",
          "ref": "chapter:/anatomy/tree#folder-core-assets"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-buses",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-buses",
          "label": "core/buses",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-buses.md",
          "ref": "chapter:/anatomy/tree#folder-core-buses"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-stores",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-stores",
          "label": "core/stores",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-stores.md",
          "ref": "chapter:/anatomy/tree#folder-core-stores"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-domain-registries",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-domain-registries",
          "label": "domain/registries",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-domain-registries.md",
          "ref": "chapter:/anatomy/tree#folder-domain-registries"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-presentation-renderers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-presentation-renderers",
          "label": "presentation/renderers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-presentation-renderers.md",
          "ref": "chapter:/anatomy/tree#folder-presentation-renderers"
        },
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-runtime-coordinators",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-runtime-coordinators",
          "label": "runtime/coordinators",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-runtime-coordinators.md",
          "ref": "chapter:/anatomy/tree#folder-runtime-coordinators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "coordinator",
    "subject": "route",
    "variant": null
  },
  "stats": {
    "bytes": 3006,
    "callable": 7,
    "definitions": 13,
    "edges": 18,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "leaf": 3,
      "entry": 5,
      "isolated": 4
    },
    "lines": {
      "blank": 6,
      "code": 74,
      "total": 80
    }
  },
  "summary": "74 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/tree/runtime/coordinators/route.coordinator.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": null,
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/runtime/coordinators",
    "label": "runtime/coordinators",
    "markdown": "https://banes-lab.com/api/source/tree/runtime/coordinators.md",
    "ref": "api:source/tree/runtime/coordinators"
  }
}
