diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7e3789d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+node_modules/
+dist/
+coverage/
+*.log
+.DS_Store
diff --git a/README.md b/README.md
index 87199e1..336f85b 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,27 @@
-# beat-hound
+# BeatHound
-A rhythm and ear-training app to add beats, shift timing intervals, and sharpen your sense of groove.
\ No newline at end of file
+A pocket-sized circular beat sequencer. Add a hi-hat or kick from the FAB, then drag its point around the 16-step loop.
+
+## Features
+
+- Single circular 4/4 timeline with draggable sound points
+- Hi-hat and kick sounds, synthesized with Web Audio
+- A simple play bar and sound-add FAB
+- Responsive Ionic interface with mobile home-screen metadata
+
+Sound metadata lives in `src/domain/sounds.ts`; audio voices are registered in `src/audio/soundVoices.ts`. Palette colors are generated as sounds are added. Adding a sound does not require changes to the timeline or sequencer hook.
+
+## Development
+
+```sh
+npm install
+npm run dev
+```
+
+## Checks
+
+```sh
+npm run lint
+npm run build
+npm test
+```
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..8c8755e
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,25 @@
+import js from '@eslint/js';
+import globals from 'globals';
+import reactHooks from 'eslint-plugin-react-hooks';
+import reactRefresh from 'eslint-plugin-react-refresh';
+import tseslint from 'typescript-eslint';
+
+export default tseslint.config(
+ { ignores: ['dist', 'node_modules'] },
+ {
+ files: ['**/*.{ts,tsx}'],
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
+ languageOptions: {
+ ecmaVersion: 2022,
+ globals: globals.browser,
+ },
+ plugins: {
+ 'react-hooks': reactHooks,
+ 'react-refresh': reactRefresh,
+ },
+ rules: {
+ ...reactHooks.configs.recommended.rules,
+ 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
+ },
+ },
+);
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..907fb33
--- /dev/null
+++ b/index.html
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BeatHound — Build a beat
+
+
+
+
+
+
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..6ffb1b0
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,3524 @@
+{
+ "name": "beat-hound",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "beat-hound",
+ "version": "1.0.0",
+ "dependencies": {
+ "@ionic/react": "^8.7.6",
+ "ionicons": "^7.4.0",
+ "react": "^19.1.1",
+ "react-dom": "^19.1.1"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.35.0",
+ "@types/react": "^19.1.10",
+ "@types/react-dom": "^19.1.7",
+ "@vitejs/plugin-react": "^5.0.2",
+ "eslint": "^9.35.0",
+ "eslint-plugin-react-hooks": "^5.2.0",
+ "eslint-plugin-react-refresh": "^0.4.20",
+ "globals": "^16.3.0",
+ "typescript": "^5.9.2",
+ "typescript-eslint": "^8.42.0",
+ "vite": "^7.1.4",
+ "vitest": "^3.2.4"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.13",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.13",
+ "@babel/helper-compilation-targets": "^7.29.13",
+ "@babel/helper-module-transforms": "^7.29.13",
+ "@babel/helpers": "^7.29.13",
+ "@babel/parser": "^7.29.13",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.13",
+ "@babel/types": "^7.29.11",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.14",
+ "@babel/types": "^7.29.14",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.13",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.14"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.14"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.14"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.14",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.14",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.14",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.14",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.28.2",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.10.1",
+ "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",
+ "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.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.2",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.7",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.5"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.4.2",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.17.0",
+ "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.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.14.0",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.3.2",
+ "minimatch": "^3.1.5",
+ "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/eslintrc/node_modules/globals": {
+ "version": "14.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.39.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.7",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.4.1",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.2",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/types": "^0.15.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.8",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.2",
+ "@humanfs/types": "^0.15.0",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/types": {
+ "version": "0.15.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "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.3",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@ionic/react": {
+ "version": "8.8.19",
+ "license": "MIT",
+ "dependencies": {
+ "@ionic/core": "8.8.19",
+ "ionicons": "^8.0.13",
+ "tslib": "*"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.6",
+ "react-dom": ">=16.8.6"
+ }
+ },
+ "node_modules/@ionic/react/node_modules/@ionic/core": {
+ "version": "8.8.19",
+ "resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.8.19.tgz",
+ "integrity": "sha512-eAAKZi/qR0U44OxH3MXAyoyLxTl1AeQCoOWvGdzywKbpl/JTVlGnfZJCiJGTmXszQlRsNXsl7fMDOvpsOtf6sQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@stencil/core": "4.43.5",
+ "ionicons": "^8.0.13",
+ "tslib": "^2.1.0"
+ },
+ "engines": {
+ "node": ">= 16"
+ }
+ },
+ "node_modules/@ionic/react/node_modules/ionicons": {
+ "version": "8.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "@stencil/core": "^4.43.5"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.6.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-rc.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.68.3.tgz",
+ "integrity": "sha512-mqfypgH/liYjaSCoPI4erckUcROgZtmFUUmyOJ05oyayi/tVqOEYAzWP7ufqCoCT3xB31Fw4XIVO/jX42hYvKA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.68.3.tgz",
+ "integrity": "sha512-5tY+GC/1gpt79cKS2DQzu6iD824j6BmI4q5Zb6qftZ4kWqIQmvR3DD4eJ2Gclu6/nVMYDk2IVpqxypWOiAuWJg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-x64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-x64/-/rollup-android-x64-4.68.3.tgz",
+ "integrity": "sha512-nDBcQ/o3PMmGxmAzGBJFn+n1rb83Va9WSdFIq1AHmlEF3tuibVsyJ3kG5x13r7VIy6WI8SvzCdHVNSlSDIdj8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.0.tgz",
+ "integrity": "sha512-VGF3wy0Eq1gcEIkSCr8Ke03CWT+Pm2yveKLaDvq51pPpZza3JX/ClxXOCmTYYq3us5MvEuNRTaeyFThCKRQhOA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.0.tgz",
+ "integrity": "sha512-fBkyrDhwquRvrTxSGH/qqt3/T0w5Rg0L7ZIDypvBPc1/gzjJle6acCpZ36blwuwcKD/u6oCE/sRWlUAcxLWQbQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.68.3.tgz",
+ "integrity": "sha512-zdckkcxHDEEKyDbC1t21DeaaiKGymxbkBU9c3zyfaaz+8N96ItJw4nmzHhZF+Mukgt906fnf2tsc90pVyStuHA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.68.3.tgz",
+ "integrity": "sha512-9oXqI7g/ycEz7TyicdGBC4sL6PfWMXAx8u15f/nd7lYkCLJd8U8VdBfbpc4SSnRBU/e7aPALve3mhzasGDeCYg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.68.3.tgz",
+ "integrity": "sha512-hbgT4NlaOELE3D5UUzSqF+OFgwz4Scvo2SQD9nZJUFjdIsg9Kg3FabQauUxkHKY9N5yjNXfXRRmiKNN4JpLmFA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.68.3.tgz",
+ "integrity": "sha512-yECcXZ/Bl+JVRhLFgld42rYrXgPdE0LtySGAmmmH6OtkaJM17A4cWG/eCzDymMVb52/jZjW0R54YrTHj4xXlSA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.0.tgz",
+ "integrity": "sha512-ZTR2mxBHb4tK4wGf9b8SYg0Y6KQPjGpR4UWwTFdnmjB4qRtoATZ5dWn3KsDwGa5Z2ZBOE7K52L36J9LueKBdOQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.0.tgz",
+ "integrity": "sha512-GFWfAhVhWGd4r6UxmnKRTBwP1qmModHtd5gkraeW2G490BpFOZkFtem8yuX2NyafIP/mGpRJgTJ2PwohQkUY/Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.68.3.tgz",
+ "integrity": "sha512-URBmOhwv4Y0Hi5Hhxc3cmqZLtQlx55DOs5PUhhITDC3zu0qwAfhcNAFAIwAhOUdA6NFVEck07CNZX6cBEs1vTg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.68.3.tgz",
+ "integrity": "sha512-PTdJXuZplRyaE3ECArlbZubI2LlUHWm0oCipCexnE/8LM+L7qIqUiNbU0piBxt46EB5zxXX+cpmDvHX4Z3WwcQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.68.3.tgz",
+ "integrity": "sha512-IlSQPDExSm9YdtrWeZIHj87GPXI9lYygRvHVwQ1o9t91JHIiB2CihrvNIASpc/zI28atqm04jS3proaQuaJMww==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.68.3.tgz",
+ "integrity": "sha512-O2ssyDcBTZkH5v2P/9ZaXJreL0hCKvUA5UwuHn0jCKeMLKi4GhspZJ1I5FT5QsHtJ/dPx4pup7pg/Lw0emeY0Q==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.68.3.tgz",
+ "integrity": "sha512-fesqagxcnc87lH2+aBWne/tFCmQVIGH+YezjY1wQwbUODuTBBlhHoyxju6umwn8LnjHVanjpoeaQdLsXP8JQSQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.68.3.tgz",
+ "integrity": "sha512-WAjFDtLW3HjJ2RAytKoWdFwlK/hW8rJHrjhRZFw14nR+c9JN//WIlSBkyXUjEYCNOFs2sGLNutOEPQG4iVYHgA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.68.3.tgz",
+ "integrity": "sha512-+fZiTeHV/1fy/14dRqE4thjYwUOABL6qQjxElOEQg2oHLkCamO8dxhHphVgD4+pFxtVEUIWxsGVduPtwnAlvbg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.44.0",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.0.tgz",
+ "integrity": "sha512-PQUobbhLTQT5yz/SPg116VJBgz+XOtXt8D1ck+sfJJhuEsMj2jSej5yTdp8CvWBSceu+WW+ibVL6dm0ptG5fcA==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.68.3.tgz",
+ "integrity": "sha512-OiUclE7QDU4H/hr3ACRHhVGKWl+gNx+6Emignfq0hmNmzzTkZnT79wzB9NXKd0QH16S4t/wVqlAFBfC17nkZ5A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.68.3.tgz",
+ "integrity": "sha512-s6EclDWmk6zvIfk1yixgYthk7xHNx0xu5cEF5RDpS4IHNTpfswRX6xOXVG5cHF5xWn0B6EpDGARhPQ520KTlsA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.0.tgz",
+ "integrity": "sha512-M0CpcHf8TWn+4oTxJfh7LQuTuaYeXGbk0eageVjQCKzYLsajWS/lFC94qlRqOlyC2KvRT90ZrfXULYmukeIy7w==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.68.3.tgz",
+ "integrity": "sha512-Y/4tApNVrMUYWbAHsyRWJgwuuJOfhTNhA2B04Xpa6+G9btkPZ9kU3XagUKzPTwF3hg36NpQk748JsnoTVho67Q==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.68.3.tgz",
+ "integrity": "sha512-i2vH/OA5BcW+TdNg12ZTRC4rn+vILaPMP9CvHqnv+QEpMjBHGGNLo4k4EnEqzjYvTD6x1Xark9WhsQbH4bTzUQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.44.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.0.tgz",
+ "integrity": "sha512-Q2Mgwt+D8hd5FIPUuPDsvPR7Bguza6yTkJxspDGkZj7tBRn2y4KSWYuIXpftFSjBra76TbKerCV7rgFPQrn+wQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@stencil/core": {
+ "version": "4.43.5",
+ "license": "MIT",
+ "bin": {
+ "stencil": "bin/stencil"
+ },
+ "engines": {
+ "node": ">=16.0.0",
+ "npm": ">=7.10.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-darwin-arm64": "4.44.0",
+ "@rollup/rollup-darwin-x64": "4.44.0",
+ "@rollup/rollup-linux-arm64-gnu": "4.44.0",
+ "@rollup/rollup-linux-arm64-musl": "4.44.0",
+ "@rollup/rollup-linux-x64-gnu": "4.44.0",
+ "@rollup/rollup-linux-x64-musl": "4.44.0",
+ "@rollup/rollup-win32-arm64-msvc": "4.44.0",
+ "@rollup/rollup-win32-x64-msvc": "4.44.0"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/chai": {
+ "version": "5.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/deep-eql": "*",
+ "assertion-error": "^2.0.1"
+ }
+ },
+ "node_modules/@types/deep-eql": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.10",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "19.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.3.0",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.3.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.72.2",
+ "@typescript-eslint/type-utils": "8.72.2",
+ "@typescript-eslint/utils": "8.72.2",
+ "@typescript-eslint/visitor-keys": "8.72.2",
+ "ignore": "^7.0.5",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.5.0"
+ },
+ "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.72.2",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.14",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.72.2",
+ "@typescript-eslint/types": "8.72.2",
+ "@typescript-eslint/typescript-estree": "8.72.2",
+ "@typescript-eslint/visitor-keys": "8.72.2",
+ "debug": "^4.4.3"
+ },
+ "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 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.72.2",
+ "@typescript-eslint/types": "^8.72.2",
+ "debug": "^4.4.3"
+ },
+ "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 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.72.2",
+ "@typescript-eslint/visitor-keys": "8.72.2"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "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 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.72.2",
+ "@typescript-eslint/typescript-estree": "8.72.2",
+ "@typescript-eslint/utils": "8.72.2",
+ "debug": "^4.4.3",
+ "ts-api-utils": "^2.5.0"
+ },
+ "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 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.72.2",
+ "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.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.72.2",
+ "@typescript-eslint/tsconfig-utils": "8.72.2",
+ "@typescript-eslint/types": "8.72.2",
+ "@typescript-eslint/visitor-keys": "8.72.2",
+ "debug": "^4.4.3",
+ "minimatch": "^10.2.2",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "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 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
+ "version": "4.0.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
+ "version": "5.0.13",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
+ "version": "10.2.6",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
+ "version": "7.8.6",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.72.2",
+ "@typescript-eslint/types": "8.72.2",
+ "@typescript-eslint/typescript-estree": "8.72.2"
+ },
+ "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 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.72.2",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.29.0",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-rc.3",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.18.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/@vitest/expect": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/chai": "^5.2.2",
+ "@vitest/spy": "3.2.7",
+ "@vitest/utils": "3.2.7",
+ "chai": "^5.2.0",
+ "tinyrainbow": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "3.2.7",
+ "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 || ^7.0.0-0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/pretty-format": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyrainbow": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/runner": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/utils": "3.2.7",
+ "pathe": "^2.0.3",
+ "strip-literal": "^3.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/snapshot": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "3.2.7",
+ "magic-string": "^0.30.17",
+ "pathe": "^2.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/spy": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyspy": "^4.0.3"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/utils": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "3.2.7",
+ "loupe": "^3.1.4",
+ "tinyrainbow": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.19.0",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.15.0",
+ "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",
+ "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",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.37",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.22",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.29.5",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.11.33",
+ "caniuse-lite": "^1.0.30001819",
+ "electron-to-chromium": "^1.5.464",
+ "node-releases": "^2.0.60",
+ "update-browserslist-db": "^1.3.4"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/browserslist/node_modules/caniuse-lite": {
+ "version": "1.0.30001826",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001826.tgz",
+ "integrity": "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/cac": {
+ "version": "6.7.14",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/chai": {
+ "version": "5.3.3",
+ "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": ">=18"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "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.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 16"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "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",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.485",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/es-module-lexer": {
+ "version": "1.7.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/esbuild": {
+ "version": "0.28.2",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.2",
+ "@esbuild/android-arm": "0.28.2",
+ "@esbuild/android-arm64": "0.28.2",
+ "@esbuild/android-x64": "0.28.2",
+ "@esbuild/darwin-arm64": "0.28.2",
+ "@esbuild/darwin-x64": "0.28.2",
+ "@esbuild/freebsd-arm64": "0.28.2",
+ "@esbuild/freebsd-x64": "0.28.2",
+ "@esbuild/linux-arm": "0.28.2",
+ "@esbuild/linux-arm64": "0.28.2",
+ "@esbuild/linux-ia32": "0.28.2",
+ "@esbuild/linux-loong64": "0.28.2",
+ "@esbuild/linux-mips64el": "0.28.2",
+ "@esbuild/linux-ppc64": "0.28.2",
+ "@esbuild/linux-riscv64": "0.28.2",
+ "@esbuild/linux-s390x": "0.28.2",
+ "@esbuild/linux-x64": "0.28.2",
+ "@esbuild/netbsd-arm64": "0.28.2",
+ "@esbuild/netbsd-x64": "0.28.2",
+ "@esbuild/openbsd-arm64": "0.28.2",
+ "@esbuild/openbsd-x64": "0.28.2",
+ "@esbuild/openharmony-arm64": "0.28.2",
+ "@esbuild/sunos-x64": "0.28.2",
+ "@esbuild/win32-arm64": "0.28.2",
+ "@esbuild/win32-ia32": "0.28.2",
+ "@esbuild/win32-x64": "0.28.2"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.39.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.2",
+ "@eslint/config-helpers": "^0.4.2",
+ "@eslint/core": "^0.17.0",
+ "@eslint/eslintrc": "^3.3.6",
+ "@eslint/js": "9.39.5",
+ "@eslint/plugin-kit": "^0.4.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.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.5",
+ "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-plugin-react-hooks": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-react-refresh": {
+ "version": "0.4.26",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "eslint": ">=8.40"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "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.1",
+ "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/espree": {
+ "version": "10.4.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "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",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.4",
+ "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/gensync": {
+ "version": "1.0.0-beta.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "16.5.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "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",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/ionicons": {
+ "version": "7.4.0",
+ "license": "MIT",
+ "dependencies": {
+ "@stencil/core": "^4.0.3"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "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",
+ "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",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/loupe": {
+ "version": "3.2.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.20",
+ "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",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.64",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "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",
+ "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",
+ "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",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/pathval": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14.16"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.33",
+ "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.20",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.2"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.3.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.3.1",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.28.0"
+ },
+ "peerDependencies": {
+ "react": "^19.3.1"
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.18.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.68.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.10"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.68.3",
+ "@rollup/rollup-android-arm64": "4.68.3",
+ "@rollup/rollup-android-x64": "4.68.3",
+ "@rollup/rollup-darwin-arm64": "4.68.3",
+ "@rollup/rollup-darwin-x64": "4.68.3",
+ "@rollup/rollup-freebsd-arm64": "4.68.3",
+ "@rollup/rollup-freebsd-x64": "4.68.3",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.68.3",
+ "@rollup/rollup-linux-arm-musleabihf": "4.68.3",
+ "@rollup/rollup-linux-arm64-gnu": "4.68.3",
+ "@rollup/rollup-linux-arm64-musl": "4.68.3",
+ "@rollup/rollup-linux-loong64-gnu": "4.68.3",
+ "@rollup/rollup-linux-loong64-musl": "4.68.3",
+ "@rollup/rollup-linux-ppc64-gnu": "4.68.3",
+ "@rollup/rollup-linux-ppc64-musl": "4.68.3",
+ "@rollup/rollup-linux-riscv64-gnu": "4.68.3",
+ "@rollup/rollup-linux-riscv64-musl": "4.68.3",
+ "@rollup/rollup-linux-s390x-gnu": "4.68.3",
+ "@rollup/rollup-linux-x64-gnu": "4.68.3",
+ "@rollup/rollup-linux-x64-musl": "4.68.3",
+ "@rollup/rollup-openbsd-x64": "4.68.3",
+ "@rollup/rollup-openharmony-arm64": "4.68.3",
+ "@rollup/rollup-win32-arm64-msvc": "4.68.3",
+ "@rollup/rollup-win32-ia32-msvc": "4.68.3",
+ "@rollup/rollup-win32-x64-gnu": "4.68.3",
+ "@rollup/rollup-win32-x64-msvc": "4.68.3",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.68.3.tgz",
+ "integrity": "sha512-dra5zl0QWKkIkaMgNDNPC19gkMlPAfAf41yWlkGztXMIvUQrX9XWZFQRw7abhH3nks+XZGQpybINAxT2pKdFew==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.68.3.tgz",
+ "integrity": "sha512-xo5xeo/AjEB/ArzQjGn0JRDZuybZicQ5O3VPfko6ocH1li/qNrN4p5+R/WgjavzRz6UwAOaqsau7VvRQA6i6AA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.68.3.tgz",
+ "integrity": "sha512-q4Q4/B7wyqM+TFqY5tJYQlaz5+ksGopcRmMeMdu4q6eaPK7N1PymTjIaH5LL32mMJBqIzpRof7BhlYLim5JgNQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.68.3.tgz",
+ "integrity": "sha512-Ich3TGl/7GqhQ6G6jVPzgGQGJjd3E5hECxSVanPYchy6Vwcq+WI8wG/gmEMilHNy+ZYCR6U8EN50EejG3TaIgw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.68.3",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.68.3.tgz",
+ "integrity": "sha512-eUXzaeNQbKXKNqseL3g/usUqOPmRu+DbQsvwr9MXMdV+VQFUNb9bcWSNAAs/TRV95PCbFK46kLzHEOhFSzujsg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.68.3.tgz",
+ "integrity": "sha512-G2xnmxGnU8XHLwtjnnXNRcLrub+Af3nm9VQ1QzL2aEiAL7woBdRgTCZBslJl8umA+YMqdEFpUh9kJB/Vyzk2wQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/rollup/node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.68.3",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.68.3.tgz",
+ "integrity": "sha512-ADb1Uz2MNM0sxVpAlMNdQG16Hw4sgW1aqVL7NeqBMpcZeiHb192d7W6shZdMQs33D+w9ihDYBBPsYqqc4MlD8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/scheduler": {
+ "version": "0.28.0",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.2",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/siginfo": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.2",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stackback": {
+ "version": "0.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/std-env": {
+ "version": "3.10.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strip-literal": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^9.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/strip-literal/node_modules/js-tokens": {
+ "version": "9.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tinybench": {
+ "version": "2.9.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "0.3.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.17",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinypool": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ }
+ },
+ "node_modules/tinyrainbow": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tinyspy": {
+ "version": "4.0.6",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/ts-api-utils": {
+ "version": "2.5.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.9.1",
+ "license": "0BSD"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.72.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.72.2",
+ "@typescript-eslint/parser": "8.72.2",
+ "@typescript-eslint/typescript-estree": "8.72.2",
+ "@typescript-eslint/utils": "8.72.2"
+ },
+ "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 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.3.4",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/vite": {
+ "version": "7.3.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.27.0 || ^0.28.0",
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3",
+ "postcss": "^8.5.6",
+ "rollup": "^4.43.0",
+ "tinyglobby": "^0.2.15"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "lightningcss": "^1.21.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "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.2.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cac": "^6.7.14",
+ "debug": "^4.4.1",
+ "es-module-lexer": "^1.7.0",
+ "pathe": "^2.0.3",
+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.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.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/chai": "^5.2.2",
+ "@vitest/expect": "3.2.7",
+ "@vitest/mocker": "3.2.7",
+ "@vitest/pretty-format": "^3.2.7",
+ "@vitest/runner": "3.2.7",
+ "@vitest/snapshot": "3.2.7",
+ "@vitest/spy": "3.2.7",
+ "@vitest/utils": "3.2.7",
+ "chai": "^5.2.0",
+ "debug": "^4.4.1",
+ "expect-type": "^1.2.1",
+ "magic-string": "^0.30.17",
+ "pathe": "^2.0.3",
+ "picomatch": "^4.0.2",
+ "std-env": "^3.9.0",
+ "tinybench": "^2.9.0",
+ "tinyexec": "^0.3.2",
+ "tinyglobby": "^0.2.14",
+ "tinypool": "^1.1.1",
+ "tinyrainbow": "^2.0.0",
+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",
+ "vite-node": "3.2.4",
+ "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.2.7",
+ "@vitest/ui": "3.2.7",
+ "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",
+ "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",
+ "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",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "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..9c9631f
--- /dev/null
+++ b/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "beat-hound",
+ "private": true,
+ "version": "1.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite --host 0.0.0.0",
+ "build": "tsc --noEmit && vite build",
+ "test": "vitest run",
+ "lint": "eslint ."
+ },
+ "dependencies": {
+ "@ionic/react": "^8.7.6",
+ "ionicons": "^7.4.0",
+ "react": "^19.1.1",
+ "react-dom": "^19.1.1"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.35.0",
+ "@types/react": "^19.1.10",
+ "@types/react-dom": "^19.1.7",
+ "@vitejs/plugin-react": "^5.0.2",
+ "eslint": "^9.35.0",
+ "eslint-plugin-react-hooks": "^5.2.0",
+ "eslint-plugin-react-refresh": "^0.4.20",
+ "globals": "^16.3.0",
+ "typescript": "^5.9.2",
+ "typescript-eslint": "^8.42.0",
+ "vite": "^7.1.4",
+ "vitest": "^3.2.4"
+ }
+}
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 0000000..097de02
Binary files /dev/null and b/public/apple-touch-icon.png differ
diff --git a/public/assets/icons/icon-192x192.png b/public/assets/icons/icon-192x192.png
new file mode 100644
index 0000000..ddbcd62
Binary files /dev/null and b/public/assets/icons/icon-192x192.png differ
diff --git a/public/assets/icons/icon-512x512.png b/public/assets/icons/icon-512x512.png
new file mode 100644
index 0000000..93f02e4
Binary files /dev/null and b/public/assets/icons/icon-512x512.png differ
diff --git a/public/assets/icons/maskable-icon-192x192.png b/public/assets/icons/maskable-icon-192x192.png
new file mode 100644
index 0000000..a78464e
Binary files /dev/null and b/public/assets/icons/maskable-icon-192x192.png differ
diff --git a/public/assets/icons/maskable-icon-512x512.png b/public/assets/icons/maskable-icon-512x512.png
new file mode 100644
index 0000000..e6af8d6
Binary files /dev/null and b/public/assets/icons/maskable-icon-512x512.png differ
diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png
new file mode 100644
index 0000000..0023cea
Binary files /dev/null and b/public/favicon-16x16.png differ
diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png
new file mode 100644
index 0000000..ed69c04
Binary files /dev/null and b/public/favicon-32x32.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 0000000..fd55c1f
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 0000000..3782178
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1 @@
+BeatHound
diff --git a/public/logo/logo-horizontal-dark-notagline.svg b/public/logo/logo-horizontal-dark-notagline.svg
new file mode 100644
index 0000000..10f904b
--- /dev/null
+++ b/public/logo/logo-horizontal-dark-notagline.svg
@@ -0,0 +1 @@
+BeatHound – Sharpen your sense of rhythm
diff --git a/public/logo/logo-horizontal-light-notagline.svg b/public/logo/logo-horizontal-light-notagline.svg
new file mode 100644
index 0000000..032fced
--- /dev/null
+++ b/public/logo/logo-horizontal-light-notagline.svg
@@ -0,0 +1 @@
+BeatHound – Sharpen your sense of rhythm
diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest
new file mode 100644
index 0000000..3fd9ff9
--- /dev/null
+++ b/public/manifest.webmanifest
@@ -0,0 +1,37 @@
+{
+ "name": "BeatHound",
+ "short_name": "BeatHound",
+ "description": "Sharpen your sense of rhythm by placing and moving beats.",
+ "start_url": "/",
+ "scope": "/",
+ "display": "standalone",
+ "orientation": "any",
+ "background_color": "#111116",
+ "theme_color": "#111116",
+ "icons": [
+ {
+ "src": "/assets/icons/icon-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "any"
+ },
+ {
+ "src": "/assets/icons/icon-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "any"
+ },
+ {
+ "src": "/assets/icons/maskable-icon-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
+ {
+ "src": "/assets/icons/maskable-icon-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ]
+}
diff --git a/public/og-image.png b/public/og-image.png
new file mode 100644
index 0000000..6fabcde
Binary files /dev/null and b/public/og-image.png differ
diff --git a/src/App.tsx b/src/App.tsx
new file mode 100644
index 0000000..7c65c58
--- /dev/null
+++ b/src/App.tsx
@@ -0,0 +1,60 @@
+import { IonApp, IonContent, IonPage } from '@ionic/react';
+import { BeatLoopPanel } from './components/BeatLoopPanel';
+import { BeatTemplateSelector } from './components/BeatTemplateSelector';
+import { TransportBar } from './components/TransportBar';
+import { useBeatStudio } from './hooks/useBeatStudio';
+
+function App() {
+ const studio = useBeatStudio();
+
+ return (
+
+
+
+
+
+
+
+
+ Sharpen your sense of rhythm
+
+
+
+
+
Build a beat.
+
Choose a dance template
+
+
0 ? ' is-hidden' : ''}`}
+ aria-hidden={studio.sequencer.beats.length > 0}
+ >
+ Add a sound, then move it around the loop.
+
+
+
+
+
+ {studio.sequencer.audioError && (
+ {studio.sequencer.audioError}
+ )}
+
+
+
+
+ 0}
+ onTogglePlayback={studio.sequencer.togglePlayback}
+ onAddSound={studio.addSound}
+ />
+
+
+ );
+}
+
+export default App;
diff --git a/src/audio/AudioEngine.ts b/src/audio/AudioEngine.ts
new file mode 100644
index 0000000..ccc0654
--- /dev/null
+++ b/src/audio/AudioEngine.ts
@@ -0,0 +1,43 @@
+import type { SoundId } from '../domain/sounds';
+import { SOUND_VOICES } from './soundVoices';
+
+type AudioWindow = Window & typeof globalThis & {
+ webkitAudioContext?: typeof AudioContext;
+};
+
+export class AudioEngine {
+ private context: AudioContext | null = null;
+
+ async start(): Promise {
+ if (typeof window === 'undefined') {
+ throw new Error('Web Audio is not available in this browser.');
+ }
+
+ const audioWindow = window as AudioWindow;
+ const AudioContextConstructor = audioWindow.AudioContext ?? audioWindow.webkitAudioContext;
+ if (!AudioContextConstructor) {
+ throw new Error('Web Audio is not available in this browser.');
+ }
+
+ if (!this.context || this.context.state === 'closed') {
+ this.context = new AudioContextConstructor();
+ }
+
+ const context = this.context;
+ await context.resume();
+ if (context.state !== 'running') {
+ throw new Error('The browser did not enable audio playback.');
+ }
+ }
+
+ play(soundId: SoundId): void {
+ if (this.context?.state !== 'running') return;
+ SOUND_VOICES[soundId](this.context);
+ }
+
+ async dispose(): Promise {
+ const context = this.context;
+ this.context = null;
+ if (context && context.state !== 'closed') await context.close();
+ }
+}
diff --git a/src/audio/instruments.ts b/src/audio/instruments.ts
new file mode 100644
index 0000000..3cc0988
--- /dev/null
+++ b/src/audio/instruments.ts
@@ -0,0 +1,53 @@
+export function playKick(context: AudioContext): void {
+ const now = context.currentTime;
+ const oscillator = context.createOscillator();
+ const transient = context.createOscillator();
+ const gain = context.createGain();
+ const transientGain = context.createGain();
+
+ oscillator.type = 'sine';
+ oscillator.frequency.setValueAtTime(175, now);
+ oscillator.frequency.exponentialRampToValueAtTime(62, now + 0.16);
+ gain.gain.setValueAtTime(0.0001, now);
+ gain.gain.exponentialRampToValueAtTime(0.95, now + 0.008);
+ gain.gain.exponentialRampToValueAtTime(0.0001, now + 0.32);
+ oscillator.connect(gain);
+ gain.connect(context.destination);
+ oscillator.start(now);
+ oscillator.stop(now + 0.33);
+
+ transient.type = 'triangle';
+ transient.frequency.setValueAtTime(850, now);
+ transient.frequency.exponentialRampToValueAtTime(180, now + 0.025);
+ transientGain.gain.setValueAtTime(0.18, now);
+ transientGain.gain.exponentialRampToValueAtTime(0.0001, now + 0.03);
+ transient.connect(transientGain);
+ transientGain.connect(context.destination);
+ transient.start(now);
+ transient.stop(now + 0.035);
+}
+
+export function playHiHat(context: AudioContext): void {
+ const now = context.currentTime;
+ const duration = 0.075;
+ const buffer = context.createBuffer(1, Math.ceil(context.sampleRate * duration), context.sampleRate);
+ const channel = buffer.getChannelData(0);
+ for (let index = 0; index < channel.length; index += 1) {
+ channel[index] = Math.random() * 2 - 1;
+ }
+
+ const source = context.createBufferSource();
+ const filter = context.createBiquadFilter();
+ const gain = context.createGain();
+ source.buffer = buffer;
+ filter.type = 'highpass';
+ filter.frequency.setValueAtTime(5500, now);
+ gain.gain.setValueAtTime(0.0001, now);
+ gain.gain.exponentialRampToValueAtTime(0.38, now + 0.004);
+ gain.gain.exponentialRampToValueAtTime(0.0001, now + duration);
+ source.connect(filter);
+ filter.connect(gain);
+ gain.connect(context.destination);
+ source.start(now);
+ source.stop(now + duration);
+}
diff --git a/src/audio/soundVoices.ts b/src/audio/soundVoices.ts
new file mode 100644
index 0000000..1739430
--- /dev/null
+++ b/src/audio/soundVoices.ts
@@ -0,0 +1,9 @@
+import type { SoundId } from '../domain/sounds';
+import { playHiHat, playKick } from './instruments';
+
+export type SoundVoice = (context: AudioContext) => void;
+
+export const SOUND_VOICES: Record = {
+ 'hi-hat': playHiHat,
+ kick: playKick,
+};
diff --git a/src/components/BeatLoopPanel.tsx b/src/components/BeatLoopPanel.tsx
new file mode 100644
index 0000000..ee72804
--- /dev/null
+++ b/src/components/BeatLoopPanel.tsx
@@ -0,0 +1,117 @@
+import { useMemo } from 'react';
+import { IonButton, IonIcon } from '@ionic/react';
+import { trash } from 'ionicons/icons';
+import { BeatSelectionHint } from './BeatSelectionHint';
+import { CircularTimeline } from './CircularTimeline';
+import { SoundRingSelector } from './SoundRingSelector';
+import { TempoControl } from './TempoControl';
+import { TimeSignatureSelector } from './TimeSignatureSelector';
+import { SOUND_BY_ID, SOUND_CATALOG } from '../domain/sounds';
+import type { BeatSequencer } from '../hooks/useBeatSequencer';
+import type { SoundPalette } from '../hooks/useSoundPalette';
+
+interface BeatLoopPanelProps {
+ sequencer: BeatSequencer;
+ soundPalette: SoundPalette;
+}
+
+export function BeatLoopPanel({ sequencer, soundPalette }: BeatLoopPanelProps) {
+ const soundIdsInLoop = useMemo(() => {
+ const soundsInLoop = new Set(sequencer.beats.map((beat) => beat.soundId));
+ return SOUND_CATALOG
+ .filter((sound) => soundsInLoop.has(sound.id))
+ .map((sound) => sound.id);
+ }, [sequencer.beats]);
+ const legendSounds = useMemo(() => {
+ const soundsInLoop = new Set(soundIdsInLoop);
+ return soundPalette.activeSounds.filter((sound) => soundsInLoop.has(sound.id));
+ }, [soundPalette.activeSounds, soundIdsInLoop]);
+ const focusedRingSoundId = sequencer.focusedSoundId
+ && soundIdsInLoop.includes(sequencer.focusedSoundId)
+ ? sequencer.focusedSoundId
+ : null;
+ const hasDeleteTarget = Boolean(sequencer.selectedBeat || focusedRingSoundId);
+ const deleteLabel = sequencer.selectedBeat
+ ? `Remove ${SOUND_BY_ID[sequencer.selectedBeat.soundId].label}`
+ : focusedRingSoundId
+ ? `Remove ${SOUND_BY_ID[focusedRingSoundId].label} ring`
+ : 'Remove sound';
+
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {hasDeleteTarget ? (
+
+
+
+ ) : (
+
+ )}
+
+
+
+
+
+ {legendSounds.length > 0 ? (
+ legendSounds.map((activeSound) => (
+
+
+ {SOUND_BY_ID[activeSound.id].label}
+
+ ))
+ ) : (
+ Your added sounds will appear here.
+ )}
+
+ >
+ );
+}
diff --git a/src/components/BeatSelectionHint.tsx b/src/components/BeatSelectionHint.tsx
new file mode 100644
index 0000000..f9ad4d7
--- /dev/null
+++ b/src/components/BeatSelectionHint.tsx
@@ -0,0 +1,39 @@
+import { memo } from 'react';
+import { getLoopPositionPercent } from '../domain/timeline';
+import { SOUND_BY_ID } from '../domain/sounds';
+import type { BeatPoint } from '../domain/sequencer';
+import type { SoundId } from '../domain/sounds';
+
+interface BeatSelectionHintProps {
+ selectedBeat: BeatPoint | undefined;
+ focusedSoundId: SoundId | null;
+ colorBySoundId: Partial>;
+ totalSteps: number;
+}
+
+export const BeatSelectionHint = memo(function BeatSelectionHint({
+ selectedBeat,
+ focusedSoundId,
+ colorBySoundId,
+ totalSteps,
+}: BeatSelectionHintProps) {
+ const soundId = selectedBeat?.soundId ?? focusedSoundId;
+ if (!soundId) return
;
+
+ return (
+
+
+ {SOUND_BY_ID[soundId].label}
+ {selectedBeat && (
+ <>
+ ·
+ Step {getLoopPositionPercent(selectedBeat.step, totalSteps)}% selected
+ >
+ )}
+ {!selectedBeat && ' ring selected'}
+
+ );
+});
diff --git a/src/components/BeatTemplateSelector.tsx b/src/components/BeatTemplateSelector.tsx
new file mode 100644
index 0000000..c18ee0a
--- /dev/null
+++ b/src/components/BeatTemplateSelector.tsx
@@ -0,0 +1,74 @@
+import { memo, useState } from 'react';
+import { IonButton, IonIcon, IonPopover } from '@ionic/react';
+import { chevronDown } from 'ionicons/icons';
+import { BEAT_TEMPLATES } from '../domain/beatTemplates';
+import type { BeatTemplate, BeatTemplateId } from '../domain/beatTemplates';
+import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
+
+interface BeatTemplateSelectorProps {
+ onSelectTemplate: (template: BeatTemplate) => void;
+}
+
+export const BeatTemplateSelector = memo(function BeatTemplateSelector({
+ onSelectTemplate,
+}: BeatTemplateSelectorProps) {
+ const popover = usePopoverDisclosure();
+ const [selectedTemplateId, setSelectedTemplateId] = useState(BEAT_TEMPLATES[0].id);
+ const selectedTemplate = BEAT_TEMPLATES.find((template) => template.id === selectedTemplateId);
+
+ function selectTemplate(template: BeatTemplate): void {
+ setSelectedTemplateId(template.id);
+ onSelectTemplate(template);
+ }
+
+ return (
+
+
+
+ {selectedTemplate?.label ?? 'Dance templates'}
+
+
+
+
+
+
+ {BEAT_TEMPLATES.map((template) => (
+ selectTemplate(template)}
+ >
+
+
+ {template.label}
+ {template.description}
+
+
+ {template.beatsPerBar}/4 · {template.tempoBpm} BPM
+
+
+
+ ))}
+
+
+
+ );
+});
diff --git a/src/components/CircularTimeline.tsx b/src/components/CircularTimeline.tsx
new file mode 100644
index 0000000..587cc4d
--- /dev/null
+++ b/src/components/CircularTimeline.tsx
@@ -0,0 +1,218 @@
+import { useRef } from 'react';
+import type { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent } from 'react';
+import type { BeatPoint } from '../domain/sequencer';
+import {
+ PLAYBACK_SUBSTEPS_PER_STEP,
+ STEPS_PER_BEAT,
+} from '../domain/sequencer';
+import {
+ getPointForStep,
+ getLoopPositionPercent,
+ getSoundOrbitRadius,
+ getStepFromPosition,
+ ORBIT_RADIUS,
+ SVG_CENTER,
+ SVG_SIZE,
+ getStackedPosition,
+ wrapStepPosition,
+} from '../domain/timeline';
+import { SOUND_BY_ID } from '../domain/sounds';
+import type { SoundId } from '../domain/sounds';
+
+interface CircularTimelineProps {
+ beats: BeatPoint[];
+ soundIds: readonly SoundId[];
+ colorBySoundId: Partial>;
+ currentStep: number;
+ totalSteps: number;
+ focusedSoundId: SoundId | null;
+ selectedBeatId: string | null;
+ onMoveBeat: (beatId: string, step: number) => void;
+ onSelectBeat: (beatId: string) => void;
+ onSelectSound: (soundId: SoundId) => void;
+}
+
+function getPointerCoordinates(event: ReactPointerEvent) {
+ const bounds = event.currentTarget.getBoundingClientRect();
+ return {
+ x: ((event.clientX - bounds.left) / bounds.width) * SVG_SIZE,
+ y: ((event.clientY - bounds.top) / bounds.height) * SVG_SIZE,
+ };
+}
+
+export function CircularTimeline({
+ beats,
+ soundIds,
+ colorBySoundId,
+ currentStep,
+ totalSteps,
+ focusedSoundId,
+ selectedBeatId,
+ onMoveBeat,
+ onSelectBeat,
+ onSelectSound,
+}: CircularTimelineProps) {
+ const draggingBeatIdRef = useRef(null);
+ const selectedBeatSoundId = beats.find((beat) => beat.id === selectedBeatId)?.soundId;
+ const activeSoundId = selectedBeatSoundId ?? focusedSoundId;
+ const orderedSoundIds = activeSoundId
+ ? [
+ ...soundIds.filter((soundId) => soundId === activeSoundId),
+ ...soundIds.filter((soundId) => soundId !== activeSoundId),
+ ]
+ : soundIds;
+
+ function handlePointerDown(event: ReactPointerEvent, beatId: string): void {
+ event.preventDefault();
+ event.stopPropagation();
+ draggingBeatIdRef.current = beatId;
+ onSelectBeat(beatId);
+ event.currentTarget.setPointerCapture(event.pointerId);
+ }
+
+ function handlePointerMove(event: ReactPointerEvent): void {
+ const beatId = draggingBeatIdRef.current;
+ if (!beatId) return;
+
+ const { x, y } = getPointerCoordinates(event);
+ onMoveBeat(beatId, getStepFromPosition(x, y, SVG_CENTER, totalSteps));
+ }
+
+ function handleMarkerKeyDown(event: ReactKeyboardEvent, beat: BeatPoint): void {
+ let nextStep: number | null = null;
+ const stepSize = event.shiftKey ? 1 : 1 / PLAYBACK_SUBSTEPS_PER_STEP;
+ if (event.key === 'ArrowRight' || event.key === 'ArrowDown') {
+ nextStep = wrapStepPosition(beat.step + stepSize, totalSteps);
+ }
+ if (event.key === 'ArrowLeft' || event.key === 'ArrowUp') {
+ nextStep = wrapStepPosition(beat.step - stepSize, totalSteps);
+ }
+ if (nextStep === null) return;
+
+ event.preventDefault();
+ onSelectBeat(beat.id);
+ onMoveBeat(beat.id, nextStep);
+ }
+
+ function handleOrbitKeyDown(event: ReactKeyboardEvent, soundId: SoundId): void {
+ if (event.key !== 'Enter' && event.key !== ' ') return;
+ event.preventDefault();
+ onSelectSound(soundId);
+ }
+
+ return (
+ { draggingBeatIdRef.current = null; }}
+ onPointerCancel={() => { draggingBeatIdRef.current = null; }}
+ >
+ {orderedSoundIds.map((soundId, soundIndex) => (
+
+ ))}
+
+ {Array.from({ length: totalSteps * PLAYBACK_SUBSTEPS_PER_STEP }, (_, tick) => {
+ const step = tick / PLAYBACK_SUBSTEPS_PER_STEP;
+ const major = tick % (STEPS_PER_BEAT * PLAYBACK_SUBSTEPS_PER_STEP) === 0;
+ const fullStep = tick % PLAYBACK_SUBSTEPS_PER_STEP === 0;
+ const inner = getPointForStep(step, ORBIT_RADIUS + 11, SVG_CENTER, totalSteps);
+ const outer = getPointForStep(
+ step,
+ ORBIT_RADIUS + (major ? 24 : fullStep ? 18 : 14),
+ SVG_CENTER,
+ totalSteps,
+ );
+ const label = getPointForStep(step, ORBIT_RADIUS + 53, SVG_CENTER, totalSteps);
+ return (
+
+
+ {major && (
+
+ {String(Math.floor(step + 1)).padStart(2, '0')}
+
+ )}
+
+ );
+ })}
+
+ {orderedSoundIds.map((soundId, soundIndex) => (
+ onSelectSound(soundId)}
+ onKeyDown={(event) => handleOrbitKeyDown(event, soundId)}
+ onFocus={() => onSelectSound(soundId)}
+ />
+ ))}
+
+ {currentStep >= 0 && (() => {
+ const cursor = getPointForStep(currentStep, ORBIT_RADIUS + 1, SVG_CENTER, totalSteps);
+ return (
+
+
+
+
+ );
+ })()}
+
+ {beats.map((beat) => {
+ const sound = SOUND_BY_ID[beat.soundId];
+ const soundIndex = orderedSoundIds.indexOf(beat.soundId);
+ const point = getStackedPosition(
+ beat,
+ beats,
+ totalSteps,
+ getSoundOrbitRadius(soundIndex, orderedSoundIds.length),
+ );
+ const selected = selectedBeatId === beat.id;
+ return (
+ handlePointerDown(event, beat.id)}
+ onClick={() => onSelectBeat(beat.id)}
+ onKeyDown={(event) => handleMarkerKeyDown(event, beat)}
+ onFocus={() => onSelectBeat(beat.id)}
+ >
+
+
+
+ );
+ })}
+
+
+ );
+}
diff --git a/src/components/SoundRingSelector.tsx b/src/components/SoundRingSelector.tsx
new file mode 100644
index 0000000..b6514af
--- /dev/null
+++ b/src/components/SoundRingSelector.tsx
@@ -0,0 +1,82 @@
+import { memo } from 'react';
+import { IonButton, IonIcon, IonPopover } from '@ionic/react';
+import { chevronDown } from 'ionicons/icons';
+import { SOUND_BY_ID } from '../domain/sounds';
+import type { SoundId } from '../domain/sounds';
+import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
+
+interface SoundRingSelectorProps {
+ soundIds: SoundId[];
+ focusedSoundId: SoundId | null;
+ colorBySoundId: Partial>;
+ onSelectSound: (soundId: SoundId) => void;
+}
+
+export const SoundRingSelector = memo(function SoundRingSelector({
+ soundIds,
+ focusedSoundId,
+ colorBySoundId,
+ onSelectSound,
+}: SoundRingSelectorProps) {
+ const popover = usePopoverDisclosure();
+ const focusedSound = focusedSoundId ? SOUND_BY_ID[focusedSoundId] : undefined;
+
+ return (
+ <>
+
+
+ {focusedSoundId && (
+
+ )}
+ {focusedSound ? `${focusedSound.label} ring` : 'Sound rings'}
+
+
+
+
+
+
+ {soundIds.map((soundId) => {
+ const selected = soundId === focusedSoundId;
+ return (
+ onSelectSound(soundId)}
+ >
+
+
+ {SOUND_BY_ID[soundId].label} ring
+
+
+ );
+ })}
+
+
+ >
+ );
+});
diff --git a/src/components/TempoControl.tsx b/src/components/TempoControl.tsx
new file mode 100644
index 0000000..f1e23d6
--- /dev/null
+++ b/src/components/TempoControl.tsx
@@ -0,0 +1,59 @@
+import { memo } from 'react';
+import { IonButton, IonIcon, IonPopover, IonRange } from '@ionic/react';
+import { chevronDown } from 'ionicons/icons';
+import { MAX_TEMPO_BPM, MIN_TEMPO_BPM } from '../domain/sequencer';
+import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
+
+interface TempoControlProps {
+ tempoBpm: number;
+ onTempoChange: (tempoBpm: number) => void;
+}
+
+export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange }: TempoControlProps) {
+ const popover = usePopoverDisclosure();
+
+ return (
+ <>
+
+
+ {tempoBpm} BPM
+
+
+
+
+
+
+
{tempoBpm} BPM
+
+ {
+ if (typeof event.detail.value === 'number') onTempoChange(event.detail.value);
+ }}
+ />
+
+
+
+ >
+ );
+});
diff --git a/src/components/TimeSignatureSelector.tsx b/src/components/TimeSignatureSelector.tsx
new file mode 100644
index 0000000..e201807
--- /dev/null
+++ b/src/components/TimeSignatureSelector.tsx
@@ -0,0 +1,61 @@
+import { memo } from 'react';
+import { IonButton, IonIcon, IonPopover } from '@ionic/react';
+import { chevronDown } from 'ionicons/icons';
+import { BEATS_PER_BAR_OPTIONS } from '../domain/sequencer';
+import type { BeatsPerBar } from '../domain/sequencer';
+import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
+
+interface TimeSignatureSelectorProps {
+ beatsPerBar: BeatsPerBar;
+ onChange: (beatsPerBar: BeatsPerBar) => void;
+}
+
+export const TimeSignatureSelector = memo(function TimeSignatureSelector({
+ beatsPerBar,
+ onChange,
+}: TimeSignatureSelectorProps) {
+ const popover = usePopoverDisclosure();
+
+ return (
+ <>
+
+
+ Time signature {beatsPerBar}/4
+
+
+
+
+
+
+ {BEATS_PER_BAR_OPTIONS.map((option) => (
+ onChange(option)}
+ >
+ {option}/4
+
+ ))}
+
+
+ >
+ );
+});
diff --git a/src/components/TransportBar.tsx b/src/components/TransportBar.tsx
new file mode 100644
index 0000000..32026b5
--- /dev/null
+++ b/src/components/TransportBar.tsx
@@ -0,0 +1,67 @@
+import { memo } from 'react';
+import {
+ IonFab,
+ IonButton,
+ IonFabButton,
+ IonFabList,
+ IonFooter,
+ IonIcon,
+ IonToolbar,
+} from '@ionic/react';
+import { add, musicalNotes, pause, play } from 'ionicons/icons';
+import type { SoundId } from '../domain/sounds';
+import { SOUND_CATALOG } from '../domain/sounds';
+
+interface TransportBarProps {
+ isPlaying: boolean;
+ isStarting: boolean;
+ hasBeats: boolean;
+ onTogglePlayback: () => Promise;
+ onAddSound: (soundId: SoundId) => void;
+}
+
+export const TransportBar = memo(function TransportBar({
+ isPlaying,
+ isStarting,
+ hasBeats,
+ onTogglePlayback,
+ onAddSound,
+}: TransportBarProps) {
+ return (
+
+
+
+ void onTogglePlayback()}
+ disabled={isStarting || !hasBeats}
+ >
+
+ {isStarting ? 'Starting' : isPlaying ? 'Pause' : 'Play'}
+
+
+
+
+
+
+
+
+
+ {SOUND_CATALOG.map((sound) => (
+ onAddSound(sound.id)}
+ >
+
+
+ {sound.label}
+
+
+ ))}
+
+
+
+ );
+});
diff --git a/src/domain/beatTemplates.ts b/src/domain/beatTemplates.ts
new file mode 100644
index 0000000..62f7c7e
--- /dev/null
+++ b/src/domain/beatTemplates.ts
@@ -0,0 +1,54 @@
+import { DEFAULT_BEATS_PER_BAR, TEMPO_BPM } from './sequencer';
+import type { BeatsPerBar } from './sequencer';
+import type { SoundId } from './sounds';
+
+export interface TemplateBeat {
+ soundId: SoundId;
+ step: number;
+}
+
+export type BeatTemplateId = 'empty' | 'bachata' | 'salsa' | 'lindy-hop';
+
+export interface BeatTemplate {
+ id: BeatTemplateId;
+ label: string;
+ description: string;
+ beatsPerBar: BeatsPerBar;
+ tempoBpm: number;
+ beats: readonly TemplateBeat[];
+}
+
+export const BEAT_TEMPLATES = [
+ {
+ id: 'empty',
+ label: 'Empty',
+ description: 'Clear the current loop.',
+ beatsPerBar: DEFAULT_BEATS_PER_BAR,
+ tempoBpm: TEMPO_BPM,
+ beats: [],
+ },
+ {
+ id: 'bachata',
+ label: 'Bachata',
+ description: 'Kick on beats 1, 2, 3, and 4.',
+ beatsPerBar: DEFAULT_BEATS_PER_BAR,
+ tempoBpm: 120,
+ beats: [0, 4, 8, 12].map((step) => ({ soundId: 'kick', step })),
+ },
+ {
+ id: 'salsa',
+ label: 'Salsa',
+ description: 'Kick on beats 1, 2, and 3.',
+ beatsPerBar: DEFAULT_BEATS_PER_BAR,
+ tempoBpm: 180,
+ beats: [0, 4, 8].map((step) => ({ soundId: 'kick', step })),
+ },
+ {
+ id: 'lindy-hop',
+ label: 'Lindy Hop',
+ description: 'Kick on beats 1–8.',
+ beatsPerBar: 8,
+ tempoBpm: 120,
+ beats: [0, 4, 8, 12, 16, 20, 24, 28].map((step) => ({ soundId: 'kick', step })),
+ },
+] as const satisfies readonly BeatTemplate[];
diff --git a/src/domain/sequencer.ts b/src/domain/sequencer.ts
new file mode 100644
index 0000000..0034c4d
--- /dev/null
+++ b/src/domain/sequencer.ts
@@ -0,0 +1,40 @@
+import type { SoundId } from './sounds';
+
+export const STEPS_PER_BEAT = 4;
+export const PLAYBACK_SUBSTEPS_PER_STEP = 4;
+export const DEFAULT_BEATS_PER_BAR = 4;
+export const BEATS_PER_BAR_OPTIONS = [2, 3, 4, 5, 6, 7, 8] as const;
+export type BeatsPerBar = (typeof BEATS_PER_BAR_OPTIONS)[number];
+export const TOTAL_STEPS = DEFAULT_BEATS_PER_BAR * STEPS_PER_BEAT;
+export const TEMPO_BPM = 112;
+export const MIN_TEMPO_BPM = 60;
+export const MAX_TEMPO_BPM = 180;
+
+export function getTotalSteps(beatsPerBar: BeatsPerBar): number {
+ return beatsPerBar * STEPS_PER_BEAT;
+}
+
+export function clampTempoBpm(tempoBpm: number): number {
+ return Math.min(MAX_TEMPO_BPM, Math.max(MIN_TEMPO_BPM, Math.round(tempoBpm)));
+}
+
+export function getPlaybackTickDurationMs(tempoBpm: number): number {
+ return 60_000 / tempoBpm / STEPS_PER_BEAT / PLAYBACK_SUBSTEPS_PER_STEP;
+}
+
+export interface BeatPoint {
+ id: string;
+ soundId: SoundId;
+ /** Position in sixteenth-note steps; fractional values represent microtiming. */
+ step: number;
+}
+
+export function getNextAvailableStep(
+ beats: readonly BeatPoint[],
+ totalSteps = TOTAL_STEPS,
+): number {
+ const occupiedSteps = new Set(beats.map((beat) => beat.step));
+ const nextStep = Array.from({ length: totalSteps }, (_, step) => step)
+ .find((step) => !occupiedSteps.has(step));
+ return nextStep ?? 0;
+}
diff --git a/src/domain/sequencerReducer.ts b/src/domain/sequencerReducer.ts
new file mode 100644
index 0000000..978b315
--- /dev/null
+++ b/src/domain/sequencerReducer.ts
@@ -0,0 +1,117 @@
+import { clampTempoBpm, DEFAULT_BEATS_PER_BAR, getTotalSteps, TEMPO_BPM } from './sequencer';
+import type { BeatsPerBar, BeatPoint } from './sequencer';
+import type { SoundId } from './sounds';
+
+export interface SequencerState {
+ beats: BeatPoint[];
+ selectedBeatId: string | null;
+ focusedSoundId: SoundId | null;
+ tempoBpm: number;
+ beatsPerBar: BeatsPerBar;
+}
+
+export type SequencerAction =
+ | { type: 'beat-added'; beat: BeatPoint }
+ | { type: 'beat-moved'; beatId: string; step: number }
+ | { type: 'beat-selected'; beatId: string }
+ | { type: 'sound-selected'; soundId: SoundId }
+ | { type: 'selected-beat-removed' }
+ | { type: 'focused-sound-removed' }
+ | { type: 'tempo-changed'; tempoBpm: number }
+ | { type: 'time-signature-changed'; beatsPerBar: BeatsPerBar }
+ | { type: 'template-loaded'; beats: BeatPoint[]; tempoBpm: number; beatsPerBar: BeatsPerBar };
+
+export function createInitialSequencerState(): SequencerState {
+ return {
+ beats: [],
+ selectedBeatId: null,
+ focusedSoundId: null,
+ tempoBpm: TEMPO_BPM,
+ beatsPerBar: DEFAULT_BEATS_PER_BAR,
+ };
+}
+
+function assertNever(action: never): never {
+ throw new Error(`Unhandled sequencer action: ${action}`);
+}
+
+export function sequencerReducer(state: SequencerState, action: SequencerAction): SequencerState {
+ switch (action.type) {
+ case 'beat-added':
+ return {
+ ...state,
+ beats: [...state.beats, action.beat],
+ selectedBeatId: action.beat.id,
+ focusedSoundId: action.beat.soundId,
+ };
+ case 'beat-moved':
+ return {
+ ...state,
+ beats: state.beats.map((beat) => (
+ beat.id === action.beatId ? { ...beat, step: action.step } : beat
+ )),
+ };
+ case 'beat-selected': {
+ const beat = state.beats.find((candidate) => candidate.id === action.beatId);
+ if (!beat) return state;
+ return { ...state, selectedBeatId: beat.id, focusedSoundId: beat.soundId };
+ }
+ case 'sound-selected':
+ return { ...state, focusedSoundId: action.soundId, selectedBeatId: null };
+ case 'selected-beat-removed': {
+ if (!state.selectedBeatId) return state;
+ const removedBeat = state.beats.find((beat) => beat.id === state.selectedBeatId);
+ if (!removedBeat) return { ...state, selectedBeatId: null };
+
+ const beats = state.beats.filter((beat) => beat.id !== removedBeat.id);
+ const soundRemains = beats.some((beat) => beat.soundId === removedBeat.soundId);
+ return {
+ ...state,
+ beats,
+ selectedBeatId: null,
+ focusedSoundId: state.focusedSoundId === removedBeat.soundId && !soundRemains
+ ? beats[0]?.soundId ?? null
+ : state.focusedSoundId,
+ };
+ }
+ case 'focused-sound-removed': {
+ if (!state.focusedSoundId) return state;
+ const beats = state.beats.filter((beat) => beat.soundId !== state.focusedSoundId);
+ return {
+ ...state,
+ beats,
+ selectedBeatId: null,
+ focusedSoundId: beats[0]?.soundId ?? null,
+ };
+ }
+ case 'tempo-changed':
+ return { ...state, tempoBpm: clampTempoBpm(action.tempoBpm) };
+ case 'time-signature-changed': {
+ const totalSteps = getTotalSteps(action.beatsPerBar);
+ const visibleBeats = state.beats.filter((beat) => beat.step < totalSteps);
+ const selectedBeat = visibleBeats.find((beat) => beat.id === state.selectedBeatId);
+ const focusedSoundRemains = visibleBeats.some((beat) => beat.soundId === state.focusedSoundId);
+ return {
+ ...state,
+ beatsPerBar: action.beatsPerBar,
+ selectedBeatId: selectedBeat?.id ?? null,
+ focusedSoundId: focusedSoundRemains
+ ? state.focusedSoundId
+ : visibleBeats[0]?.soundId ?? null,
+ };
+ }
+ case 'template-loaded': {
+ const firstBeat = action.beats[0];
+ return {
+ ...state,
+ beats: action.beats,
+ selectedBeatId: firstBeat?.id ?? null,
+ focusedSoundId: firstBeat?.soundId ?? null,
+ tempoBpm: clampTempoBpm(action.tempoBpm),
+ beatsPerBar: action.beatsPerBar,
+ };
+ }
+ default:
+ return assertNever(action);
+ }
+}
diff --git a/src/domain/soundColors.ts b/src/domain/soundColors.ts
new file mode 100644
index 0000000..321e5e1
--- /dev/null
+++ b/src/domain/soundColors.ts
@@ -0,0 +1,15 @@
+const FIRST_HUE = 18;
+const GOLDEN_ANGLE = 137.508;
+const HUE_CYCLE = 360;
+
+export function generateUniqueSoundColor(existingColors: readonly string[]): string {
+ const existing = new Set(existingColors);
+
+ for (let index = existingColors.length; index < existingColors.length + HUE_CYCLE; index += 1) {
+ const hue = ((FIRST_HUE + index * GOLDEN_ANGLE) % HUE_CYCLE).toFixed(2);
+ const color = `hsl(${hue} 76% 65%)`;
+ if (!existing.has(color)) return color;
+ }
+
+ throw new Error('Unable to generate a unique sound color.');
+}
diff --git a/src/domain/sounds.ts b/src/domain/sounds.ts
new file mode 100644
index 0000000..ef366c6
--- /dev/null
+++ b/src/domain/sounds.ts
@@ -0,0 +1,10 @@
+const SOUND_DEFINITIONS = {
+ 'hi-hat': { id: 'hi-hat', label: 'Hi-hat', description: 'Bright tick' },
+ kick: { id: 'kick', label: 'Kick', description: 'Low pulse' },
+} as const;
+
+export type SoundId = keyof typeof SOUND_DEFINITIONS;
+export type SoundDefinition = (typeof SOUND_DEFINITIONS)[SoundId];
+
+export const SOUND_BY_ID: Record = SOUND_DEFINITIONS;
+export const SOUND_CATALOG: readonly SoundDefinition[] = Object.values(SOUND_DEFINITIONS);
diff --git a/src/domain/timeline.ts b/src/domain/timeline.ts
new file mode 100644
index 0000000..87a62a6
--- /dev/null
+++ b/src/domain/timeline.ts
@@ -0,0 +1,74 @@
+import type { BeatPoint } from './sequencer';
+import {
+ PLAYBACK_SUBSTEPS_PER_STEP,
+ TOTAL_STEPS,
+} from './sequencer';
+
+export const SVG_SIZE = 600;
+export const SVG_CENTER = SVG_SIZE / 2;
+export const ORBIT_RADIUS = 216;
+
+const MARKER_STEP_OFFSET = 0.3;
+
+export interface CirclePoint {
+ x: number;
+ y: number;
+}
+
+export function getStepFromPosition(
+ x: number,
+ y: number,
+ center = SVG_CENTER,
+ totalSteps = TOTAL_STEPS,
+): number {
+ const angle = Math.atan2(y - center, x - center) + Math.PI / 2;
+ const normalizedAngle = (angle + Math.PI * 2) % (Math.PI * 2);
+ return (normalizedAngle / (Math.PI * 2)) * totalSteps;
+}
+
+export function getPointForStep(
+ step: number,
+ radius: number,
+ center = SVG_CENTER,
+ totalSteps = TOTAL_STEPS,
+): CirclePoint {
+ const angle = (step / totalSteps) * Math.PI * 2 - Math.PI / 2;
+ return {
+ x: center + Math.cos(angle) * radius,
+ y: center + Math.sin(angle) * radius,
+ };
+}
+
+export function getLoopPositionPercent(step: number, totalSteps: number): number {
+ return Math.round((step / totalSteps) * 100);
+}
+
+export function wrapStepPosition(step: number, totalSteps: number): number {
+ return ((step % totalSteps) + totalSteps) % totalSteps;
+}
+
+export function getSoundOrbitRadius(soundIndex: number, soundCount: number): number {
+ return ORBIT_RADIUS * (soundCount + 1 - soundIndex) / (soundCount + 1);
+}
+
+export function getPlaybackTick(step: number, totalSteps: number): number {
+ const totalPlaybackTicks = totalSteps * PLAYBACK_SUBSTEPS_PER_STEP;
+ return Math.round(step * PLAYBACK_SUBSTEPS_PER_STEP) % totalPlaybackTicks;
+}
+
+export function getStackedPosition(
+ beat: BeatPoint,
+ beats: readonly BeatPoint[],
+ totalSteps: number,
+ orbitRadius: number,
+): CirclePoint {
+ const siblings = beats
+ .filter((candidate) => (
+ candidate.soundId === beat.soundId
+ && getPlaybackTick(candidate.step, totalSteps) === getPlaybackTick(beat.step, totalSteps)
+ ))
+ .sort((first, second) => first.id.localeCompare(second.id));
+ const index = siblings.findIndex((candidate) => candidate.id === beat.id);
+ const offset = (index - (siblings.length - 1) / 2) * MARKER_STEP_OFFSET;
+ return getPointForStep(beat.step + offset, orbitRadius, SVG_CENTER, totalSteps);
+}
diff --git a/src/hooks/useBeatPlayback.ts b/src/hooks/useBeatPlayback.ts
new file mode 100644
index 0000000..aab762f
--- /dev/null
+++ b/src/hooks/useBeatPlayback.ts
@@ -0,0 +1,124 @@
+import { useCallback, useEffect, useRef, useState } from 'react';
+import { AudioEngine } from '../audio/AudioEngine';
+import {
+ getPlaybackTickDurationMs,
+ PLAYBACK_SUBSTEPS_PER_STEP,
+} from '../domain/sequencer';
+import type { BeatPoint } from '../domain/sequencer';
+
+interface UseBeatPlaybackOptions {
+ beats: readonly BeatPoint[];
+ tempoBpm: number;
+ totalSteps: number;
+}
+
+export interface BeatPlayback {
+ currentStep: number;
+ isPlaying: boolean;
+ isStarting: boolean;
+ audioError: string | null;
+ togglePlayback: () => Promise;
+ resetPlayback: () => void;
+}
+
+export function useBeatPlayback({
+ beats,
+ tempoBpm,
+ totalSteps,
+}: UseBeatPlaybackOptions): BeatPlayback {
+ const [currentStep, setCurrentStep] = useState(-1);
+ const [isPlaying, setIsPlaying] = useState(false);
+ const [isStarting, setIsStarting] = useState(false);
+ const [audioError, setAudioError] = useState(null);
+
+ const audioEngineRef = useRef(null);
+ const beatsRef = useRef(beats);
+ const totalStepsRef = useRef(totalSteps);
+ const nextPlaybackTickRef = useRef(0);
+
+ if (audioEngineRef.current === null) audioEngineRef.current = new AudioEngine();
+ beatsRef.current = beats;
+ totalStepsRef.current = totalSteps;
+
+ const advanceStep = useCallback(() => {
+ const totalPlaybackTicks = totalStepsRef.current * PLAYBACK_SUBSTEPS_PER_STEP;
+ const playbackTick = nextPlaybackTickRef.current % totalPlaybackTicks;
+ const step = playbackTick / PLAYBACK_SUBSTEPS_PER_STEP;
+
+ setCurrentStep(step);
+ beatsRef.current.forEach((beat) => {
+ if (beat.step >= totalStepsRef.current) return;
+ const beatTick = Math.round(beat.step * PLAYBACK_SUBSTEPS_PER_STEP) % totalPlaybackTicks;
+ if (beatTick === playbackTick) audioEngineRef.current?.play(beat.soundId);
+ });
+
+ nextPlaybackTickRef.current = (playbackTick + 1) % totalPlaybackTicks;
+ }, []);
+
+ useEffect(() => {
+ if (!isPlaying) {
+ setCurrentStep(-1);
+ nextPlaybackTickRef.current = 0;
+ return;
+ }
+
+ advanceStep();
+ }, [isPlaying, advanceStep]);
+
+ useEffect(() => {
+ if (!isPlaying) return undefined;
+
+ const interval = window.setInterval(
+ advanceStep,
+ getPlaybackTickDurationMs(tempoBpm),
+ );
+ return () => window.clearInterval(interval);
+ }, [isPlaying, tempoBpm, advanceStep]);
+
+ useEffect(() => {
+ if (beats.length === 0 && isPlaying) setIsPlaying(false);
+ }, [beats.length, isPlaying]);
+
+ useEffect(() => {
+ nextPlaybackTickRef.current %= totalSteps * PLAYBACK_SUBSTEPS_PER_STEP;
+ setCurrentStep((step) => (step >= totalSteps ? step % totalSteps : step));
+ }, [totalSteps]);
+
+ useEffect(() => () => {
+ void audioEngineRef.current?.dispose();
+ }, []);
+
+ const togglePlayback = useCallback(async () => {
+ if (isPlaying) {
+ setIsPlaying(false);
+ return;
+ }
+ if (beats.length === 0 || isStarting) return;
+
+ setIsStarting(true);
+ setAudioError(null);
+ try {
+ await audioEngineRef.current?.start();
+ setIsPlaying(true);
+ } catch {
+ setAudioError('Audio could not start. Check your browser audio settings and try again.');
+ } finally {
+ setIsStarting(false);
+ }
+ }, [beats.length, isPlaying, isStarting]);
+
+ const resetPlayback = useCallback(() => {
+ nextPlaybackTickRef.current = 0;
+ setCurrentStep(-1);
+ setAudioError(null);
+ }, []);
+
+ return {
+ currentStep,
+ isPlaying,
+ isStarting,
+ audioError,
+ togglePlayback,
+ resetPlayback,
+ };
+}
diff --git a/src/hooks/useBeatSequencer.ts b/src/hooks/useBeatSequencer.ts
new file mode 100644
index 0000000..cb9e312
--- /dev/null
+++ b/src/hooks/useBeatSequencer.ts
@@ -0,0 +1,137 @@
+import { useCallback, useMemo, useReducer, useRef } from 'react';
+import type { BeatTemplate } from '../domain/beatTemplates';
+import {
+ getNextAvailableStep,
+ getTotalSteps,
+} from '../domain/sequencer';
+import type { BeatsPerBar } from '../domain/sequencer';
+import type { BeatPoint } from '../domain/sequencer';
+import type { SoundId } from '../domain/sounds';
+import { createInitialSequencerState, sequencerReducer } from '../domain/sequencerReducer';
+import { useBeatPlayback } from './useBeatPlayback';
+
+export interface BeatSequencer {
+ beats: BeatPoint[];
+ currentStep: number;
+ isPlaying: boolean;
+ isStarting: boolean;
+ audioError: string | null;
+ tempoBpm: number;
+ beatsPerBar: BeatsPerBar;
+ totalSteps: number;
+ focusedSoundId: SoundId | null;
+ selectedBeat: BeatPoint | undefined;
+ addBeat: (soundId: SoundId) => void;
+ moveBeat: (beatId: string, step: number) => void;
+ selectBeat: (beatId: string) => void;
+ selectSound: (soundId: SoundId) => void;
+ removeSelectedBeat: () => void;
+ removeFocusedSound: () => void;
+ setTempoBpm: (tempoBpm: number) => void;
+ setBeatsPerBar: (beatsPerBar: BeatsPerBar) => void;
+ loadTemplate: (template: BeatTemplate) => void;
+ togglePlayback: () => Promise;
+}
+
+export function useBeatSequencer(): BeatSequencer {
+ const [state, dispatch] = useReducer(
+ sequencerReducer,
+ undefined,
+ createInitialSequencerState,
+ );
+ const { beats, beatsPerBar, focusedSoundId, selectedBeatId, tempoBpm } = state;
+ const totalSteps = getTotalSteps(beatsPerBar);
+
+ const nextBeatIdRef = useRef(1);
+
+ const visibleBeats = useMemo(
+ () => beats.filter((beat) => beat.step < totalSteps),
+ [beats, totalSteps],
+ );
+ const selectedBeat = useMemo(
+ () => visibleBeats.find((beat) => beat.id === selectedBeatId),
+ [selectedBeatId, visibleBeats],
+ );
+ const playback = useBeatPlayback({ beats: visibleBeats, tempoBpm, totalSteps });
+ const resetPlayback = playback.resetPlayback;
+
+ const addBeat = useCallback((soundId: SoundId): void => {
+ const beat: BeatPoint = {
+ id: `beat-${nextBeatIdRef.current}`,
+ soundId,
+ step: getNextAvailableStep(beats, totalSteps),
+ };
+ nextBeatIdRef.current += 1;
+ dispatch({ type: 'beat-added', beat });
+ }, [beats, totalSteps]);
+
+ const moveBeat = useCallback((beatId: string, step: number): void => {
+ dispatch({ type: 'beat-moved', beatId, step });
+ }, []);
+
+ const selectBeat = useCallback((beatId: string): void => {
+ dispatch({ type: 'beat-selected', beatId });
+ }, []);
+
+ const selectSound = useCallback((soundId: SoundId): void => {
+ dispatch({ type: 'sound-selected', soundId });
+ }, []);
+
+ const removeSelectedBeat = useCallback((): void => {
+ dispatch({ type: 'selected-beat-removed' });
+ }, []);
+
+ const removeFocusedSound = useCallback((): void => {
+ dispatch({ type: 'focused-sound-removed' });
+ }, []);
+
+ const setTempoBpm = useCallback((tempo: number): void => {
+ dispatch({ type: 'tempo-changed', tempoBpm: tempo });
+ }, []);
+
+ const setBeatsPerBar = useCallback((nextBeatsPerBar: BeatsPerBar): void => {
+ dispatch({ type: 'time-signature-changed', beatsPerBar: nextBeatsPerBar });
+ }, []);
+
+ const loadTemplate = useCallback((template: BeatTemplate): void => {
+ const templateBeats: BeatPoint[] = template.beats.map((templateBeat) => {
+ const beat: BeatPoint = {
+ id: `beat-${nextBeatIdRef.current}`,
+ ...templateBeat,
+ };
+ nextBeatIdRef.current += 1;
+ return beat;
+ });
+
+ dispatch({
+ type: 'template-loaded',
+ beats: templateBeats,
+ tempoBpm: template.tempoBpm,
+ beatsPerBar: template.beatsPerBar,
+ });
+ resetPlayback();
+ }, [resetPlayback]);
+
+ return {
+ beats: visibleBeats,
+ currentStep: playback.currentStep,
+ isPlaying: playback.isPlaying,
+ isStarting: playback.isStarting,
+ audioError: playback.audioError,
+ tempoBpm,
+ beatsPerBar,
+ totalSteps,
+ focusedSoundId,
+ selectedBeat,
+ addBeat,
+ moveBeat,
+ selectBeat,
+ selectSound,
+ removeSelectedBeat,
+ removeFocusedSound,
+ setTempoBpm,
+ setBeatsPerBar,
+ loadTemplate,
+ togglePlayback: playback.togglePlayback,
+ };
+}
diff --git a/src/hooks/useBeatStudio.ts b/src/hooks/useBeatStudio.ts
new file mode 100644
index 0000000..60f0f91
--- /dev/null
+++ b/src/hooks/useBeatStudio.ts
@@ -0,0 +1,33 @@
+import { useCallback } from 'react';
+import type { BeatTemplate } from '../domain/beatTemplates';
+import type { SoundId } from '../domain/sounds';
+import type { BeatSequencer } from './useBeatSequencer';
+import { useBeatSequencer } from './useBeatSequencer';
+import type { SoundPalette } from './useSoundPalette';
+import { useSoundPalette } from './useSoundPalette';
+
+export interface BeatStudio {
+ sequencer: BeatSequencer;
+ soundPalette: SoundPalette;
+ addSound: (soundId: SoundId) => void;
+ applyTemplate: (template: BeatTemplate) => void;
+}
+
+export function useBeatStudio(): BeatStudio {
+ const sequencer = useBeatSequencer();
+ const soundPalette = useSoundPalette();
+ const { addBeat, loadTemplate } = sequencer;
+ const { activateSounds } = soundPalette;
+
+ const addSound = useCallback((soundId: SoundId): void => {
+ activateSounds([soundId]);
+ addBeat(soundId);
+ }, [activateSounds, addBeat]);
+
+ const applyTemplate = useCallback((template: BeatTemplate): void => {
+ loadTemplate(template);
+ activateSounds(template.beats.map((beat) => beat.soundId));
+ }, [activateSounds, loadTemplate]);
+
+ return { sequencer, soundPalette, addSound, applyTemplate };
+}
diff --git a/src/hooks/usePopoverDisclosure.ts b/src/hooks/usePopoverDisclosure.ts
new file mode 100644
index 0000000..dc6a80a
--- /dev/null
+++ b/src/hooks/usePopoverDisclosure.ts
@@ -0,0 +1,16 @@
+import { useCallback, useState } from 'react';
+
+export interface PopoverDisclosure {
+ isOpen: boolean;
+ onDidPresent: () => void;
+ onDidDismiss: () => void;
+}
+
+export function usePopoverDisclosure(): PopoverDisclosure {
+ const [isOpen, setIsOpen] = useState(false);
+
+ const onDidPresent = useCallback(() => setIsOpen(true), []);
+ const onDidDismiss = useCallback(() => setIsOpen(false), []);
+
+ return { isOpen, onDidPresent, onDidDismiss };
+}
diff --git a/src/hooks/useSoundPalette.ts b/src/hooks/useSoundPalette.ts
new file mode 100644
index 0000000..04378fe
--- /dev/null
+++ b/src/hooks/useSoundPalette.ts
@@ -0,0 +1,44 @@
+import { useCallback, useMemo, useState } from 'react';
+import type { SoundId } from '../domain/sounds';
+import { generateUniqueSoundColor } from '../domain/soundColors';
+
+export interface PaletteSound {
+ id: SoundId;
+ color: string;
+}
+
+export interface SoundPalette {
+ activeSounds: PaletteSound[];
+ colorBySoundId: Partial>;
+ activateSounds: (soundIds: readonly SoundId[]) => void;
+}
+
+export function useSoundPalette(): SoundPalette {
+ const [activeSounds, setActiveSounds] = useState([]);
+
+ const activateSounds = useCallback((soundIds: readonly SoundId[]): void => {
+ setActiveSounds((currentSounds) => {
+ const nextSounds = [...currentSounds];
+ const currentCount = nextSounds.length;
+ soundIds.forEach((soundId) => {
+ if (nextSounds.some((sound) => sound.id === soundId)) return;
+
+ nextSounds.push({
+ id: soundId,
+ color: generateUniqueSoundColor(nextSounds.map((sound) => sound.color)),
+ });
+ });
+ return nextSounds.length === currentCount ? currentSounds : nextSounds;
+ });
+ }, []);
+
+ const colorBySoundId = useMemo(() => {
+ const colors: Partial> = {};
+ activeSounds.forEach((sound) => {
+ colors[sound.id] = sound.color;
+ });
+ return colors;
+ }, [activeSounds]);
+
+ return { activeSounds, colorBySoundId, activateSounds };
+}
diff --git a/src/ionicons.d.ts b/src/ionicons.d.ts
new file mode 100644
index 0000000..82d9fc2
--- /dev/null
+++ b/src/ionicons.d.ts
@@ -0,0 +1,8 @@
+declare module 'ionicons/icons' {
+ export const add: string;
+ export const chevronDown: string;
+ export const musicalNotes: string;
+ export const pause: string;
+ export const play: string;
+ export const trash: string;
+}
diff --git a/src/main.tsx b/src/main.tsx
new file mode 100644
index 0000000..bd813ed
--- /dev/null
+++ b/src/main.tsx
@@ -0,0 +1,24 @@
+import { StrictMode } from 'react';
+import { createRoot } from 'react-dom/client';
+import { setupIonicReact } from '@ionic/react';
+import App from './App';
+
+import '@ionic/react/css/core.css';
+import '@ionic/react/css/normalize.css';
+import '@ionic/react/css/structure.css';
+import '@ionic/react/css/typography.css';
+import '@ionic/react/css/padding.css';
+import '@ionic/react/css/flex-utils.css';
+import '@ionic/react/css/display.css';
+import './styles.css';
+
+setupIonicReact();
+
+const rootElement = document.getElementById('root');
+if (!rootElement) throw new Error('The app root element was not found.');
+
+createRoot(rootElement).render(
+
+
+ ,
+);
diff --git a/src/sequencer.test.ts b/src/sequencer.test.ts
new file mode 100644
index 0000000..8330a76
--- /dev/null
+++ b/src/sequencer.test.ts
@@ -0,0 +1,197 @@
+import { describe, expect, it } from 'vitest';
+import { BEAT_TEMPLATES } from './sequencer';
+import {
+ createInitialSequencerState,
+ sequencerReducer,
+} from './domain/sequencerReducer';
+import { generateUniqueSoundColor } from './domain/soundColors';
+import {
+ getNextAvailableStep,
+ getPlaybackTickDurationMs,
+ getLoopPositionPercent,
+ getPointForStep,
+ getStepFromPosition,
+ getTotalSteps,
+ MAX_TEMPO_BPM,
+ MIN_TEMPO_BPM,
+ SVG_CENTER,
+ wrapStepPosition,
+ TOTAL_STEPS,
+ TEMPO_BPM,
+} from './sequencer';
+import type { BeatPoint } from './sequencer';
+
+describe('circular step positions', () => {
+ it('derives playback timing from tempo and fine-grained subdivisions', () => {
+ expect(getPlaybackTickDurationMs(120)).toBeCloseTo(60_000 / 120 / 16, 8);
+ });
+
+ it('maps each of the 16 points back to its step', () => {
+ for (let step = 0; step < TOTAL_STEPS; step += 1) {
+ const point = getPointForStep(step, 180);
+ expect(getStepFromPosition(point.x, point.y)).toBeCloseTo(step, 8);
+ }
+ });
+
+ it('wraps points just before the first step to the end of the loop', () => {
+ const point = getPointForStep(TOTAL_STEPS - 1, 180);
+ expect(getStepFromPosition(point.x, point.y)).toBeCloseTo(TOTAL_STEPS - 1, 8);
+ });
+
+ it('maps all steps around a three-beat bar', () => {
+ const totalSteps = getTotalSteps(3);
+
+ for (let step = 0; step < totalSteps; step += 1) {
+ const point = getPointForStep(step, 180, SVG_CENTER, totalSteps);
+ expect(getStepFromPosition(point.x, point.y, SVG_CENTER, totalSteps)).toBeCloseTo(step, 8);
+ }
+ });
+
+ it('maps all steps around an eight-beat bar', () => {
+ const totalSteps = getTotalSteps(8);
+
+ for (let step = 0; step < totalSteps; step += 1) {
+ const point = getPointForStep(step, 180, SVG_CENTER, totalSteps);
+ expect(getStepFromPosition(point.x, point.y, SVG_CENTER, totalSteps)).toBeCloseTo(step, 8);
+ }
+ });
+
+ it('preserves fractional positions between the regular steps', () => {
+ const fractionalStep = 3.375;
+ const point = getPointForStep(fractionalStep, 180);
+ expect(getStepFromPosition(point.x, point.y)).toBeCloseTo(fractionalStep, 8);
+ });
+
+ it('wraps fractional positions and reports loop percentages', () => {
+ expect(wrapStepPosition(16.25, 16)).toBeCloseTo(0.25);
+ expect(wrapStepPosition(-0.25, 16)).toBeCloseTo(15.75);
+ expect(getLoopPositionPercent(4, 16)).toBe(25);
+ });
+
+ it('adds a sound at the next empty step', () => {
+ const beats: BeatPoint[] = [
+ { id: 'first', soundId: 'kick', step: 0 },
+ { id: 'second', soundId: 'hi-hat', step: 1 },
+ ];
+ expect(getNextAvailableStep(beats)).toBe(2);
+ });
+
+ it('reuses the first step when every step is occupied', () => {
+ const beats: BeatPoint[] = Array.from({ length: TOTAL_STEPS }, (_, step) => ({
+ id: `beat-${step}`,
+ soundId: 'kick',
+ step,
+ }));
+ expect(getNextAvailableStep(beats)).toBe(0);
+ });
+
+ it('reuses the first step when a three-beat bar is full', () => {
+ const totalSteps = getTotalSteps(3);
+ const beats: BeatPoint[] = Array.from({ length: totalSteps }, (_, step) => ({
+ id: `beat-${step}`,
+ soundId: 'kick',
+ step,
+ }));
+ expect(getNextAvailableStep(beats, totalSteps)).toBe(0);
+ });
+});
+
+describe('sound colors', () => {
+ it('generates a distinct color for each added sound', () => {
+ const colors: string[] = [];
+
+ for (let soundIndex = 0; soundIndex < 8; soundIndex += 1) {
+ const color = generateUniqueSoundColor(colors);
+ expect(colors).not.toContain(color);
+ colors.push(color);
+ }
+ });
+});
+
+describe('sequencer state transitions', () => {
+ it('loads a template with a focused first beat and removes a focused sound ring', () => {
+ const templateBeats: BeatPoint[] = [
+ { id: 'kick-1', soundId: 'kick', step: 0 },
+ { id: 'kick-2', soundId: 'kick', step: 4 },
+ { id: 'hat-1', soundId: 'hi-hat', step: 8 },
+ ];
+ const loaded = sequencerReducer(createInitialSequencerState(), {
+ type: 'template-loaded',
+ beats: templateBeats,
+ tempoBpm: 120,
+ beatsPerBar: 4,
+ });
+
+ expect(loaded.selectedBeatId).toBe('kick-1');
+ expect(loaded.focusedSoundId).toBe('kick');
+
+ const afterRingRemoval = sequencerReducer(loaded, { type: 'focused-sound-removed' });
+ expect(afterRingRemoval.beats).toEqual([templateBeats[2]]);
+ expect(afterRingRemoval.selectedBeatId).toBeNull();
+ expect(afterRingRemoval.focusedSoundId).toBe('hi-hat');
+ });
+
+ it('clears out-of-range selections when the time signature gets shorter', () => {
+ const beats: BeatPoint[] = [
+ { id: 'hat-1', soundId: 'hi-hat', step: 0 },
+ { id: 'kick-1', soundId: 'kick', step: 12 },
+ ];
+ const loaded = sequencerReducer(createInitialSequencerState(), {
+ type: 'template-loaded',
+ beats,
+ tempoBpm: 120,
+ beatsPerBar: 4,
+ });
+ const selected = sequencerReducer(loaded, { type: 'beat-selected', beatId: 'kick-1' });
+ const shortened = sequencerReducer(selected, {
+ type: 'time-signature-changed',
+ beatsPerBar: 2,
+ });
+
+ expect(shortened.beats).toEqual(beats);
+ expect(shortened.selectedBeatId).toBeNull();
+ expect(shortened.focusedSoundId).toBe('hi-hat');
+ });
+
+ it('removes a focused sound and keeps the remaining ring selected', () => {
+ const beats: BeatPoint[] = [
+ { id: 'kick-1', soundId: 'kick', step: 0 },
+ { id: 'hat-1', soundId: 'hi-hat', step: 4 },
+ ];
+ const loaded = sequencerReducer(createInitialSequencerState(), {
+ type: 'template-loaded',
+ beats,
+ tempoBpm: TEMPO_BPM,
+ beatsPerBar: 4,
+ });
+ const hatSelected = sequencerReducer(loaded, { type: 'sound-selected', soundId: 'hi-hat' });
+ const removed = sequencerReducer(hatSelected, { type: 'focused-sound-removed' });
+
+ expect(removed.beats).toEqual([beats[0]]);
+ expect(removed.focusedSoundId).toBe('kick');
+ expect(removed.selectedBeatId).toBeNull();
+ });
+
+ it('clamps tempo changes to the supported range', () => {
+ const initial = createInitialSequencerState();
+ const tooSlow = sequencerReducer(initial, { type: 'tempo-changed', tempoBpm: 10 });
+ const tooFast = sequencerReducer(initial, { type: 'tempo-changed', tempoBpm: 300 });
+
+ expect(tooSlow.tempoBpm).toBe(MIN_TEMPO_BPM);
+ expect(tooFast.tempoBpm).toBe(MAX_TEMPO_BPM);
+ });
+});
+
+describe('dance templates', () => {
+ it('keeps each beat inside its template time signature', () => {
+ BEAT_TEMPLATES.forEach((template) => {
+ const totalSteps = getTotalSteps(template.beatsPerBar);
+ expect(template.tempoBpm).toBeGreaterThanOrEqual(MIN_TEMPO_BPM);
+ expect(template.tempoBpm).toBeLessThanOrEqual(MAX_TEMPO_BPM);
+ template.beats.forEach((beat) => {
+ expect(beat.step).toBeGreaterThanOrEqual(0);
+ expect(beat.step).toBeLessThan(totalSteps);
+ });
+ });
+ });
+});
diff --git a/src/sequencer.ts b/src/sequencer.ts
new file mode 100644
index 0000000..139bade
--- /dev/null
+++ b/src/sequencer.ts
@@ -0,0 +1,3 @@
+export * from './domain/beatTemplates';
+export * from './domain/sequencer';
+export * from './domain/timeline';
diff --git a/src/styles.css b/src/styles.css
new file mode 100644
index 0000000..2c090ae
--- /dev/null
+++ b/src/styles.css
@@ -0,0 +1,968 @@
+@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
+
+/* Theme tokens and document defaults */
+:root {
+ font-family: 'DM Sans', sans-serif;
+ color: var(--ink);
+ background: var(--base);
+ font-synthesis: none;
+ text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
+ color-scheme: dark;
+ --ion-color-primary: #edebff;
+ --ion-color-primary-rgb: 237, 235, 255;
+ --ion-color-primary-contrast: #111116;
+ --ion-color-primary-contrast-rgb: 17, 17, 22;
+ --ion-color-primary-shade: #d1cfe0;
+ --ion-color-primary-tint: #efedff;
+ --ion-color-secondary: #ff8a3d;
+ --ion-color-secondary-rgb: 255, 138, 61;
+ --ion-color-secondary-contrast: #111116;
+ --ion-color-secondary-contrast-rgb: 17, 17, 22;
+ --ion-color-secondary-shade: #e07936;
+ --ion-color-secondary-tint: #ff9650;
+ --ion-color-medium: #b8b4e0;
+ --ion-color-medium-rgb: 184, 180, 224;
+ --ion-color-medium-contrast: #111116;
+ --ion-color-medium-contrast-rgb: 17, 17, 22;
+ --ion-color-medium-shade: #a29ec5;
+ --ion-color-medium-tint: #c2bfe4;
+ --ion-background-color: #111116;
+ --ion-background-color-rgb: 17, 17, 22;
+ --ion-text-color: #edebff;
+ --ion-text-color-rgb: 237, 235, 255;
+ --base: #111116;
+ --surface: #1a1a21;
+ --surface-raised: #23232b;
+ --border: #302f38;
+ --ink: #f4f1ed;
+ --muted: #b8b4e0;
+ --soft: #9e9acb;
+ --accent: #ff8a3d;
+ --accent-hover: #ff9b5c;
+ --accent-pressed: #e07936;
+ --primary-rgb: 244, 241, 237;
+ --accent-rgb: 255, 138, 61;
+ --mono: 'DM Mono', monospace;
+ --display: 'Space Grotesk', sans-serif;
+}
+
+* {
+ box-sizing: border-box;
+}
+
+html,
+body,
+ion-app,
+ion-page {
+ min-width: 320px;
+ min-height: 100%;
+ margin: 0;
+ background: var(--base);
+}
+
+body {
+ font-family: 'DM Sans', sans-serif;
+}
+
+ion-content.app-content {
+ --background: var(--base);
+ color: var(--ink);
+}
+
+/* Application shell and studio heading */
+.app-shell {
+ min-height: 100%;
+ padding: 0 24px 32px;
+ background: var(--base);
+}
+
+.app-header {
+ display: flex;
+ width: min(100%, 900px);
+ height: 76px;
+ align-items: center;
+ justify-content: space-between;
+ margin: 0 auto;
+ border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
+}
+
+.brand {
+ display: inline-flex;
+ align-items: center;
+ text-decoration: none;
+}
+
+.brand-logo {
+ display: block;
+ width: 156px;
+ max-height: 42px;
+ object-fit: contain;
+}
+
+.orbit-card-heading {
+ font-family: var(--mono);
+ font-size: 9px;
+ font-weight: 500;
+ letter-spacing: 1px;
+}
+
+.header-tag {
+ color: var(--soft);
+ font-family: 'DM Sans', sans-serif;
+ font-size: 12px;
+ font-weight: 500;
+ letter-spacing: 0.1px;
+}
+
+.studio {
+ width: min(100%, 660px);
+ margin: 0 auto;
+ padding-bottom: 24px;
+}
+
+.studio-heading {
+ padding: 37px 0 10px;
+ text-align: center;
+}
+
+.studio-heading h1 {
+ margin: 0;
+ color: var(--ink);
+ font: 500 clamp(34px, 7vw, 44px)/1.1 var(--display);
+ letter-spacing: -1.8px;
+}
+
+.template-prompt {
+ margin: 18px 0 0;
+ color: var(--muted);
+ font-size: 10px;
+}
+
+.beat-template-selector {
+ display: flex;
+ justify-content: center;
+ margin-top: 6px;
+}
+
+.beat-template-trigger {
+ --color: var(--ink);
+ --background: var(--surface-raised);
+ --background-hover: #33323b;
+ --background-activated: #3b3944;
+ --border-radius: 9px;
+ --border-width: 0;
+ height: 40px;
+ margin: 0;
+ font-size: 11px;
+ font-weight: 600;
+ text-transform: none;
+}
+
+.beat-template-trigger::part(native) {
+ padding-inline: 14px;
+}
+
+.beat-template-trigger-content {
+ display: flex;
+ width: 100%;
+ min-width: 0;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+}
+
+.beat-template-trigger ion-icon {
+ font-size: 13px;
+}
+
+.beat-template-popover {
+ --width: 230px;
+ --background: var(--surface);
+ --backdrop-opacity: 0;
+ --box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
+}
+
+.beat-template-options {
+ display: flex;
+ flex-direction: column;
+ gap: 3px;
+ padding: 7px;
+}
+
+.beat-template-option {
+ --color: var(--ink);
+ --background: var(--surface-raised);
+ --background-hover: #33323b;
+ --background-activated: #3b3944;
+ --border-radius: 8px;
+ width: 100%;
+ height: 56px;
+ flex: 0 0 56px;
+ margin: 0;
+ font-size: 11px;
+ text-transform: none;
+}
+
+.beat-template-option::part(native) {
+ padding-inline: 11px;
+}
+
+.beat-template-option-content {
+ display: flex;
+ width: 100%;
+ min-width: 0;
+ align-items: center;
+ flex-direction: column;
+ justify-content: center;
+ gap: 2px;
+ text-align: center;
+}
+
+.beat-template-option-copy {
+ display: flex;
+ min-width: 0;
+ flex-direction: column;
+ align-items: center;
+ gap: 2px;
+ text-align: center;
+}
+
+.beat-template-option-label {
+ color: var(--ink);
+ font-weight: 600;
+}
+
+.beat-template-option-description {
+ color: var(--muted);
+ font-size: 9px;
+ font-weight: 400;
+}
+
+.beat-template-option-meta {
+ color: var(--soft);
+ font-size: 9px;
+ text-align: center;
+ white-space: nowrap;
+}
+
+.intro-copy {
+ margin: 7px 0 0;
+ color: var(--muted);
+ font-size: 13px;
+}
+
+.intro-copy.is-hidden {
+ visibility: hidden;
+}
+
+/* Preset and instrument selectors */
+.orbit-card {
+ overflow: hidden;
+ padding: 21px 27px 17px;
+ border: 1px solid var(--border);
+ border-radius: 18px;
+ background: var(--base);
+}
+
+.orbit-card-heading {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ color: var(--ink);
+}
+
+.sound-ring-selector-trigger {
+ --color: var(--muted);
+ --border-radius: 7px;
+ height: 30px;
+ margin: 0;
+ font-family: var(--mono);
+ font-size: 8px;
+ font-weight: 500;
+ letter-spacing: 0.65px;
+ text-transform: uppercase;
+}
+
+.sound-ring-selector-trigger::part(native) {
+ padding: 0 4px;
+}
+
+.sound-ring-trigger-content {
+ display: flex;
+ width: 100%;
+ min-width: 0;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ white-space: nowrap;
+}
+
+.sound-ring-selector-trigger ion-icon {
+ font-size: 12px;
+}
+
+.ring-selector-swatch {
+ display: inline-block;
+ width: 8px;
+ height: 8px;
+ flex: 0 0 auto;
+ border-radius: 50%;
+}
+
+.sound-ring-popover {
+ --width: 160px;
+ --background: var(--surface);
+ --backdrop-opacity: 0;
+ --box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
+}
+
+.sound-ring-options {
+ display: flex;
+ flex-direction: column;
+ gap: 3px;
+ padding: 7px;
+}
+
+.sound-ring-option {
+ --color: var(--ink);
+ --background: var(--surface-raised);
+ --background-hover: #33323b;
+ --background-activated: #3b3944;
+ --border-radius: 7px;
+ width: 100%;
+ height: 36px;
+ flex: 0 0 36px;
+ margin: 0;
+ font-size: 11px;
+ text-align: left;
+ text-transform: none;
+}
+
+.sound-ring-option::part(native) {
+ padding-inline: 10px;
+}
+
+.sound-ring-option-content {
+ display: flex;
+ width: 100%;
+ min-width: 0;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+}
+
+.timeline-wrap {
+ width: min(100%, 570px);
+ margin: 0 auto;
+}
+
+/* Circular timeline, markers, and playback cursor */
+.circular-timeline {
+ display: block;
+ width: 100%;
+ overflow: visible;
+ touch-action: none;
+ user-select: none;
+}
+
+.timeline-orbit {
+ fill: none;
+ stroke: rgba(var(--primary-rgb), 0.22);
+ stroke-width: 1.5;
+ transform-box: fill-box;
+ transform-origin: center;
+ transition: r 720ms cubic-bezier(0.22, 1.15, 0.36, 1), opacity 360ms ease, stroke-width 360ms ease;
+}
+
+.timeline-orbit.is-focused {
+ animation: orbit-focus-wave 900ms ease-out both;
+}
+
+@keyframes orbit-focus-wave {
+ 0% { transform: scale(1); }
+ 24% { transform: scale(1.045); }
+ 46% { transform: scale(0.985); }
+ 68% { transform: scale(1.022); }
+ 86% { transform: scale(0.995); }
+ 100% { transform: scale(1); }
+}
+
+.timeline-orbit-hit-area {
+ cursor: pointer;
+ transition: r 720ms cubic-bezier(0.22, 1.15, 0.36, 1);
+}
+
+.timeline-tick line {
+ stroke: rgba(var(--primary-rgb), 0.34);
+ stroke-width: 1;
+}
+
+.timeline-tick.is-substep line {
+ stroke: rgba(var(--primary-rgb), 0.18);
+ stroke-width: 0.75;
+}
+
+.timeline-tick.is-major line {
+ stroke: #b8b4e0;
+ stroke-width: 1.5;
+}
+
+.timeline-tick text {
+ fill: var(--muted);
+ font: 9px var(--mono);
+}
+
+.timeline-playhead line {
+ stroke: #fff;
+ stroke-width: 1;
+}
+
+.timeline-playhead circle {
+ fill: #fff;
+ filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.75));
+}
+
+.sound-point {
+ cursor: grab;
+ outline: none;
+}
+
+.sound-point:active {
+ cursor: grabbing;
+}
+
+.sound-point-hit-area {
+ fill: transparent;
+ pointer-events: all;
+ transition: cx 720ms cubic-bezier(0.22, 1.15, 0.36, 1), cy 720ms cubic-bezier(0.22, 1.15, 0.36, 1);
+}
+
+.sound-point-face {
+ fill: currentColor;
+ stroke: var(--base);
+ stroke-width: 3;
+ transition:
+ cx 720ms cubic-bezier(0.22, 1.15, 0.36, 1),
+ cy 720ms cubic-bezier(0.22, 1.15, 0.36, 1),
+ stroke-width 120ms ease,
+ filter 120ms ease;
+}
+
+.sound-point:hover .sound-point-face,
+.sound-point.is-selected .sound-point-face,
+.sound-point:focus-visible .sound-point-face {
+ stroke: #fff;
+ stroke-width: 2.5;
+ filter: drop-shadow(0 0 5px currentColor);
+}
+
+.timeline-hint-row {
+ display: grid;
+ height: 44px;
+ min-height: 44px;
+ grid-template-columns: auto minmax(0, 1fr) auto;
+ align-items: center;
+ gap: 8px;
+}
+
+/* Beat selection status and actions */
+.timeline-hint-tempo {
+ display: flex;
+ justify-content: flex-start;
+}
+
+.timeline-hint {
+ display: block;
+ width: 100%;
+ min-width: 0;
+ height: 20px;
+ min-height: 20px;
+ margin: 0;
+ padding: 0;
+ color: var(--muted);
+ font-size: 11px;
+ line-height: 20px;
+ text-align: center;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.timeline-hint-tempo .tempo-trigger::part(native) {
+ padding-inline: 8px;
+}
+
+.timeline-hint-actions {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: 4px;
+}
+
+.timeline-delete-button {
+ width: 44px;
+ height: 44px;
+ margin: 0;
+ --color: #ff5964;
+ --color-activated: #ff303f;
+ --background-hover: rgba(255, 89, 100, 0.12);
+ --border-radius: 9px;
+}
+
+.timeline-delete-placeholder {
+ display: block;
+ width: 44px;
+ height: 44px;
+ flex: 0 0 44px;
+}
+
+.timeline-delete-button ion-icon {
+ font-size: 28px;
+}
+
+.hint-swatch,
+.legend-swatch {
+ width: 8px;
+ height: 8px;
+ flex: 0 0 auto;
+ border-radius: 50%;
+}
+
+.hint-swatch {
+ display: inline-block;
+ margin-right: 7px;
+ vertical-align: middle;
+}
+
+.hint-separator {
+ display: inline-block;
+ margin: 0 7px;
+ color: #7671a7;
+}
+
+.sound-legend {
+ display: flex;
+ justify-content: center;
+ gap: 22px;
+ padding-top: 17px;
+}
+
+.legend-sound {
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ color: var(--muted);
+ font-size: 11px;
+}
+
+.legend-empty {
+ color: var(--soft);
+ font-size: 11px;
+}
+
+.legend-swatch {
+ width: 7px;
+ height: 7px;
+}
+
+.audio-error {
+ margin: 13px auto 0;
+ color: #ffad8b;
+ font-size: 12px;
+ text-align: center;
+}
+
+/* Transport and sound-add controls */
+.transport-footer {
+ --background: rgba(17, 17, 22, 0.97);
+ position: relative;
+ overflow: visible;
+ border-top: 1px solid rgba(var(--primary-rgb), 0.12);
+ backdrop-filter: blur(18px);
+}
+
+.transport-toolbar {
+ --background: transparent;
+ --border-color: transparent;
+ --min-height: 84px;
+}
+
+.transport-inner {
+ display: flex;
+ width: min(100%, 660px);
+ min-height: 84px;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 17px;
+ margin: 0 auto;
+ padding: 12px 86px max(12px, env(safe-area-inset-bottom)) 20px;
+}
+
+.transport-play-button {
+ --background: var(--accent);
+ --background-hover: var(--accent-hover);
+ --background-activated: var(--accent-pressed);
+ --color: var(--ion-color-secondary-contrast);
+ --border-radius: 11px;
+ --box-shadow: none;
+ min-width: 112px;
+ height: 49px;
+ margin: 0;
+ font-size: 13px;
+ font-weight: 700;
+ text-transform: none;
+}
+
+.transport-play-button ion-icon {
+ font-size: 17px;
+}
+
+.tempo-trigger {
+ --color: var(--ink);
+ --background: var(--surface-raised);
+ --background-hover: #33323b;
+ --background-activated: #3b3944;
+ --border-radius: 8px;
+ --border-width: 0;
+ --padding-top: 8px;
+ --padding-bottom: 8px;
+ height: 42px;
+ margin: 0;
+ font-size: 11px;
+ font-variant-numeric: tabular-nums;
+ font-weight: 600;
+ text-transform: none;
+}
+
+.meter-trigger {
+ --color: var(--ink);
+ --background: var(--surface-raised);
+ --background-hover: #33323b;
+ --background-activated: #3b3944;
+ --border-radius: 8px;
+ --border-width: 0;
+ --padding-top: 8px;
+ --padding-bottom: 8px;
+ height: 42px;
+ margin: 0;
+ font-size: 11px;
+ font-variant-numeric: tabular-nums;
+ font-weight: 600;
+ text-transform: none;
+}
+
+.tempo-trigger ion-icon,
+.meter-trigger ion-icon {
+ margin-left: 4px;
+ font-size: 13px;
+}
+
+.tempo-trigger::part(native),
+.meter-trigger::part(native) {
+ padding-inline: 14px;
+}
+
+.tempo-trigger-content,
+.meter-trigger-content {
+ display: flex;
+ width: 100%;
+ min-width: 0;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ white-space: nowrap;
+}
+
+.tempo-value {
+ color: var(--ink);
+ font-size: 12px;
+ font-weight: 600;
+ font-variant-numeric: tabular-nums;
+ white-space: nowrap;
+}
+
+/* Popover contents */
+.tempo-popover {
+ --width: 94px;
+ --height: 226px;
+ --background: var(--surface);
+ --backdrop-opacity: 0;
+ --box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.2);
+}
+
+.tempo-popover-content {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ box-sizing: border-box;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-evenly;
+ padding: 10px;
+}
+
+.tempo-range-track {
+ position: relative;
+ width: 28px;
+ height: 164px;
+ flex: 0 0 164px;
+}
+
+.tempo-range {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ width: 164px;
+ height: 28px;
+ margin: 0;
+ transform: translate(-50%, -50%) rotate(-90deg);
+ --bar-background: #58537d;
+ --bar-background-active: var(--accent);
+ --bar-height: 3px;
+ --height: 28px;
+ --knob-background: var(--accent);
+ --knob-size: 12px;
+ --padding-top: 2px;
+ --padding-bottom: 2px;
+ --padding-start: 2px;
+ --padding-end: 2px;
+}
+
+.meter-popover {
+ --width: 96px;
+ --height: 224px;
+ --background: var(--surface);
+ --backdrop-opacity: 0;
+ --box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.2);
+}
+
+.meter-popover-content {
+ display: flex;
+ width: 100%;
+ height: 100%;
+ box-sizing: border-box;
+ flex-direction: column;
+ gap: 2px;
+ padding: 8px;
+}
+
+.meter-option {
+ --color: var(--ink);
+ --background: var(--surface-raised);
+ --background-activated: #3b3944;
+ --background-hover: #33323b;
+ --border-radius: 7px;
+ width: 100%;
+ height: 31px;
+ flex: 0 0 31px;
+ margin: 0;
+ font-size: 11px;
+ font-weight: 600;
+ text-transform: none;
+}
+
+.meter-option-content {
+ display: flex;
+ width: 100%;
+ justify-content: center;
+ text-align: center;
+}
+
+.meter-option::part(native) {
+ text-align: center;
+}
+
+.transport-fab {
+ position: absolute;
+ top: 15px;
+ right: max(14px, calc((100vw - 660px) / 2 + 20px));
+ bottom: auto;
+ left: auto;
+ z-index: 1001;
+ display: block;
+ width: 54px;
+ height: 54px;
+ flex: 0 0 54px;
+}
+
+.add-sound-fab {
+ --background: var(--surface-raised);
+ --background-activated: #33323b;
+ --color: var(--ink);
+ --box-shadow: none;
+ width: 54px;
+ height: 54px;
+ margin: 0;
+ border: 1px solid var(--border);
+ border-radius: 50%;
+ font-size: 22px;
+}
+
+.sound-fab-list {
+ right: 0;
+ left: auto;
+ z-index: 3;
+}
+
+.sound-fab-option {
+ --background: var(--surface);
+ --background-activated: var(--surface-raised);
+ --color: var(--ink);
+ --box-shadow: 0 5px 16px rgba(var(--primary-rgb), 0.16);
+ --border-radius: 12px;
+ width: 112px;
+ height: 42px;
+ margin: 5px 0;
+ font-size: 11px;
+ font-weight: 600;
+ white-space: nowrap;
+}
+
+.sound-fab-option::part(native) {
+ padding: 0 10px;
+}
+
+.sound-fab-option-content {
+ display: flex;
+ width: 100%;
+ min-width: 0;
+ align-items: center;
+ justify-content: center;
+ gap: 7px;
+}
+
+.sound-fab-option-content > span {
+ text-align: center;
+}
+
+.sound-fab-option ion-icon {
+ font-size: 15px;
+}
+
+@media (max-width: 600px) {
+ /* Compact layout */
+ .app-shell {
+ padding: 0 14px 26px;
+ }
+
+ .app-header {
+ height: 65px;
+ }
+
+ .brand-logo {
+ width: min(142px, 42vw);
+ max-height: 38px;
+ }
+
+ .header-tag {
+ font-size: 9px;
+ letter-spacing: 0;
+ }
+
+ .studio-heading {
+ padding: 28px 0 8px;
+ }
+
+ .studio-heading h1 {
+ font-size: 36px;
+ }
+
+ .template-prompt {
+ margin-top: 13px;
+ }
+
+ .intro-copy {
+ font-size: 12px;
+ }
+
+ .orbit-card {
+ padding: 17px 11px 14px;
+ border-radius: 14px;
+ }
+
+ .timeline-wrap {
+ width: min(100%, 490px);
+ }
+
+ .timeline-hint {
+ font-size: 10px;
+ }
+
+ .timeline-hint-tempo .tempo-trigger::part(native) {
+ padding-inline: 6px;
+ }
+
+ .transport-inner {
+ gap: 4px;
+ padding-right: 80px;
+ padding-left: 14px;
+ }
+
+ .transport-play-button {
+ min-width: 98px;
+ }
+
+ .tempo-trigger,
+ .meter-trigger {
+ font-size: 10px;
+ }
+
+ .tempo-trigger::part(native),
+ .meter-trigger::part(native) {
+ padding-inline: 10px;
+ }
+}
+
+@media (max-width: 360px) {
+ .header-tag {
+ max-width: 145px;
+ font-size: 8px;
+ text-align: right;
+ }
+
+ .transport-inner {
+ gap: 3px;
+ padding-right: 80px;
+ padding-left: 10px;
+ }
+
+ .transport-play-button {
+ min-width: 82px;
+ --padding-start: 10px;
+ --padding-end: 10px;
+ font-size: 12px;
+ }
+
+ .tempo-trigger,
+ .meter-trigger {
+ font-size: 9px;
+ }
+
+ .tempo-trigger::part(native),
+ .meter-trigger::part(native) {
+ padding-inline: 8px;
+ }
+
+ .timeline-hint-tempo .tempo-trigger::part(native) {
+ padding-inline: 4px;
+ }
+
+ .tempo-trigger ion-icon,
+ .meter-trigger ion-icon {
+ margin-left: 1px;
+ font-size: 11px;
+ }
+
+}
+
+@media (prefers-reduced-motion: reduce) {
+ *,
+ *::before,
+ *::after {
+ scroll-behavior: auto !important;
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ }
+}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..57dc26a
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,22 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "useDefineForClassFields": true,
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+ "moduleResolution": "Bundler",
+ "allowImportingTsExtensions": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "verbatimModuleSyntax": true,
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+ "types": ["vite/client"]
+ },
+ "include": ["src", "vite.config.ts"]
+}
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 0000000..85cce5a
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,9 @@
+import { defineConfig } from 'vitest/config';
+import react from '@vitejs/plugin-react';
+
+export default defineConfig({
+ plugins: [react()],
+ test: {
+ environment: 'node',
+ },
+});