about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorfox <fox@fakecake.org>2026-06-27 18:26:55 +0300
committerfox <fox@fakecake.org>2026-06-27 18:26:55 +0300
commit59aca1894afdbf31f7849a8559099284866a7f64 (patch)
tree72033a352d41221061e38aa391fc0df502a72b4e
parentd134234182b77a42840470f5dd8534faf9d5d619 (diff)
parent4d727512b40c00e7c2f8d2493cdc33afd9326b38 (diff)
downloadthe-epube-59aca1894afdbf31f7849a8559099284866a7f64.tar.gz
the-epube-59aca1894afdbf31f7849a8559099284866a7f64.tar.xz
Merge branch 'dev' into 'master'
[ts-migrate][src] Init tsconfig.json file

See merge request git/the-epube!71
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--.vscode/settings.json3
-rw-r--r--AGENTS.md2
-rw-r--r--build.js12
-rw-r--r--lib/epub.js/types/epubcfi.d.ts7
-rw-r--r--lib/epub.js/types/index.d.ts1
-rw-r--r--lib/epub.js/types/locations.d.ts2
-rw-r--r--lib/epub.js/types/tsconfig.json1
-rw-r--r--package-lock.json2016
-rw-r--r--package.json2
-rw-r--r--src/app.d.ts0
-rw-r--r--src/app.ts (renamed from src/app.js)231
-rw-r--r--src/http.d.ts32
-rw-r--r--src/http.ts (renamed from src/http.js)88
-rw-r--r--src/index.d.ts35
-rw-r--r--src/reader.d.ts26
-rw-r--r--src/reader.ts (renamed from src/reader.js)399
-rw-r--r--src/worker.js184
-rw-r--r--src/worker.ts150
19 files changed, 574 insertions, 2621 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2d66643..6b339c7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,6 @@ variables:
   IMAGE_TAR_DICT: image-dict.tar
   IMAGE_TAR_FPM: image-fpm.tar
   IMAGE_TAR_WEB: image-web.tar
-  ESLINT_PATHS: src
 
 stages:
   - lint
@@ -47,9 +46,6 @@ phpunit:integration:
     - chmod +x tests_integration/pg_helper.sh tests_integration/run.sh
     - su user -c "./tests_integration/run.sh ${PHPUNIT_ARGS}" # can't run initdb as root
 
-eslint:
-  extends: .eslint
-
 tsc:
   extends: .tsc
   after_script:
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..2a27555
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+   "js/ts.tsdk.path": "node_modules/typescript/lib"
+}
diff --git a/AGENTS.md b/AGENTS.md
index fb3e3a1..fd2463a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,4 +1,4 @@
 - respect .editorconfig when formatting code;
 - after making any changes to PHP code, you should invoke phpstan (`npm run phpstan`), unit tests (`npm run phpunit`, `npm run phpunit:integration`);
-- after making changes to JS code, you should run eslint (`npm run eslint`);
+- after making changes to TypeScript code, you should run TypeScript compiler (`npx tsc`);
 - frontend should be built with `npm run build`;
diff --git a/build.js b/build.js
index a2eb419..54488cf 100644
--- a/build.js
+++ b/build.js
@@ -42,9 +42,9 @@ const LESS_FILES = [
 ]
 
 const JS_FILES = [
-	'src/http.js',
-	'src/app.js',
-	'src/reader.js'
+	'src/http.ts',
+	'src/app.ts',
+	'src/reader.ts'
 ];
 
 // Files that should be precached by the service worker
@@ -86,7 +86,7 @@ async function buildApp() {
 	console.log(`build version: ${BUILD_VERSION}`);
 
 	await esbuild.build({
-		stdin: { contents: content, resolveDir: process.cwd(), loader: 'js' },
+		stdin: { contents: content, resolveDir: process.cwd(), loader: 'ts' },
 		bundle: false,
 		minify: true,
 		outfile: 'dist/app.min.js',
@@ -113,7 +113,7 @@ async function buildApp() {
 
 	console.log('building service worker...');
 
-	const workerContent = readFileSync("src/worker.js");
+	const workerContent = readFileSync("src/worker.ts");
 
 	// Use suffixed JS filenames in manifest (stripped by worker for cache keys)
 	// worker.js itself is the service worker — not versioned, replaced atomically by deploy
@@ -129,7 +129,7 @@ async function buildApp() {
 	MANIFEST_ASSETS = [...new Set(MANIFEST_ASSETS)];
 
 	await esbuild.build({
-		stdin: { contents: workerContent, resolveDir: process.cwd(), loader: 'js' },
+		stdin: { contents: workerContent, resolveDir: process.cwd(), loader: 'ts' },
 		bundle: false,
 		minify: true,
 		outfile: 'worker.js',
diff --git a/lib/epub.js/types/epubcfi.d.ts b/lib/epub.js/types/epubcfi.d.ts
index f9748bb..f45faf8 100644
--- a/lib/epub.js/types/epubcfi.d.ts
+++ b/lib/epub.js/types/epubcfi.d.ts
@@ -9,7 +9,7 @@ interface EpubCFISegment {
 interface EpubCFIStep {
 	id: string,
 	tagName: string,
-	type: number,
+	type: number|string,
 	index: number
 }
 
@@ -25,8 +25,9 @@ export default class EpubCFI {
     constructor(cfiFrom?: string | Range | Node, base?: string | object, ignoreClass?: string);
 
     base: EpubCFIComponent;
-		spinePos: number;
-		range: boolean;
+    spinePos: number;
+    range: boolean;
+    path: EpubCFIComponent;
 
     isCfiString(str: string): boolean;
 
diff --git a/lib/epub.js/types/index.d.ts b/lib/epub.js/types/index.d.ts
index 6a8ec9b..7cf87a1 100644
--- a/lib/epub.js/types/index.d.ts
+++ b/lib/epub.js/types/index.d.ts
@@ -10,6 +10,7 @@ export default Epub;
 
 export { default as Book } from './book';
 export { default as EpubCFI } from './epubcfi';
+export { default as CFI } from './epubcfi';
 export { default as Rendition, Location } from './rendition';
 export { default as Contents } from './contents';
 export { default as Layout } from './layout';
diff --git a/lib/epub.js/types/locations.d.ts b/lib/epub.js/types/locations.d.ts
index 055958a..f80922a 100644
--- a/lib/epub.js/types/locations.d.ts
+++ b/lib/epub.js/types/locations.d.ts
@@ -19,7 +19,7 @@ export default class Locations {
 
   cfiFromPercentage(percentage: number): string;
 
-  load(locations: string): Array<string>;
+  load(locations: string[]): Array<string>;
 
   save(): string;
 
diff --git a/lib/epub.js/types/tsconfig.json b/lib/epub.js/types/tsconfig.json
index 546c5a3..22ea59d 100644
--- a/lib/epub.js/types/tsconfig.json
+++ b/lib/epub.js/types/tsconfig.json
@@ -9,6 +9,7 @@
         "noImplicitThis": true,
         "strictNullChecks": true,
         "strictFunctionTypes": true,
+        "ignoreDeprecations": "6.0",
         "baseUrl": "../",
         "typeRoots": [
             "../"
diff --git a/package-lock.json b/package-lock.json
index 576ad9f..3e94b4c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,8 +19,6 @@
         "chokidar": "^3.6.0",
         "cssnano": "^5.1.15",
         "esbuild": "^0.28.0",
-        "eslint": "^8.57.1",
-        "eslint-formatter-gitlab": "^5.1.0",
         "glob": "^13.0.6",
         "less": "^3.13.1",
         "postcss": "^8.5.15",
@@ -480,145 +478,6 @@
         "node": ">=18"
       }
     },
-    "node_modules/@eslint-community/eslint-utils": {
-      "version": "4.9.1",
-      "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
-      "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "eslint-visitor-keys": "^3.4.3"
-      },
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://opencollective.com/eslint"
-      },
-      "peerDependencies": {
-        "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
-      }
-    },
-    "node_modules/@eslint-community/regexpp": {
-      "version": "4.12.2",
-      "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
-      "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
-      }
-    },
-    "node_modules/@eslint/eslintrc": {
-      "version": "2.1.4",
-      "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",
-      "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "ajv": "^6.12.4",
-        "debug": "^4.3.2",
-        "espree": "^9.6.0",
-        "globals": "^13.19.0",
-        "ignore": "^5.2.0",
-        "import-fresh": "^3.2.1",
-        "js-yaml": "^4.1.0",
-        "minimatch": "^3.1.2",
-        "strip-json-comments": "^3.1.1"
-      },
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://opencollective.com/eslint"
-      }
-    },
-    "node_modules/@eslint/js": {
-      "version": "8.57.1",
-      "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",
-      "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      }
-    },
-    "node_modules/@humanwhocodes/config-array": {
-      "version": "0.13.0",
-      "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
-      "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",
-      "deprecated": "Use @eslint/config-array instead",
-      "dev": true,
-      "license": "Apache-2.0",
-      "dependencies": {
-        "@humanwhocodes/object-schema": "^2.0.3",
-        "debug": "^4.3.1",
-        "minimatch": "^3.0.5"
-      },
-      "engines": {
-        "node": ">=10.10.0"
-      }
-    },
-    "node_modules/@humanwhocodes/module-importer": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
-      "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
-      "dev": true,
-      "license": "Apache-2.0",
-      "engines": {
-        "node": ">=12.22"
-      },
-      "funding": {
-        "type": "github",
-        "url": "https://github.com/sponsors/nzakas"
-      }
-    },
-    "node_modules/@humanwhocodes/object-schema": {
-      "version": "2.0.3",
-      "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",
-      "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",
-      "deprecated": "Use @eslint/object-schema instead",
-      "dev": true,
-      "license": "BSD-3-Clause"
-    },
-    "node_modules/@nodelib/fs.scandir": {
-      "version": "2.1.5",
-      "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
-      "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@nodelib/fs.stat": "2.0.5",
-        "run-parallel": "^1.1.9"
-      },
-      "engines": {
-        "node": ">= 8"
-      }
-    },
-    "node_modules/@nodelib/fs.stat": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
-      "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">= 8"
-      }
-    },
-    "node_modules/@nodelib/fs.walk": {
-      "version": "1.2.8",
-      "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
-      "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@nodelib/fs.scandir": "2.1.5",
-        "fastq": "^1.6.0"
-      },
-      "engines": {
-        "node": ">= 8"
-      }
-    },
     "node_modules/@types/bootstrap": {
       "version": "3.4.0",
       "resolved": "https://registry.npmjs.org/@types/bootstrap/-/bootstrap-3.4.0.tgz",
@@ -646,63 +505,6 @@
         "undici-types": ">=7.24.0 <7.24.7"
       }
     },
-    "node_modules/@ungap/structured-clone": {
-      "version": "1.3.1",
-      "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.1.tgz",
-      "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==",
-      "dev": true,
-      "license": "ISC"
-    },
-    "node_modules/acorn": {
-      "version": "8.16.0",
-      "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
-      "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
-      "dev": true,
-      "license": "MIT",
-      "bin": {
-        "acorn": "bin/acorn"
-      },
-      "engines": {
-        "node": ">=0.4.0"
-      }
-    },
-    "node_modules/acorn-jsx": {
-      "version": "5.3.2",
-      "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
-      "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
-      "dev": true,
-      "license": "MIT",
-      "peerDependencies": {
-        "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
-      }
-    },
-    "node_modules/ajv": {
-      "version": "6.15.0",
-      "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
-      "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "fast-deep-equal": "^3.1.1",
-        "fast-json-stable-stringify": "^2.0.0",
-        "json-schema-traverse": "^0.4.1",
-        "uri-js": "^4.2.2"
-      },
-      "funding": {
-        "type": "github",
-        "url": "https://github.com/sponsors/epoberezkin"
-      }
-    },
-    "node_modules/ansi-regex": {
-      "version": "5.0.1",
-      "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
-      "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=8"
-      }
-    },
     "node_modules/anymatch": {
       "version": "3.1.3",
       "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
@@ -717,19 +519,6 @@
         "node": ">= 8"
       }
     },
-    "node_modules/argparse": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
-      "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
-      "dev": true,
-      "license": "Python-2.0"
-    },
-    "node_modules/balanced-match": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
-      "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
-      "dev": true
-    },
     "node_modules/baseline-browser-mapping": {
       "version": "2.10.31",
       "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.31.tgz",
@@ -763,16 +552,6 @@
       "dev": true,
       "license": "ISC"
     },
-    "node_modules/brace-expansion": {
-      "version": "1.1.11",
-      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
-      "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
-      "dev": true,
-      "dependencies": {
-        "balanced-match": "^1.0.0",
-        "concat-map": "0.0.1"
-      }
-    },
     "node_modules/braces": {
       "version": "3.0.3",
       "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
@@ -820,16 +599,6 @@
         "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
       }
     },
-    "node_modules/callsites": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
-      "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=6"
-      }
-    },
     "node_modules/caniuse-api": {
       "version": "3.0.0",
       "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
@@ -864,76 +633,6 @@
       ],
       "license": "CC-BY-4.0"
     },
-    "node_modules/chalk": {
-      "version": "4.1.0",
-      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
-      "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
-      "dev": true,
-      "dependencies": {
-        "ansi-styles": "^4.1.0",
-        "supports-color": "^7.1.0"
-      },
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/chalk/chalk?sponsor=1"
-      }
-    },
-    "node_modules/chalk/node_modules/ansi-styles": {
-      "version": "4.3.0",
-      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
-      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
-      "dev": true,
-      "dependencies": {
-        "color-convert": "^2.0.1"
-      },
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
-      }
-    },
-    "node_modules/chalk/node_modules/color-convert": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
-      "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
-      "dev": true,
-      "dependencies": {
-        "color-name": "~1.1.4"
-      },
-      "engines": {
-        "node": ">=7.0.0"
-      }
-    },
-    "node_modules/chalk/node_modules/color-name": {
-      "version": "1.1.4",
-      "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
-      "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
-      "dev": true
-    },
-    "node_modules/chalk/node_modules/has-flag": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
-      "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
-      "dev": true,
-      "engines": {
-        "node": ">=8"
-      }
-    },
-    "node_modules/chalk/node_modules/supports-color": {
-      "version": "7.2.0",
-      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
-      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
-      "dev": true,
-      "dependencies": {
-        "has-flag": "^4.0.0"
-      },
-      "engines": {
-        "node": ">=8"
-      }
-    },
     "node_modules/chokidar": {
       "version": "3.6.0",
       "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
@@ -999,12 +698,6 @@
         "node": ">= 10"
       }
     },
-    "node_modules/concat-map": {
-      "version": "0.0.1",
-      "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
-      "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
-      "dev": true
-    },
     "node_modules/copy-anything": {
       "version": "2.0.3",
       "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.3.tgz",
@@ -1019,20 +712,6 @@
       "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
     },
-    "node_modules/cross-spawn": {
-      "version": "7.0.3",
-      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
-      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
-      "dev": true,
-      "dependencies": {
-        "path-key": "^3.1.0",
-        "shebang-command": "^2.0.0",
-        "which": "^2.0.1"
-      },
-      "engines": {
-        "node": ">= 8"
-      }
-    },
     "node_modules/css-declaration-sorter": {
       "version": "6.4.1",
       "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz",
@@ -1205,43 +884,6 @@
         "node": ">=8.0.0"
       }
     },
-    "node_modules/debug": {
-      "version": "4.4.3",
-      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
-      "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "ms": "^2.1.3"
-      },
-      "engines": {
-        "node": ">=6.0"
-      },
-      "peerDependenciesMeta": {
-        "supports-color": {
-          "optional": true
-        }
-      }
-    },
-    "node_modules/deep-is": {
-      "version": "0.1.4",
-      "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
-      "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/doctrine": {
-      "version": "3.0.0",
-      "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
-      "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
-      "dev": true,
-      "dependencies": {
-        "esutils": "^2.0.2"
-      },
-      "engines": {
-        "node": ">=6.0.0"
-      }
-    },
     "node_modules/dom-serializer": {
       "version": "1.4.1",
       "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz",
@@ -1383,230 +1025,6 @@
         "node": ">=6"
       }
     },
