From 8031b8a60437929ba7292990afb7bba6736fcaf2 Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Tue, 11 Mar 2025 20:29:38 +0000 Subject: [PATCH 01/11] Fast setup --- .clasp.json.example | 6 + .gitignore | 20 + .prettierignore | 4 + .prettierrc | 7 + appsscript.json | 6 + eslint.config.js | 17 + package-lock.json | 3004 +++++++++++++++++++++++++++++++++++++++++++ package.json | 23 + 8 files changed, 3087 insertions(+) create mode 100644 .clasp.json.example create mode 100644 .gitignore create mode 100644 .prettierignore create mode 100644 .prettierrc create mode 100644 appsscript.json create mode 100644 eslint.config.js create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.clasp.json.example b/.clasp.json.example new file mode 100644 index 0000000..d6b72e7 --- /dev/null +++ b/.clasp.json.example @@ -0,0 +1,6 @@ +{ + "scriptId": "", + "rootDir": "./dist", + "fileExtension": "js", + "filePushOrder": [] +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42c62f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +node_modules +dist +*.local +.clasp.json + +# Logs +logs +*.log +npm-debug.log* + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..33f2c73 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +dist/ +.clasp.json +appsscript.json +README.md \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b703460 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "semi": false, + "singleQuote": true, + "arrowParens": "avoid", + "printWidth": 100, + "plugins": ["prettier-plugin-organize-imports"] +} diff --git a/appsscript.json b/appsscript.json new file mode 100644 index 0000000..ed49325 --- /dev/null +++ b/appsscript.json @@ -0,0 +1,6 @@ +{ + "timeZone": "UTC", + "dependencies": {}, + "exceptionLogging": "STACKDRIVER", + "runtimeVersion": "V8" +} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..af21df1 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,17 @@ +// @ts-check + +import eslint from '@eslint/js' +import tseslint from 'typescript-eslint' + +export default tseslint.config( + eslint.configs.recommended, + tseslint.configs.recommended, + { + ignores: ['dist/'], + }, + { + rules: { + '@typescript-eslint/no-unused-vars': 'off', + }, + }, +) diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..a109e8d --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3004 @@ +{ + "name": "awesome-things", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "awesome-things", + "version": "0.0.0", + "dependencies": { + "escape-string-regexp": "^5.0.0" + }, + "devDependencies": { + "@eslint/js": "^9.22.0", + "@types/google-apps-script": "^1.0.97", + "@types/node": "^22.13.10", + "@types/parse-link-header": "^2.0.3", + "eslint": "^9.22.0", + "prettier": "3.5.3", + "prettier-plugin-organize-imports": "^4.1.0", + "typescript": "~5.7.2", + "typescript-eslint": "^8.26.1", + "vite": "^6.2.0", + "vitest": "^3.0.8" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz", + "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz", + "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz", + "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz", + "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz", + "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz", + "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz", + "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz", + "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz", + "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz", + "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz", + "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz", + "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz", + "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz", + "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz", + "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz", + "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz", + "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz", + "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz", + "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz", + "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz", + "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz", + "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz", + "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz", + "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz", + "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.0.tgz", + "integrity": "sha512-RoV8Xs9eNwiDvhv7M+xcL4PWyRyIXRY/FLp3buU4h1EYfdF7unWUy3dOjPqb3C7rMUewIcqwW850PgS8h1o1yg==", + "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/eslint-utils/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-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.2.tgz", + "integrity": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.6", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.1.0.tgz", + "integrity": "sha512-kLrdPDJE1ckPo94kmPPf9Hfd0DU0Jw6oKYrhe+pwSC0iTUInmTa+w6fw8sGgcfkFJGNdWOUeOaDM4quW4a7OkA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", + "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz", + "integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.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": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "9.22.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz", + "integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.7.tgz", + "integrity": "sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.12.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "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/retry": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", + "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true, + "license": "MIT" + }, + "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/@rollup/rollup-android-arm-eabi": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.35.0.tgz", + "integrity": "sha512-uYQ2WfPaqz5QtVgMxfN6NpLD+no0MYHDBywl7itPYd3K5TjjSghNKmX8ic9S8NU8w81NVhJv/XojcHptRly7qQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.35.0.tgz", + "integrity": "sha512-FtKddj9XZudurLhdJnBl9fl6BwCJ3ky8riCXjEw3/UIbjmIY58ppWwPEvU3fNu+W7FUsAsB1CdH+7EQE6CXAPA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.35.0.tgz", + "integrity": "sha512-Uk+GjOJR6CY844/q6r5DR/6lkPFOw0hjfOIzVx22THJXMxktXG6CbejseJFznU8vHcEBLpiXKY3/6xc+cBm65Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.35.0.tgz", + "integrity": "sha512-3IrHjfAS6Vkp+5bISNQnPogRAW5GAV1n+bNCrDwXmfMHbPl5EhTmWtfmwlJxFRUCBZ+tZ/OxDyU08aF6NI/N5Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.35.0.tgz", + "integrity": "sha512-sxjoD/6F9cDLSELuLNnY0fOrM9WA0KrM0vWm57XhrIMf5FGiN8D0l7fn+bpUeBSU7dCgPV2oX4zHAsAXyHFGcQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.35.0.tgz", + "integrity": "sha512-2mpHCeRuD1u/2kruUiHSsnjWtHjqVbzhBkNVQ1aVD63CcexKVcQGwJ2g5VphOd84GvxfSvnnlEyBtQCE5hxVVw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.35.0.tgz", + "integrity": "sha512-mrA0v3QMy6ZSvEuLs0dMxcO2LnaCONs1Z73GUDBHWbY8tFFocM6yl7YyMu7rz4zS81NDSqhrUuolyZXGi8TEqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.35.0.tgz", + "integrity": "sha512-DnYhhzcvTAKNexIql8pFajr0PiDGrIsBYPRvCKlA5ixSS3uwo/CWNZxB09jhIapEIg945KOzcYEAGGSmTSpk7A==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.35.0.tgz", + "integrity": "sha512-uagpnH2M2g2b5iLsCTZ35CL1FgyuzzJQ8L9VtlJ+FckBXroTwNOaD0z0/UF+k5K3aNQjbm8LIVpxykUOQt1m/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.35.0.tgz", + "integrity": "sha512-XQxVOCd6VJeHQA/7YcqyV0/88N6ysSVzRjJ9I9UA/xXpEsjvAgDTgH3wQYz5bmr7SPtVK2TsP2fQ2N9L4ukoUg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loongarch64-gnu": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.35.0.tgz", + "integrity": "sha512-5pMT5PzfgwcXEwOaSrqVsz/LvjDZt+vQ8RT/70yhPU06PTuq8WaHhfT1LW+cdD7mW6i/J5/XIkX/1tCAkh1W6g==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.35.0.tgz", + "integrity": "sha512-c+zkcvbhbXF98f4CtEIP1EBA/lCic5xB0lToneZYvMeKu5Kamq3O8gqrxiYYLzlZH6E3Aq+TSW86E4ay8iD8EA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.35.0.tgz", + "integrity": "sha512-s91fuAHdOwH/Tad2tzTtPX7UZyytHIRR6V4+2IGlV0Cej5rkG0R61SX4l4y9sh0JBibMiploZx3oHKPnQBKe4g==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.35.0.tgz", + "integrity": "sha512-hQRkPQPLYJZYGP+Hj4fR9dDBMIM7zrzJDWFEMPdTnTy95Ljnv0/4w/ixFw3pTBMEuuEuoqtBINYND4M7ujcuQw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.35.0.tgz", + "integrity": "sha512-Pim1T8rXOri+0HmV4CdKSGrqcBWX0d1HoPnQ0uw0bdp1aP5SdQVNBy8LjYncvnLgu3fnnCt17xjWGd4cqh8/hA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.35.0.tgz", + "integrity": "sha512-QysqXzYiDvQWfUiTm8XmJNO2zm9yC9P/2Gkrwg2dH9cxotQzunBHYr6jk4SujCTqnfGxduOmQcI7c2ryuW8XVg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.35.0.tgz", + "integrity": "sha512-OUOlGqPkVJCdJETKOCEf1mw848ZyJ5w50/rZ/3IBQVdLfR5jk/6Sr5m3iO2tdPgwo0x7VcncYuOvMhBWZq8ayg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.35.0.tgz", + "integrity": "sha512-2/lsgejMrtwQe44glq7AFFHLfJBPafpsTa6JvP2NGef/ifOa4KBoglVf7AKN7EV9o32evBPRqfg96fEHzWo5kw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.35.0.tgz", + "integrity": "sha512-PIQeY5XDkrOysbQblSW7v3l1MDZzkTEzAfTPkj5VAu3FW8fS4ynyLg2sINp0fp3SjZ8xkRYpLqoKcYqAkhU1dw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/google-apps-script": { + "version": "1.0.97", + "resolved": "https://registry.npmjs.org/@types/google-apps-script/-/google-apps-script-1.0.97.tgz", + "integrity": "sha512-T8hpQ4Yi7AUvd4fnzHfmo0joGG0j1GUC8TywvRtnKgTAv0vU/DXy4nNgw4VfcOD9ZDdJc0rGoZvWhHORipzFNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.13.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", + "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } + }, + "node_modules/@types/parse-link-header": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/parse-link-header/-/parse-link-header-2.0.3.tgz", + "integrity": "sha512-ffLAxD6Xqcf2gSbtEJehj8yJ5R/2OZqD4liodQvQQ+hhO4kg1mk9ToEZQPMtNTm/zIQj2GNleQbsjPp9+UQm4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz", + "integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.26.1", + "@typescript-eslint/type-utils": "8.26.1", + "@typescript-eslint/utils": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz", + "integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.26.1", + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/typescript-estree": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz", + "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz", + "integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "8.26.1", + "@typescript-eslint/utils": "8.26.1", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz", + "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz", + "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/visitor-keys": "8.26.1", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz", + "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.26.1", + "@typescript-eslint/types": "8.26.1", + "@typescript-eslint/typescript-estree": "8.26.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz", + "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.26.1", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@vitest/expect": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.0.8.tgz", + "integrity": "sha512-Xu6TTIavTvSSS6LZaA3EebWFr6tsoXPetOWNMOlc7LO88QVVBwq2oQWBoDiLCN6YTvNYsGSjqOO8CAdjom5DCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.0.8", + "@vitest/utils": "3.0.8", + "chai": "^5.2.0", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.0.8.tgz", + "integrity": "sha512-n3LjS7fcW1BCoF+zWZxG7/5XvuYH+lsFg+BDwwAz0arIwHQJFUEsKBQ0BLU49fCxuM/2HSeBPHQD8WjgrxMfow==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "3.0.8", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.17" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^5.0.0 || ^6.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/pretty-format": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.0.8.tgz", + "integrity": "sha512-BNqwbEyitFhzYMYHUVbIvepOyeQOSFA/NeJMIP9enMntkkxLgOcgABH6fjyXG85ipTgvero6noreavGIqfJcIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.0.8.tgz", + "integrity": "sha512-c7UUw6gEcOzI8fih+uaAXS5DwjlBaCJUo7KJ4VvJcjL95+DSR1kova2hFuRt3w41KZEFcOEiq098KkyrjXeM5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "3.0.8", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.0.8.tgz", + "integrity": "sha512-x8IlMGSEMugakInj44nUrLSILh/zy1f2/BgH0UeHpNyOocG18M9CWVIFBaXPt8TrqVZWmcPjwfG/ht5tnpba8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.0.8", + "magic-string": "^0.30.17", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.0.8.tgz", + "integrity": "sha512-MR+PzJa+22vFKYb934CejhR4BeRpMSoxkvNoDit68GQxRLSf11aT6CTj3XaqUU9rxgWJFnqicN/wxw6yBRkI1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyspy": "^3.0.2" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.0.8.tgz", + "integrity": "sha512-nkBC3aEhfX2PdtQI/QwAWp8qZWwzASsU4Npbcd5RdMPBSSLCpkZp52P3xku3s3uA0HIEhGvEcF8rNkBsz9dQ4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "3.0.8", + "loupe": "^3.1.3", + "tinyrainbow": "^2.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "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.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "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-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "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/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "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, + "license": "MIT", + "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", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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/chai": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.0.tgz", + "integrity": "sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "assertion-error": "^2.0.1", + "check-error": "^2.1.1", + "deep-eql": "^5.0.1", + "loupe": "^3.1.0", + "pathval": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "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/check-error": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", + "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, + "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, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "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, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-eql": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", + "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "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/es-module-lexer": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.6.0.tgz", + "integrity": "sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz", + "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.1", + "@esbuild/android-arm": "0.25.1", + "@esbuild/android-arm64": "0.25.1", + "@esbuild/android-x64": "0.25.1", + "@esbuild/darwin-arm64": "0.25.1", + "@esbuild/darwin-x64": "0.25.1", + "@esbuild/freebsd-arm64": "0.25.1", + "@esbuild/freebsd-x64": "0.25.1", + "@esbuild/linux-arm": "0.25.1", + "@esbuild/linux-arm64": "0.25.1", + "@esbuild/linux-ia32": "0.25.1", + "@esbuild/linux-loong64": "0.25.1", + "@esbuild/linux-mips64el": "0.25.1", + "@esbuild/linux-ppc64": "0.25.1", + "@esbuild/linux-riscv64": "0.25.1", + "@esbuild/linux-s390x": "0.25.1", + "@esbuild/linux-x64": "0.25.1", + "@esbuild/netbsd-arm64": "0.25.1", + "@esbuild/netbsd-x64": "0.25.1", + "@esbuild/openbsd-arm64": "0.25.1", + "@esbuild/openbsd-x64": "0.25.1", + "@esbuild/sunos-x64": "0.25.1", + "@esbuild/win32-arm64": "0.25.1", + "@esbuild/win32-ia32": "0.25.1", + "@esbuild/win32-x64": "0.25.1" + } + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.22.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.22.0.tgz", + "integrity": "sha512-9V/QURhsRN40xuHXWjV64yvrzMjcz7ZyNoF2jJFmy9j/SLk0u1OLSZgXi28MrXjymnjEGSR80WCdab3RGMDveQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.2", + "@eslint/config-helpers": "^0.1.0", + "@eslint/core": "^0.12.0", + "@eslint/eslintrc": "^3.3.0", + "@eslint/js": "9.22.0", + "@eslint/plugin-kit": "^0.2.7", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.3.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", + "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.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": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "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/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.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, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect-type": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.0.tgz", + "integrity": "sha512-80F22aiJ3GLyVnS/B3HzgR6RelZVumzj9jkL0Rhz4h0xYbNW9PjlQz5h3J/SShErbXBc295vseR4/MIbVmUbeA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.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-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "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.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "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": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "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/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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/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, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "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/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": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "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": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "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/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/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.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, + "license": "MIT" + }, + "node_modules/loupe": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.3.tgz", + "integrity": "sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==", + "dev": true, + "license": "MIT" + }, + "node_modules/magic-string": { + "version": "0.30.17", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "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.9", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.9.tgz", + "integrity": "sha512-SppoicMGpZvbF1l3z4x7No3OlIjP7QJvC9XR7AhZr1kL133KHnKPztkKDc+Ir4aJ/1VhTySrtKhrsycmrMQfvg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "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/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-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, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathval": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", + "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.16" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", + "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.8", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "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/prettier": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-plugin-organize-imports": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-4.1.0.tgz", + "integrity": "sha512-5aWRdCgv645xaa58X8lOxzZoiHAldAPChljr/MT0crXVOWTZ+Svl4hIWlz+niYSlO6ikE5UXkN1JrRvIP2ut0A==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "prettier": ">=2.0", + "typescript": ">=2.9", + "vue-tsc": "^2.1.0" + }, + "peerDependenciesMeta": { + "vue-tsc": { + "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/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/rollup": { + "version": "4.35.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.35.0.tgz", + "integrity": "sha512-kg6oI4g+vc41vePJyO6dHt/yl0Rz3Thv0kJeVQ3D1kS3E5XSuKbPc29G4IpT/Kv1KQwgHVcN+HtyS+HYLNSvQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.6" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.35.0", + "@rollup/rollup-android-arm64": "4.35.0", + "@rollup/rollup-darwin-arm64": "4.35.0", + "@rollup/rollup-darwin-x64": "4.35.0", + "@rollup/rollup-freebsd-arm64": "4.35.0", + "@rollup/rollup-freebsd-x64": "4.35.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.35.0", + "@rollup/rollup-linux-arm-musleabihf": "4.35.0", + "@rollup/rollup-linux-arm64-gnu": "4.35.0", + "@rollup/rollup-linux-arm64-musl": "4.35.0", + "@rollup/rollup-linux-loongarch64-gnu": "4.35.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.35.0", + "@rollup/rollup-linux-riscv64-gnu": "4.35.0", + "@rollup/rollup-linux-s390x-gnu": "4.35.0", + "@rollup/rollup-linux-x64-gnu": "4.35.0", + "@rollup/rollup-linux-x64-musl": "4.35.0", + "@rollup/rollup-win32-arm64-msvc": "4.35.0", + "@rollup/rollup-win32-ia32-msvc": "4.35.0", + "@rollup/rollup-win32-x64-msvc": "4.35.0", + "fsevents": "~2.3.2" + } + }, + "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/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "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, + "license": "MIT", + "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, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.1.tgz", + "integrity": "sha512-vj5lIj3Mwf9D79hBkltk5qmkFI+biIKWS2IBxEyEU3AX1tUf7AoL8nSazCOiiqQsGKIq01SClsKEzweu34uwvA==", + "dev": true, + "license": "MIT" + }, + "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/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, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", + "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinypool": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz", + "integrity": "sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/tinyrainbow": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", + "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", + "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", + "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "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/typescript": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", + "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.26.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.26.1.tgz", + "integrity": "sha512-t/oIs9mYyrwZGRpDv3g+3K6nZ5uhKEMt2oNmAPwaY4/ye0+EH4nXIPYNtkYFS6QHm+1DFg34DbglYBz5P9Xysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.26.1", + "@typescript-eslint/parser": "8.26.1", + "@typescript-eslint/utils": "8.26.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "dev": true, + "license": "MIT" + }, + "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/vite": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.1.tgz", + "integrity": "sha512-n2GnqDb6XPhlt9B8olZPrgMD/es/Nd1RdChF6CBD/fHW6pUyUTt2sQW2fPRX5GiD9XEa6+8A6A4f2vT6pSsE7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.25.0", + "postcss": "^8.5.3", + "rollup": "^4.30.1" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-node": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.0.8.tgz", + "integrity": "sha512-6PhR4H9VGlcwXZ+KWCdMqbtG649xCPZqfI9j2PsK1FcXgEzro5bGHcVKFCTqPLaNKZES8Evqv4LwvZARsq5qlg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.4.0", + "es-module-lexer": "^1.6.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vitest": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.0.8.tgz", + "integrity": "sha512-dfqAsNqRGUc8hB9OVR2P0w8PZPEckti2+5rdZip0WIz9WW0MnImJ8XiR61QhqLa92EQzKP2uPkzenKOAHyEIbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "3.0.8", + "@vitest/mocker": "3.0.8", + "@vitest/pretty-format": "^3.0.8", + "@vitest/runner": "3.0.8", + "@vitest/snapshot": "3.0.8", + "@vitest/spy": "3.0.8", + "@vitest/utils": "3.0.8", + "chai": "^5.2.0", + "debug": "^4.4.0", + "expect-type": "^1.1.0", + "magic-string": "^0.30.17", + "pathe": "^2.0.3", + "std-env": "^3.8.0", + "tinybench": "^2.9.0", + "tinyexec": "^0.3.2", + "tinypool": "^1.0.2", + "tinyrainbow": "^2.0.0", + "vite": "^5.0.0 || ^6.0.0", + "vite-node": "3.0.8", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/debug": "^4.1.12", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@vitest/browser": "3.0.8", + "@vitest/ui": "3.0.8", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/debug": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "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, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "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/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" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..c738000 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "awesome-things", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": {}, + "devDependencies": { + "@eslint/js": "^9.22.0", + "@types/google-apps-script": "^1.0.97", + "@types/node": "^22.13.10", + "@types/parse-link-header": "^2.0.3", + "eslint": "^9.22.0", + "prettier": "3.5.3", + "prettier-plugin-organize-imports": "^4.1.0", + "typescript": "~5.7.2", + "typescript-eslint": "^8.26.1", + "vite": "^6.2.0", + "vitest": "^3.0.8" + }, + "dependencies": { + "escape-string-regexp": "^5.0.0" + } +} From 1dde916be84fa63d38620efb59e05155bc89f540 Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Tue, 11 Mar 2025 23:57:12 +0000 Subject: [PATCH 02/11] Handshake with GitHub API --- .env | 2 + env.d.ts | 1 + src/client/github.ts | 199 +++++++++++++++++++++++++++++++++++++++++++ src/client/utils.ts | 30 +++++++ src/index.ts | 0 src/vite-env.d.ts | 10 +++ tsconfig.json | 28 ++++++ vite.config.ts | 29 +++++++ 8 files changed, 299 insertions(+) create mode 100644 .env create mode 100644 env.d.ts create mode 100644 src/client/github.ts create mode 100644 src/client/utils.ts create mode 100644 src/index.ts create mode 100644 src/vite-env.d.ts create mode 100644 tsconfig.json create mode 100644 vite.config.ts diff --git a/.env b/.env new file mode 100644 index 0000000..724f726 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +VITE_GITHUB_TOKEN= +VITE_STARS_EXPLORER_URL= \ No newline at end of file diff --git a/env.d.ts b/env.d.ts new file mode 100644 index 0000000..15bc5ee --- /dev/null +++ b/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/client/github.ts b/src/client/github.ts new file mode 100644 index 0000000..96884e0 --- /dev/null +++ b/src/client/github.ts @@ -0,0 +1,199 @@ +import * as utils from './utils' + +export interface Repository { + id: number + avatar: string + name: string + fullName: string + description: string + defaultBranch: string + topics: string[] + + stars: number + openIssuesCount: number + + isFork: boolean + isArchived: boolean + + htmlUrl: string + homepageUrl?: string + + updatedAt: string + createdAt: string +} + +export interface Commit { + commitedAt: string +} + +export interface Tag { + version?: string +} + +interface IssueStats { + totalOpen: number + totalClosed: number +} + +export interface Metadata { + repository: Repository + lastCommit: Commit + lastTag: Tag + totalTags: number + + issueStats: IssueStats + pullRequestStats: IssueStats +} + +const host = 'api.github.com' +const defaultHeaders = { + Accept: 'application/vnd.github+json', + Authorization: 'Bearer ' + import.meta.env.VITE_GITHUB_TOKEN, + 'X-GitHub-Api-Version': '2022-11-28', +} + +export function fetchRepository(owner: string, repo: string): Repository { + const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { + method: 'get', + headers: defaultHeaders, + } + try { + const url = `https://${host}/repos/${owner}/${repo}` + const response = UrlFetchApp.fetch(url, options) + const data = JSON.parse(response.getContentText()) + return { + id: data.id, + avatar: data.owner.avatar_url, + name: data.name, + fullName: data.full_name, + description: data.description, + defaultBranch: data.default_branch, + topics: data.topics, + + stars: data.stargazers_count, + openIssuesCount: data.open_issues_count, + + isFork: data.fork, + isArchived: data.archived, + + htmlUrl: data.html_url, + homepageUrl: data.homepage, + + updatedAt: data.updated_at, + createdAt: data.created_at, + } + } catch (e) { + console.error(`Cannot fetch ${owner}/${repo}`) + throw e + } +} + +export function fetchFile(owner: string, repo: string, filepath: string): string { + const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { + method: 'get', + headers: defaultHeaders, + } + const url = `https://${host}/repos/${owner}/${repo}/contents/${filepath}` + const response = UrlFetchApp.fetch(url, options) + const data = JSON.parse(response.getContentText()) + const bytes = Utilities.base64Decode(data.content) + + return Utilities.newBlob(bytes).getDataAsString() +} + +export function fetchCommit(owner: string, repo: string, ref: string): Commit { + const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { + method: 'get', + headers: defaultHeaders, + } + const url = `https://${host}/repos/${owner}/${repo}/commits/${ref}` + const response = UrlFetchApp.fetch(url, options) + const data = JSON.parse(response.getContentText()) + + return { + commitedAt: data.commit.committer.date, + } +} + +function fetchStats( + owner: string, + repo: string, + model: string, + params: { [key: string]: string }, +): number { + const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { + method: 'get', + headers: defaultHeaders, + } + params.per_page = '1' + params.page = '1' + + const query = Object.keys(params) + .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(params[key])) + .join('&') + const url = `https://${host}/repos/${owner}/${repo}/${model}` + const response = UrlFetchApp.fetch(url + '?' + query, options) + const data = JSON.parse(response.getContentText()) + + const headers = <{ [key: string]: string }>response.getHeaders() + const links = utils.parseLinkHeader(headers['Link'] ?? '') + const lastPage = links['last']?.match(/\bpage=(?\d+)/)?.groups!.page + + return lastPage ? parseInt(lastPage) : data.length +} + +export function fetchLastTag(owner: string, repo: string): Tag { + const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { + method: 'get', + headers: defaultHeaders, + } + const url = `https://${host}/repos/${owner}/${repo}/tags` + const query = `per_page=1&page=1` + const response = UrlFetchApp.fetch(url + '?' + query, options) + const data = JSON.parse(response.getContentText()) + + return { + version: data?.[0]?.name, + } +} + +export function fetchIssueStats(owner: string, repo: string): [IssueStats, IssueStats] { + const issueStats: IssueStats = { + totalOpen: fetchStats(owner, repo, 'issues', { state: 'open' }), + totalClosed: fetchStats(owner, repo, 'issues', { state: 'closed' }), + } + + const pullRequestStats: IssueStats = { + totalOpen: fetchStats(owner, repo, 'pulls', { state: 'open' }), + totalClosed: fetchStats(owner, repo, 'pulls', { state: 'closed' }), + } + + return [ + { + // Issues are included the number of real issues and the number of PRs + totalOpen: issueStats.totalOpen - pullRequestStats.totalOpen, + totalClosed: issueStats.totalClosed - pullRequestStats.totalClosed, + }, + pullRequestStats, + ] +} + +export function metaByUrl(url: string): Metadata { + const [owner, repo] = utils.parseOwnerRepo(url) + const repository = fetchRepository(owner, repo) + const lastCommit = fetchCommit(owner, repo, repository.defaultBranch) + const lastTag = fetchLastTag(owner, repo) + const totalTags = fetchStats(owner, repo, 'tags', {}) + const [issueStats, pullRequestStats] = fetchIssueStats(owner, repo) + + return { + repository, + lastCommit, + + lastTag, + totalTags, + + issueStats, + pullRequestStats, + } +} diff --git a/src/client/utils.ts b/src/client/utils.ts new file mode 100644 index 0000000..f215816 --- /dev/null +++ b/src/client/utils.ts @@ -0,0 +1,30 @@ +const githubRegex = new RegExp(`github.com/(?[^/]+)\\/(?[^/]+)\\/?$`) + +export function parseOwnerRepo(url: string): [string, string] { + const match = url.match(githubRegex) + if (match === null) { + throw new Error('Cannot match owner and repo') + } + const owner = match.groups!.owner + const repo = match.groups!.repo + + return [owner, repo] +} + +export interface LinkSet { + [key: string]: string +} + +export function parseLinkHeader(header: string): LinkSet { + if (!header) { + return {} + } + + return Object.fromEntries( + header + .split(/,/) + .map(l => l.match(/<(?[^>]+)>.+rel="(?[^"]+)/)) + .filter(m => m !== null) + .map(m => [m.groups!.rel, m.groups!.link]), + ) +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..321000f --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1,10 @@ +/// + +interface ImportMetaEnv { + readonly VITE_GITHUB_TOKEN: string + readonly VITE_STARS_EXPLORER_URL: string +} + +interface ImportMeta { + readonly env: ImportMetaEnv +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..cf933fa --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + "paths": { + "@/*": ["./src/*"] + }, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true, + "types": ["@types/google-apps-script", "@types/parse-link-header", "@types/node"] + }, + "include": ["src"] +} diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..9416c3a --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,29 @@ +import path from 'path' +import { PreRenderedChunk } from 'rollup' +import { defineConfig } from 'vite' + +export default defineConfig({ + build: { + lib: { + entry: path.resolve(__dirname, 'src/index.ts'), + formats: ['cjs'], + }, + rollupOptions: { + output: { + dir: 'dist', + entryFileNames: ({ name }: PreRenderedChunk) => { + return `${name}.js` + }, + format: 'cjs', + strict: false, + exports: 'none', + minifyInternalExports: false, + }, + treeshake: false, + }, + minify: false, + emptyOutDir: true, + }, + publicDir: false, + +}) From 732115072bcf2b96c7602602a47a678cc101328f Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Wed, 12 Mar 2025 22:07:40 +0000 Subject: [PATCH 03/11] Table Of Contents loader and put sheet management --- src/client/github.ts | 4 +-- src/handlers/handlers.ts | 75 ++++++++++++++++++++++++++++++++++++++++ src/handlers/toc.ts | 27 +++++++++++++++ src/index.ts | 25 ++++++++++++++ src/parser/parser.ts | 57 ++++++++++++++++++++++++++++++ vite.config.ts | 6 +++- 6 files changed, 191 insertions(+), 3 deletions(-) create mode 100644 src/handlers/handlers.ts create mode 100644 src/handlers/toc.ts create mode 100644 src/parser/parser.ts diff --git a/src/client/github.ts b/src/client/github.ts index 96884e0..76a7207 100644 --- a/src/client/github.ts +++ b/src/client/github.ts @@ -88,12 +88,12 @@ export function fetchRepository(owner: string, repo: string): Repository { } } -export function fetchFile(owner: string, repo: string, filepath: string): string { +export function fetchReadme(owner: string, repo: string): string { const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { method: 'get', headers: defaultHeaders, } - const url = `https://${host}/repos/${owner}/${repo}/contents/${filepath}` + const url = `https://${host}/repos/${owner}/${repo}/readme` const response = UrlFetchApp.fetch(url, options) const data = JSON.parse(response.getContentText()) const bytes = Utilities.base64Decode(data.content) diff --git a/src/handlers/handlers.ts b/src/handlers/handlers.ts new file mode 100644 index 0000000..d485a92 --- /dev/null +++ b/src/handlers/handlers.ts @@ -0,0 +1,75 @@ +import * as github from '@/client/github' +import * as utils from '@/client/utils' +import * as parser from '@/parser/parser' +import * as toc from './toc' + +export const mainSheetName = 'ToC' + +function makeOrCleanSheet( + spreadsheet: GoogleAppsScript.Spreadsheet.Spreadsheet, + name: string, +): GoogleAppsScript.Spreadsheet.Sheet { + let sheet = spreadsheet.getSheetByName(name) + if (sheet == null) { + const names = spreadsheet.getSheets().map(s => s.getName()) + const index = names.findIndex(n => name.localeCompare(n) < 0) + const pos = index !== -1 ? Math.max(2, index) : spreadsheet.getSheets().length + 1 + sheet = spreadsheet.insertSheet(name, pos) + } + const lastRow = sheet.getLastRow() + const lastColumn = sheet.getLastColumn() + if (lastRow >= 1) { + sheet.getRange(1, 1, lastRow, lastColumn).clearContent() + } + + sheet.getFilter()?.remove() + sheet.getBandings().forEach(b => b.remove()) + + return sheet +} + +function putMetaRow(sheet: GoogleAppsScript.Spreadsheet.Sheet, url: string): void { + const meta = [url] + sheet.getRange(1, 1, 1, meta.length).setValues([meta]) +} + +function getMetaRow(sheet: GoogleAppsScript.Spreadsheet.Sheet): [string] { + return <[string]>sheet.getRange(1, 1, 1, 1).getValues()[0] +} + +export function loadTopOfContent( + spreadsheet: GoogleAppsScript.Spreadsheet.Spreadsheet, + url: string, +): void { + const [owner, repo] = utils.parseOwnerRepo(url) + const readme = github.fetchReadme(owner, repo) + const tableOfContents = parser.extractTableOfContents(readme) + + const builder = new toc.ToCBuilder() + tableOfContents.forEach(({ name, offset, total }) => builder.addThing(name, offset, total)) + const rows = builder.build() + + const sheet = makeOrCleanSheet(spreadsheet, mainSheetName) + putMetaRow(sheet, url) + const range = sheet.getRange(sheet.getLastRow() + 1, 1, rows.length, rows[0].length) + + range.setValues(rows) + range.createFilter() + range.applyRowBanding(SpreadsheetApp.BandingTheme.GREEN, false, false) + sheet.protect().setWarningOnly(true) + + const helper = '1. Choose the cell with the thing\n2. Open the "Awesome Things" menu\n3. Click "Load Thing"' + .split('\n') + .map(l => [l]) + sheet.getRange(2, sheet.getLastColumn() + 2, helper.length, 1).setValues(helper) + + spreadsheet.setActiveSheet(sheet) +} + + +export function cleanThings(spreadsheet: GoogleAppsScript.Spreadsheet.Spreadsheet): void { + spreadsheet + .getSheets() + .filter(s => s.getName() !== mainSheetName) + .forEach(sheet => spreadsheet.deleteSheet(sheet)) +} diff --git a/src/handlers/toc.ts b/src/handlers/toc.ts new file mode 100644 index 0000000..7493eec --- /dev/null +++ b/src/handlers/toc.ts @@ -0,0 +1,27 @@ +export class ToCBuilder { + private things: {name: string, offset: number, total: number}[] = [] + + addThing(name: string, offset: number, total: number) { + this.things.push({name, offset, total}) + + return this + } + + build(): string[][] { + const columns = Math.max(...this.things.map(({ offset }) => offset)) + 1 + const result: string[][] = [] + + const header = new Array(columns - 1).fill('').map((_, i) => `Header ${i+1}`) + header.push('Total') + result.push(header) + + for (const { name, offset, total } of this.things) { + const row = new Array(columns).fill('') + row[offset - 1] = name + row[columns - 1] = total > 0 ? total : '' + result.push(row) + } + + return result + } +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index e69de29..da9b388 100644 --- a/src/index.ts +++ b/src/index.ts @@ -0,0 +1,25 @@ +import * as handlers from '@/handlers/handlers' + +function onOpen(): void { + const ui = SpreadsheetApp.getUi() + ui.createMenu('Awesome Things') + .addItem('Load Table of Contents', 'loadTopOfContent') + .addToUi() +} + +function loadTopOfContent(): void { + const spreadsheet = SpreadsheetApp.getActiveSpreadsheet() + + const ui = SpreadsheetApp.getUi() + const response = ui.prompt( + 'Warning', + `Enter the link to the awesome-xxx repository\nSomething like: https://github.com/vinta/awesome-python`, + ui.ButtonSet.OK_CANCEL, + ) + if (response.getSelectedButton() === ui.Button.OK) { + const repo = response.getResponseText() + + handlers.loadTopOfContent(spreadsheet, repo) + } +} + diff --git a/src/parser/parser.ts b/src/parser/parser.ts new file mode 100644 index 0000000..634971d --- /dev/null +++ b/src/parser/parser.ts @@ -0,0 +1,57 @@ +import escapeStringRegexp from 'escape-string-regexp' + +export interface Thing { + name: string + desc: string + url: string +} + +export interface TableOfContents { + name: string + offset: number + total: number +} + +function extractRawSection(content: string, section: string): string | null { + const firstRegex = new RegExp(`^#+ ${escapeStringRegexp(section)}$`, 'im') + const secondRegex = /^#+ /m + + const firstMatch = content.match(firstRegex) + if (!firstMatch) { + return null + } + + const startIndex = firstMatch.index! + firstMatch[0].length + const remainingText = content.slice(startIndex) + + const secondMatch = remainingText.match(secondRegex) + const endIndex = secondMatch ? startIndex + secondMatch.index! : content.length + + return content.slice(startIndex, endIndex).trim() +} + +const matchThing = /\s\[(?[^\]]+)\]\((?[^)]+)\)\s*-\s*(?.+)$/ + +export function extractTableOfContents(content: string): TableOfContents[] { + return content + .split('\n') + .map(l => l.match(/^(?#+)\s(?.+)$/)) + .filter(m => m !== null) + .map(m => ({ + name: m.groups!.name, + offset: m.groups!.offset.length, + })) + .map(o => ({ + ...o, + raw: extractRawSection(content, o.name), + })) + .filter(o => o.raw !== null) + .map(o => ({ + name: o.name, + offset: o.offset, + total: o + .raw!.split('\n') + .map(l => l.match(matchThing)) + .filter(m => m !== null).length, + })) +} diff --git a/vite.config.ts b/vite.config.ts index 9416c3a..7641c38 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -25,5 +25,9 @@ export default defineConfig({ emptyOutDir: true, }, publicDir: false, - + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)), + }, + }, }) From 3bfdff74bf4e2fb4e199deb674c2fbf9e585388e Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Wed, 12 Mar 2025 22:55:53 +0000 Subject: [PATCH 04/11] An extra file for easy debugging on Spreadsheet's side --- package.json | 10 +++++++++- src/extra.ts | 6 ++++++ vite.config.ts | 6 +++++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/extra.ts diff --git a/package.json b/package.json index c738000..6d77768 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,15 @@ "private": true, "version": "0.0.0", "type": "module", - "scripts": {}, + "scripts": { + "build": "tsc && vite build && cp appsscript.json dist/", + "deploy": "npm run build && clasp push", + "test": "vitest run", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "prettier": "prettier . --check", + "prettier:fix": "prettier . --write" + }, "devDependencies": { "@eslint/js": "^9.22.0", "@types/google-apps-script": "^1.0.97", diff --git a/src/extra.ts b/src/extra.ts new file mode 100644 index 0000000..3fc6e68 --- /dev/null +++ b/src/extra.ts @@ -0,0 +1,6 @@ +function run() { + const spreadsheet = SpreadsheetApp.getActiveSpreadsheet() + + // @ts-expect-error no import, because of apps script building + loadSection(spreadsheet, '') +} diff --git a/vite.config.ts b/vite.config.ts index 7641c38..9b7b9f3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +import { fileURLToPath, URL } from 'node:url' import path from 'path' import { PreRenderedChunk } from 'rollup' import { defineConfig } from 'vite' @@ -5,7 +6,10 @@ import { defineConfig } from 'vite' export default defineConfig({ build: { lib: { - entry: path.resolve(__dirname, 'src/index.ts'), + entry: { + index: path.resolve(__dirname, 'src/index.ts'), + extra: path.resolve(__dirname, 'src/extra.ts'), + }, formats: ['cjs'], }, rollupOptions: { From 48d4877040cd9da51122044e356ea2d6e1e72b2a Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Wed, 12 Mar 2025 23:41:36 +0000 Subject: [PATCH 05/11] Mock file for future test cases --- tests/parser/__mocks__/dummy.md | 126 ++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 tests/parser/__mocks__/dummy.md diff --git a/tests/parser/__mocks__/dummy.md b/tests/parser/__mocks__/dummy.md new file mode 100644 index 0000000..8a29715 --- /dev/null +++ b/tests/parser/__mocks__/dummy.md @@ -0,0 +1,126 @@ +# Header 1 + + + + + + + + + + +Moderno Iste.mi + + +W dextram illa si regnare meruit perltum te Lius.at + + + + + + + + + +## Header 1-1 + + + +Per vel "Nobis si Dominium" urna ex dis est-etiam haeres mi maiores hic ille. + +## Header 1-2 + +## Header 1-3 + +- [Profundissimo](animi://stilum.hac/) +- [FalSus Unde](alias://sancli.nec/toties/nisi) +- [Tempora Magni](totam://poloni.quo/floret/typi/sunt/enim/succursu/nisl/REGNANDUM.me) +- [Hac 0 Nunc](liber://mazim.sem/) +- [Posuere Quo](alias://legunt.quo/nobis/decursu-nam) +- [Ferocitas iure mE](animi://mollis.quo/risus/junctione.odit) + + + +## Header 1-4 + +- [lucern-nisl](iusto://merita.non/moliri/sint/enim/ante/personom/missae-typi) - Comilitones Vero Dicta Sint Pretium. +- [sapien-antistes](dicta://lingua.quo/recordatio/pacifice/amet/numerus/queunt-imbellem) - Gallicismum aut NecessilATE directe. +- [specie-zelabant-sint](animi://aptent.quo/classica-wisi/orator-gloriose-nisi) - Obligatorio Quod Partibus + Wisi Futurum. + +### Header 1-4-1 + +#### Header 1-4-1-1 + +- [nisl-iaculis-et-sit-regalia](ullam://tortor.nam/semente/typi-ultimae-et-tot-michael) - Viribus est nuntios (HAC, EUM, EROS) nisi ConsEntire, TURpis, Afficiunt, Incidunt, Diam, Rerum + ille-notare. +- [lius-ministri-duis-vocatio](liber://possit.sed/regulantur/nisi-irritari-erat-videtur) - QuAM Luptatum PER eveniet molfstum. + +#### Header 1-4-1-2 + +- [Videtur](optio://sociis.non/zzril/theatro) - Triumphator regalia potentia. +- [odit-mi-virtutis-pubtico](minim://merita.hac/Fruges/typi-ut-abstulit-origine) - DoloRisgue, Minister SEM, Orandum.te eOs clari + EU. +- [nam-esse-mazim](optio://debila.nec/arenam/quo-quas-culpa) - Propanendo occasionem fustibus rerum eu EroS, Est-Operis-Mus, FoedEratos. + +#### Header 1-4-1-3 + +- [nisl-quoS-utriuque-placida](optio://patria.sem/disentitur/sint-quaM-equestri-eveniet) - Nec 7, Quo Cedant, Christianae EOS, CapEre, Alias PER hac ContRarium. + +### Header 1-4-2 + +- [NuNc](nulla://aptent.nam/CrAbRones/MoDo) - mi a saepius tiomine dynamicus nam dicit ea `Sint 9` + `Sem 7` + `ConsEntire` + `Louor` (qui lius stipula adiurando). + +#### Header 1-4-2-1 + +- [wisi-uidem-maiestatem-stataria](animi://guttae.sem/Exuere/nisi-magni-desideriis-incumbit) - Instabimus + Nisi + Ipsam virginis. + +#### Header 1-4-2-2 + +## Header 1-5 + +### Header 1-5-1 + +#### Header 1-5-1-1 + +- [@martii/domini-sensim](zzril://florem.hac/laesit/wisi/sunt/sunt/accessum/israel-paucis) - Parcam decessu scomata. +- [nisi-fronte-nam](minim://minaci.sem/zzril/wisi-platea-eos) - Eros-tractu CUM. +- [odit-capiat-impiorum](totam://dantis.per/magister/ullo-pungit-potiorue) - Ullam NAM ingeminabit. +- [ullo-victum-modo](liber://lectus.mus/eum-ad/nisi-victor-quod) - Experientia nisl Esse.id gaudere orandum. + +#### Header 1-5-1-2 + +- [dominant-mazim](liber://motivo.eos/vitae/angulari-culpa) - Versus benevolam te fames se discernere. +- [typi-detrimento](dicta://secuti.eum/JonasKruckenberg/ullo-iaculantur) - Quos cum praefixum natura arcui hic magna supererant. + + + +### Header 1-5-2 + +[nAM]: dicta://dui.laoreet.ut/neque/-9%PER-QUOQUO +[aB]: vitae://hic.viribus.si/eorum/-eX-SAeMRE +[aD]: zzril://dis.incolae.ut/magna/-aD-VERSUs + +Se nisi augusti, ab eos caescs at sentiunt vel ingenium Cum valorem est modo motivo. + +![aD] dui Eos 8 duis, ![mE] hic Hac 4 orci, eum ![pER] est activus typi displicere lius orci prandium. + + + +> 💡 EOS opprobrium eos floret si [NAM - Recusandae](#nec). + + + +#### Header 1-5-2-1 + +- ![aD] [@tellus/fusius-quo](totam://motivo.nam/facile/typi-fretus-per) - Niililps Cum 2 quantum. +- ![aD] [@totius/option-nam-qui](etiam://saevit.eum/vitium/iste-meruit-non/erat/fuga/personas/maiori-eos-aut) - Mollitia Cum 7 SED methodo. +- ![sE] [@litora/meruit-quaE](minim://possit.mus/tutori/nisi-minaci-modO) - Iustitia Mus 4 natoque. + +#### Header 1-5-2-2 + +- ![hAC] [ullo-tortor-massa](optio://secuti.quo/pygmaeus/nisi-hostis-porro) - Sint lucern neque netus adiurando. + +### Header 1-5-3 + +#### Header 1-5-3-1 + +- [@tation/nativo-quasi](iusto://merita.hac/mattis/iste-hostis-mazim/eius/iure/decursum/iustam-fusce) - Officiis Uidem excepto lius quam Lacus. +- [@futuri/vergit-dolor-nam](alias://dantis.rem/stilum/nisl-sancli-uidem-quo) - Filialem Proin modeste lius urna EUM. From 2c792517baf0b674bf3fcdec07bdd331f672c4f2 Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Thu, 13 Mar 2025 22:34:19 +0000 Subject: [PATCH 06/11] Fully loader all solutions (stars, issues, PRs, tags). Integration with daily-stars-explorer. --- src/handlers/handlers.ts | 59 +++++++++++++++ src/handlers/thing.ts | 155 +++++++++++++++++++++++++++++++++++++++ src/handlers/urls.ts | 8 ++ src/index.ts | 27 +++++++ src/parser/parser.ts | 18 +++++ 5 files changed, 267 insertions(+) create mode 100644 src/handlers/thing.ts create mode 100644 src/handlers/urls.ts diff --git a/src/handlers/handlers.ts b/src/handlers/handlers.ts index d485a92..2275df7 100644 --- a/src/handlers/handlers.ts +++ b/src/handlers/handlers.ts @@ -1,9 +1,11 @@ import * as github from '@/client/github' import * as utils from '@/client/utils' import * as parser from '@/parser/parser' +import * as thing from './thing' import * as toc from './toc' export const mainSheetName = 'ToC' +export const defaultHeight = 21 function makeOrCleanSheet( spreadsheet: GoogleAppsScript.Spreadsheet.Spreadsheet, @@ -66,6 +68,63 @@ export function loadTopOfContent( spreadsheet.setActiveSheet(sheet) } +export function loadSection( + spreadsheet: GoogleAppsScript.Spreadsheet.Spreadsheet, + section: string, +): void { + // Load and insert data + const mainSheet = spreadsheet.getSheetByName(mainSheetName) + if (!mainSheet) { + throw new Error(`${mainSheetName} not found`) + } + const [url] = getMetaRow(mainSheet) + const [owner, repo] = utils.parseOwnerRepo(url) + const readme = github.fetchReadme(owner, repo) + const things = parser.extractThings(readme, section) + if (things.length === 0) { + throw new Error("Things not found") + } + + const sheet = makeOrCleanSheet(spreadsheet, section) + sheet.setColumnWidth(1, defaultHeight) + const headers = new thing.ThingBuilder().headers() + sheet.getRange(1, 1, 1, headers.length).setValues([headers]) + + for (const { name, url, desc } of things) { + try { + const { repository, lastCommit, lastTag, totalTags, issueStats, pullRequestStats } = + github.metaByUrl(url) + const line = new thing.ThingBuilder() + .setAvatar(repository.avatar) + .setName(repository.name) + .setHtmlUrl(repository.htmlUrl) + .setFullName(repository.fullName) + .setDescription(repository.description) + .setStars(repository.stars) + .setOpenIssuesCount(repository.openIssuesCount) + .setLastCommittedAt(lastCommit.commitedAt) + .setCreatedAt(repository.createdAt) + .setIsFork(repository.isFork) + .setIsArchived(repository.isArchived) + .setTopics(repository.topics) + .setHomepageUrl(repository.homepageUrl) + .setLastTag(lastTag.version) + .setTotalTags(totalTags) + .setTotalIssues(issueStats.totalOpen, issueStats.totalClosed) + .setTotalPullRequests(pullRequestStats.totalOpen, pullRequestStats.totalClosed) + .build() + + sheet.appendRow(line) + } catch (e) { + console.error(`${name} error`, e) + sheet.appendRow(['', name, url, desc, e]) + } + } + + const range = sheet.getDataRange() + range.createFilter() + range.applyRowBanding(SpreadsheetApp.BandingTheme.GREEN, false, false) +} export function cleanThings(spreadsheet: GoogleAppsScript.Spreadsheet.Spreadsheet): void { spreadsheet diff --git a/src/handlers/thing.ts b/src/handlers/thing.ts new file mode 100644 index 0000000..b6a15b9 --- /dev/null +++ b/src/handlers/thing.ts @@ -0,0 +1,155 @@ +import * as urls from '@/handlers/urls' + +export class ThingBuilder { + private avatar?: string + private name?: string + private htmlUrl?: string + private fullName?: string + private description?: string + private stars?: number + private openIssuesCount?: number + private lastCommittedAt?: string + private createdAt?: string + private isFork?: boolean + private isArchived?: boolean + private topics: string[] = [] + private homepageUrl?: string + private lastTag?: string + private totalTags?: number + private totalOpenIssues?: number + private totalClosedIssues?: number + private totalOpenPullRequests?: number + private totalClosedPullRequests?: number + + setAvatar(url: string): this { + this.avatar = url + return this + } + + setName(name: string): this { + this.name = name + return this + } + + setFullName(fullName: string): this { + this.fullName = fullName + return this + } + + setHtmlUrl(url: string): this { + this.htmlUrl = url + return this + } + + setDescription(description: string): this { + this.description = description + return this + } + + setStars(stars: number): this { + this.stars = stars + return this + } + + setOpenIssuesCount(count: number): this { + this.openIssuesCount = count + return this + } + + setLastCommittedAt(lastCommittedAt: string): this { + this.lastCommittedAt = lastCommittedAt + return this + } + + setCreatedAt(createdAt: string): this { + this.createdAt = createdAt + return this + } + + setIsFork(isFork: boolean): this { + this.isFork = isFork + return this + } + + setIsArchived(isArchived: boolean): this { + this.isArchived = isArchived + return this + } + + setTopics(topics: string[]): this { + this.topics = topics + return this + } + + setHomepageUrl(url?: string): this { + this.homepageUrl = url + return this + } + + setLastTag(lastTag?: string): this { + this.lastTag = lastTag + + return this + } + + setTotalTags(totalTags: number): this { + this.totalTags = totalTags + + return this + } + + setTotalIssues(totalOpen: number, totalClosed: number): this { + this.totalOpenIssues = totalOpen + this.totalClosedIssues = totalClosed + + return this + } + + setTotalPullRequests(totalOpen: number, totalClosed: number): this { + this.totalOpenPullRequests = totalOpen + this.totalClosedPullRequests = totalClosed + + return this + } + + private doBuild(): object { + const s = '|' + return { + avatar: this.avatar ? `=IMAGE("${this.avatar}", 1)` : '', + name: this.name || '', + fullName: + this.htmlUrl && this.fullName ? `=HYPERLINK("${this.htmlUrl}", "${this.fullName}")` : '', + description: this.description || '', + + stars: this.stars || '', + issues: + typeof this.totalOpenIssues === 'number' && typeof this.totalClosedIssues === 'number' + ? `${this.totalOpenIssues}${s}${this.totalClosedIssues}${s}${this.totalOpenIssues + this.totalClosedIssues}` + : '', + pullRequests: + typeof this.totalOpenPullRequests === 'number' && + typeof this.totalClosedPullRequests === 'number' + ? `${this.totalOpenPullRequests}${s}${this.totalClosedPullRequests}${s}${this.totalOpenPullRequests + this.totalClosedPullRequests}` + : '', + lastTag: this.lastTag || '', + totalTags: typeof this.totalTags === 'number' ? this.totalTags : '', + lastCommitAt: this.lastCommittedAt ? new Date(this.lastCommittedAt) : '', + createdAt: this.createdAt ? new Date(this.createdAt) : '', + + topics: this.topics.join(', '), + homepageUrl: this.homepageUrl || '', + isFork: this.isFork !== undefined ? this.isFork : '', + isArchived: this.isArchived !== undefined ? this.isArchived : '', + + explorerUrl: this.htmlUrl ? urls.generateStarsExplorerUrl(this.htmlUrl) : '', + } + } + + build(): (string | number | boolean | Date | undefined)[] { + return Object.values(this.doBuild()) + } + + headers(): string[] { + return Object.keys(this.doBuild()) + } +} diff --git a/src/handlers/urls.ts b/src/handlers/urls.ts new file mode 100644 index 0000000..cc1351e --- /dev/null +++ b/src/handlers/urls.ts @@ -0,0 +1,8 @@ +import * as utils from '@/client/utils' + +export function generateStarsExplorerUrl(url: string) { + const startExplorerUrl = import.meta.env.VITE_STARS_EXPLORER_URL + const [owner, repo] = utils.parseOwnerRepo(url) + + return startExplorerUrl ? `http://${startExplorerUrl}/#/${owner}/${repo}` : '' +} diff --git a/src/index.ts b/src/index.ts index da9b388..512c897 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,8 @@ function onOpen(): void { const ui = SpreadsheetApp.getUi() ui.createMenu('Awesome Things') .addItem('Load Table of Contents', 'loadTopOfContent') + .addItem('Load Thing', 'loadThing') + .addItem('Clean things', 'cleanThings') .addToUi() } @@ -23,3 +25,28 @@ function loadTopOfContent(): void { } } +function loadThing(): void { + const spreadsheet = SpreadsheetApp.getActiveSpreadsheet() + const sheet = spreadsheet.getActiveSheet() + if (sheet.getName() !== handlers.mainSheetName) { + throw new Error(`Only for ${handlers.mainSheetName} sheet allowed`) + } + + const selectedValue = sheet.getActiveRange()?.getValue() + if (!selectedValue) { + throw new Error('No selected value') + } + + handlers.loadSection(spreadsheet, selectedValue) +} + +function cleanThings(): void { + const spreadsheet = SpreadsheetApp.getActiveSpreadsheet() + + const ui = SpreadsheetApp.getUi() + const response = ui.alert('Warning', 'Clean all things?', ui.ButtonSet.YES_NO) + + if (response === ui.Button.YES) { + handlers.cleanThings(spreadsheet) + } +} diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 634971d..bc851aa 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -32,6 +32,24 @@ function extractRawSection(content: string, section: string): string | null { const matchThing = /\s\[(?[^\]]+)\]\((?[^)]+)\)\s*-\s*(?.+)$/ +export function extractThings(content: string, section: string): Thing[] { + const rawSection = extractRawSection(content, section) + if (rawSection === null) { + return [] + } + + return rawSection + .trim() + .split('\n') + .map(l => l.match(matchThing)) + .filter(m => m != null) + .map(m => ({ + name: m.groups!.name, + desc: m.groups!.desc, + url: m.groups!.url, + })) +} + export function extractTableOfContents(content: string): TableOfContents[] { return content .split('\n') From 700fcc24a210c8e4386d07eeb574a341e765dcae Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Fri, 14 Mar 2025 01:21:32 +0000 Subject: [PATCH 07/11] Covering the codebase with tests. Some fixes --- src/handlers/handlers.ts | 9 +- src/handlers/toc.ts | 8 +- tests/client/utils.test.ts | 35 +++++++ tests/parser/parser.test.ts | 184 ++++++++++++++++++++++++++++++++++++ tsconfig.json | 2 +- 5 files changed, 229 insertions(+), 9 deletions(-) create mode 100644 tests/client/utils.test.ts create mode 100644 tests/parser/parser.test.ts diff --git a/src/handlers/handlers.ts b/src/handlers/handlers.ts index 2275df7..543276e 100644 --- a/src/handlers/handlers.ts +++ b/src/handlers/handlers.ts @@ -60,9 +60,10 @@ export function loadTopOfContent( range.applyRowBanding(SpreadsheetApp.BandingTheme.GREEN, false, false) sheet.protect().setWarningOnly(true) - const helper = '1. Choose the cell with the thing\n2. Open the "Awesome Things" menu\n3. Click "Load Thing"' - .split('\n') - .map(l => [l]) + const helper = + '1. Choose the cell with the thing\n2. Open the "Awesome Things" menu\n3. Click "Load Thing"' + .split('\n') + .map(l => [l]) sheet.getRange(2, sheet.getLastColumn() + 2, helper.length, 1).setValues(helper) spreadsheet.setActiveSheet(sheet) @@ -82,7 +83,7 @@ export function loadSection( const readme = github.fetchReadme(owner, repo) const things = parser.extractThings(readme, section) if (things.length === 0) { - throw new Error("Things not found") + throw new Error('Things not found') } const sheet = makeOrCleanSheet(spreadsheet, section) diff --git a/src/handlers/toc.ts b/src/handlers/toc.ts index 7493eec..07d9c0a 100644 --- a/src/handlers/toc.ts +++ b/src/handlers/toc.ts @@ -1,8 +1,8 @@ export class ToCBuilder { - private things: {name: string, offset: number, total: number}[] = [] + private things: { name: string; offset: number; total: number }[] = [] addThing(name: string, offset: number, total: number) { - this.things.push({name, offset, total}) + this.things.push({ name, offset, total }) return this } @@ -11,7 +11,7 @@ export class ToCBuilder { const columns = Math.max(...this.things.map(({ offset }) => offset)) + 1 const result: string[][] = [] - const header = new Array(columns - 1).fill('').map((_, i) => `Header ${i+1}`) + const header = new Array(columns - 1).fill('').map((_, i) => `Header ${i + 1}`) header.push('Total') result.push(header) @@ -24,4 +24,4 @@ export class ToCBuilder { return result } -} \ No newline at end of file +} diff --git a/tests/client/utils.test.ts b/tests/client/utils.test.ts new file mode 100644 index 0000000..958140f --- /dev/null +++ b/tests/client/utils.test.ts @@ -0,0 +1,35 @@ +import type { LinkSet } from '@/client/utils' +import * as utils from '@/client/utils' +import { describe, expect, it } from 'vitest' + +interface TestCase { + source: string + expected: LinkSet +} + +const data: TestCase[] = [ + { + source: `; rel="next", ; rel="last"`, + expected: { + next: 'https://api.github.com/repositories/42/tags?per_page=1&page=2', + last: 'https://api.github.com/repositories/42/tags?per_page=1&page=51', + }, + }, + { + source: `; rel="prev", ; rel="next", ; rel="last", ; rel="first"`, + expected: { + first: 'https://api.github.com/repositories/42/tags?per_page=2&page=1', + prev: 'https://api.github.com/repositories/42/tags?per_page=2&page=1', + next: 'https://api.github.com/repositories/42/tags?per_page=2&page=3', + last: 'https://api.github.com/repositories/42/tags?per_page=2&page=26', + }, + }, +] + +describe.each(data)('parse link header', ({ source, expected }: TestCase) => { + it('$source', async () => { + const result = utils.parseLinkHeader(source) + + expect(result).toMatchObject(expected) + }) +}) diff --git a/tests/parser/parser.test.ts b/tests/parser/parser.test.ts new file mode 100644 index 0000000..d8810e1 --- /dev/null +++ b/tests/parser/parser.test.ts @@ -0,0 +1,184 @@ +import * as parser from '@/parser/parser' +import fs from 'node:fs/promises' +import { describe, expect, it, test } from 'vitest' + +import type { TableOfContents, Thing } from '@/parser/parser' + +interface TestCase { + source: string + expected: Thing[] +} + +const data: TestCase[] = [ + { + source: 'Header 1-2', + expected: [], + }, + { + source: 'Header 1-3', + expected: [], + }, + { + source: 'Header 1-5-1-1', + expected: [ + { + name: '@martii/domini-sensim', + desc: 'Parcam decessu scomata.', + url: 'zzril://florem.hac/laesit/wisi/sunt/sunt/accessum/israel-paucis', + }, + { + name: 'nisi-fronte-nam', + desc: 'Eros-tractu CUM.', + url: 'minim://minaci.sem/zzril/wisi-platea-eos', + }, + { + name: 'odit-capiat-impiorum', + desc: 'Ullam NAM ingeminabit.', + url: 'totam://dantis.per/magister/ullo-pungit-potiorue', + }, + { + name: 'ullo-victum-modo', + desc: 'Experientia nisl Esse.id gaudere orandum.', + url: 'liber://lectus.mus/eum-ad/nisi-victor-quod', + }, + ], + }, + { + source: 'Header 1-5-2', + expected: [], + }, + { + source: 'Header 1-5-2-2', + expected: [ + { + name: 'ullo-tortor-massa', + desc: 'Sint lucern neque netus adiurando.', + url: 'optio://secuti.quo/pygmaeus/nisi-hostis-porro', + }, + ], + }, +] + +describe.each(data)('parser/parser $source', ({ source, expected }) => { + it('extract things', async () => { + const content = await fs.readFile(__dirname + '/__mocks__/dummy.md', 'utf-8') + const result = parser.extractThings(content, source) + + expect(result).toEqual(expected) + }) +}) + +test('extract flat table of content', async () => { + const content = await fs.readFile(__dirname + '/__mocks__/dummy.md', 'utf-8') + const result = parser.extractTableOfContents(content) + + const expected: TableOfContents[] = [ + { + name: 'Header 1', + offset: 1, + total: 0, + }, + { + name: 'Header 1-1', + offset: 2, + total: 0, + }, + { + name: 'Header 1-2', + offset: 2, + total: 0, + }, + { + name: 'Header 1-3', + offset: 2, + total: 0, + }, + { + name: 'Header 1-4', + offset: 2, + total: 3, + }, + { + name: 'Header 1-4-1', + offset: 3, + total: 0, + }, + { + name: 'Header 1-4-1-1', + offset: 4, + total: 2, + }, + { + name: 'Header 1-4-1-2', + offset: 4, + total: 3, + }, + { + name: 'Header 1-4-1-3', + offset: 4, + total: 1, + }, + { + name: 'Header 1-4-2', + offset: 3, + total: 1, + }, + { + name: 'Header 1-4-2-1', + offset: 4, + total: 1, + }, + { + name: 'Header 1-4-2-2', + offset: 4, + total: 0, + }, + { + name: 'Header 1-5', + offset: 2, + total: 0, + }, + { + name: 'Header 1-5-1', + offset: 3, + total: 0, + }, + { + name: 'Header 1-5-1-1', + offset: 4, + total: 4, + }, + { + name: 'Header 1-5-1-2', + offset: 4, + total: 2, + }, + { + name: 'Header 1-5-2', + offset: 3, + total: 0, + }, + { + name: 'Header 1-5-2-1', + offset: 4, + total: 3, + }, + { + name: 'Header 1-5-2-2', + offset: 4, + total: 1, + }, + { + name: 'Header 1-5-3', + offset: 3, + total: 0, + }, + { + name: 'Header 1-5-3-1', + offset: 4, + total: 2, + }, + ] + + expect(result).toEqual(expected) +}) diff --git a/tsconfig.json b/tsconfig.json index cf933fa..6438476 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,5 +24,5 @@ "noUncheckedSideEffectImports": true, "types": ["@types/google-apps-script", "@types/parse-link-header", "@types/node"] }, - "include": ["src"] + "include": ["src", "tests"] } From 019a4db9e4df3d990dc6ed0de3a3adcbd09f1710 Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Fri, 14 Mar 2025 19:53:29 +0000 Subject: [PATCH 08/11] Last release and total releases were added --- src/client/github.ts | 53 +++++++++++++++++++++++----------------- src/handlers/handlers.ts | 14 +++++++++-- src/handlers/thing.ts | 16 ++++++++++++ 3 files changed, 59 insertions(+), 24 deletions(-) diff --git a/src/client/github.ts b/src/client/github.ts index 76a7207..b53b4d8 100644 --- a/src/client/github.ts +++ b/src/client/github.ts @@ -30,6 +30,10 @@ export interface Tag { version?: string } +export interface Release { + name?: string +} + interface IssueStats { totalOpen: number totalClosed: number @@ -38,9 +42,13 @@ interface IssueStats { export interface Metadata { repository: Repository lastCommit: Commit + lastTag: Tag totalTags: number + lastRelease: Release + totalReleases: number + issueStats: IssueStats pullRequestStats: IssueStats } @@ -115,12 +123,13 @@ export function fetchCommit(owner: string, repo: string, ref: string): Commit { } } -function fetchStats( +function fetchLastAndTotal( owner: string, repo: string, model: string, params: { [key: string]: string }, -): number { + // eslint-disable-next-line @typescript-eslint/no-explicit-any +): [any, number] { const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { method: 'get', headers: defaultHeaders, @@ -138,34 +147,31 @@ function fetchStats( const headers = <{ [key: string]: string }>response.getHeaders() const links = utils.parseLinkHeader(headers['Link'] ?? '') const lastPage = links['last']?.match(/\bpage=(?\d+)/)?.groups!.page + const total = lastPage ? parseInt(lastPage) : data.length - return lastPage ? parseInt(lastPage) : data.length + return [data, total] } -export function fetchLastTag(owner: string, repo: string): Tag { - const options: GoogleAppsScript.URL_Fetch.URLFetchRequestOptions = { - method: 'get', - headers: defaultHeaders, - } - const url = `https://${host}/repos/${owner}/${repo}/tags` - const query = `per_page=1&page=1` - const response = UrlFetchApp.fetch(url + '?' + query, options) - const data = JSON.parse(response.getContentText()) +function fetchTotal( + owner: string, + repo: string, + model: string, + params: { [key: string]: string }, +): number { + const [, total] = fetchLastAndTotal(owner, repo, model, params) - return { - version: data?.[0]?.name, - } + return total } export function fetchIssueStats(owner: string, repo: string): [IssueStats, IssueStats] { const issueStats: IssueStats = { - totalOpen: fetchStats(owner, repo, 'issues', { state: 'open' }), - totalClosed: fetchStats(owner, repo, 'issues', { state: 'closed' }), + totalOpen: fetchTotal(owner, repo, 'issues', { state: 'open' }), + totalClosed: fetchTotal(owner, repo, 'issues', { state: 'closed' }), } const pullRequestStats: IssueStats = { - totalOpen: fetchStats(owner, repo, 'pulls', { state: 'open' }), - totalClosed: fetchStats(owner, repo, 'pulls', { state: 'closed' }), + totalOpen: fetchTotal(owner, repo, 'pulls', { state: 'open' }), + totalClosed: fetchTotal(owner, repo, 'pulls', { state: 'closed' }), } return [ @@ -182,17 +188,20 @@ export function metaByUrl(url: string): Metadata { const [owner, repo] = utils.parseOwnerRepo(url) const repository = fetchRepository(owner, repo) const lastCommit = fetchCommit(owner, repo, repository.defaultBranch) - const lastTag = fetchLastTag(owner, repo) - const totalTags = fetchStats(owner, repo, 'tags', {}) + const [lastTag, totalTags] = fetchLastAndTotal(owner, repo, 'tags', {}) + const [lastRelease, totalReleases] = fetchLastAndTotal(owner, repo, 'releases', {}) const [issueStats, pullRequestStats] = fetchIssueStats(owner, repo) return { repository, lastCommit, - lastTag, + lastTag: { version: lastTag?.[0]?.name }, totalTags, + lastRelease: { name: lastRelease?.[0]?.name }, + totalReleases, + issueStats, pullRequestStats, } diff --git a/src/handlers/handlers.ts b/src/handlers/handlers.ts index 543276e..6c3d197 100644 --- a/src/handlers/handlers.ts +++ b/src/handlers/handlers.ts @@ -93,8 +93,16 @@ export function loadSection( for (const { name, url, desc } of things) { try { - const { repository, lastCommit, lastTag, totalTags, issueStats, pullRequestStats } = - github.metaByUrl(url) + const { + repository, + lastCommit, + lastTag, + totalTags, + lastRelease, + totalReleases, + issueStats, + pullRequestStats, + } = github.metaByUrl(url) const line = new thing.ThingBuilder() .setAvatar(repository.avatar) .setName(repository.name) @@ -111,6 +119,8 @@ export function loadSection( .setHomepageUrl(repository.homepageUrl) .setLastTag(lastTag.version) .setTotalTags(totalTags) + .setLastRelease(lastRelease.name) + .setTotalReleases(totalReleases) .setTotalIssues(issueStats.totalOpen, issueStats.totalClosed) .setTotalPullRequests(pullRequestStats.totalOpen, pullRequestStats.totalClosed) .build() diff --git a/src/handlers/thing.ts b/src/handlers/thing.ts index b6a15b9..1af823c 100644 --- a/src/handlers/thing.ts +++ b/src/handlers/thing.ts @@ -16,6 +16,8 @@ export class ThingBuilder { private homepageUrl?: string private lastTag?: string private totalTags?: number + private lastRelease?: string + private totalReleases?: number private totalOpenIssues?: number private totalClosedIssues?: number private totalOpenPullRequests?: number @@ -98,6 +100,18 @@ export class ThingBuilder { return this } + setLastRelease(lastRelease?: string): this { + this.lastRelease = lastRelease + + return this + } + + setTotalReleases(totalReleases: number): this { + this.totalReleases = totalReleases + + return this + } + setTotalIssues(totalOpen: number, totalClosed: number): this { this.totalOpenIssues = totalOpen this.totalClosedIssues = totalClosed @@ -133,6 +147,8 @@ export class ThingBuilder { : '', lastTag: this.lastTag || '', totalTags: typeof this.totalTags === 'number' ? this.totalTags : '', + lastRelease: this.lastRelease || '', + totalReleases: typeof this.totalReleases === 'number' ? this.totalReleases : '', lastCommitAt: this.lastCommittedAt ? new Date(this.lastCommittedAt) : '', createdAt: this.createdAt ? new Date(this.createdAt) : '', From 1a5fb6b308df7d6a96b1263ab67b9a6964c58121 Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Fri, 14 Mar 2025 20:13:02 +0000 Subject: [PATCH 09/11] Changed the error message if it is not GitHub repository --- src/client/github.ts | 4 ++++ src/client/utils.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/client/github.ts b/src/client/github.ts index b53b4d8..f3cb5d9 100644 --- a/src/client/github.ts +++ b/src/client/github.ts @@ -185,6 +185,10 @@ export function fetchIssueStats(owner: string, repo: string): [IssueStats, Issue } export function metaByUrl(url: string): Metadata { + if (!utils.isSupportedUrl(url)) { + throw new Error('This is not GitHub repository') + } + const [owner, repo] = utils.parseOwnerRepo(url) const repository = fetchRepository(owner, repo) const lastCommit = fetchCommit(owner, repo, repository.defaultBranch) diff --git a/src/client/utils.ts b/src/client/utils.ts index f215816..dfcea2f 100644 --- a/src/client/utils.ts +++ b/src/client/utils.ts @@ -1,5 +1,9 @@ const githubRegex = new RegExp(`github.com/(?[^/]+)\\/(?[^/]+)\\/?$`) +export function isSupportedUrl(url: string): boolean { + return url.match(githubRegex) !== null +} + export function parseOwnerRepo(url: string): [string, string] { const match = url.match(githubRegex) if (match === null) { From fb8108c784f315ef77406a5adcf1eefc18f9dfff Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Fri, 14 Mar 2025 21:02:47 +0000 Subject: [PATCH 10/11] Friendly-user README.md --- .prettierignore | 3 +- README.md | 101 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/.prettierignore b/.prettierignore index 33f2c73..8352eb0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,5 @@ dist/ .clasp.json +.clasp.json.example appsscript.json -README.md \ No newline at end of file +appsscript.json.example diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f97dea --- /dev/null +++ b/README.md @@ -0,0 +1,101 @@ +# awesome-things + +Have you faced ever with the challenge of choosing the right solutions among many alternatives? + +**awesome-things** helps you organize all the options in one table, compare the numbers of stars, open/closed issues/PRs, track the project's dynamic and ultimately make an informed which solution to pick. + +The project uses data from awesome-\* repositories, like as [awesome-python](https://github.com/vinta/awesome-python), extracts and parses the data (only from GitHub repositories), and generates a neat spreadsheet table that integrates seamlessly with Google Spreadsheets via Apps Script. + +## Requirements + +- Google Account +- GitHub Account + +## Setup (local usage only) + +1. Clone this repository + + ```shell + git clone https://github.com/roboloop/awesome-things + ``` + +2. Install [clasp](https://github.com/google/clasp) and grand access + + ```shell + npm install -g @google/clasp + + # Log in and grant access to Apps Script functionality + clasp login + ``` + +3. Associate the cloned project with your Google Spreadsheets + + 1. Enable the Google Apps Script API [here](https://script.google.com/home/usersettings) + + 2. Create a blank Google Spreadsheets [here](https://docs.google.com/spreadsheets/u/0/create?usp=sheets_web) + + 3. Go to `Extensions` —> `Apps Script` + + 4. On the Apps Script page, open `Settings` and copy the Script ID + + 5. Create a `.clasp.json` file: + + ```shell + cp .clasp.json.example .clasp.json + ``` + + 6. Paste the Script ID into the `scriptId` field + +4. Set up a GitHub Personal Access Token + + 1. Get a PAT [here](https://github.com/settings/personal-access-tokens) (no scopes required) + + 2. Crate a `.env.local` + + ```shell + cp .env .env.local + ``` + + 3. Add the GitHub token to `.env.local` file + +5. _(Optional)_ Integrate [daily-stars-explorer](https://github.com/emanuelef/daily-stars-explorer) to check extended GitHub repository statistics: + + 1. Add the address to `.env.local` file: + + ``` + VITE_STARS_EXPLORER_URL=127.0.0.1:8080 + ``` + + 2. Run the instance (it retrieves the PAT and address from `.env.local` file): + + ```shell + docker run --rm --name daily-stars-explorer \ + --env PAT="$(sed -n 's/^VITE_GITHUB_TOKEN=//p' .env.local)" \ + --publish "$(sed -n 's/^VITE_STARS_EXPLORER_URL=//p' .env.local)":8080 \ + ghcr.io/emanuelef/daily-stars-explorer:latest + ``` + +6. Deploy the project with following command: + + ```shell + npm run deploy + ``` + +## Usage + +1. Refresh the Google Spreadsheet page + +2. Load the Table of Contents: + + 1. In the `Awesome Things` menu, select `Load Table of Contents` + + 2. Enter the GitHub repository link, e.g., + 3. The `ToC` sheet will be populated + +3. Load the specific thing: + + 1. Select the cell with the interesting item + + 2. In the `Awesome Things` menu, select `Load Things` + + 3. A new sheet will be created and filled with data From 81444e6c16af872dba70b53ae265d8b346dee1de Mon Sep 17 00:00:00 2001 From: Robo Loop Date: Sat, 15 Mar 2025 18:06:55 +0000 Subject: [PATCH 11/11] The first version of CI/CD --- .github/workflows/ci.yml | 70 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..768c6cc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,70 @@ +name: CI/CD Pipeline + +on: + push: + branches: + - main + pull_request: + +jobs: + lint: + name: Lint & Format Check + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run ESLint + run: npm run lint + + - name: Run Prettier Check + run: npm run prettier + + test: + name: Run Tests + runs-on: ubuntu-latest + needs: lint + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run Tests + run: npm run test + + build: + name: Build Project + runs-on: ubuntu-latest + needs: test + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build the project + run: npm run build