{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "recordOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        },
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "recordOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "stringsOf",
      "signature": "const stringsOf = function stringsOf(value: unknown, fallback: unknown): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/viewport.converter.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-converters-viewport-converter-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/converters/viewport.converter.ts",
            "label": "core/converters/viewport.converter.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/converters/viewport.converter.ts.md",
            "ref": "anatomy:file-scripts-core-converters-viewport-converter-ts"
          }
        },
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "numberOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        },
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "stringsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        },
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "stringsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "parsedAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "recordOf",
      "signature": "const recordOf = function recordOf(raw: unknown): RateRecord | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "recordOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "numberOf",
      "signature": "const numberOf = function numberOf(value: unknown): number | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "statedUpdate",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 97,
      "name": "textAfter",
      "signature": "const textAfter = function textAfter(html: string, marker: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/rate.strings.ts",
          "name": "unreadableRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-rate-strings-ts",
            "json": "https://banes-lab.com/json/source/scripts/configuration/strings/rate.strings.ts",
            "label": "configuration/strings/rate.strings.ts",
            "markdown": "https://banes-lab.com/source/scripts/configuration/strings/rate.strings.ts.md",
            "ref": "anatomy:file-scripts-configuration-strings-rate-strings-ts"
          }
        },
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "recordOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "parsedAt",
      "signature": "const parsedAt = function parsedAt(text: string, start: number, end: number): RateRecord | null {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/selectors/rate.selector.ts",
          "name": "textAfter",
          "source": {
            "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
            "json": "https://banes-lab.com/json/source/scripts/core/selectors/rate.selector.ts",
            "label": "core/selectors/rate.selector.ts",
            "markdown": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.md",
            "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 110,
      "name": "statedUpdate",
      "signature": "export const statedUpdate = function statedUpdate(html: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "OPEN",
      "signature": "const OPEN = \"{\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "CLOSE",
      "signature": "const CLOSE = \"}\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "QUOTE",
      "signature": "const QUOTE = '\"';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "ESCAPE",
      "signature": "const ESCAPE = \"\\\\\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "TAG_END",
      "signature": "const TAG_END = \">\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "TAG_START",
      "signature": "const TAG_START = \"<\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "DEPTH_STEP",
      "signature": "const DEPTH_STEP: ReadonlyMap<string, number> = new Map(["
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "objectEnd",
      "signature": "const objectEnd = function objectEnd(text: string, start: number): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "depth",
      "signature": "let depth = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "inString",
      "signature": "let inString = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "char",
      "signature": "const char = text.charAt(at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "list",
      "signature": "const list: unknown[] = Array.isArray(value) ? value : [fallback];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "rateOf",
      "signature": "const rateOf = function rateOf(raw: Record<string, unknown>): number | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "exact",
      "signature": "const exact = numberOf(raw[\"dailyRateEur\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "low",
      "signature": "const low = numberOf(raw[\"dayRateMin\"]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "high",
      "signature": "const high = numberOf(raw[\"dayRateMax\"]) ?? low;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "rate",
      "signature": "const rate = rateOf(raw);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "id",
      "signature": "const id = raw[\"externalId\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "parsed",
      "signature": "const parsed: unknown = JSON.parse(text.slice(start, end + 1));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "recordsIn",
      "signature": "export const recordsIn = function recordsIn(html: string): readonly RateRecord[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "byId",
      "signature": "const byId = new Map<string, RateRecord>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "start",
      "signature": "let start = html.indexOf(RECORD_MARKER);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "end",
      "signature": "const end = objectEnd(html, start);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "record",
      "signature": "const record = end === -1 ? null : parsedAt(html, start, end);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "at",
      "signature": "const at = html.indexOf(marker);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "open",
      "signature": "const open = at === -1 ? -1 : html.indexOf(TAG_END, at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 100,
      "name": "close",
      "signature": "const close = open === -1 ? -1 : html.indexOf(TAG_START, open);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 104,
      "name": "statedCount",
      "signature": "export const statedCount = function statedCount(html: string): number | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 105,
      "name": "text",
      "signature": "const text = textAfter(html, COUNT_MARKER);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "count",
      "signature": "const count = Number(text);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-rate-selector-ts",
  "language": "typescript",
  "layer": "application",
  "name": "rate.selector.ts",
  "path": "core/selectors/rate.selector.ts",
  "ref": "anatomy:file-scripts-core-selectors-rate-selector-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-selectors.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-selectors"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#file-scripts-configuration-strings-rate-strings-ts",
          "json": "https://banes-lab.com/json/source/scripts/configuration/strings/rate.strings.ts",
          "label": "configuration/strings/rate.strings.ts",
          "markdown": "https://banes-lab.com/source/scripts/configuration/strings/rate.strings.ts.md",
          "ref": "anatomy:file-scripts-configuration-strings-rate-strings-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-converters-viewport-converter-ts",
          "json": "https://banes-lab.com/json/source/scripts/core/converters/viewport.converter.ts",
          "label": "core/converters/viewport.converter.ts",
          "markdown": "https://banes-lab.com/source/scripts/core/converters/viewport.converter.ts.md",
          "ref": "anatomy:file-scripts-core-converters-viewport-converter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-configuration-strings.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-converters.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/scripts#folder-scripts-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/scripts/folder-scripts-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/scripts/folder-scripts-core-selectors.md",
          "ref": "chapter:/anatomy/scripts#folder-scripts-core-selectors"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "selector",
    "subject": "rate",
    "variant": null
  },
  "stats": {
    "bytes": 3893,
    "callable": 10,
    "definitions": 36,
    "edges": 7,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "relay": 1,
      "entry": 2,
      "isolated": 30
    },
    "lines": {
      "blank": 11,
      "code": 101,
      "total": 112
    }
  },
  "summary": "101 lines of code and 36 definitions.",
  "text": "https://banes-lab.com/source/scripts/core/selectors/rate.selector.ts.txt",
  "tree": "scripts",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/scripts#file-scripts-core-selectors-manifest-selector-ts",
      "json": "https://banes-lab.com/json/source/scripts/core/selectors/manifest.selector.ts",
      "label": "core/selectors/manifest.selector.ts",
      "markdown": "https://banes-lab.com/source/scripts/core/selectors/manifest.selector.ts.md",
      "ref": "anatomy:file-scripts-core-selectors-manifest-selector-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/scripts/core/selectors",
    "label": "core/selectors",
    "markdown": "https://banes-lab.com/api/source/scripts/core/selectors.md",
    "ref": "api:source/scripts/core/selectors"
  }
}