-    "node_modules/eslint": {
-      "version": "8.57.1",
-      "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",
-      "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
-      "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "@eslint-community/eslint-utils": "^4.2.0",
-        "@eslint-community/regexpp": "^4.6.1",
-        "@eslint/eslintrc": "^2.1.4",
-        "@eslint/js": "8.57.1",
-        "@humanwhocodes/config-array": "^0.13.0",
-        "@humanwhocodes/module-importer": "^1.0.1",
-        "@nodelib/fs.walk": "^1.2.8",
-        "@ungap/structured-clone": "^1.2.0",
-        "ajv": "^6.12.4",
-        "chalk": "^4.0.0",
-        "cross-spawn": "^7.0.2",
-        "debug": "^4.3.2",
-        "doctrine": "^3.0.0",
-        "escape-string-regexp": "^4.0.0",
-        "eslint-scope": "^7.2.2",
-        "eslint-visitor-keys": "^3.4.3",
-        "espree": "^9.6.1",
-        "esquery": "^1.4.2",
-        "esutils": "^2.0.2",
-        "fast-deep-equal": "^3.1.3",
-        "file-entry-cache": "^6.0.1",
-        "find-up": "^5.0.0",
-        "glob-parent": "^6.0.2",
-        "globals": "^13.19.0",
-        "graphemer": "^1.4.0",
-        "ignore": "^5.2.0",
-        "imurmurhash": "^0.1.4",
-        "is-glob": "^4.0.0",
-        "is-path-inside": "^3.0.3",
-        "js-yaml": "^4.1.0",
-        "json-stable-stringify-without-jsonify": "^1.0.1",
-        "levn": "^0.4.1",
-        "lodash.merge": "^4.6.2",
-        "minimatch": "^3.1.2",
-        "natural-compare": "^1.4.0",
-        "optionator": "^0.9.3",
-        "strip-ansi": "^6.0.1",
-        "text-table": "^0.2.0"
-      },
-      "bin": {
-        "eslint": "bin/eslint.js"
-      },
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://opencollective.com/eslint"
-      }
-    },
-    "node_modules/eslint-formatter-gitlab": {
-      "version": "5.1.0",
-      "resolved": "https://registry.npmjs.org/eslint-formatter-gitlab/-/eslint-formatter-gitlab-5.1.0.tgz",
-      "integrity": "sha512-IxhrjLYzDlbFgPWEnvZlWLwPjMeyymbyo0hDHWntZ3DSAP9AP9huj15KbU+BK3OqeO3OHhbFEh2TA6sR0KZhkA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "chalk": "^4.0.0",
-        "yaml": "^2.0.0"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/remcohaszing"
-      },
-      "peerDependencies": {
-        "eslint": ">=5"
-      }
-    },
-    "node_modules/eslint-scope": {
-      "version": "7.2.2",
-      "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
-      "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
-      "dev": true,
-      "license": "BSD-2-Clause",
-      "dependencies": {
-        "esrecurse": "^4.3.0",
-        "estraverse": "^5.2.0"
-      },
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://opencollective.com/eslint"
-      }
-    },
-    "node_modules/eslint-visitor-keys": {
-      "version": "3.4.3",
-      "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
-      "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
-      "dev": true,
-      "license": "Apache-2.0",
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://opencollective.com/eslint"
-      }
-    },
-    "node_modules/eslint/node_modules/escape-string-regexp": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
-      "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/espree": {
-      "version": "9.6.1",
-      "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
-      "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
-      "dev": true,
-      "license": "BSD-2-Clause",
-      "dependencies": {
-        "acorn": "^8.9.0",
-        "acorn-jsx": "^5.3.2",
-        "eslint-visitor-keys": "^3.4.1"
-      },
-      "engines": {
-        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
-      },
-      "funding": {
-        "url": "https://opencollective.com/eslint"
-      }
-    },
-    "node_modules/esquery": {
-      "version": "1.7.0",
-      "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
-      "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
-      "dev": true,
-      "license": "BSD-3-Clause",
-      "dependencies": {
-        "estraverse": "^5.1.0"
-      },
-      "engines": {
-        "node": ">=0.10"
-      }
-    },
-    "node_modules/esrecurse": {
-      "version": "4.3.0",
-      "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
-      "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
-      "dev": true,
-      "license": "BSD-2-Clause",
-      "dependencies": {
-        "estraverse": "^5.2.0"
-      },
-      "engines": {
-        "node": ">=4.0"
-      }
-    },
-    "node_modules/estraverse": {
-      "version": "5.3.0",
-      "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
-      "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
-      "dev": true,
-      "license": "BSD-2-Clause",
-      "engines": {
-        "node": ">=4.0"
-      }
-    },
-    "node_modules/esutils": {
-      "version": "2.0.3",
-      "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
-      "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
-      "dev": true,
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/fast-deep-equal": {
-      "version": "3.1.3",
-      "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
-      "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/fast-json-stable-stringify": {
-      "version": "2.1.0",
-      "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
-      "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/fast-levenshtein": {
-      "version": "2.0.6",
-      "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
-      "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/fastq": {
-      "version": "1.20.1",
-      "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
-      "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "reusify": "^1.0.4"
-      }
-    },
-    "node_modules/file-entry-cache": {
-      "version": "6.0.1",
-      "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
-      "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "flat-cache": "^3.0.4"
-      },
-      "engines": {
-        "node": "^10.12.0 || >=12.0.0"
-      }
-    },
     "node_modules/fill-range": {
       "version": "7.1.1",
       "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
@@ -1620,52 +1038,6 @@
         "node": ">=8"
       }
     },
-    "node_modules/find-up": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
-      "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "locate-path": "^6.0.0",
-        "path-exists": "^4.0.0"
-      },
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/flat-cache": {
-      "version": "3.2.0",
-      "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
-      "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "flatted": "^3.2.9",
-        "keyv": "^4.5.3",
-        "rimraf": "^3.0.2"
-      },
-      "engines": {
-        "node": "^10.12.0 || >=12.0.0"
-      }
-    },
-    "node_modules/flatted": {
-      "version": "3.4.2",
-      "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
-      "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
-      "dev": true,
-      "license": "ISC"
-    },
-    "node_modules/fs.realpath": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
-      "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
-      "dev": true,
-      "license": "ISC"
-    },
     "node_modules/fsevents": {
       "version": "2.3.3",
       "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@@ -1699,19 +1071,6 @@
         "url": "https://github.com/sponsors/isaacs"
       }
     },
-    "node_modules/glob-parent": {
-      "version": "6.0.2",
-      "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
-      "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "is-glob": "^4.0.3"
-      },
-      "engines": {
-        "node": ">=10.13.0"
-      }
-    },
     "node_modules/glob/node_modules/balanced-match": {
       "version": "4.0.4",
       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
@@ -1751,22 +1110,6 @@
         "url": "https://github.com/sponsors/isaacs"
       }
     },
-    "node_modules/globals": {
-      "version": "13.24.0",
-      "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
-      "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "type-fest": "^0.20.2"
-      },
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
     "node_modules/graceful-fs": {
       "version": "4.2.6",
       "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",
@@ -1774,23 +1117,6 @@
       "dev": true,
       "optional": true
     },
-    "node_modules/graphemer": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
-      "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/ignore": {
-      "version": "5.3.2",
-      "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
-      "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">= 4"
-      }
-    },
     "node_modules/image-size": {
       "version": "0.5.5",
       "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
@@ -1809,44 +1135,6 @@
       "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
       "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps="
     },
-    "node_modules/import-fresh": {
-      "version": "3.3.1",
-      "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
-      "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "parent-module": "^1.0.0",
-        "resolve-from": "^4.0.0"
-      },
-      "engines": {
-        "node": ">=6"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/imurmurhash": {
-      "version": "0.1.4",
-      "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
-      "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
-      "dev": true,
-      "engines": {
-        "node": ">=0.8.19"
-      }
-    },
-    "node_modules/inflight": {
-      "version": "1.0.6",
-      "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
-      "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
-      "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "once": "^1.3.0",
-        "wrappy": "1"
-      }
-    },
     "node_modules/inherits": {
       "version": "2.0.4",
       "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
@@ -1897,16 +1185,6 @@
         "node": ">=0.12.0"
       }
     },
-    "node_modules/is-path-inside": {
-      "version": "3.0.3",
-      "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
-      "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=8"
-      }
-    },
     "node_modules/is-what": {
       "version": "3.12.0",
       "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.12.0.tgz",
@@ -1918,45 +1196,6 @@
       "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
       "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
     },
-    "node_modules/isexe": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
-      "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
-      "dev": true
-    },
-    "node_modules/js-yaml": {
-      "version": "4.1.1",
-      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
-      "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "argparse": "^2.0.1"
-      },
-      "bin": {
-        "js-yaml": "bin/js-yaml.js"
-      }
-    },
-    "node_modules/json-buffer": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
-      "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/json-schema-traverse": {
-      "version": "0.4.1",
-      "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
-      "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
-      "dev": true,
-      "license": "MIT"
-    },
-    "node_modules/json-stable-stringify-without-jsonify": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
-      "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
-      "dev": true
-    },
     "node_modules/jszip": {
       "version": "3.7.1",
       "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz",
@@ -1976,16 +1215,6 @@
         "immediate": "~3.0.5"
       }
     },
-    "node_modules/keyv": {
-      "version": "4.5.4",
-      "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
-      "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "json-buffer": "3.0.1"
-      }
-    },
     "node_modules/less": {
       "version": "3.13.1",
       "resolved": "https://registry.npmjs.org/less/-/less-3.13.1.tgz",
@@ -2012,20 +1241,6 @@
         "source-map": "~0.6.0"
       }
     },
-    "node_modules/levn": {
-      "version": "0.4.1",
-      "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
-      "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "prelude-ls": "^1.2.1",
-        "type-check": "~0.4.0"
-      },
-      "engines": {
-        "node": ">= 0.8.0"
-      }
-    },
     "node_modules/lie": {
       "version": "3.1.1",
       "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz",
@@ -2052,22 +1267,6 @@
         "lie": "3.1.1"
       }
     },
-    "node_modules/locate-path": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
-      "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "p-locate": "^5.0.0"
-      },
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
     "node_modules/lodash.memoize": {
       "version": "4.1.2",
       "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
@@ -2075,12 +1274,6 @@
       "dev": true,
       "license": "MIT"
     },
-    "node_modules/lodash.merge": {
-      "version": "4.6.2",
-      "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
-      "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
-      "dev": true
-    },
     "node_modules/lodash.uniq": {
       "version": "4.5.0",
       "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
@@ -2152,19 +1345,6 @@
         "node": ">=4"
       }
     },
-    "node_modules/minimatch": {
-      "version": "3.1.5",
-      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
-      "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "brace-expansion": "^1.1.7"
-      },
-      "engines": {
-        "node": "*"
-      }
-    },
     "node_modules/minipass": {
       "version": "7.1.3",
       "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
@@ -2175,13 +1355,6 @@
         "node": ">=16 || 14 >=14.17"
       }
     },
-    "node_modules/ms": {
-      "version": "2.1.3",
-      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
-      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
-      "dev": true,
-      "license": "MIT"
-    },
     "node_modules/nanoid": {
       "version": "3.3.12",
       "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",
@@ -2208,12 +1381,6 @@
       "dev": true,
       "optional": true
     },
-    "node_modules/natural-compare": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
-      "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
-      "dev": true
-    },
     "node_modules/node-releases": {
       "version": "2.0.46",
       "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.46.tgz",
@@ -2260,113 +1427,11 @@
         "url": "https://github.com/fb55/nth-check?sponsor=1"
       }
     },
-    "node_modules/once": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
-      "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "wrappy": "1"
-      }
-    },
-    "node_modules/optionator": {
-      "version": "0.9.4",
-      "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
-      "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "deep-is": "^0.1.3",
-        "fast-levenshtein": "^2.0.6",
-        "levn": "^0.4.1",
-        "prelude-ls": "^1.2.1",
-        "type-check": "^0.4.0",
-        "word-wrap": "^1.2.5"
-      },
-      "engines": {
-        "node": ">= 0.8.0"
-      }
-    },
-    "node_modules/p-limit": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
-      "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "yocto-queue": "^0.1.0"
-      },
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
-    "node_modules/p-locate": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
-      "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "p-limit": "^3.0.2"
-      },
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
     "node_modules/pako": {
       "version": "1.0.11",
       "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
       "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
     },
-    "node_modules/parent-module": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
-      "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "callsites": "^3.0.0"
-      },
-      "engines": {
-        "node": ">=6"
-      }
-    },
-    "node_modules/path-exists": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
-      "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=8"
-      }
-    },
-    "node_modules/path-is-absolute": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
-      "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/path-key": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
-      "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
-      "dev": true,
-      "engines": {
-        "node": ">=8"
-      }
-    },
     "node_modules/path-scurry": {
       "version": "2.0.2",
       "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
@@ -2886,16 +1951,6 @@
       "dev": true,
       "license": "MIT"
     },
-    "node_modules/prelude-ls": {
-      "version": "1.2.1",
-      "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
-      "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">= 0.8.0"
-      }
-    },
     "node_modules/process-nextick-args": {
       "version": "2.0.1",
       "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -2908,37 +1963,6 @@
       "dev": true,
       "optional": true
     },
-    "node_modules/punycode": {
-      "version": "2.3.1",
-      "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
-      "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=6"
-      }
-    },
-    "node_modules/queue-microtask": {
-      "version": "1.2.3",
-      "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
-      "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/feross"
-        },
-        {
-          "type": "patreon",
-          "url": "https://www.patreon.com/feross"
-        },
-        {
-          "type": "consulting",
-          "url": "https://feross.org/support"
-        }
-      ],
-      "license": "MIT"
-    },
     "node_modules/readable-stream": {
       "version": "2.3.7",
       "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
@@ -2966,90 +1990,6 @@
         "node": ">=8.10.0"
       }
     },
-    "node_modules/resolve-from": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
-      "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=4"
-      }
-    },
-    "node_modules/reusify": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
-      "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "iojs": ">=1.0.0",
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/rimraf": {
-      "version": "3.0.2",
-      "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
-      "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
-      "deprecated": "Rimraf versions prior to v4 are no longer supported",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "glob": "^7.1.3"
-      },
-      "bin": {
-        "rimraf": "bin.js"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/isaacs"
-      }
-    },
-    "node_modules/rimraf/node_modules/glob": {
-      "version": "7.2.3",
-      "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
-      "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
-      "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me",
-      "dev": true,
-      "license": "ISC",
-      "dependencies": {
-        "fs.realpath": "^1.0.0",
-        "inflight": "^1.0.4",
-        "inherits": "2",
-        "minimatch": "^3.1.1",
-        "once": "^1.3.0",
-        "path-is-absolute": "^1.0.0"
-      },
-      "engines": {
-        "node": "*"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/isaacs"
-      }
-    },
-    "node_modules/run-parallel": {
-      "version": "1.2.0",
-      "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
-      "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
-      "dev": true,
-      "funding": [
-        {
-          "type": "github",
-          "url": "https://github.com/sponsors/feross"
-        },
-        {
-          "type": "patreon",
-          "url": "https://www.patreon.com/feross"
-        },
-        {
-          "type": "consulting",
-          "url": "https://feross.org/support"
-        }
-      ],
-      "license": "MIT",
-      "dependencies": {
-        "queue-microtask": "^1.2.2"
-      }
-    },
     "node_modules/safe-buffer": {
       "version": "5.1.2",
       "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
@@ -3073,27 +2013,6 @@
         "node": ">=0.10.0"
       }
     },
-    "node_modules/shebang-command": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
-      "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
-      "dev": true,
-      "dependencies": {
-        "shebang-regex": "^3.0.0"
-      },
-      "engines": {
-        "node": ">=8"
-      }
-    },
-    "node_modules/shebang-regex": {
-      "version": "3.0.0",
-      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
-      "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
-      "dev": true,
-      "engines": {
-        "node": ">=8"
-      }
-    },
     "node_modules/source-map": {
       "version": "0.6.1",
       "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
@@ -3130,32 +2049,6 @@
         "safe-buffer": "~5.1.0"
       }
     },
-    "node_modules/strip-ansi": {
-      "version": "6.0.1",
-      "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
-      "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "ansi-regex": "^5.0.1"
-      },
-      "engines": {
-        "node": ">=8"
-      }
-    },
-    "node_modules/strip-json-comments": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
-      "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=8"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
     "node_modules/stylehacks": {
       "version": "5.1.1",
       "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz",
@@ -3195,12 +2088,6 @@
         "node": ">=10.13.0"
       }
     },
-    "node_modules/text-table": {
-      "version": "0.2.0",
-      "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
-      "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
-      "dev": true
-    },
     "node_modules/to-regex-range": {
       "version": "5.0.1",
       "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -3220,32 +2107,6 @@
       "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
       "dev": true
     },
-    "node_modules/type-check": {
-      "version": "0.4.0",
-      "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
-      "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
-      "dev": true,
-      "license": "MIT",
-      "dependencies": {
-        "prelude-ls": "^1.2.1"
-      },
-      "engines": {
-        "node": ">= 0.8.0"
-      }
-    },
-    "node_modules/type-fest": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
-      "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
-      "dev": true,
-      "license": "(MIT OR CC0-1.0)",
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
-    },
     "node_modules/typescript": {
       "version": "6.0.3",
       "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
@@ -3324,78 +2185,10 @@
         "browserslist": ">= 4.21.0"
       }
     },
-    "node_modules/uri-js": {
-      "version": "4.4.1",
-      "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
-      "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
-      "dev": true,
-      "license": "BSD-2-Clause",
-      "dependencies": {
-        "punycode": "^2.1.0"
-      }
-    },
     "node_modules/util-deprecate": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
       "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
-    },
-    "node_modules/which": {
-      "version": "2.0.2",
-      "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
-      "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
-      "dev": true,
-      "dependencies": {
-        "isexe": "^2.0.0"
-      },
-      "bin": {
-        "node-which": "bin/node-which"
-      },
-      "engines": {
-        "node": ">= 8"
-      }
-    },
-    "node_modules/word-wrap": {
-      "version": "1.2.5",
-      "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
-      "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/wrappy": {
-      "version": "1.0.2",
-      "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
-      "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
-      "dev": true,
-      "license": "ISC"
-    },
-    "node_modules/yaml": {
-      "version": "2.7.1",
-      "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz",
-      "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==",
-      "dev": true,
-      "license": "ISC",
-      "bin": {
-        "yaml": "bin.mjs"
-      },
-      "engines": {
-        "node": ">= 14"
-      }
-    },
-    "node_modules/yocto-queue": {
-      "version": "0.1.0",
-      "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
-      "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
-      "dev": true,
-      "license": "MIT",
-      "engines": {
-        "node": ">=10"
-      },
-      "funding": {
-        "url": "https://github.com/sponsors/sindresorhus"
-      }
     }
   },
   "dependencies": {
@@ -3587,93 +2380,6 @@
       "dev": true,
       "optional": true
     },
-    "@eslint-community/eslint-utils": {
-      "version": "4.9.1",
-      "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
-      "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
-      "dev": true,
-      "requires": {
-        "eslint-visitor-keys": "^3.4.3"
-      }
-    },
-    "@eslint-community/regexpp": {
-      "version": "4.12.2",
-      "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
-      "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
-      "dev": true
-    },
-    "@eslint/eslintrc": {
-      "version": "2.1.4",
-      "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",
-      "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",
-      "dev": true,
-      "requires": {
-        "ajv": "^6.12.4",
-        "debug": "^4.3.2",
-        "espree": "^9.6.0",
-        "globals": "^13.19.0",
-        "ignore": "^5.2.0",
-        "import-fresh": "^3.2.1",
-        "js-yaml": "^4.1.0",
-        "minimatch": "^3.1.2",
-        "strip-json-comments": "^3.1.1"
-      }
-    },
-    "@eslint/js": {
-      "version": "8.57.1",
-      "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",
-      "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",
-      "dev": true
-    },
-    "@humanwhocodes/config-array": {
-      "version": "0.13.0",
-      "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
-      "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",
-      "dev": true,
-      "requires": {
-        "@humanwhocodes/object-schema": "^2.0.3",
-        "debug": "^4.3.1",
-        "minimatch": "^3.0.5"
-      }
-    },
-    "@humanwhocodes/module-importer": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
-      "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
-      "dev": true
-    },
-    "@humanwhocodes/object-schema": {
-      "version": "2.0.3",
-      "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",
-      "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",
-      "dev": true
-    },
-    "@nodelib/fs.scandir": {
-      "version": "2.1.5",
-      "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
-      "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
-      "dev": true,
-      "requires": {
-        "@nodelib/fs.stat": "2.0.5",
-        "run-parallel": "^1.1.9"
-      }
-    },
-    "@nodelib/fs.stat": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
-      "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
-      "dev": true
-    },
-    "@nodelib/fs.walk": {
-      "version": "1.2.8",
-      "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
-      "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
-      "dev": true,
-      "requires": {
-        "@nodelib/fs.scandir": "2.1.5",
-        "fastq": "^1.6.0"
-      }
-    },
     "@types/bootstrap": {
       "version": "3.4.0",
       "resolved": "https://registry.npmjs.org/@types/bootstrap/-/bootstrap-3.4.0.tgz",
@@ -3698,43 +2404,6 @@
         "undici-types": ">=7.24.0 <7.24.7"
       }
     },
-    "@ungap/structured-clone": {
-      "version": "1.3.1",
-      "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.1.tgz",
-      "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==",
-      "dev": true
-    },
-    "acorn": {
-      "version": "8.16.0",
-      "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
-      "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
-      "dev": true
-    },
-    "acorn-jsx": {
-      "version": "5.3.2",
-      "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
-      "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
-      "dev": true,
-      "requires": {}
-    },
-    "ajv": {
-      "version": "6.15.0",
-      "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
-      "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
-      "dev": true,
-      "requires": {
-        "fast-deep-equal": "^3.1.1",
-        "fast-json-stable-stringify": "^2.0.0",
-        "json-schema-traverse": "^0.4.1",
-        "uri-js": "^4.2.2"
-      }
-    },
-    "ansi-regex": {
-      "version": "5.0.1",
-      "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
-      "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
-      "dev": true
-    },
     "anymatch": {
       "version": "3.1.3",
       "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
@@ -3745,18 +2414,6 @@
         "picomatch": "^2.0.4"
       }
     },
-    "argparse": {
-      "version": "2.0.1",
-      "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
-      "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
-      "dev": true
-    },
-    "balanced-match": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
-      "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
-      "dev": true
-    },
     "baseline-browser-mapping": {
       "version": "2.10.31",
       "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.31.tgz",
@@ -3775,16 +2432,6 @@
       "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
       "dev": true
     },
-    "brace-expansion": {
-      "version": "1.1.11",
-      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
-      "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
-      "dev": true,
-      "requires": {
-        "balanced-match": "^1.0.0",
-        "concat-map": "0.0.1"
-      }
-    },
     "braces": {
       "version": "3.0.3",
       "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
@@ -3807,12 +2454,6 @@
         "update-browserslist-db": "^1.2.3"
       }
     },
-    "callsites": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
-      "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
-      "dev": true
-    },
     "caniuse-api": {
       "version": "3.0.0",
       "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
@@ -3831,57 +2472,6 @@
       "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==",
       "dev": true
     },
-    "chalk": {
-      "version": "4.1.0",
-      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
-      "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
-      "dev": true,
-      "requires": {
-        "ansi-styles": "^4.1.0",
-        "supports-color": "^7.1.0"
-      },
-      "dependencies": {
-        "ansi-styles": {
-          "version": "4.3.0",
-          "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
-          "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
-          "dev": true,
-          "requires": {
-            "color-convert": "^2.0.1"
-          }
-        },
-        "color-convert": {
-          "version": "2.0.1",
-          "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
-          "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
-          "dev": true,
-          "requires": {
-            "color-name": "~1.1.4"
-          }
-        },
-        "color-name": {
-          "version": "1.1.4",
-          "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
-          "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
-          "dev": true
-        },
-        "has-flag": {
-          "version": "4.0.0",
-          "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
-          "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
-          "dev": true
-        },
-        "supports-color": {
-          "version": "7.2.0",
-          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
-          "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
-          "dev": true,
-          "requires": {
-            "has-flag": "^4.0.0"
-          }
-        }
-      }
-    },
     "chokidar": {
       "version": "3.6.0",
       "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
@@ -3927,12 +2517,6 @@
       "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
       "dev": true
     },
-    "concat-map": {
-      "version": "0.0.1",
-      "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
-      "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
-      "dev": true
-    },
     "copy-anything": {
       "version": "2.0.3",
       "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-2.0.3.tgz",
@@ -3947,17 +2531,6 @@
       "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
     },
-    "cross-spawn": {
-      "version": "7.0.3",
-      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
-      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
-      "dev": true,
-      "requires": {
-        "path-key": "^3.1.0",
-        "shebang-command": "^2.0.0",
-        "which": "^2.0.1"
-      }
-    },
     "css-declaration-sorter": {
       "version": "6.4.1",
       "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz",
@@ -4072,30 +2645,6 @@
         "css-tree": "^1.1.2"
       }
     },
-    "debug": {
-      "version": "4.4.3",
-      "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
-      "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
-      "dev": true,
-      "requires": {
-        "ms": "^2.1.3"
-      }
-    },
-    "deep-is": {
-      "version": "0.1.4",
-      "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
-      "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
-      "dev": true
-    },
-    "doctrine": {
-      "version": "3.0.0",
-      "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
-      "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
-      "dev": true,
-      "requires": {
-        "esutils": "^2.0.2"
-      }
-    },
     "dom-serializer": {
       "version": "1.4.1",
       "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz",
@@ -4195,163 +2744,6 @@
       "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
       "dev": true
     },
-    "eslint": {
-      "version": "8.57.1",
-      "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",
-      "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",
-      "dev": true,
-      "requires": {
-        "@eslint-community/eslint-utils": "^4.2.0",
-        "@eslint-community/regexpp": "^4.6.1",
-        "@eslint/eslintrc": "^2.1.4",
-        "@eslint/js": "8.57.1",
-        "@humanwhocodes/config-array": "^0.13.0",
-        "@humanwhocodes/module-importer": "^1.0.1",
-        "@nodelib/fs.walk": "^1.2.8",
-        "@ungap/structured-clone": "^1.2.0",
-        "ajv": "^6.12.4",
-        "chalk": "^4.0.0",
-        "cross-spawn": "^7.0.2",
-        "debug": "^4.3.2",
-        "doctrine": "^3.0.0",
-        "escape-string-regexp": "^4.0.0",
-        "eslint-scope": "^7.2.2",
-        "eslint-visitor-keys": "^3.4.3",
-        "espree": "^9.6.1",
-        "esquery": "^1.4.2",
-        "esutils": "^2.0.2",
-        "fast-deep-equal": "^3.1.3",
-        "file-entry-cache": "^6.0.1",
-        "find-up": "^5.0.0",
-        "glob-parent": "^6.0.2",
-        "globals": "^13.19.0",
-        "graphemer": "^1.4.0",
-        "ignore": "^5.2.0",
-        "imurmurhash": "^0.1.4",
-        "is-glob": "^4.0.0",
-        "is-path-inside": "^3.0.3",
-        "js-yaml": "^4.1.0",
-        "json-stable-stringify-without-jsonify": "^1.0.1",
-        "levn": "^0.4.1",
-        "lodash.merge": "^4.6.2",
-        "minimatch": "^3.1.2",
-        "natural-compare": "^1.4.0",
-        "optionator": "^0.9.3",
-        "strip-ansi": "^6.0.1",
-        "text-table": "^0.2.0"
-      },
-      "dependencies": {
-        "escape-string-regexp": {
-          "version": "4.0.0",
-          "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
-          "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
-          "dev": true
-        }
-      }
-    },
-    "eslint-formatter-gitlab": {
-      "version": "5.1.0",
-      "resolved": "https://registry.npmjs.org/eslint-formatter-gitlab/-/eslint-formatter-gitlab-5.1.0.tgz",
-      "integrity": "sha512-IxhrjLYzDlbFgPWEnvZlWLwPjMeyymbyo0hDHWntZ3DSAP9AP9huj15KbU+BK3OqeO3OHhbFEh2TA6sR0KZhkA==",
-      "dev": true,
-      "requires": {
-        "chalk": "^4.0.0",
-        "yaml": "^2.0.0"
-      }
-    },
-    "eslint-scope": {
-      "version": "7.2.2",
-      "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
-      "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
-      "dev": true,
-      "requires": {
-        "esrecurse": "^4.3.0",
-        "estraverse": "^5.2.0"
-      }
-    },
-    "eslint-visitor-keys": {
-      "version": "3.4.3",
-      "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
-      "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
-      "dev": true
-    },
-    "espree": {
-      "version": "9.6.1",
-      "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
-      "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
-      "dev": true,
-      "requires": {
-        "acorn": "^8.9.0",
-        "acorn-jsx": "^5.3.2",
-        "eslint-visitor-keys": "^3.4.1"
-      }
-    },
-    "esquery": {
-      "version": "1.7.0",
-      "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
-      "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
-      "dev": true,
-      "requires": {
-        "estraverse": "^5.1.0"
-      }
-    },
-    "esrecurse": {
-      "version": "4.3.0",
-      "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
-      "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
-      "dev": true,
-      "requires": {
-        "estraverse": "^5.2.0"
-      }
-    },
-    "estraverse": {
-      "version": "5.3.0",
-      "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
-      "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
-      "dev": true
-    },
-    "esutils": {
-      "version": "2.0.3",
-      "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
-      "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
-      "dev": true
-    },
-    "fast-deep-equal": {
-      "version": "3.1.3",
-      "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
-      "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
-      "dev": true
-    },
-    "fast-json-stable-stringify": {
-      "version": "2.1.0",
-      "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
-      "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
-      "dev": true
-    },
-    "fast-levenshtein": {
-      "version": "2.0.6",
-      "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
-      "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
-      "dev": true
-    },
-    "fastq": {
-      "version": "1.20.1",
-      "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
-      "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
-      "dev": true,
-      "requires": {
-        "reusify": "^1.0.4"
-      }
-    },
-    "file-entry-cache": {
-      "version": "6.0.1",
-      "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
-      "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
-      "dev": true,
-      "requires": {
-        "flat-cache": "^3.0.4"
-      }
-    },
     "fill-range": {
       "version": "7.1.1",
       "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
@@ -4361,39 +2753,6 @@
         "to-regex-range": "^5.0.1"
       }
     },
-    "find-up": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
-      "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
-      "dev": true,
-      "requires": {
-        "locate-path": "^6.0.0",
-        "path-exists": "^4.0.0"
-      }
-    },
-    "flat-cache": {
-      "version": "3.2.0",
-      "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
-      "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
-      "dev": true,
-      "requires": {
-        "flatted": "^3.2.9",
-        "keyv": "^4.5.3",
-        "rimraf": "^3.0.2"
-      }
-    },
-    "flatted": {
-      "version": "3.4.2",
-      "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
-      "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
-      "dev": true
-    },
-    "fs.realpath": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
-      "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
-      "dev": true
-    },
     "fsevents": {
       "version": "2.3.3",
       "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@@ -4438,24 +2797,6 @@
         }
       }
     },
-    "glob-parent": {
-      "version": "6.0.2",
-      "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
-      "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
-      "dev": true,
-      "requires": {
-        "is-glob": "^4.0.3"
-      }
-    },
-    "globals": {
-      "version": "13.24.0",
-      "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
-      "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
-      "dev": true,
-      "requires": {
-        "type-fest": "^0.20.2"
-      }
-    },
     "graceful-fs": {
       "version": "4.2.6",
       "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz",
@@ -4463,18 +2804,6 @@
       "dev": true,
       "optional": true
     },
-    "graphemer": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
-      "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
-      "dev": true
-    },
-    "ignore": {
-      "version": "5.3.2",
-      "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
-      "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
-      "dev": true
-    },
     "image-size": {
       "version": "0.5.5",
       "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz",
@@ -4487,32 +2816,6 @@
       "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
       "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps="
     },
-    "import-fresh": {
-      "version": "3.3.1",
-      "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
-      "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
-      "dev": true,
-      "requires": {
-        "parent-module": "^1.0.0",
-        "resolve-from": "^4.0.0"
-      }
-    },
-    "imurmurhash": {
-      "version": "0.1.4",
-      "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
-      "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
-      "dev": true
-    },
-    "inflight": {
-      "version": "1.0.6",
-      "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
-      "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
-      "dev": true,
-      "requires": {
-        "once": "^1.3.0",
-        "wrappy": "1"
-      }
-    },
     "inherits": {
       "version": "2.0.4",
       "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
@@ -4548,12 +2851,6 @@
       "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
       "dev": true
     },
-    "is-path-inside": {
-      "version": "3.0.3",
-      "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
-      "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
-      "dev": true
-    },
     "is-what": {
       "version": "3.12.0",
       "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.12.0.tgz",
@@ -4565,39 +2862,6 @@
       "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
       "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
     },
-    "isexe": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
-      "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
-      "dev": true
-    },
-    "js-yaml": {
-      "version": "4.1.1",
-      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
-      "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
-      "dev": true,
-      "requires": {
-        "argparse": "^2.0.1"
-      }
-    },
-    "json-buffer": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
-      "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
-      "dev": true
-    },
-    "json-schema-traverse": {
-      "version": "0.4.1",
-      "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
-      "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
-      "dev": true
-    },
-    "json-stable-stringify-without-jsonify": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
-      "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
-      "dev": true
-    },
     "jszip": {
       "version": "3.7.1",
       "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz",
@@ -4619,15 +2883,6 @@
         }
       }
     },
-    "keyv": {
-      "version": "4.5.4",
-      "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
-      "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
-      "dev": true,
-      "requires": {
-        "json-buffer": "3.0.1"
-      }
-    },
     "less": {
       "version": "3.13.1",
       "resolved": "https://registry.npmjs.org/less/-/less-3.13.1.tgz",
@@ -4645,16 +2900,6 @@
         "tslib": "^1.10.0"
       }
     },
-    "levn": {
-      "version": "0.4.1",
-      "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
-      "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
-      "dev": true,
-      "requires": {
-        "prelude-ls": "^1.2.1",
-        "type-check": "~0.4.0"
-      }
-    },
     "lie": {
       "version": "3.1.1",
       "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz",
@@ -4677,27 +2922,12 @@
         "lie": "3.1.1"
       }
     },
-    "locate-path": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
-      "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
-      "dev": true,
-      "requires": {
-        "p-locate": "^5.0.0"
-      }
-    },
     "lodash.memoize": {
       "version": "4.1.2",
       "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
       "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==",
       "dev": true
     },
-    "lodash.merge": {
-      "version": "4.6.2",
-      "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
-      "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
-      "dev": true
-    },
     "lodash.uniq": {
       "version": "4.5.0",
       "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
@@ -4750,27 +2980,12 @@
       "dev": true,
       "optional": true
     },
-    "minimatch": {
-      "version": "3.1.5",
-      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
-      "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
-      "dev": true,
-      "requires": {
-        "brace-expansion": "^1.1.7"
-      }
-    },
     "minipass": {
       "version": "7.1.3",
       "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
       "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
       "dev": true
     },
-    "ms": {
-      "version": "2.1.3",
-      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
-      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
-      "dev": true
-    },
     "nanoid": {
       "version": "3.3.12",
       "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",
@@ -4784,12 +2999,6 @@
       "dev": true,
       "optional": true
     },
-    "natural-compare": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
-      "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
-      "dev": true
-    },
     "node-releases": {
       "version": "2.0.46",
       "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.46.tgz",
@@ -4817,79 +3026,11 @@
         "boolbase": "^1.0.0"
       }
     },
-    "once": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
-      "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
-      "dev": true,
-      "requires": {
-        "wrappy": "1"
-      }
-    },
-    "optionator": {
-      "version": "0.9.4",
-      "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
-      "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
-      "dev": true,
-      "requires": {
-        "deep-is": "^0.1.3",
-        "fast-levenshtein": "^2.0.6",
-        "levn": "^0.4.1",
-        "prelude-ls": "^1.2.1",
-        "type-check": "^0.4.0",
-        "word-wrap": "^1.2.5"
-      }
-    },
-    "p-limit": {
-      "version": "3.1.0",
-      "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
-      "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
-      "dev": true,
-      "requires": {
-        "yocto-queue": "^0.1.0"
-      }
-    },
-    "p-locate": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
-      "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
-      "dev": true,
-      "requires": {
-        "p-limit": "^3.0.2"
-      }
-    },
     "pako": {
       "version": "1.0.11",
       "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
       "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
     },
-    "parent-module": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
-      "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
-      "dev": true,
-      "requires": {
-        "callsites": "^3.0.0"
-      }
-    },
-    "path-exists": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
-      "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
-      "dev": true
-    },
-    "path-is-absolute": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
-      "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
-      "dev": true
-    },
-    "path-key": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
-      "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
-      "dev": true
-    },
     "path-scurry": {
       "version": "2.0.2",
       "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
@@ -5190,12 +3331,6 @@
       "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
       "dev": true
     },
-    "prelude-ls": {
-      "version": "1.2.1",
-      "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
-      "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
-      "dev": true
-    },
     "process-nextick-args": {
       "version": "2.0.1",
       "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -5208,18 +3343,6 @@
       "dev": true,
       "optional": true
     },
-    "punycode": {
-      "version": "2.3.1",
-      "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
-      "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
-      "dev": true
-    },
-    "queue-microtask": {
-      "version": "1.2.3",
-      "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
-      "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
-      "dev": true
-    },
     "readable-stream": {
       "version": "2.3.7",
       "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
@@ -5243,52 +3366,6 @@
         "picomatch": "^2.2.1"
       }
     },
-    "resolve-from": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
-      "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
-      "dev": true
-    },
-    "reusify": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
-      "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
-      "dev": true
-    },
-    "rimraf": {
-      "version": "3.0.2",
-      "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
-      "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
-      "dev": true,
-      "requires": {
-        "glob": "^7.1.3"
-      },
-      "dependencies": {
-        "glob": {
-          "version": "7.2.3",
-          "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
-          "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
-          "dev": true,
-          "requires": {
-            "fs.realpath": "^1.0.0",
-            "inflight": "^1.0.4",
-            "inherits": "2",
-            "minimatch": "^3.1.1",
-            "once": "^1.3.0",
-            "path-is-absolute": "^1.0.0"
-          }
-        }
-      }
-    },
-    "run-parallel": {
-      "version": "1.2.0",
-      "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
-      "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
-      "dev": true,
-      "requires": {
-        "queue-microtask": "^1.2.2"
-      }
-    },
     "safe-buffer": {
       "version": "5.1.2",
       "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
@@ -5305,21 +3382,6 @@
       "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz",
       "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E="
     },
-    "shebang-command": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
-      "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
-      "dev": true,
-      "requires": {
-        "shebang-regex": "^3.0.0"
-      }
-    },
-    "shebang-regex": {
-      "version": "3.0.0",
-      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
-      "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
-      "dev": true
-    },
     "source-map": {
       "version": "0.6.1",
       "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
@@ -5346,21 +3408,6 @@
         "safe-buffer": "~5.1.0"
       }
     },
-    "strip-ansi": {
-      "version": "6.0.1",
-      "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
-      "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
-      "dev": true,
-      "requires": {
-        "ansi-regex": "^5.0.1"
-      }
-    },
-    "strip-json-comments": {
-      "version": "3.1.1",
-      "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
-      "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
-      "dev": true
-    },
     "stylehacks": {
       "version": "5.1.1",
       "resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-5.1.1.tgz",
@@ -5386,12 +3433,6 @@
         "stable": "^0.1.8"
       }
     },
-    "text-table": {
-      "version": "0.2.0",
-      "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
-      "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
-      "dev": true
-    },
     "to-regex-range": {
       "version": "5.0.1",
       "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -5407,21 +3448,6 @@
       "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
       "dev": true
     },
-    "type-check": {
-      "version": "0.4.0",
-      "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
-      "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
-      "dev": true,
-      "requires": {
-        "prelude-ls": "^1.2.1"
-      }
-    },
-    "type-fest": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
-      "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
-      "dev": true
-    },
     "typescript": {
       "version": "6.0.3",
       "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
@@ -5464,52 +3490,10 @@
         "picocolors": "^1.1.1"
       }
     },
-    "uri-js": {
-      "version": "4.4.1",
-      "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
-      "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
-      "dev": true,
-      "requires": {
-        "punycode": "^2.1.0"
-      }
-    },
     "util-deprecate": {
       "version": "1.0.2",
       "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
       "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
-    },
-    "which": {
-      "version": "2.0.2",
-      "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
-      "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
-      "dev": true,
-      "requires": {
-        "isexe": "^2.0.0"
-      }
-    },
-    "word-wrap": {
-      "version": "1.2.5",
-      "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
-      "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
-      "dev": true
-    },
-    "wrappy": {
-      "version": "1.0.2",
-      "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
-      "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
-      "dev": true
-    },
-    "yaml": {
-      "version": "2.7.1",
-      "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz",
-      "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==",
-      "dev": true
-    },
-    "yocto-queue": {
-      "version": "0.1.0",
-      "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
-      "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
-      "dev": true
     }
   }
 }
diff --git a/package.json b/package.json
index 915d098..4276e2f 100644
--- a/package.json
+++ b/package.json
@@ -19,8 +19,6 @@
     "chokidar": "^3.6.0",
     "cssnano": "^5.1.15",
     "esbuild": "^0.28.0",
-    "eslint": "^8.57.1",
-    "eslint-formatter-gitlab": "^5.1.0",
     "glob": "^13.0.6",
     "less": "^3.13.1",
     "postcss": "^8.5.15",
diff --git a/src/app.d.ts b/src/app.d.ts
deleted file mode 100644
index e69de29..0000000
--- a/src/app.d.ts
+++ /dev/null
diff --git a/src/app.js b/src/app.ts
index 03aefd1..481f669 100644
--- a/src/app.js
+++ b/src/app.ts
@@ -1,15 +1,14 @@
-// @ts-check
-
 'use strict';
 
 class Cookie {
 
     /**
-     * @param {string} name
-     * @param {string | number | boolean} value
-     * @param {number} lifetime
+     * Set a cookie.
+     * @param name - The cookie name.
+     * @param value - The cookie value.
+     * @param lifetime - Lifetime in seconds.
      */
-    static set(name, value, lifetime) {
+    static set(name: string, value: string | number | boolean, lifetime: number): void {
         const d = new Date();
         d.setTime(d.getTime() + lifetime * 1000);
         const expires = "expires=" + d.toUTCString();
@@ -17,9 +16,10 @@ class Cookie {
     }
 
     /**
-     * @param {string} name
+     * Get a cookie value by name.
+     * @param name - The cookie name.
      */
-    static get(name) {
+    static get(name: string): string {
         name = name + "=";
         const ca = document.cookie.split(';');
         for (let i=0; i < ca.length; i++) {
@@ -31,9 +31,10 @@ class Cookie {
     }
 
     /**
-     * @param {string} name
+     * Delete a cookie by name.
+     * @param name - The cookie name.
      */
-    static delete(name) {
+    static delete(name: string): void {
         const expires = "expires=Thu, 01-Jan-1970 00:00:01 GMT";
         document.cookie = name + "=; " + expires;
     }
@@ -41,9 +42,10 @@ class Cookie {
 
 class AppCommon {
     /**
-     * @param {string} name
+     * Extract a URL query parameter.
+     * @param name - The parameter name.
      */
-    urlParam(name){
+    urlParam(name: string): string{
         try {
             const results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
             if (!results) return "";
@@ -67,9 +69,9 @@ class AppCommon {
         // Fast exit if no worker is active
         if (!worker) return null;
 
-        return new Promise((resolve, reject) => {
+        return new Promise<string | null>((resolve, reject) => {
             const channel = new MessageChannel();
-            let timeoutId = null;
+            let timeoutId = -1;
 
             channel.port1.onmessage = (event) => {
                 clearTimeout(timeoutId); // Clean up the timeout
@@ -77,7 +79,7 @@ class AppCommon {
             };
 
             // 1. Set a timeout so it never gets stuck forever
-            timeoutId = setTimeout(() => {
+            timeoutId = window.setTimeout(() => {
                 channel.port1.onmessage = null; // Clean up listener
                 console.warn('Service worker did not respond to GET_CACHE_NAME');
                 resolve(null);
@@ -95,9 +97,9 @@ class AppCommon {
         // Fast exit if no worker is active
         if (!worker) return null;
 
-        return new Promise((resolve, reject) => {
+        return new Promise<string | null>((resolve, reject) => {
             const channel = new MessageChannel();
-            let timeoutId = null;
+            let timeoutId = -1;
 
             channel.port1.onmessage = (event) => {
                 clearTimeout(timeoutId); // Clean up the timeout
@@ -105,7 +107,7 @@ class AppCommon {
             };
 
             // 1. Set a timeout so it never gets stuck forever
-            timeoutId = setTimeout(() => {
+            timeoutId = window.setTimeout(() => {
                 channel.port1.onmessage = null; // Clean up listener
                 console.warn('Service worker did not respond to GET_CACHE_VERSION');
                 resolve(null);
@@ -133,20 +135,16 @@ class AppCommon {
         }
     }
 
-    /** @param {boolean} is_night */
-    applyNightMode(is_night) {
+    /** Apply night/dark mode styling. */
+    applyNightMode(is_night: boolean): void {
         console.log("night mode changed to", is_night);
 
         $("#theme_css").attr("href",
             "lib/bootstrap/v3/css/" + (is_night ? "theme-dark.min.css" : "bootstrap-theme.min.css"));
     }
 
-    /** htmlspecialchars()-alike for headlines data-content attribute
-      * @param {string | number | boolean} p
-      *
-      * @return {string}
-      */
-    escapeHtml(p) {
+    /** htmlspecialchars()-alike for headlines data-content attribute. */
+    escapeHtml(p: string | number | boolean): string {
         if (p === null || p === undefined) {
             return '';
         }
@@ -169,31 +167,20 @@ class AppCommon {
     }
 }
 
-/* eslint-disable-next-line no-unused-vars */
 class AppClass extends AppCommon {
-    _dl_progress_timeout;
-
-    /** @type{string} */
-    index_mode = "";
-
-    /** @type{string} */
-    index_query = "";
-
-    /** @type{number} */
-    index_offset = 0;
-
-    cached_urls = [];
+    _dl_progress_timeout: number = -1;
 
-    /** @type{string} */
-    cacheVersion = BUILD_CACHE_VERSION;
+    index_mode: string = "";
+    index_query: string = "";
+    index_offset: number = 0;
 
-    /** @type{string} */
-    cosmeticVersion = BUILD_VERSION;
+    cached_urls: string[] = [];
 
-    /** @type{string} */
-    csrf_token = "";
+    cacheVersion = BUILD_CACHE_VERSION as string;
+    cosmeticVersion = BUILD_VERSION as string;
+    csrf_token: string = "";
 
-    async init() {
+    async init(): Promise<void> {
         console.log('cache version, current:', this.cacheVersion, 'worker:', await this.getActiveCacheVersion());
 
         // Read URL params for mode/query/offset
@@ -220,9 +207,9 @@ class AppClass extends AppCommon {
             await Http.get("backend.php?" + checkParams.toString());
             // If we get here without error, we're authenticated
         } catch (e) {
-            const err = /** @type {HttpError} */(e);
+            const err = e as HttpError;
             // 401 Unauthorized — redirect to login
-            if (err.status === 401) {
+            if ((err as any).status === 401) {
                 window.location.href = "login.php";
                 return;
             }
@@ -269,12 +256,12 @@ class AppClass extends AppCommon {
             this.logout();
         });
 
-        $(".download_all_link").on('click', (e) => {
+        $(".download_all_link").on('click', (e: JQuery.Event) => {
             e.preventDefault();
             this.getAll();
         });
 
-        $(".update_link").on('click', (e) => {
+        $(".update_link").on('click', (e: JQuery.Event) => {
             e.preventDefault();
             window.location.reload();
         });
@@ -283,7 +270,7 @@ class AppClass extends AppCommon {
 
     }
 
-    async logout() {
+    async logout(): Promise<void> {
         try {
             await Http.post("backend.php", {op: "logout"});
         } catch (e) {
@@ -293,21 +280,20 @@ class AppClass extends AppCommon {
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Show the book summary modal.
+     * @param elem - The trigger element with data-book-id.
      */
-    async showSummary(elem) {
+    async showSummary(elem: HTMLElement): Promise<boolean> {
         const bookId = elem.getAttribute("data-book-id");
 
         if (!bookId)
-            return;
+            return false;
 
         if (this.isOnline()) {
 
-            /** @type{HttpResponse} */
-            const reply = await Http.post("backend.php", {op: 'list', ids: bookId});
+            const reply = await Http.post("backend.php", {op: 'list', ids: bookId}) as HttpResponse;
 
-            /** @type{BookInfo} */
-            const data = reply.data['books'][0];
+            const data = reply.data['books'][0] as BookInfo;
 
             const comment = data.comment ? data.comment : 'No description available';
 
@@ -317,7 +303,7 @@ class AppClass extends AppCommon {
             $("#summary-modal").modal();
 
         } else {
-            const data = await localforage.getItem("epube-book." + bookId);
+            const data = await localforage.getItem("epube-book." + bookId) as BookInfo;
             const comment = data.comment ? data.comment : 'No description available';
 
             $("#summary-modal .modal-title").text(data.title);
@@ -330,7 +316,7 @@ class AppClass extends AppCommon {
     }
 
     showCovers() {
-        $("img[data-book-id]").each((i, elem) => {
+        $("img[data-book-id]").each((i: number, elem: HTMLElement) => {
             const e = $(elem);
 
             if (e.attr('data-cover-link')) {
@@ -347,28 +333,30 @@ class AppClass extends AppCommon {
     }
 
     /**
-     * @param {HTMLElement} elem
-     * @param {boolean} is_fav
+     * Update the favorite prompt text on an element.
+     * @param elem - The element to update.
+     * @param is_fav - Whether the book is a favorite.
      */
-    updateFavoritePrompt(elem, is_fav) {
+    updateFavoritePrompt(elem: HTMLElement, is_fav: boolean): void {
         $(elem)
             .text(is_fav ? "Remove from favorites" : "Add to favorites")
             .attr('data-is-fav', is_fav ? 1 : 0);
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Toggle a book's favorite status.
+     * @param elem - The trigger element with data-book-id.
      */
-    async toggleFavorite(elem) {
+    async toggleFavorite(elem: HTMLElement): Promise<boolean> {
         const bookId = elem.getAttribute("data-book-id");
 
         if (!bookId)
-            return;
+            return false;
 
         if (elem.getAttribute("data-is-fav") == "0" || confirm("Remove favorite?")) {
 
             try {
-                const resp = await Http.post("backend.php", {op: "togglefav", id: bookId});
+                const resp = await Http.post("backend.php", {op: "togglefav", id: bookId}) as HttpResponse;
                 if (resp.data) {
                     this.updateFavoritePrompt(elem, resp.data.status == "1");
 
@@ -387,15 +375,16 @@ class AppClass extends AppCommon {
     updateOfflinePrompts() {
         const elems = $(".offline_dropitem");
 
-        $.each(elems, (i, elem) => {
+        $.each(elems, (i: number, elem: HTMLElement) => {
             this.updateOfflinePrompt(elem);
         });
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Update the offline prompt for a single book element.
+     * @param elem - The element to update.
      */
-    async updateOfflinePrompt(elem) {
+    async updateOfflinePrompt(elem: HTMLElement): Promise<void> {
         const bookId = elem.getAttribute("data-book-id");
 
         if (!bookId)
@@ -428,7 +417,7 @@ class AppClass extends AppCommon {
         }
     }
 
-    async offlineInit() {
+    async offlineInit(): Promise<void> {
         console.log('cache version, current:', this.cacheVersion, 'worker:', await this.getActiveCacheVersion());
 
         if (typeof EpubeApp != "undefined") {
@@ -448,17 +437,16 @@ class AppClass extends AppCommon {
     }
 
      /**
-     * @param {string} bookId
-     * @param {Function} callback
+     * Download a single book for offline reading.
+     * @param bookId - The book ID to download.
+     * @param callback - Callback invoked after download completes.
      */
-    async get(bookId, callback) {
+    async get(bookId: string, callback: () => void): Promise<void> {
         console.log("offline cache: " + bookId);
 
-        /** @type {HttpResponse} */
-        const reply = await Http.post("backend.php", {op: "list", ids: bookId});
+        const reply = await Http.post("backend.php", {op: "list", ids: bookId}) as HttpResponse;
 
-        /** @type{BookInfo} */
-        const data = reply.data['books'][0];
+        const data = reply.data['books'][0] as BookInfo;
 
         if (data) {
             const cacheId = 'epube-book.' + bookId;
@@ -466,7 +454,7 @@ class AppClass extends AppCommon {
             await localforage.setItem(cacheId, data);
             console.log(cacheId + ' got data');
 
-            const promises = [];
+            const promises: Promise<void|Blob>[] = [];
 
             promises.push(Http.blob('backend.php?op=download&id=' + data.epub_id).then((resp) => {
                 console.log(cacheId + ' got book');
@@ -507,10 +495,10 @@ class AppClass extends AppCommon {
         }
     }
 
-    getAll() {
+    getAll(): void {
         if (confirm("Download all books on this page?")) {
 
-            $(".row > div").each((i, row) => {
+            $(".row > div").each((i: number, row: HTMLElement) => {
                 const bookId = ($(row).attr("id") ?? "").replace("cell-", "");
                 const dropitem = $(row).find(".offline_dropitem")[0] ?? null;
 
@@ -520,7 +508,7 @@ class AppClass extends AppCommon {
                     localforage.getItem(cacheId).then((book) => {
                         if (!book) {
                             this.get(bookId, () => {
-                                this.updateOfflinePrompt(dropitem);
+                                this.updateOfflinePrompt(dropitem as HTMLElement);
                             });
                         }
                     });
@@ -530,25 +518,28 @@ class AppClass extends AppCommon {
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Remove a book from the list UI.
+     * @param elem - The element with data-book-id.
      */
-    removeFromList(elem) {
+    removeFromList(elem: HTMLElement): void {
         const bookId = elem.getAttribute("data-book-id");
 
-        this.remove(bookId, () => {
-            $("#cell-" + bookId).remove();
-        });
+        if (bookId) {
+            this.remove(bookId, () => {
+                $("#cell-" + bookId).remove();
+            });
+        }
     }
 
-    remove(id, callback) {
+    remove(id: string, callback: () => void): void {
         if (confirm("Remove download?")) {
 
             const cacheId = "epube-book." + id;
-            const promises = [];
+            const promises: Promise<void>[] = [];
 
             console.log("offline remove: " + id);
 
-            localforage.iterate(function(value, key /*, i */) {
+            localforage.iterate(function(value: unknown, key: string /*, i */) {
                 if (key.match(cacheId)) {
                     promises.push(localforage.removeItem(key));
                 }
@@ -565,7 +556,7 @@ class AppClass extends AppCommon {
         }
     }
 
-    async populateList() {
+    async populateList(): Promise<void> {
         const params = new URLSearchParams({
             op: "list",
             mode: this.index_mode,
@@ -574,27 +565,25 @@ class AppClass extends AppCommon {
             limit: String(60),
         });
 
-        /** @type {HttpResponse} */
-        let resp;
+        let resp: HttpResponse;
         try {
             resp = await Http.get("backend.php?" + params.toString());
         } catch (e) {
-            const err = /** @type {HttpError} */(e);
-            if (err.status === 401) {
+            const err = e as HttpError;
+            if ((err as any).status === 401) {
                 window.location.href = "login.php";
             }
             return;
         }
 
-        /** @type{BookList} */
-        const data = resp.data;
+        const data = resp.data as BookList;
         const books = $("#books_container");
         books.html("");
 
         if (data) {
-            data.books.forEach((book) => {
+            data.books.forEach((book: BookInfo) => {
                 const download_html = book.download_formats
-                    .map((fmt) => {
+                    .map((fmt: { id: number, format: string }) => {
                         const label_class = fmt.format === "EPUB" ? "label-success" : "label-primary";
                         return `<li><a target="_blank" href="backend.php?op=download&id=${fmt.id}">Download: <span class="label ${label_class}">${fmt.format}</span></a></li>`;
                     })
@@ -628,9 +617,10 @@ class AppClass extends AppCommon {
     }
 
     /**
-     * @param {BookList} data
+     * Update the index pagination UI.
+     * @param data - The book list response containing pagination info.
      */
-    updateIndexPagination(data) {
+    updateIndexPagination(data: BookList): void {
         const prevLi = $(".pager .previous");
         const nextLi = $(".pager .next");
         const pagerInfo = $(".pager .pager-info");
@@ -672,14 +662,14 @@ class AppClass extends AppCommon {
 
     /**
      * Render a book cell DOM element.
-     * @param {BookInfo} book - Book data object.
-     * @param {Object} opts - Rendering options.
-     * @param {string[]} opts.menuItems - Array of <li> menu item HTML strings.
-     * @param {String} [opts.seriesUrl] - Search by series override
-     * @param {String} [opts.authorUrl] - Search by author override
+     * @param book - Book data object.
+     * @param opts - Rendering options.
+     * @param opts.menuItems - Array of <li> menu item HTML strings.
+     * @param opts.seriesUrl - Search by series override
+     * @param opts.authorUrl - Search by author override
      * @returns {JQuery<HTMLElement>} The created cell element.
      */
-    renderBookCell(book, opts) {
+    renderBookCell(book: BookInfo, opts: { menuItems: string[], seriesUrl?: string, authorUrl?: string }): JQuery<HTMLElement> {
         //console.log('renderBookCell', book, opts);
 
         const cellThumbClass = book.is_read ? "read" : "";
@@ -726,18 +716,18 @@ class AppClass extends AppCommon {
             </div>
         </div>`);
 
-        cell.find('.summary_link').on('click', (evt) => {
+        cell.find('.summary_link').on('click', (evt: JQuery.ClickEvent) => {
             evt.preventDefault();
             this.showSummary(evt.currentTarget);
         });
 
-        cell.find('.fav_item').on('click', (evt) => {
+        cell.find('.fav_item').on('click', (evt: JQuery.ClickEvent) => {
             evt.preventDefault();
             this.toggleFavorite(evt.currentTarget);
         });
 
         // specific to offline index
-        cell.find('.remove_offline_data').on('click', (evt) => {
+        cell.find('.remove_offline_data').on('click', (evt: JQuery.ClickEvent) => {
             evt.preventDefault();
             this.removeFromList(evt.currentTarget);
         });
@@ -745,8 +735,8 @@ class AppClass extends AppCommon {
         return cell;
     }
 
-    async search() {
-        const query = $(".search_query").val();
+    async search(): Promise<boolean> {
+        const query = $(".search_query").val() as string | undefined;
 
         await localforage.setItem("epube.search-query", query);
 
@@ -755,12 +745,12 @@ class AppClass extends AppCommon {
         return false;
     }
 
-    async removeAll() {
+    async removeAll(): Promise<void> {
         if (confirm("Remove all downloaded books?")) {
 
-            const promises = [];
+            const promises: Promise<void>[] = [];
 
-            localforage.iterate(function(value, key/*, i*/) {
+            localforage.iterate(function(value: unknown, key: string/*, i*/) {
                 if (key.match("epube-book")) {
                     promises.push(localforage.removeItem(key));
                 }
@@ -772,14 +762,14 @@ class AppClass extends AppCommon {
         }
     }
 
-   populateOfflineList() {
+   populateOfflineList(): void {
         let query = this.urlParam("query");
         if (query) query = String(query).toLowerCase();
 
         const books = $("#books_container");
         books.html("");
 
-        localforage.iterate((value, key) => {
+        localforage.iterate((value: unknown, key: string) => {
             if (key.match(/epube-book\.\d{1,}$/)) {
 
                 Promise.all([
@@ -791,8 +781,7 @@ class AppClass extends AppCommon {
 
                     if (results[0] && results[3]) {
 
-                        /** @type BookInfo */
-                        const info = results[0];
+                        const info = results[0] as BookInfo;
 
                         if (query) {
                             const match =
@@ -805,10 +794,10 @@ class AppClass extends AppCommon {
 
                         let cover = "";
                         if (results[1]) {
-                            cover = URL.createObjectURL(results[1]);
+                            cover = URL.createObjectURL(results[1] as Blob);
                         }
 
-                        const lastread = results[2];
+                        const lastread = results[2] as LastRead | null;
                         info.in_progress = lastread ? lastread.page > 0 : false;
                         info.is_read = lastread ? (lastread.total > 0 && lastread.total - lastread.page < 5) : false;
 
diff --git a/src/http.d.ts b/src/http.d.ts
deleted file mode 100644
index 451b8a2..0000000
--- a/src/http.d.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// @ts-check
-
-declare class HttpError extends Error {
-    status?: number;
-    responseText?: string;
-}
-
-declare interface Http {
-    static setCsrfToken(token: string): void;
-    static get(url: string): Promise<HttpResponse>;
-    static post(url: string, body: Record<string, string>): Promise<HttpResponse>;
-    static blob(url: string): Promise<HttpBlobResponse>;
-    static text(url: string): Promise<HttpTextResponse>;
-}
-
-declare interface HttpResponse {
-    data: any;
-    ok: boolean;
-    status: number;
-}
-
-declare interface HttpBlobResponse {
-    blob: Blob;
-    ok: boolean;
-    status: number;
-}
-
-declare interface HttpTextResponse {
-    text: string;
-    ok: boolean;
-    status: number;
-}
diff --git a/src/http.js b/src/http.ts
index e66888c..6fd5c17 100644
--- a/src/http.js
+++ b/src/http.ts
@@ -1,10 +1,38 @@
-// @ts-check
-
 'use strict';
 
+declare class HttpError extends Error {
+    status?: number;
+    responseText?: string;
+}
+
+declare interface Http {
+    setCsrfToken(token: string): void;
+    get(url: string): Promise<HttpResponse>;
+    post(url: string, body: Record<string, string>): Promise<HttpResponse>;
+    blob(url: string): Promise<HttpBlobResponse>;
+    text(url: string): Promise<HttpTextResponse>;
+}
+
+declare interface HttpResponse {
+    data: any;
+    ok: boolean;
+    status: number;
+}
+
+declare interface HttpBlobResponse {
+    blob: Blob;
+    ok: boolean;
+    status: number;
+}
+
+declare interface HttpTextResponse {
+    text: string;
+    ok: boolean;
+    status: number;
+}
+
 /**
- * @class
- * @description Static HTTP client wrapping fetch with CSRF support.
+ * Static HTTP client wrapping fetch with CSRF support.
  *
  * Usage:
  *   const resp = await Http.get('backend.php?op=list');
@@ -14,46 +42,38 @@
  *
  *   const { blob } = await Http.blob('backend.php?op=download&id=42');
  */
-// eslint-disable-next-line no-unused-vars
 class Http {
-    /** @private @type {string} */
-    static _csrfToken = '';
+    private static _csrfToken = '';
 
     /**
      * Set the CSRF token for subsequent requests.
-     * @param {string} token
+     * @param token - The CSRF token string.
      */
-    static setCsrfToken(token) {
+    static setCsrfToken(token: string): void {
         Http._csrfToken = token;
     }
 
     /**
      * Append query parameters to a URL string.
      * @private
-     * @param {string} url
-     * @param {Record<string, string> | null | undefined} params
-     * @returns {string}
      */
-    static _appendParams(url, params) {
+    private static _appendParams(url: string, params: Record<string, string> | null | undefined): string {
         if (!params || Object.keys(params).length === 0) return url;
         const separator = url.includes('?') ? '&' : '?';
-        const query = new URLSearchParams(params).toString();
+        const query = new URLSearchParams(params as Record<string, string>).toString();
         return `${url}${separator}${query}`;
     }
 
     /**
      * Throw a structured error for failed HTTP responses.
      * @private
-     * @param {Response} resp
-     * @returns {never}
      */
-    static _throwHttpError(resp) {
-        /** @type {HttpError} */
-        const err = new Error(`HTTP ${resp.status}: ${resp.statusText}`);
-        err.status = resp.status;
-        err.responseText = '';
+    private static _throwHttpError(resp: Response): never {
+        const err = new Error(`HTTP ${resp.status}: ${resp.statusText}`) as HttpError;
+        (err as any).status = resp.status;
+        (err as any).responseText = '';
         // Read error body asynchronously — don't block the throw
-        resp.text().then((t) => { err.responseText = t; }).catch(() => {
+        resp.text().then((t: string) => { (err as any).responseText = t; }).catch(() => {
             /* ignore */
         });
         throw err;
@@ -61,11 +81,9 @@ class Http {
 
     /**
      * Perform a GET request. Returns parsed JSON.
-     * @param {string} url
-     * @param {Record<string, string> | null} [params] - optional query parameters
-     * @returns {Promise<HttpResponse>}
+     * @param params - Optional query parameters.
      */
-    static async get(url, params) {
+    static async get(url: string, params: Record<string, string> | null = null): Promise<HttpResponse> {
         const urlWithParams = Http._appendParams(url, params);
         const resp = await fetch(urlWithParams, {
             method: 'GET',
@@ -82,11 +100,9 @@ class Http {
 
     /**
      * Perform a POST request with form-encoded body. Returns parsed JSON.
-     * @param {string} url
-     * @param {Record<string, string>} body
-     * @returns {Promise<HttpResponse>}
+     * @param body - Form-encoded body parameters.
      */
-    static async post(url, body) {
+    static async post(url: string, body: Record<string, string>): Promise<HttpResponse> {
         const params = new URLSearchParams(body);
         if (Http._csrfToken) {
             params.append('csrf_token', Http._csrfToken);
@@ -108,11 +124,9 @@ class Http {
 
     /**
      * Perform a GET request and return the body as a Blob.
-     * @param {string} url
-     * @param {Record<string, string> | null} [params] - optional query parameters
-     * @returns {Promise<HttpBlobResponse>}
+     * @param params - Optional query parameters.
      */
-    static async blob(url, params) {
+    static async blob(url: string, params: Record<string, string> | null = null): Promise<HttpBlobResponse> {
         const urlWithParams = Http._appendParams(url, params);
         const resp = await fetch(urlWithParams, {
             method: 'GET',
@@ -129,11 +143,9 @@ class Http {
 
     /**
      * Perform a GET request and return the body as plain text.
-     * @param {string} url
-     * @param {Record<string, string> | null} [params] - optional query parameters
-     * @returns {Promise<HttpTextResponse>}
+     * @param params - Optional query parameters.
      */
-    static async text(url, params) {
+    static async text(url: string, params: Record<string, string> | null = null): Promise<HttpTextResponse> {
         const urlWithParams = Http._appendParams(url, params);
         const resp = await fetch(urlWithParams, {
             method: 'GET',
diff --git a/src/index.d.ts b/src/index.d.ts
index 60ffba3..002b179 100644
--- a/src/index.d.ts
+++ b/src/index.d.ts
@@ -38,6 +38,12 @@ declare interface BookList {
     limit: number;
 }
 
+declare interface LastRead {
+    cfi: string;
+    page: number;
+    total: number;
+}
+
 declare var EpubeApp: EpubeApp;
 
 declare var localforage: LocalForage;
@@ -46,3 +52,32 @@ declare const BUILD_CACHE_VERSION: string;
 declare const BUILD_MANIFEST_ASSETS: [];
 
 declare const BUILD_VERSION: string;
+
+/** Pattern definition as produced by the hyphen library's build process. */
+interface HyphenPatternDefinition {
+    patterns: string[];
+    exceptions?: string[];
+}
+
+/** Optional configuration for createHyphenator. */
+interface CreateHyphenatorOptions {
+    async?: boolean;
+    debug?: boolean;
+    html?: boolean;
+    hyphenChar?: string;
+    minWordLength?: number;
+}
+
+/** A hyphenation function: takes text, returns hyphenated HTML, technically this could also return a promise in async mode but we don't use it */
+interface HyphenatorFunction {
+    (text: string, options?: { debug?: boolean; hyphenChar?: string; minWordLength?: number }): string | Promise<string>
+}
+
+/** Language-code -> hyphenator function map. */
+type HyphenateMap = Record<string, HyphenatorFunction>;
+
+declare var hyphenationPatternsEnUs: HyphenPatternDefinition;
+declare var hyphenationPatternsRu: HyphenPatternDefinition;
+declare var createHyphenator: {
+    (patternsDefinition: HyphenPatternDefinition, options?: CreateHyphenatorOptions): HyphenatorFunction;
+};
diff --git a/src/reader.d.ts b/src/reader.d.ts
deleted file mode 100644
index b798c4c..0000000
--- a/src/reader.d.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-declare var createHyphenator: any;
-
-declare var hyphenationPatternsEnUs: any;
-declare var hyphenationPatternsRu: any;
-
-declare interface HTMLElement { checked: boolean }
-declare interface Event { deltaY: number, deltaX: number }
-declare interface Node { data: string }
-
-interface NetworkError extends Error {
-  responseText?: string; // optional
-}
-
-declare type SwipeState = {
-   active: boolean,
-   startX: number,
-    startY: number,
-    startTime: number,
-    direction: 'left'|'right'|null
-}
-
-declare type SwipeConfig = {
-   minDistance: number,
-   velocityThreshold: number,
-   verticalDistanceThreshold: number
-}
diff --git a/src/reader.js b/src/reader.ts
index a3b81b7..567c920 100644
--- a/src/reader.js
+++ b/src/reader.ts
@@ -2,6 +2,31 @@
 
 'use strict';
 
+/** Pattern definition as produced by the hyphen library's build process. */
+
+
+declare interface HTMLElement { checked: boolean }
+declare interface Event { deltaY: number, deltaX: number }
+declare interface Node { data: string }
+
+interface NetworkError extends Error {
+  responseText?: string; // optional
+}
+
+declare type SwipeState = {
+   active: boolean,
+   startX: number,
+    startY: number,
+    startTime: number,
+    direction: 'left'|'right';
+}
+
+declare type SwipeConfig = {
+   minDistance: number,
+   velocityThreshold: number,
+   verticalDistanceThreshold: number
+}
+
 const DEFAULT_FONT_SIZE = 16;
 const DEFAULT_FONT_FAMILY = "Arial";
 const DEFAULT_LINE_HEIGHT = 140;
@@ -12,6 +37,8 @@ const PAGE_RESET_PROGRESS = -1;
 
 /* eslint-disable-next-line no-unused-vars */
 class ReaderClass extends AppCommon {
+    _flattened_toc: any;
+    loader: any;
     csrf_token = "";
 
     last_stored_cfi = "";
@@ -20,20 +47,17 @@ class ReaderClass extends AppCommon {
 
     open_last_read_when_displayed = true;
 
-    hyphenate = {};
+    hyphenate = {} as HyphenateMap;
 
-    _prevent_lastread_timeout;
+    _prevent_lastread_timeout: any;
 
-    _prevent_lastread;
+    _prevent_lastread: any;
 
     cacheVersion = BUILD_CACHE_VERSION;
 
     cosmeticVersion = BUILD_VERSION;
 
-    /**
-     * @type {ePub.Book}
-     */
-    book;
+    book: ePub.Book;
 
     /** @type {SwipeState} */
     _swipeState = {
@@ -41,11 +65,10 @@ class ReaderClass extends AppCommon {
         startX: 0,
         startY: 0,
         startTime: 0,
-        direction: null,
+        direction: '',
     };
 
-    /** @type {SwipeConfig} */
-    _swipeConfig = {
+    _swipeConfig: SwipeConfig = {
         minDistance: 50,           // px — minimum horizontal travel to count as swipe
         velocityThreshold: 0.3,    // px/ms — minimum swipe speed
         verticalDistanceThreshold: 80, // px — vertical movement before cancelling
@@ -58,7 +81,7 @@ class ReaderClass extends AppCommon {
         this.loader = new ReaderLoader();
     }
 
-    onTouchStart(evt) {
+    onTouchStart(evt: any) {
         const touch = evt.touches[0] || evt.changedTouches[0];
 
         this._swipeState = {
@@ -70,7 +93,7 @@ class ReaderClass extends AppCommon {
         };
     }
 
-    onTouchEnd(evt) {
+    onTouchEnd(evt: any) {
         if (!this._swipeState.active) return;
 
         const touch = evt.changedTouches[0] || evt.changedTouches[evt.changedTouches.length - 1];
@@ -96,7 +119,7 @@ class ReaderClass extends AppCommon {
         }
     }
 
-    onTouchMove(evt) {
+    onTouchMove(evt: any) {
         if (!this._swipeState.active) return;
 
         const touch = evt.touches[0] || evt.changedTouches[0];
@@ -116,7 +139,7 @@ class ReaderClass extends AppCommon {
 
         Http.setCsrfToken(this.csrf_token);
 
-        $(document).on("keyup", (e) => {
+        $(document).on("keyup", (e: any) => {
             this.hotkeyHandler(e);
         });
 
@@ -132,7 +155,7 @@ class ReaderClass extends AppCommon {
             this.search();
         });
 
-        $(".prev_location_btn").on("click", (evt) => {
+        $(".prev_location_btn").on("click", (evt: any) => {
             this.openPrevious(evt.target);
         });
 
@@ -140,15 +163,15 @@ class ReaderClass extends AppCommon {
             this.nextPage();
         });
 
-        $("#left, #right").on("touchstart", (evt) => {
+        $("#left, #right").on("touchstart", (evt: any) => {
             this.onTouchStart(evt);
         });
 
-        $("#left, #right").on("touchmove", (evt) => {
+        $("#left, #right").on("touchmove", (evt: any) => {
             this.onTouchMove(evt);
         });
 
-        $("#left, #right").on("touchend", (evt) => {
+        $("#left, #right").on("touchend", (evt: any) => {
             this.onTouchEnd(evt);
         });
 
@@ -172,9 +195,9 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {boolean} offline
+     * @param offline Whether the app is in offline mode.
      */
-    async onOfflineModeChanged(offline) {
+    async onOfflineModeChanged(offline: boolean) {
         console.log('onOfflineModeChanged', offline);
 
         if (!offline && this.book) {
@@ -188,7 +211,7 @@ class ReaderClass extends AppCommon {
                     cfi: currentCfi, timestamp: String(new Date().getTime()) });
             } catch (e) {
                 const err = /** @type {HttpError} */(e);
-                if (err.status == 401) {
+                if ((err as any).status == 401) {
                     window.location.href = "index.html";
                 }
             }
@@ -242,14 +265,14 @@ class ReaderClass extends AppCommon {
 
                 console.error(err);
 
-                $(".loading-message").html(`Unable to load book info.<br/><small>${this.escapeHtml((String)(err.responseText))}</small>`);
+                $(".loading-message").html(`Unable to load book info.<br/><small>${this.escapeHtml((String)((err as any).responseText))}</small>`);
                 return;
             }
         }
 
         console.log('trying to load book...');
 
-        let book_data = await localforage.getItem(this.cacheId("book"));
+        let book_data = await localforage.getItem(this.cacheId("book")) as Blob;
 
         if (!book_data) {
             console.log("local data not found, loading from network...");
@@ -291,7 +314,7 @@ class ReaderClass extends AppCommon {
         fileReader.readAsArrayBuffer(book_data);
     }
 
-    async openBookData(book_data) {
+    async openBookData(book_data: any) {
         //this.book = new ePub.Book();
 
         try {
@@ -329,7 +352,6 @@ class ReaderClass extends AppCommon {
         const enable_hyphens = await localforage.getItem("epube.enable-hyphens");
 
         if (enable_hyphens) {
-            /* global hyphenationPatternsEnUs, hyphenationPatternsRu, createHyphenator */
             this.hyphenate.en = createHyphenator(hyphenationPatternsEnUs, { html: true });
             this.hyphenate.ru = createHyphenator(hyphenationPatternsRu, { html: true });
         }
@@ -347,10 +369,10 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.Book} book
+     * @param book The ePub book whose info should be displayed.
      */
-    async showBookInfo(book) {
-        const bookinfo = await localforage.getItem(this.cacheId());
+    async showBookInfo(book: ePub.Book) {
+        const bookinfo = await localforage.getItem(this.cacheId()) as BookInfo;
 
         let title;
         let author;
@@ -378,10 +400,10 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.Book} book
+     * @param book The ePub book whose locations should be loaded.
      */
-    async loadLocations(book) {
-        let locations = await localforage.getItem(this.cacheId("locations"));
+    async loadLocations(book: ePub.Book) {
+        let locations = await localforage.getItem(this.cacheId("locations")) as string[];
 
         // legacy format is array of objects {cfi: ..., page: ...}
         if (locations && typeof locations[0] == "string") {
@@ -433,7 +455,7 @@ class ReaderClass extends AppCommon {
 
         let generate_queue_max = 0;
 
-        locations = await book.locations.generate(100, (queue) => {
+        locations = await book.locations.generate(100, (queue: any) => {
             if (!generate_queue_max)
                 generate_queue_max = queue.length();
 
@@ -456,19 +478,19 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.Book} book
-     * @param {ePub.Rendition} rendition
+     * @param book The ePub book instance.
+     * @param rendition The epub.js rendition to hook into.
      */
-    initRenditionHooks(book, rendition) {
+    initRenditionHooks(book: ePub.Book, rendition: ePub.Rendition) {
         console.log('initRenditionHooks');
 
-        book.spine.hooks.content.register((doc/*, section */) => {
+        book.spine.hooks.content.register((doc: any/*, section */) => {
             this.cleanupEmbeddedStyles(doc);
         });
 
-        rendition.hooks.content.register(async (contents) => {
+        rendition.hooks.content.register(async (contents: any) => {
 
-            contents.on("linkClicked", (href) => {
+            contents.on("linkClicked", (href: any) => {
                 console.log('linkClicked', href);
 
                 this.blockLastReadUpdate();
@@ -484,7 +506,7 @@ class ReaderClass extends AppCommon {
                 }
             });
 
-            contents.on("selected", async (cfiRange) => {
+            contents.on("selected", async (cfiRange: any) => {
                 if (this.isOnline()) {
                     const range = await book.getRange(cfiRange);
 
@@ -518,7 +540,7 @@ class ReaderClass extends AppCommon {
                 .append($("<style type='text/css'>")
                     .text(this.loader._res_data[base_url + 'dist/reader_iframe.min.css']));
 
-            const theme = await localforage.getItem("epube.theme") || 'default';
+            const theme = (await localforage.getItem("epube.theme")) || 'default';
 
             $(contents.document).find("body")
                 .attr("class", typeof EpubeApp != "undefined" ? "is-epube-app" : "")
@@ -526,7 +548,7 @@ class ReaderClass extends AppCommon {
 
             console.log('contents', contents);
 
-            $(contents.window).on("click tap", (evt) => {
+            $(contents.window).on("click tap", (evt: any) => {
                 if (evt.button == 0) {
                     if ($(".modal").is(":visible"))
                         return;
@@ -538,7 +560,7 @@ class ReaderClass extends AppCommon {
                 }
             });
 
-            $(contents.window).on("wheel", async (evt) => {
+            $(contents.window).on("wheel", async (evt: any) => {
                 if (await localforage.getItem("epube.enable-wheel")) {
                     if ((evt.originalEvent?.deltaY ?? 0) > 0) {
                         this.nextPage();
@@ -549,7 +571,7 @@ class ReaderClass extends AppCommon {
             });
         });
 
-        rendition.on("keyup", (e) => {
+        rendition.on("keyup", (e: any) => {
             this.hotkeyHandler(e);
         });
 
@@ -560,56 +582,47 @@ class ReaderClass extends AppCommon {
             this.open_last_read_when_displayed = true;
         });
 
-        rendition.on('rendered', async (/* section */) => {
-            console.log('rendition rendered');
-
-            this.applyTheme();
-            this.resizeSideColumns();
-
-            try {
-                const location = rendition.currentLocation();
-
-                if (location.start) {
-                    const cur_href = book.canonical(location.start.href);
-                    let toc_entry = {};
-
-                    $.each(this.flattenToc(book), function(i, r) {
-
-                        if (book.spine.get(r.href).canonical == cur_href) {
-                            toc_entry = r;
-                            return;
-                        }
-                    });
-
-                    if (toc_entry && toc_entry.label)
-                        $(".chapter_title").text(this.escapeHtml(toc_entry.label.trim()) + " | ");
-
-                    this.generateTocBar(book, this.flattenToc(book));
+        rendition.on('rendered', async ( /* section */) => {
+    console.log('rendition rendered');
+    this.applyTheme();
+    this.resizeSideColumns();
+    try {
+        const location = rendition.currentLocation();
+        if (location.start) {
+            const cur_href = book.canonical(location.start.href);
+            let toc_entry = {};
+            $.each(this.flattenToc(book), function (i: any, r: any) {
+                if (book.spine.get(r.href).canonical == cur_href) {
+                    toc_entry = r;
+                    return;
                 }
-
-            } catch (e) {
-                console.warn(e);
-            }
-
-            if (this.open_last_read_when_displayed) {
-                this.open_last_read_when_displayed = false;
-
-                await this.openLastRead();
-            }
-        });
+            });
+            if (toc_entry && (toc_entry as any).label)
+                $(".chapter_title").text(this.escapeHtml((toc_entry as any).label.trim()) + " | ");
+            this.generateTocBar(book, this.flattenToc(book));
+        }
+    }
+    catch (e) {
+        console.warn(e);
+    }
+    if (this.open_last_read_when_displayed) {
+        this.open_last_read_when_displayed = false;
+        await this.openLastRead();
+    }
+});
 
         // this seems to be called a lot more than rendered
         rendition.on('displayed', function(/*chapter*/) {
             console.log('rendition displayed');
         });
 
-        rendition.on('relocated', (/** @type {ePub.Location} */ location) => this.onRelocated(book, location));
+        rendition.on('relocated', (/** @type {ePub.Location} */ location: any) => this.onRelocated(book, location));
     }
 
     initModals() {
         $('#settings-modal').on('shown.bs.modal', async () => {
 
-            const last_read = await localforage.getItem(this.cacheId("lastread"));
+            const last_read = await localforage.getItem(this.cacheId("lastread")) as LastRead;
 
             if (last_read && last_read.cfi) {
                 $(".lastread_input")
@@ -655,32 +668,32 @@ class ReaderClass extends AppCommon {
 
             $(".font_family")
                 .off("change")
-                .on("change", (evt) => {
+                .on("change", (evt: any) => {
                     this.onFontChanged(evt.target);
                 });
 
             $(".font_size")
                 .off("change")
-                .on("change", (evt) => {
+                .on("change", (evt: any) => {
                     this.onTextSizeChanged(evt.target);
                 });
 
             $(".line_height")
                 .off("change")
-                .on("change", (evt) => {
+                .on("change", (evt: any) => {
                     this.onLineHeightChanged(evt.target);
                 });
 
             $(".theme_name")
                 .off("change")
-                .on("change", (evt) => {
+                .on("change", (evt: any) => {
                     this.onThemeChanged(evt.target);
                 });
 
             $(".enable_hyphens_checkbox")
                 .attr("checked", await localforage.getItem("epube.enable-hyphens"))
                 .off("click")
-                .on("click", (evt) => {
+                .on("click", (evt: any) => {
                     localforage.setItem("epube.enable-hyphens", evt.target.checked);
 
                     if (confirm("Toggling hyphens requires page reload. Reload now?")) {
@@ -691,7 +704,7 @@ class ReaderClass extends AppCommon {
             $(".enable_wheel_checkbox")
                 .attr("checked", await localforage.getItem("epube.enable-wheel"))
                 .off("click")
-                .on("click", (evt) => {
+                .on("click", (evt: any) => {
                     localforage.setItem("epube.enable-wheel", evt.target.checked);
                 });
 
@@ -701,7 +714,7 @@ class ReaderClass extends AppCommon {
                 $(".keep_ui_checkbox")
                 .attr("checked", await localforage.getItem("epube.keep-ui-visible"))
                 .off("click")
-                .on("click", (evt) => {
+                .on("click", (evt: any) => {
                     localforage.setItem("epube.keep-ui-visible", evt.target.checked);
                 });
             }
@@ -710,8 +723,8 @@ class ReaderClass extends AppCommon {
                 (${this.isOnline() ? `<span class='text-success'>Online</span>` : `<span class='text-danger'>Offline</span>`})
                 `);
 
-            $(".font_family").val(await localforage.getItem("epube.fontFamily") || DEFAULT_FONT_FAMILY);
-            $(".theme_name").val(await localforage.getItem("epube.theme") || 'default');
+            $(".font_family").val((await localforage.getItem("epube.fontFamily")) || DEFAULT_FONT_FAMILY);
+            $(".theme_name").val((await localforage.getItem("epube.theme")) || 'default');
 
             const zoom = $(".font_size").html("");
 
@@ -720,7 +733,7 @@ class ReaderClass extends AppCommon {
                 zoom.append(opt);
             }
 
-            zoom.val(await localforage.getItem("epube.fontSize") || DEFAULT_FONT_SIZE);
+            zoom.val((await localforage.getItem("epube.fontSize")) || DEFAULT_FONT_SIZE);
 
             const line_height = $(".line_height").html("");
 
@@ -729,17 +742,17 @@ class ReaderClass extends AppCommon {
                 line_height.append(opt);
             }
 
-            line_height.val(await localforage.getItem("epube.lineHeight") || DEFAULT_LINE_HEIGHT);
+            line_height.val((await localforage.getItem("epube.lineHeight")) || DEFAULT_LINE_HEIGHT);
 
         });
 
         $('#dict-modal').on('shown.bs.modal', () => {
             $(".dict_query")
                 .off("keyup")
-                .on("keyup", (evt) => {
+                .on("keyup", (evt: any) => {
                     if (evt.which === 13) {
                         evt.preventDefault();
-                        this.lookupWord(null, null, '.dict_query');
+                        this.lookupWord('', null, '.dict_query');
                     }
                 });
 
@@ -755,16 +768,16 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.Book} book
+     * @param book The ePub book whose TOC should be initialized.
      */
-    initToc(book) {
+    initToc(book: ePub.Book) {
         const _reader = this;
 
-        function toc_loc_msg(href) {
+        function toc_loc_msg(href: any) {
             try {
                 const cfiBase = book.spine.get(href).cfiBase;
 
-                const loc = book.locations._locations.find(function(k) {
+                const loc = book.locations._locations.find(function(k: any) {
                     return k.indexOf(cfiBase) != -1
                 });
 
@@ -779,11 +792,11 @@ class ReaderClass extends AppCommon {
         }
 
         /**
-         * @param {ePub.NavItem} row
-         * @param {JQuery<HTMLElement>} list
-         * @param {number} nest
+         * @param row The TOC navigation item to process.
+         * @param list The jQuery element containing the TOC sublist.
+         * @param nest Current nesting depth (max 3).
          */
-        function process_toc_sublist(row, list, nest) {
+        function process_toc_sublist(row: ePub.NavItem, list: JQuery<HTMLElement>, nest: number) {
 
             if (nest == 3) return false;
 
@@ -791,7 +804,7 @@ class ReaderClass extends AppCommon {
 
                 const sublist = $("<ul class='toc_sublist list-unstyled'>");
 
-                $.each(row.subitems, function(i, row) {
+                $.each(row.subitems, function(i: any, row: any) {
 
                     const a = $("<a>")
                         .attr('href', '#')
@@ -818,7 +831,7 @@ class ReaderClass extends AppCommon {
             const list = $(".toc_list");
             list.html("");
 
-            $.each(toc, function(i, row) {
+            $.each(toc, function(i: any, row: any) {
 
                 // if anything fails here the toc entry is likely useless anyway (i.e. no cfi)
                 try {
@@ -844,12 +857,11 @@ class ReaderClass extends AppCommon {
 
                 list.html("");
 
-                $.each(book.spine.items, function (i, row) {
+                $.each(book.spine.items, function (i: any, row: any) {
 
                     const a = $("<a>")
                         .attr('href', '#')
                         .attr('title', row.url)
-                        // @ts-ignore
                         .html(`Section ${i+1}`)
                         .attr('data-href', row.href)
                         .on('click', () => {
@@ -866,12 +878,11 @@ class ReaderClass extends AppCommon {
 
     /* embedded styles may conflict with our font sizes, etc */
     /**
-     * @param {Document} doc
+     * @param doc The Document to clean up embedded styles from.
      */
-    cleanupEmbeddedStyles(doc) {
+    cleanupEmbeddedStyles(doc: Document) {
         $(doc).find("p")
-                // @ts-ignore
-                .filter((i, e) => (($(e).text().length >= MIN_LENGTH_TO_JUSTIFY) ? e : null))
+                .filter((i, e: any) => (($(e).text().length >= MIN_LENGTH_TO_JUSTIFY) ? e : null))
                     .css("text-align", "justify");
 
         $(doc).find("html")
@@ -901,20 +912,20 @@ class ReaderClass extends AppCommon {
             .css("background", "")
             .css("background-color", "");
 
-        if (typeof this.hyphenate.en != "undefined") {
+        if (this.hyphenate?.en) {
             $(doc).find('p, div').each((i, elem) => {
                 const p = $(elem);
 
-                p.html(this.hyphenate.en(p.html()));
-                p.html(this.hyphenate.ru(p.html()));
+                p.html(this.hyphenate.en(p.html()) as string);
+                p.html(this.hyphenate.ru(p.html()) as string);
             });
         }
     }
 
     /**
-     * @param {string} base_url
+     * @param base_url The base URL for resolving font paths.
      */
-    generateFontsCss(base_url) {
+    generateFontsCss(base_url: string) {
         return `
             /** Calibri */
 
@@ -1089,16 +1100,16 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.NavItem} entry
-     * @param {number} nest
+     * @param entry The TOC entry whose sub-items should be flattened.
+     * @param nest Current nesting depth (max 3).
      */
-    flattenTocSubItems(entry, nest) {
-        let rv = [];
+    flattenTocSubItems(entry: ePub.NavItem, nest: number) {
+        let rv: any = [];
 
         if (nest == 3) return false;
 
         if (entry.subitems) {
-            $.each(entry.subitems, (i, r) => {
+            $.each(entry.subitems, (i: any, r: any) => {
                 r._nest = nest;
 
                 rv.push(r);
@@ -1110,18 +1121,17 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param { ePub.Book } book
-     *
-     * @returns { ePub.NavItem[] }
+     * Flattens the book's TOC into a single array of navigation items.
+     * @param book The ePub book whose TOC should be flattened.
+     * @returns An array of all TOC entries including nested sub-items.
      */
-    flattenToc(book) {
+    flattenToc(book: ePub.Book): ePub.NavItem[] {
         if (this._flattened_toc) {
             return this._flattened_toc;
         } else {
-            let rv = [];
+            let rv: any = [];
 
-            $.each(book.navigation.toc, (i, r) => {
-                // @ts-ignore
+            $.each(book.navigation.toc, (i: any, r: any) => {
                 r._nest = 0;
 
                 rv.push(r);
@@ -1135,17 +1145,17 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param { ePub.Book } book
-     * @param { any[] } toc
+     * @param book The ePub book whose TOC bar should be generated.
+     * @param toc Array of TOC entries to render in the bar.
      */
-    generateTocBar(book, toc) {
+    generateTocBar(book: ePub.Book, toc: any[]) {
         $(".spacer")
             .html("");
 
-        $.each(toc, function(i, te) {
+        $.each(toc, function(i: any, te: any) {
             try {
                 const cfiBase = book.spine.get(te.href).cfiBase;
-                const loc = book.locations._locations.find(function(k) {
+                const loc = book.locations._locations.find(function(k: any) {
                     return k.indexOf(cfiBase) != -1
                 });
 
@@ -1173,10 +1183,10 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.Book} book
-     * @param {ePub.Location} location
+     * @param book The ePub book instance.
+     * @param location The current reading location to position the TOC bar at.
      */
-    updateTocBarPosition(book, location) {
+    updateTocBarPosition(book: ePub.Book, location: ePub.Location) {
         const cur_pct = Math.round(location.start.location / book.locations.length() * 100);
 
         $(".toc-bar-entry.current-position")
@@ -1206,7 +1216,7 @@ class ReaderClass extends AppCommon {
                 }
             });
 
-        let theme = await localforage.getItem("epube.theme") || "default";
+        let theme = (await localforage.getItem("epube.theme")) || "default";
 
         console.log('called for theme', theme);
 
@@ -1251,7 +1261,7 @@ class ReaderClass extends AppCommon {
         }
 
         if (this.book && this.book.rendition)
-            this.book.rendition.getContents().forEach((rendition) => {
+            this.book.rendition.getContents().forEach((rendition: any) => {
                 console.log(`applying styles and theme ${theme} to `, rendition);
 
                 rendition.css("font-size", fontSize);
@@ -1266,9 +1276,9 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {JQuery.KeyUpEvent<Document, undefined, Document, Document>} e
+     * @param e The keyboard up event to handle.
      */
-    hotkeyHandler(e) {
+    hotkeyHandler(e: JQuery.KeyUpEvent<Document, undefined, Document, Document>) {
         try {
             //console.log('K3:' + e.which, e);
 
@@ -1301,7 +1311,7 @@ class ReaderClass extends AppCommon {
         let width = $("#reader").position().left;
 
         if (this.book && this.book.rendition)
-            this.book.rendition.getContents().forEach((rendition) => {
+            this.book.rendition.getContents().forEach((rendition: any) => {
                 const body = rendition.document.querySelector('body');
 
                 if (body)
@@ -1358,15 +1368,18 @@ class ReaderClass extends AppCommon {
         }
     }
 
-    /** @param {string} [suffix] */
-    cacheId(suffix) {
+    /**
+     * Get the cache key for this book, optionally with a suffix.
+     * @param suffix Optional suffix to append to the cache key.
+     */
+    cacheId(suffix?: string): string {
         return "epube-book." + this.urlParam("b") + (suffix ? "." + suffix : "");
     }
 
     /**
-     * @param {boolean} show
+     * @param show Whether to show (true) or hide (false) the UI.
      */
-    showUI(show) {
+    showUI(show: boolean) {
         if (show)
             $(".header,.footer").fadeIn();
         else
@@ -1380,9 +1393,10 @@ class ReaderClass extends AppCommon {
             $(".header,.footer").fadeIn();
     }
 
-    async lookupWord(word, callback, elem) {
+    /** @param [elem=null] jquery selector for the input element to use */
+    async lookupWord(word: string, callback: any, elem: string|null = null) {
         if (elem)
-            word = $(elem).val();
+            word = $(elem).val() as string;
 
         word = word.replace(/­/g, "");
 
@@ -1398,25 +1412,21 @@ class ReaderClass extends AppCommon {
 
             if (data.data) {
 
-                $(".dict_result").html(data.data.result.map((r) => this.escapeHtml(String(r))).join("<br/>"));
+                $(".dict_result").html(data.data.result.map((r: any) => this.escapeHtml(String(r))).join("<br/>"));
                 $(".dict_query").val(word);
 
                 if (callback) callback();
             }
         } catch (e) {
-            // @type {NetworkError}
-            const err = /** @type {HttpError} */(e);
+            const err = e as NetworkError;
 
             console.error(err);
 
-            $(".dict_result").html(`Network error while looking up word: ${this.escapeHtml((String)(err.responseText))}.`);
+            $(".dict_result").html(`Network error while looking up word: ${this.escapeHtml((String)((err as any).responseText))}.`);
         }
     }
 
-    /**
-     * @returns {Promise<void>}
-     */
-    async search() {
+    async search(): Promise<void> {
         const query = $(".search_input").val();
         const list = $(".search_results");
 
@@ -1428,7 +1438,7 @@ class ReaderClass extends AppCommon {
 
         try {
             const searchResults = await Promise.all(
-                this.book.spine.spineItems.map(async (item) => {
+                this.book.spine.spineItems.map(async (item: any) => {
                     try {
                         await item.load(this.book.load.bind(this.book));
                         const results = await item.find(`${query}`);
@@ -1441,7 +1451,7 @@ class ReaderClass extends AppCommon {
 
             list.html("");
 
-            searchResults.flat().forEach((row) => {
+            searchResults.flat().forEach((row: any) => {
                 console.log('sr', row);
 
                 const a = $("<a>")
@@ -1465,7 +1475,7 @@ class ReaderClass extends AppCommon {
             if (typeof EpubeApp != "undefined")
                 EpubeApp.showActionBar(false);
             else
-                localforage.getItem("epube.keep-ui-visible").then((keep) => {
+                localforage.getItem("epube.keep-ui-visible").then((keep: any) => {
                     if (!keep) this.showUI(false);
                 });
     }
@@ -1476,15 +1486,16 @@ class ReaderClass extends AppCommon {
         if (typeof EpubeApp != "undefined")
             EpubeApp.showActionBar(false);
         else
-            localforage.getItem("epube.keep-ui-visible").then((keep) => {
+            localforage.getItem("epube.keep-ui-visible").then((keep: any) => {
                 if (!keep) this.showUI(false);
             });
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Navigate to the previously stored CFI location.
+     * @param elem The HTMLElement containing the data-location-cfi attribute.
      */
-    async openPrevious(elem) {
+    async openPrevious(elem: HTMLElement) {
         const cfi = $(elem).attr("data-location-cfi");
 
         if (cfi)
@@ -1509,10 +1520,11 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param { ePub.Book } book
-     * @param { ePub.Location } location
+     * Called when the reader's location is relocated (page turn, etc.).
+     * @param book The ePub book instance.
+     * @param location The new reading location.
      */
-    async onRelocated(book, location) {
+    async onRelocated(book: ePub.Book, location: ePub.Location) {
         // locations not generated yet
         if (book.locations.length() == 0)
             return;
@@ -1607,7 +1619,7 @@ class ReaderClass extends AppCommon {
 
         let location_found = false;
 
-        const lr_local = await localforage.getItem(this.cacheId("lastread")) || {};
+        const lr_local = ((await localforage.getItem(this.cacheId("lastread"))) || {}) as LastRead;
         console.log('got local lastread', lr_local);
 
         if (this.isOnline()) {
@@ -1650,16 +1662,16 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {?string} a
-     * @param {?string} b
+     * Calculate the delta (distance) between two CFI strings.
+     * Returns -1 if they cannot be compared or have different step counts/ids.
+     * @param a First CFI string (may be null).
+     * @param b Second CFI string (may be null).
      */
-    calculateCfiDelta(a, b) {
+    calculateCfiDelta(a: string | null, b: string | null) {
         if (!a || !b)
             return -1;
 
-        // @ts-ignore
         const acfi = new ePub.CFI(a);
-        // @ts-ignore
         const bcfi = new ePub.CFI(b);
 
         console.log('calculateCfiDelta', acfi, bcfi);
@@ -1688,10 +1700,11 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {ePub.Rendition} rendition
-     * @param {string} cfi
+     * Attempt to navigate to a CFI and verify the move was successful.
+     * @param rendition The ePub.js rendition to display on.
+     * @param cfi The target CFI string to navigate to.
      */
-    async moveToCfiVerify(rendition, cfi, attempts = 5, maxDelta = 5) {
+    async moveToCfiVerify(rendition: ePub.Rendition, cfi: string, attempts = 5, maxDelta = 5) {
         for (let att = 1; att < attempts; att++) {
             this.blockLastReadUpdate();
 
@@ -1726,40 +1739,44 @@ class ReaderClass extends AppCommon {
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Apply the selected theme after a change.
+     * @param elem The HTMLElement containing the selected theme value.
      */
-    async onThemeChanged(elem) {
-        const theme = $(elem).val();
+    async onThemeChanged(elem: HTMLElement) {
+        const theme = $(elem).val() as string;
 
         await localforage.setItem("epube.theme", theme);
         this.applyTheme();
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Apply the selected line height after a change.
+     * @param elem The HTMLElement containing the selected line height value.
      */
-    async onLineHeightChanged(elem) {
-        const height = $(elem).val();
+    async onLineHeightChanged(elem: HTMLElement) {
+        const height = $(elem).val() as string;
 
         await localforage.setItem("epube.lineHeight", height);
         this.applyTheme();
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Apply the selected font size after a change.
+     * @param elem The HTMLElement containing the selected font size value.
      */
-    async onTextSizeChanged(elem) {
-        const size = $(elem).val();
+    async onTextSizeChanged(elem: HTMLElement) {
+        const size = $(elem).val() as string;
 
         await localforage.setItem("epube.fontSize", size);
         this.applyTheme();
     }
 
     /**
-     * @param {HTMLElement} elem
+     * Apply the selected font family after a change.
+     * @param elem The HTMLElement containing the selected font value.
      */
-    async onFontChanged(elem) {
-        const font = $(elem).val();
+    async onFontChanged(elem: HTMLElement) {
+        const font = $(elem).val() as string;
 
         await localforage.setItem("epube.fontFamily", font);
         this.applyTheme();
@@ -1770,11 +1787,19 @@ class ReaderLoader {
     _res_data = {};
 
     /**
-     * @param {ReaderClass} app
+     * Initialize the resource loader by reading cached assets.
+     * @param app The ReaderClass instance to use for cache operations.
      */
-    async init(app) {
+    async init(app: ReaderClass) {
         const cacheName = await app.getActiveCacheName();
 
+        if (!cacheName) {
+            console.error('failed to determine active cache name');
+
+            $(".loading-message").html("Failed to determine active cache name");
+            return;
+        }
+
         console.log('loader init for cache:', cacheName);
 
         if (typeof EpubeApp != "undefined") {
@@ -1787,7 +1812,7 @@ class ReaderLoader {
         const cache = await caches.open(cacheName);
         const cacheKeys = await cache.keys();
 
-        const promises = [];
+        const promises: Promise<void>[] = [];
         let loadFailed = false;
 
         for (const req of cacheKeys) {
diff --git a/src/worker.js b/src/worker.js
deleted file mode 100644
index 44ea5b1..0000000
--- a/src/worker.js
+++ /dev/null
@@ -1,184 +0,0 @@
-/// <reference lib="webworker" />
-
-/** @type {ServiceWorkerGlobalScope} */
-const sw = (/** @type {any} */ (self));
-
-const CACHE_PREFIX = 'epube';
-
-const CACHE_VERSION = BUILD_CACHE_VERSION;
-const CACHE_NAME = CACHE_PREFIX + "-" + CACHE_VERSION;
-const MANIFEST_ASSETS = BUILD_MANIFEST_ASSETS;
-
-// Install: precache all assets from manifest
-sw.addEventListener('install', (event) => {
-    event.waitUntil(
-        (async () => {
-            console.log('[worker] install started', CACHE_NAME);
-
-            const cache = await caches.open(CACHE_NAME);
-
-            try {
-                // 1. Fetch all assets concurrently with version parameters
-                const fetchPromises = MANIFEST_ASSETS.map(async (url) => {
-                    const cleanUrl = new URL(url, location.href);
-
-                    // normalize = strip CACHE_VERSION suffix from pathname
-                    cleanUrl.pathname = cleanUrl.pathname.replace("_" + CACHE_VERSION, "");
-
-                    // this is our original URL from manifest (with suffix if set)
-                    const networkUrl = new URL(url, location.href);
-
-                    const response = await fetch(networkUrl.toString(), { cache: 'reload' });
-
-                    // Emulate cache.addAll behavior: fail if any status is not 200-299
-                    if (!response.ok) {
-                        throw new Error(`Failed to fetch ${cleanUrl} (Status: ${response.status})`);
-                    }
-
-                    return {
-                        cleanUrlStr: cleanUrl.toString(),
-                        response: response.clone()
-                    };
-                });
-
-                const results = await Promise.all(fetchPromises);
-                await Promise.all(results.map(({ cleanUrlStr, response }) => cache.put(cleanUrlStr, response)));
-
-                console.log('[worker] all assets cached successfully');
-
-                // Only skip waiting if the entire cache was successfully built
-                sw.skipWaiting();
-            } catch (err) {
-                console.error('[worker] Critical precache failed! Critical asset missing:', err);
-                // Do NOT call skipWaiting(). Let this installation fail so the old worker stays safe.
-
-                // we need to tell the browser the install failed so it throws away this worker, otherwise it gets stuck in waiting
-                throw err;
-            }
-        })()
-    );
-});
-
-sw.addEventListener('message', (event) => {
-    if (event.data && event.data.type === 'GET_CACHE_NAME') {
-        // Respond directly to the specific frontend window/tab that asked
-        event.ports[0].postMessage({ cacheName: CACHE_NAME });
-    } else if (event.data && event.data.type === 'GET_CACHE_VERSION') {
-        // Respond directly to the specific frontend window/tab that asked
-        event.ports[0].postMessage({ cacheName: CACHE_VERSION });
-    }
-});
-
-// Activate: clean up old caches and take control of all pages
-sw.addEventListener('activate', (event) => {
-    console.log('[worker] activate');
-
-    // Create the async task block
-    const activationTask = async () => {
-        // await loadConfig();
-
-        const keyList = await caches.keys();
-        for (const key of keyList) {
-            if (key.includes(CACHE_PREFIX) && key !== CACHE_NAME) {
-                /* eslint-disable no-await-in-loop */
-                await caches.delete(key);
-            }
-        }
-
-        await sw.clients.claim();
-    };
-
-    // Hand the executed promise directly to the event
-    event.waitUntil(activationTask());
-});
-
-// Fetch: cache-first for static assets, network-first for API
-sw.addEventListener('fetch', (event) => {
-    const url = new URL(event.request.url);
-
-    // console.log('[fetch]', url);
-
-    // /assets/ belong to android app
-    if (url.pathname.startsWith('/assets/')) return;
-
-    // request API endpoints from the network if possible and cache them locally
-    if (url.pathname.match('backend.php')) {
-        event.respondWith(
-            // @ts-ignore-next-line
-            (async () => {
-                try {
-                    const networkResp = await fetch(event.request);
-
-                    if (networkResp.ok) {
-                        const cache = await caches.open(CACHE_NAME);
-                        await cache.put(networkResp.url, networkResp.clone());
-                    }
-
-                    return networkResp;
-                } catch (err) {
-                    // Network failed, try to get the cached API response
-                    const cachedResp = await caches.match(event.request);
-                    if (cachedResp) return cachedResp;
-                }
-            })()
-        );
-        return;
-    }
-
-    // index & read UI: online first; if offline, map index pages to offline.html & map all read.html?* to offline read.html
-    if (url.pathname == "/" || url.pathname.match("index.html|offline.html|read.html")) {
-        event.respondWith(
-            // @ts-ignore-next-line
-            (async () => {
-                try {
-                    const networkResp = await fetch(event.request);
-
-                    if (networkResp.ok) {
-                        const cache = await caches.open(CACHE_NAME);
-                        await cache.put(networkResp.url, networkResp.clone());
-                    }
-
-                    return networkResp;
-                } catch (err) {
-                    // i.e. read.html?id=1234&b=1234
-                    if (url.pathname.includes("read.html")) {
-                        return caches.match("read.html");
-                    } else {
-                        return caches.match('/offline.html');
-                    }
-                }
-            })()
-        );
-
-        return;
-    }
-
-    // everything else: cache-first with network fallback
-    event.respondWith(
-        (async () => {
-            const cache = await caches.open(CACHE_NAME);
-            const cached = await cache.match(event.request);
-
-            if (cached) {
-                // if cached, try to update: fire background network check without waiting for it (no await)
-                fetch(event.request)
-                    .then((networkResp) => {
-                        if (networkResp.ok) cache.put(event.request, networkResp.clone());
-                    })
-                    .catch((e) => console.warn('[worker] Background update failed:', e));
-
-                // Return cached asset immediately
-                return cached;
-            }
-
-            // Cache miss: fetch from network and cache it
-            const networkResp = await fetch(event.request);
-
-            /* if (networkResp.ok) { -- we don't cache all responses
-                await cache.put(event.request, networkResp.clone());
-            } */
-
-            return networkResp;
-        })()
-    );
-});
diff --git a/src/worker.ts b/src/worker.ts
new file mode 100644
index 0000000..e7133e4
--- /dev/null
+++ b/src/worker.ts
@@ -0,0 +1,150 @@
+/// <reference lib="webworker" />
+
+const sw = (self as typeof globalThis) as unknown as ServiceWorkerGlobalScope;
+
+const CACHE_PREFIX = 'epube';
+
+const CACHE_VERSION = BUILD_CACHE_VERSION;
+const CACHE_NAME = CACHE_PREFIX + "-" + CACHE_VERSION;
+const MANIFEST_ASSETS = BUILD_MANIFEST_ASSETS;
+
+// Install: precache all assets from manifest
+sw.addEventListener('install', (event) => {
+    (event as any).waitUntil((async () => {
+        console.log('[worker] install started', CACHE_NAME);
+        const cache = await caches.open(CACHE_NAME);
+        try {
+            // 1. Fetch all assets concurrently with version parameters
+            const fetchPromises = MANIFEST_ASSETS.map(async (url) => {
+                const cleanUrl = new URL(url, location.href);
+                // normalize = strip CACHE_VERSION suffix from pathname
+                cleanUrl.pathname = cleanUrl.pathname.replace("_" + CACHE_VERSION, "");
+                // this is our original URL from manifest (with suffix if set)
+                const networkUrl = new URL(url, location.href);
+                const response = await fetch(networkUrl.toString(), { cache: 'reload' });
+                // Emulate cache.addAll behavior: fail if any status is not 200-299
+                if (!response.ok) {
+                    throw new Error(`Failed to fetch ${cleanUrl} (Status: ${response.status})`);
+                }
+                return {
+                    cleanUrlStr: cleanUrl.toString(),
+                    response: response.clone()
+                };
+            });
+            const results = await Promise.all(fetchPromises);
+            await Promise.all(results.map(({ cleanUrlStr, response }) => cache.put(cleanUrlStr, response)));
+            console.log('[worker] all assets cached successfully');
+            // Only skip waiting if the entire cache was successfully built
+            (sw as any).skipWaiting();
+        }
+        catch (err) {
+            console.error('[worker] Critical precache failed! Critical asset missing:', err);
+            // Do NOT call skipWaiting(). Let this installation fail so the old worker stays safe.
+            // we need to tell the browser the install failed so it throws away this worker, otherwise it gets stuck in waiting
+            throw err;
+        }
+    })());
+});
+
+sw.addEventListener('message', (event) => {
+    if (event.data && event.data.type === 'GET_CACHE_NAME') {
+        // Respond directly to the specific frontend window/tab that asked
+        event.ports[0].postMessage({ cacheName: CACHE_NAME });
+    } else if (event.data && event.data.type === 'GET_CACHE_VERSION') {
+        // Respond directly to the specific frontend window/tab that asked
+        event.ports[0].postMessage({ cacheName: CACHE_VERSION });
+    }
+});
+
+// Activate: clean up old caches and take control of all pages
+sw.addEventListener('activate', (event) => {
+    console.log('[worker] activate');
+    // Create the async task block
+    const activationTask = async () => {
+        // await loadConfig();
+        const keyList = await caches.keys();
+        for (const key of keyList) {
+            if (key.includes(CACHE_PREFIX) && key !== CACHE_NAME) {
+                /* eslint-disable no-await-in-loop */
+                await caches.delete(key);
+            }
+        }
+        await sw.clients.claim();
+    };
+    // Hand the executed promise directly to the event
+    (event as any).waitUntil(activationTask());
+});
+
+// Fetch: cache-first for static assets, network-first for API
+sw.addEventListener('fetch', (event) => {
+    const url = new URL((event as any).request.url);
+    // console.log('[fetch]', url);
+    // /assets/ belong to android app
+    if (url.pathname.startsWith('/assets/'))
+        return;
+    // request API endpoints from the network if possible and cache them locally
+    if (url.pathname.match('backend.php')) {
+        (event as any).respondWith((async () => {
+            try {
+                const networkResp = await fetch((event as any).request);
+                if (networkResp.ok) {
+                    const cache = await caches.open(CACHE_NAME);
+                    await cache.put(networkResp.url, networkResp.clone());
+                }
+                return networkResp;
+            }
+            catch (err) {
+                // Network failed, try to get the cached API response
+                const cachedResp = await caches.match((event as any).request);
+                if (cachedResp)
+                    return cachedResp;
+            }
+        })());
+        return;
+    }
+    // index & read UI: online first; if offline, map index pages to offline.html & map all read.html?* to offline read.html
+    if (url.pathname == "/" || url.pathname.match("index.html|offline.html|read.html")) {
+        (event as any).respondWith((async () => {
+            try {
+                const networkResp = await fetch((event as any).request);
+                if (networkResp.ok) {
+                    const cache = await caches.open(CACHE_NAME);
+                    await cache.put(networkResp.url, networkResp.clone());
+                }
+                return networkResp;
+            }
+            catch (err) {
+                // i.e. read.html?id=1234&b=1234
+                if (url.pathname.includes("read.html")) {
+                    return caches.match("read.html");
+                }
+                else {
+                    return caches.match('/offline.html');
+                }
+            }
+        })());
+        return;
+    }
+    // everything else: cache-first with network fallback
+    (event as any).respondWith((async () => {
+        const cache = await caches.open(CACHE_NAME);
+        const cached = await cache.match((event as any).request);
+        if (cached) {
+            // if cached, try to update: fire background network check without waiting for it (no await)
+            fetch((event as any).request)
+                .then((networkResp) => {
+                if (networkResp.ok)
+                    cache.put((event as any).request, networkResp.clone());
+            })
+                .catch((e) => console.warn('[worker] Background update failed:', e));
+            // Return cached asset immediately
+            return cached;
+        }
+        // Cache miss: fetch from network and cache it
+        const networkResp = await fetch((event as any).request);
+        /* if (networkResp.ok) { -- we don't cache all responses
+            await cache.put(event.request, networkResp.clone());
+        } */
+        return networkResp;
+    })());
+});