A truly modular keyboard
C
app: rewrite in TypeScript with electron-vite, React and Tailwind
Nathan573d68b5196a
diff --git a/README.md b/README.mdindex 0817c7f..d2c532f 100644--- a/README.md+++ b/README.md@@ -96,6 +96,7 @@ This project uses:- [Blender](https://www.blender.org/) for 3D renders- [STM32CubeMX](https://www.st.com/en/development-tools/stm32cubemx.html)- [Hack Club Forge](https://forge.hackclub.com/)+- [JLCPCB](https://jlcpcb.com/) for PCB fabrication and assembly## You may also like...diff --git a/app/.gitignore b/app/.gitignoreindex 3191ead..47b8f90 100644--- a/app/.gitignore+++ b/app/.gitignore@@ -1,3 +1,4 @@node_modules/out/dist/+*.tsbuildinfodiff --git a/app/PROTOCOL.md b/app/PROTOCOL.mdindex b6a9985..1c52da1 100644--- a/app/PROTOCOL.md+++ b/app/PROTOCOL.md@@ -117,6 +117,7 @@ How the app does it (Settings → **Update Keyword firmware…**, or File → Up- It checks the file first: a Cortex-M vector table whose reset handler is inside 0x08007000 plus the image size. That rejects `keyword_full.bin`, which is for USB DFU.- It sends writes of 240 bytes (176 on macOS, whose usual MTU is 185), stepping down to 176 and then 16 if the first write is refused. Every write is a multiple of 8, and the last one is padded with `FF`, because the bootloader programs flash 8 bytes at a time.+- On macOS it waits 20 ms after each write. macOS drops write-without-response packets that come faster (a run of 131 × 176 B went missing at 4 ms).- If the Keyword reports no BLE stack, the app offers **Restart into USB DFU** instead. After DFU, flash with STM32CubeProgrammer and replug. Never use `-g`, `:leave`, `-startfus` or `-fwupgrade` over USB DFU: they rewrite nSWBOOT0 and can lock the Keyword out of DFU.- With no Keyword connected, it goes straight to finding `Keyword OTA`, so it can recover a Keyword stuck in the bootloader.diff --git a/app/README.md b/app/README.mdindex 040b257..5c39752 100644--- a/app/README.md+++ b/app/README.md@@ -6,26 +6,47 @@ A desktop app for the Keyword. It connects over USB serial or Bluetooth and lets- assign any key, shortcut, media key, macro or computer action to each Keybit, with an optional hold action- keep keymap profiles, switch them automatically by app, and import or export them-It's built with Electron, so it runs on macOS, Windows and Linux. It uses Chromium's Web Serial and Web Bluetooth, so there are no native modules to compile.+It runs on macOS, Windows and Linux. It talks to the Keyword with Chromium's Web Serial and Web Bluetooth, so there are no native modules to compile.## Run```shcd appnpm install-npm start+npm run dev # hot reload while you edit the UI+npm start # build, then run the built app```-On macOS, `npm start` launches Electron through `open`. macOS would otherwise blame the terminal for the Bluetooth scan and kill the app when you press **Bluetooth**. The app's output still shows in the terminal. Set `KEYWORD_DIRECT_START=1` to run Electron directly, for example under a debugger.+Node 22.12 or newer is needed.-**Demo** works without hardware and pretends to be a Keyword with every optional feature (battery, hold, macros, reflashing):+On macOS, both commands launch Electron through `open` (see `scripts/mac-electron.sh`). Otherwise macOS would blame the terminal for the Bluetooth scan and kill the app when you press **Bluetooth**. The app's output still shows in the terminal. Two things follow from this:++- Ctrl+C in the terminal doesn't close the app, so quit it with Cmd+Q.+- After changing code in `src/main`, quit the app before `npm run dev` restarts it.++Set `KEYWORD_DIRECT_START=1` to run Electron directly, for example under a debugger.++**Demo** works without hardware and pretends to be a Keyword with every optional feature (battery, hold, macros, reflashing, firmware updates):- Click a side of the Keyword to attach or remove a Keybit.- Click **Tap** on a key to simulate a press.-To build a standalone app, run `npm run dist`. It writes a `.dmg` on macOS, an installer on Windows or an AppImage on Linux, into `dist/`. The build includes the Bluetooth permission text that macOS requires.+Other commands:++| Command | What it does |+|---|---|+| `npm run dist` | Builds a standalone app into `dist/`: a `.dmg` on macOS, an installer on Windows or an AppImage on Linux. It includes the Bluetooth permission text that macOS requires. |+| `npm test` | Tests the protocol parser, the HID tables and text-to-macro, profiles, undo history and the template library. |+| `npm run typecheck` | Type-checks the main process, the preload and the page. |++## How it's built-Run the tests with `npm test`. They cover the protocol parser, the HID tables and text-to-macro, profiles, undo history and the template library.+- **Stack:** Electron 44, [electron-vite](https://electron-vite.org) with Vite 7, React 19, TypeScript and Tailwind CSS 4, with zustand for state and lucide icons.+- **`src/main/`** is the Electron main process: the window, the device picker, menus, the tray, the app-in-front watcher and computer actions.+- **`src/preload/`** exposes a small typed bridge (`src/shared/bridge.ts`) to the page.+- **`src/renderer/src/lib/`** holds the parts with no UI: the protocol, the HID tables, profiles, templates and the transports (USB serial, Bluetooth, Demo and the firmware-update bootloader).+- **`src/renderer/src/controller.ts`** holds the app's behaviour, and **`store.ts`** holds what the UI shows. The components in `components/` read the store and call the controller.+- **Saved data** stays in the same `profiles.json`, so profiles from the earlier version carry over.## Connecting@@ -37,6 +58,10 @@ Run the tests with `npm test`. They cover the protocol parser, the HID tables an- A Keyword plugged back in over USB reconnects straight away.- On launch, the app reconnects to the last Keyword if its permission is still granted.- **The status bar** shows the Keyword firmware version and, if the firmware reports it, the battery level. A low-battery warning pops up at 15%.+- **Console** (`Cmd/Ctrl+Shift+K`, or the terminal button) shows every line to and from the Keyword.+ - You can type any command to send, with arrow-key history. Quick buttons send `HELLO`, `KEYS?`, `SIDES?`, `BATT?`, `STACK?`, `DOCK?` and `BOOTCFG?`.+ - **Hide polling** hides the `SIDES?`, `KEYS?` and `BATT?` traffic the app sends on a timer.+ - You can copy or clear the log.## Keysdiff --git a/app/electron.vite.config.ts b/app/electron.vite.config.tsnew file mode 100644index 0000000..97d5a9c--- /dev/null+++ b/app/electron.vite.config.ts@@ -0,0 +1,45 @@+import { resolve } from 'node:path';+import { defineConfig } from 'electron-vite';+import react from '@vitejs/plugin-react';+import tailwindcss from '@tailwindcss/vite';+import type { Plugin } from 'vite';++// On macOS, an Electron started from a terminal is treated as part of the terminal for+// privacy checks, so the first Bluetooth scan is charged to Terminal / iTerm / VS Code.+// They have no Bluetooth usage string, and macOS kills the app. scripts/mac-electron.sh+// starts Electron through `open` instead, so Electron.app itself is responsible.+if (process.platform === 'darwin' && !process.env.KEYWORD_DIRECT_START && !process.env.ELECTRON_EXEC_PATH) {+ process.env.ELECTRON_EXEC_PATH = resolve(import.meta.dirname, 'scripts/mac-electron.sh');+}++// A strict Content Security Policy for the packaged page. Left out in development, where+// React's fast refresh needs an inline script.+const csp = (): Plugin => ({+ name: 'keyword-csp',+ apply: 'build',+ transformIndexHtml: () => [{+ tag: 'meta',+ attrs: { 'http-equiv': 'Content-Security-Policy', content: "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:" },+ injectTo: 'head-prepend',+ }],+});++export default defineConfig({+ main: {+ build: { rollupOptions: { input: { index: resolve(import.meta.dirname, 'src/main/index.ts') } } },+ },+ preload: {+ build: {+ rollupOptions: {+ input: { index: resolve(import.meta.dirname, 'src/preload/index.ts') },+ // Sandboxed preloads must be CommonJS.+ output: { format: 'cjs', entryFileNames: '[name].cjs' },+ },+ },+ },+ renderer: {+ root: resolve(import.meta.dirname, 'src/renderer'),+ build: { minify: true, rollupOptions: { input: { index: resolve(import.meta.dirname, 'src/renderer/index.html') } } },+ plugins: [react(), tailwindcss(), csp()],+ },+});diff --git a/app/package-lock.json b/app/package-lock.jsonindex 17681a6..99556e4 100644--- a/app/package-lock.json+++ b/app/package-lock.json@@ -1,33 +1,342 @@{"name": "keyword-monitor",- "version": "0.2.0",+ "version": "0.3.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "keyword-monitor",- "version": "0.2.0",+ "version": "0.3.0","devDependencies": {- "electron": "33.2.1",- "electron-builder": "25.1.8"+ "@tailwindcss/vite": "4.3.3",+ "@types/node": "22.19.1",+ "@types/react": "19.3.0",+ "@types/react-dom": "19.3.0",+ "@types/w3c-web-serial": "1.0.8",+ "@types/web-bluetooth": "0.0.21",+ "@vitejs/plugin-react": "5.2.0",+ "clsx": "2.1.1",+ "electron": "44.7.0",+ "electron-builder": "26.17.0",+ "electron-vite": "5.0.0",+ "lucide-react": "1.55.0",+ "react": "19.3.0",+ "react-dom": "19.3.0",+ "tailwindcss": "4.3.3",+ "typescript": "5.9.3",+ "vite": "7.3.7",+ "zustand": "5.0.15"+ },+ "engines": {+ "node": ">=22.12"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "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",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"}},- "node_modules/@develar/schema-utils": {- "version": "2.6.5",- "resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",- "integrity": "sha512-0cp4PsWQ/9avqTVMCtZ+GirikIA36ikvjtHweU4/j8yLtgObI0+JUPhYFScgwlteveGB1rt3Cm8UhN04XayDig==",+ "node_modules/@babel/core": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==","dev": true,"license": "MIT","dependencies": {- "ajv": "^6.12.0",- "ajv-keywords": "^3.4.1"+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-compilation-targets": "^7.29.7",+ "@babel/helper-module-transforms": "^7.29.7",+ "@babel/helpers": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7",+ "@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": ">= 8.9.0"+ "node": ">=6.9.0"},"funding": {"type": "opencollective",- "url": "https://opencollective.com/webpack"+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.8",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",+ "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.8",+ "@babel/types": "^7.29.8",+ "@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.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",+ "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",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",+ "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.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7",+ "@babel/traverse": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz",+ "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.10",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz",+ "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.11.tgz",+ "integrity": "sha512-OZ6+oaK7GMyg3IfCpj8JOmn8n+w2rJbDT0LLfVDTLb1ZFeKDh3AiNELgCMUw175IJHSkLl74hG0M0VLsvx+gag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.11"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-arrow-functions": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.29.7.tgz",+ "integrity": "sha512-N7zArUXWzAMzm+/N0uPBeVB3Fam5lMxtUwMmDK5f/IBBS7a7p1qeUoxd/6CckXoxUdgsntq1Dh8xNW06maZbDQ==",+ "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-self": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",+ "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",+ "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",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",+ "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",+ "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",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",+ "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.10",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.10.tgz",+ "integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.8",+ "@babel/helper-globals": "^7.29.7",+ "@babel/parser": "^7.29.9",+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",+ "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.11",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@electron-internal/extract-zip": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.6.tgz",+ "integrity": "sha512-/aQLgFDdCSnwChfUwqekSmE1q2dCTzhUy5saIHBb5vyYn5LzWaKPaIz1wM0lDMCZYBoIG4svJNvAJb6vkI8BuA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.12.0"}},"node_modules/@electron/asar": {@@ -79,26 +388,69 @@"node": "*"}},+ "node_modules/@electron/fuses": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@electron/fuses/-/fuses-1.8.0.tgz",+ "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^4.1.1",+ "fs-extra": "^9.0.1",+ "minimist": "^1.2.5"+ },+ "bin": {+ "electron-fuses": "dist/bin.js"+ }+ },+ "node_modules/@electron/fuses/node_modules/fs-extra": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/@electron/get": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz",- "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==",+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz",+ "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==","dev": true,"license": "MIT","dependencies": {"debug": "^4.1.1",- "env-paths": "^2.2.0",- "fs-extra": "^8.1.0",- "got": "^11.8.5",+ "env-paths": "^3.0.0",+ "graceful-fs": "^4.2.11","progress": "^2.0.3",- "semver": "^6.2.0",+ "semver": "^7.6.3","sumchecker": "^3.0.1"},"engines": {- "node": ">=12"+ "node": ">=22.12.0"},"optionalDependencies": {- "global-agent": "^3.0.0"+ "undici": "^7.24.4"+ }+ },+ "node_modules/@electron/get/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"}},"node_modules/@electron/notarize": {@@ -132,33 +484,10 @@"node": ">=10"}},- "node_modules/@electron/notarize/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },- "node_modules/@electron/notarize/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 10.0.0"- }- },"node_modules/@electron/osx-sign": {- "version": "1.3.1",- "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.1.tgz",- "integrity": "sha512-BAfviURMHpmb1Yb50YbCxnOY0wfwaLXH5KJ4+80zS0gUkzDX3ec23naTlEqKsN+PwYn+a1cCzM7BJ4Wcd3sGzw==",+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.3.tgz",+ "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==","dev": true,"license": "BSD-2-Clause","dependencies": {@@ -177,21 +506,6 @@"node": ">=12.0.0"}},- "node_modules/@electron/osx-sign/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },- "engines": {- "node": ">=12"- }- },"node_modules/@electron/osx-sign/node_modules/isbinaryfile": {"version": "4.0.10","resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz",@@ -205,126 +519,44 @@"url": "https://github.com/sponsors/gjtorikian/"}},- "node_modules/@electron/osx-sign/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },- "node_modules/@electron/osx-sign/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 10.0.0"- }- },"node_modules/@electron/rebuild": {- "version": "3.6.1",- "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-3.6.1.tgz",- "integrity": "sha512-f6596ZHpEq/YskUd8emYvOUne89ij8mQgjYFA5ru25QwbrRO+t1SImofdDv7kKOuWCmVOuU5tvfkbgGxIl3E/w==",+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.1.tgz",+ "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==","dev": true,"license": "MIT","dependencies": {"@malept/cross-spawn-promise": "^2.0.0",- "chalk": "^4.0.0","debug": "^4.1.1",- "detect-libc": "^2.0.1",- "fs-extra": "^10.0.0",- "got": "^11.7.0",- "node-abi": "^3.45.0",- "node-api-version": "^0.2.0",- "node-gyp": "^9.0.0",- "ora": "^5.1.0",- "read-binary-file-arch": "^1.0.6",- "semver": "^7.3.5",- "tar": "^6.0.5",- "yargs": "^17.0.1"+ "node-abi": "^4.2.0",+ "node-api-version": "^0.2.1",+ "node-gyp": "^12.2.0",+ "read-binary-file-arch": "^1.0.6"},"bin": {"electron-rebuild": "lib/cli.js"},"engines": {- "node": ">=12.13.0"+ "node": ">=22.12.0"}},- "node_modules/@electron/rebuild/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "node_modules/@electron/universal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.3.tgz",+ "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==","dev": true,"license": "MIT","dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"+ "@electron/asar": "^3.3.1",+ "@malept/cross-spawn-promise": "^2.0.0",+ "debug": "^4.3.1",+ "dir-compare": "^4.2.0",+ "fs-extra": "^11.1.1",+ "minimatch": "^9.0.3",+ "plist": "^3.1.0"},"engines": {- "node": ">=12"- }- },- "node_modules/@electron/rebuild/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },- "node_modules/@electron/rebuild/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@electron/rebuild/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 10.0.0"- }- },- "node_modules/@electron/universal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-2.0.1.tgz",- "integrity": "sha512-fKpv9kg4SPmt+hY7SVBnIYULE9QJl8L3sCfcBsnqbJwwBwAeTLokJ9TRt9y7bK0JAzIW2y78TVVjvnQEms/yyA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@electron/asar": "^3.2.7",- "@malept/cross-spawn-promise": "^2.0.0",- "debug": "^4.3.1",- "dir-compare": "^4.2.0",- "fs-extra": "^11.1.1",- "minimatch": "^9.0.3",- "plist": "^3.1.0"- },- "engines": {- "node": ">=16.4"+ "node": ">=16.4"}},"node_modules/@electron/universal/node_modules/balanced-match": {@@ -359,19 +591,6 @@"node": ">=14.14"}},- "node_modules/@electron/universal/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },"node_modules/@electron/universal/node_modules/minimatch": {"version": "9.0.9","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",@@ -388,720 +607,1763 @@"url": "https://github.com/sponsors/isaacs"}},- "node_modules/@electron/universal/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/@electron/windows-sign": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@electron/windows-sign/-/windows-sign-1.2.2.tgz",+ "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==","dev": true,- "license": "MIT",+ "license": "BSD-2-Clause",+ "optional": true,+ "peer": true,+ "dependencies": {+ "cross-dirname": "^0.1.0",+ "debug": "^4.3.4",+ "fs-extra": "^11.1.1",+ "minimist": "^1.2.8",+ "postject": "^1.0.0-alpha.6"+ },+ "bin": {+ "electron-windows-sign": "bin/electron-windows-sign.js"+ },"engines": {- "node": ">= 10.0.0"+ "node": ">=14.14"}},- "node_modules/@gar/promisify": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz",- "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",- "dev": true,- "license": "MIT"- },- "node_modules/@isaacs/cliui": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",- "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",+ "node_modules/@electron/windows-sign/node_modules/fs-extra": {+ "version": "11.4.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz",+ "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==","dev": true,- "license": "ISC",+ "license": "MIT",+ "optional": true,+ "peer": true,"dependencies": {- "string-width": "^5.1.2",- "string-width-cjs": "npm:string-width@^4.2.0",- "strip-ansi": "^7.0.1",- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",- "wrap-ansi": "^8.1.0",- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"},"engines": {- "node": ">=12"+ "node": ">=14.14"}},- "node_modules/@isaacs/cliui/node_modules/ansi-regex": {- "version": "6.4.0",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz",- "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==",+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],"dev": true,"license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ "node": ">=18"}},- "node_modules/@isaacs/cliui/node_modules/ansi-styles": {- "version": "6.2.3",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",- "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],"dev": true,"license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=18"}},- "node_modules/@isaacs/cliui/node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",- "dev": true,- "license": "MIT"- },- "node_modules/@isaacs/cliui/node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=18"}},- "node_modules/@isaacs/cliui/node_modules/strip-ansi": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",- "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "ansi-regex": "^6.2.2"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ "node": ">=18"}},- "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ "node": ">=18"}},- "node_modules/@malept/cross-spawn-promise": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",- "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==",+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],"dev": true,- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/malept"- },- {- "type": "tidelift",- "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"- }+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"],- "license": "Apache-2.0",- "dependencies": {- "cross-spawn": "^7.0.1"- },"engines": {- "node": ">= 12.13.0"+ "node": ">=18"}},- "node_modules/@malept/flatpak-bundler": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz",- "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==",+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "debug": "^4.1.1",- "fs-extra": "^9.0.0",- "lodash": "^4.17.15",- "tmp-promise": "^3.0.2"- },+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">= 10.0.0"+ "node": ">=18"}},- "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": {- "version": "9.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",- "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "at-least-node": "^1.0.0",- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">=10"+ "node": ">=18"}},- "node_modules/@malept/flatpak-bundler/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],"dev": true,"license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@malept/flatpak-bundler/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 10.0.0"+ "node": ">=18"}},- "node_modules/@npmcli/fs": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.1.2.tgz",- "integrity": "sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==",+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],"dev": true,- "license": "ISC",- "dependencies": {- "@gar/promisify": "^1.1.3",- "semver": "^7.3.5"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=18"}},- "node_modules/@npmcli/fs/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],"dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=10"+ "node": ">=18"}},- "node_modules/@npmcli/move-file": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-2.0.1.tgz",- "integrity": "sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==",- "deprecated": "This functionality has been moved to @npmcli/fs",+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],"dev": true,"license": "MIT",- "dependencies": {- "mkdirp": "^1.0.4",- "rimraf": "^3.0.2"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=18"}},- "node_modules/@pkgjs/parseargs": {- "version": "0.11.0",- "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",- "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],"dev": true,"license": "MIT","optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=14"+ "node": ">=18"}},- "node_modules/@sindresorhus/is": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",- "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],"dev": true,"license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sindresorhus/is?sponsor=1"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@szmarczak/http-timer": {- "version": "4.0.6",- "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",- "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],"dev": true,"license": "MIT",- "dependencies": {- "defer-to-connect": "^2.0.0"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=10"+ "node": ">=18"}},- "node_modules/@tootallnate/once": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.1.tgz",- "integrity": "sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==",+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 10"+ "node": ">=18"}},- "node_modules/@types/cacheable-request": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",- "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==",+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@types/http-cache-semantics": "*",- "@types/keyv": "^3.1.4",- "@types/node": "*",- "@types/responselike": "^1.0.0"+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@types/debug": {- "version": "4.1.13",- "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",- "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@types/ms": "*"+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@types/fs-extra": {- "version": "9.0.13",- "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz",- "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@types/node": "*"+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@types/http-cache-semantics": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",- "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==",+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT"+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }},- "node_modules/@types/keyv": {- "version": "3.1.4",- "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz",- "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@types/node": "*"+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@types/ms": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",- "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT"+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }},- "node_modules/@types/node": {- "version": "20.19.43",- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",- "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "undici-types": "~6.21.0"+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@types/plist": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz",- "integrity": "sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==",+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],"dev": true,"license": "MIT","optional": true,- "dependencies": {- "@types/node": "*",- "xmlbuilder": ">=11.0.1"+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@types/responselike": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz",- "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@isaacs/fs-minipass": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",+ "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",+ "dev": true,+ "license": "ISC","dependencies": {- "@types/node": "*"+ "minipass": "^7.0.4"+ },+ "engines": {+ "node": ">=18.0.0"}},- "node_modules/@types/verror": {- "version": "1.10.11",- "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz",- "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==",+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==","dev": true,"license": "MIT",- "optional": true+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }},- "node_modules/@types/yauzl": {- "version": "2.10.3",- "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",- "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==",+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==","dev": true,"license": "MIT",- "optional": true,"dependencies": {- "@types/node": "*"+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"}},- "node_modules/@xmldom/xmldom": {- "version": "0.9.12",- "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz",- "integrity": "sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==",+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==","dev": true,"license": "MIT","engines": {- "node": ">=14.6"+ "node": ">=6.0.0"}},- "node_modules/7zip-bin": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.2.0.tgz",- "integrity": "sha512-ukTPVhqG4jNzMro2qA9HSCSSVJN3aN7tlb+hfqYCt3ER0yWroeA2VR38MNrOHLQ/cVj+DaIMad0kFCtWWowh/A==",+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==","dev": true,"license": "MIT"},- "node_modules/abbrev": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",- "dev": true,- "license": "ISC"- },- "node_modules/agent-base": {- "version": "7.1.4",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",- "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==","dev": true,"license": "MIT",- "engines": {- "node": ">= 14"+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"}},- "node_modules/agentkeepalive": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz",- "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==",+ "node_modules/@malept/cross-spawn-promise": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",+ "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==","dev": true,- "license": "MIT",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/malept"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"+ }+ ],+ "license": "Apache-2.0","dependencies": {- "humanize-ms": "^1.2.1"+ "cross-spawn": "^7.0.1"},"engines": {- "node": ">= 8.0.0"+ "node": ">= 12.13.0"}},- "node_modules/aggregate-error": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",- "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",+ "node_modules/@malept/flatpak-bundler": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz",+ "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==","dev": true,"license": "MIT","dependencies": {- "clean-stack": "^2.0.0",- "indent-string": "^4.0.0"+ "debug": "^4.1.1",+ "fs-extra": "^9.0.0",+ "lodash": "^4.17.15",+ "tmp-promise": "^3.0.2"},"engines": {- "node": ">=8"+ "node": ">= 10.0.0"}},- "node_modules/ajv": {- "version": "6.15.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",- "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",+ "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==","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"+ "at-least-node": "^1.0.0",+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"},- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"+ "engines": {+ "node": ">=10"}},- "node_modules/ajv-keywords": {- "version": "3.5.2",- "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",- "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",+ "node_modules/@napi-rs/lzma-linux-x64-gnu": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",- "peerDependencies": {- "ajv": "^6.9.1"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^22.20 || ^24.12 || >=25"}},- "node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "node_modules/@noble/hashes": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==","dev": true,"license": "MIT","engines": {- "node": ">=8"+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"}},- "node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/@peculiar/asn1-schema": {+ "version": "2.11.1",+ "resolved": "https://registry.npmjs.org/@peculiar/asn1-schema/-/asn1-schema-2.11.1.tgz",+ "integrity": "sha512-jaU9OaCcbZUdyXx9hMETZB9xoNmxTGjOGFqd3cOwKFkpKnyKd9WxF3uqj4PvX4cyOMP9bSdHg5YyML2qtx/d/g==","dev": true,"license": "MIT","dependencies": {- "color-convert": "^2.0.1"+ "@peculiar/utils": "^2.0.2",+ "asn1js": "^3.0.10",+ "tslib": "^2.8.1"},"engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=14"}},- "node_modules/app-builder-bin": {- "version": "5.0.0-alpha.10",- "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-5.0.0-alpha.10.tgz",- "integrity": "sha512-Ev4jj3D7Bo+O0GPD2NMvJl+PGiBAfS7pUGawntBNpCbxtpncfUixqFj9z9Jme7V7s3LBGqsWZZP54fxBX3JKJw==",- "dev": true,- "license": "MIT"- },- "node_modules/app-builder-lib": {- "version": "25.1.8",- "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-25.1.8.tgz",- "integrity": "sha512-pCqe7dfsQFBABC1jeKZXQWhGcCPF3rPCXDdfqVKjIeWBcXzyC1iOWZdfFhGl+S9MyE/k//DFmC6FzuGAUudNDg==",+ "node_modules/@peculiar/json-schema": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/@peculiar/json-schema/-/json-schema-1.1.12.tgz",+ "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==","dev": true,"license": "MIT","dependencies": {- "@develar/schema-utils": "~2.6.5",- "@electron/notarize": "2.5.0",- "@electron/osx-sign": "1.3.1",- "@electron/rebuild": "3.6.1",- "@electron/universal": "2.0.1",- "@malept/flatpak-bundler": "^0.4.0",- "@types/fs-extra": "9.0.13",- "async-exit-hook": "^2.0.1",- "bluebird-lst": "^1.0.9",- "builder-util": "25.1.7",- "builder-util-runtime": "9.2.10",- "chromium-pickle-js": "^0.2.0",- "config-file-ts": "0.2.8-rc1",- "debug": "^4.3.4",- "dotenv": "^16.4.5",- "dotenv-expand": "^11.0.6",- "ejs": "^3.1.8",- "electron-publish": "25.1.7",- "form-data": "^4.0.0",- "fs-extra": "^10.1.0",- "hosted-git-info": "^4.1.0",- "is-ci": "^3.0.0",- "isbinaryfile": "^5.0.0",- "js-yaml": "^4.1.0",- "json5": "^2.2.3",- "lazy-val": "^1.0.5",- "minimatch": "^10.0.0",- "resedit": "^1.7.0",- "sanitize-filename": "^1.6.3",- "semver": "^7.3.8",- "tar": "^6.1.12",- "temp-file": "^3.4.0"+ "tslib": "^2.0.0"},"engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "dmg-builder": "25.1.8",- "electron-builder-squirrel-windows": "25.1.8"+ "node": ">=8.0.0"}},- "node_modules/app-builder-lib/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "node_modules/@peculiar/utils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@peculiar/utils/-/utils-2.0.3.tgz",+ "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==","dev": true,"license": "MIT","dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },- "engines": {- "node": ">=12"+ "tslib": "^2.8.1"}},- "node_modules/app-builder-lib/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "node_modules/@peculiar/webcrypto": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/@peculiar/webcrypto/-/webcrypto-1.7.2.tgz",+ "integrity": "sha512-ktTSACRJ5WdpfjHjFT2EWJQQPacGv1cPCDfEbdmpAHOxdFiYqPe4lfnXGA3D8Dg9/0kHPYSvyRlgujIOVlTdvQ==","dev": true,"license": "MIT","dependencies": {- "universalify": "^2.0.0"+ "@peculiar/asn1-schema": "^2.7.0",+ "@peculiar/json-schema": "^1.1.12",+ "@peculiar/utils": "^2.0.2",+ "tslib": "^2.8.1",+ "webcrypto-core": "^1.9.2"},- "optionalDependencies": {- "graceful-fs": "^4.1.6"+ "engines": {+ "node": ">=14.18.0"}},- "node_modules/app-builder-lib/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz",+ "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.65.1.tgz",+ "integrity": "sha512-5coxNSjqOI2J3NkVhlp3u+zGcyjnowQFsU9sg7MMz4UPXY4Dv63kFGLt7ConXz9CNq2i0yuOJZAF/2RMrgI2OA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.65.1.tgz",+ "integrity": "sha512-K0HFf6XMB3IYs+jDZ1/RRhZaVOwxNXrl0n4MDEyGDjuK7+B6K/nDJp8DCBitO3S1sK/fzNxAf9QZAny4AIUPtg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.65.1.tgz",+ "integrity": "sha512-zkZrXYwNlIcSUmcwY2DpsaDHr0XjVUeQHCuSunG3eQD7/5Wn/DvI7OMUE8NRRweK87yG8ebJ1xGOzmwpMsbZQA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.65.1.tgz",+ "integrity": "sha512-Zaed+R3cpkkA3aiNd7NO0GV5KFh/LVf8j6bGcoRdpoXkSm/mWH8M0oX2/3u/nyGcx/bHEovD9CzX+w9/gcpI4A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.65.1.tgz",+ "integrity": "sha512-h12p3WJWhyJ9kir0zqAPr0rKNmBzOWIjoaOMT9OULs9KZQZCeOMKd+mGSvERjd9VxJYShd3zIxtrVxkYz6BEVA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.65.1.tgz",+ "integrity": "sha512-yRBwh/5imKY4DydDulVtrjy8Jf7h7NQJUqZbgmZ3zFsCD9QqlnWvZ7RtEF+ecO1b+IukKjXlu5Bb9fehV3tIbg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.65.1.tgz",+ "integrity": "sha512-1XuPiWYYaLE1UDOqhbKVOfsqxvfmFS/lYPSk92U1hEX1qRfSYH0hNeAlbxFIgjp4d6+YQmL95EPRgdvjbZEddA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.65.1.tgz",+ "integrity": "sha512-Y3C5e55Yrf6p2r5rBcc4P9hFWVNi6oqWy/53I/AyCJJGlp3KRSpTP8eoUmVntchTbEnhgBgAgLO9flj9AvOdUw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.65.1.tgz",+ "integrity": "sha512-Itj6coSswkYPIcVLczObXmwdplHNQQxyfnK1ppBg4czDaX8RiEzLKqU7EMc64BiBuiDZEUS+M93ktM18rv5llw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.65.1.tgz",+ "integrity": "sha512-KeO8jTEqdrnhvcahufbimyMoI44vedRUp1bVz2QUnRX2vDm/hxzCPt5F8fERVD5fsHyTW/vXmCElT054VOSVOA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.65.1.tgz",+ "integrity": "sha512-dDOz5VZZ+ZGnglpmET6VJefamWXFsgaVtuhSClf2/URZBp048jprD6z1hddsIMN6n1w+oUzGZEBp9u6Mlszsfg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.65.1.tgz",+ "integrity": "sha512-JbfRKz8nJCuo8gn1Dqx8lQWEHw4qhZ3uRaHphw5vrSjnSptJTKTRC/bLKHh8QQMsEnhL4uq+bdg3tkiXbJ2q/A==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.65.1.tgz",+ "integrity": "sha512-3oQpe1q0emSeCAssVHMQdOz5fz3PBH5my/Fr0ZekV2UMNL4ZiRa1ciikYlGQXyDkeqseYYv1InwOY8YPqY7RIQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.65.1.tgz",+ "integrity": "sha512-nNV3HHi23o1LtpGGwH+Bav4hqnc4+klQtC96tSvCfvql8bLlNFTnTFiGl/jai2nve3eEr/vT2ocuyf+h+eMnYQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.65.1.tgz",+ "integrity": "sha512-b5zab0FryBxuocuDeqOsYGAg2EzjKw4mKA6LjQXCyewXjGv/BXqACBsY2cO45xM4hV2weYtdjGThP2VB2ByAYg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.65.1.tgz",+ "integrity": "sha512-Rh08xZakiUxKNgI3hbgH9mivlx478lSqckS9s+Oc3/TX1VrAH3W8z/5wpJXR/v5VjqcJ/jJNVBg64PU1+iQsTQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.65.1.tgz",+ "integrity": "sha512-qDgtS6juN3/k97y4kcD6XLFpXEo4f6CnG8lTOGYwlhrUYTrMyhN0WHdZCPAW5rqS0MqQG7qI7dxnjugt6QB39Q==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.65.1.tgz",+ "integrity": "sha512-44IKzBPqXXVm0kt1O+F5eW4juR5FyIxGNlFkpP8qwIDzucBsjM1HCbdYUQrQw8rU/g6HRl/tfBm0+Qq4H4Ro3w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.65.1.tgz",+ "integrity": "sha512-tvYWZ/h2PCHs558Xu7B6LptuRCV8lXV2xI75ONMcldII1m2zlFwuI4BJZi9M6rSMkYqcPLLtPUPrjyqfbzLOdg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.65.1.tgz",+ "integrity": "sha512-gdyeucgZCnei3pXwadKVTEAOgRx0B+c847DUPR/PdOMmp3olhfkYo6r0J4PzRFZB5ZICZQTxntyvgmWH5xT7rg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.65.1.tgz",+ "integrity": "sha512-Wf/NEKdn2SAL4Nvt8HyDtdkseWTwiLbZEOoNYnEaHkbso0B9eHO42vKnZh+OYsn+IMhAMcWcuIwPlBOgOXsUzg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.65.1.tgz",+ "integrity": "sha512-x9VSsDmsMsEWy4cr/mFeaEsXnVJ6Kc4NCAU/lCnwml3s7LQbZoa9+/qwc9etWHbuuDT5mYxdyyKUwo76njtjZw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.65.1.tgz",+ "integrity": "sha512-RIDbiVvvLkN45mOFpbo6eYMgnuiBEB62BGR/0s4QJgGg2AvVxucDDNn67kpAcUoYyfmY8iX8/RifMcmxmmnejA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.65.1.tgz",+ "integrity": "sha512-+KN8HIr88vN59JNxlrM2fMimzY43Y0lQB7+0xdVsFbvFCAA74CLKCdfzIHzzvndJryBc94Pm+MvwtukKjaS2ug==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.65.1.tgz",+ "integrity": "sha512-+Y1Sd49cSDq60UOl8/U2HI0ebUvnSl/hDhMHQn+ouw17yb8fYwMWIazzJ4JFpSkjPE7sj5NTNSX9IoyEqcFfyQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sindresorhus/is": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz",+ "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/is?sponsor=1"+ }+ },+ "node_modules/@szmarczak/http-timer": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",+ "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "defer-to-connect": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@tailwindcss/node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",+ "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.5",+ "enhanced-resolve": "^5.24.1",+ "jiti": "^2.7.0",+ "lightningcss": "1.32.0",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",+ "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.3.3",+ "@tailwindcss/oxide-darwin-arm64": "4.3.3",+ "@tailwindcss/oxide-darwin-x64": "4.3.3",+ "@tailwindcss/oxide-freebsd-x64": "4.3.3",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3",+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.3",+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.3",+ "@tailwindcss/oxide-linux-x64-musl": "4.3.3",+ "@tailwindcss/oxide-wasm32-wasi": "4.3.3",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3",+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",+ "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",+ "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",+ "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",+ "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",+ "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",+ "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",+ "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",+ "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",+ "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",+ "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.11.1",+ "@emnapi/runtime": "^1.11.1",+ "@emnapi/wasi-threads": "^1.2.2",+ "@napi-rs/wasm-runtime": "^1.1.4",+ "@tybys/wasm-util": "^0.10.2",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",+ "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",+ "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/vite": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz",+ "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@tailwindcss/node": "4.3.3",+ "@tailwindcss/oxide": "4.3.3",+ "tailwindcss": "4.3.3"+ },+ "peerDependencies": {+ "vite": "^5.2.0 || ^6 || ^7 || ^8"+ }+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "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",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "node_modules/@types/cacheable-request": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz",+ "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-cache-semantics": "*",+ "@types/keyv": "^3.1.4",+ "@types/node": "*",+ "@types/responselike": "^1.0.0"+ }+ },+ "node_modules/@types/debug": {+ "version": "4.1.13",+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/fs-extra": {+ "version": "9.0.13",+ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz",+ "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/http-cache-semantics": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",+ "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/keyv": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz",+ "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/ms": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "22.19.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.1.tgz",+ "integrity": "sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/react": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",+ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",+ "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^19.3.0"+ }+ },+ "node_modules/@types/responselike": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz",+ "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/w3c-web-serial": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/w3c-web-serial/-/w3c-web-serial-1.0.8.tgz",+ "integrity": "sha512-QQOT+bxQJhRGXoZDZGLs3ksLud1dMNnMiSQtBA0w8KXvLpXX4oM4TZb6J0GgJ8UbCaHo5s9/4VQT8uXy9JER2A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/web-bluetooth": {+ "version": "0.0.21",+ "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz",+ "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz",+ "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==",+ "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/@xmldom/xmldom": {+ "version": "0.8.15",+ "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.15.tgz",+ "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/abbrev": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz",+ "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^20.17.0 || >=22.9.0"+ }+ },+ "node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/ajv": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.3",+ "fast-uri": "^3.0.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==","dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },+ "license": "MIT","engines": {- "node": ">=10"+ "node": ">=8"}},- "node_modules/app-builder-lib/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==","dev": true,"license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },"engines": {- "node": ">= 10.0.0"+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"}},- "node_modules/aproba": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.1.0.tgz",- "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==",+ "node_modules/app-builder-lib": {+ "version": "26.17.0",+ "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.17.0.tgz",+ "integrity": "sha512-wfL7EhujuODDW3uMSD8RPcr/MLzmT0dmpVfWV0wFUWXI0rIdaukzAJ7EFUSyHXOpxuBZqaIGlQt6VeQhtHhetw==","dev": true,- "license": "ISC"+ "license": "MIT",+ "dependencies": {+ "@electron/asar": "3.4.1",+ "@electron/fuses": "^1.8.0",+ "@electron/get": "^3.0.0",+ "@electron/notarize": "2.5.0",+ "@electron/osx-sign": "1.3.3",+ "@electron/rebuild": "^4.0.4",+ "@electron/universal": "2.0.3",+ "@malept/flatpak-bundler": "^0.4.0",+ "@noble/hashes": "^1.8.0",+ "@peculiar/webcrypto": "^1.7.1",+ "@types/fs-extra": "9.0.13",+ "ajv": "^8.18.0",+ "asn1js": "^3.0.10",+ "async-exit-hook": "^2.0.1",+ "builder-util": "26.16.0",+ "builder-util-runtime": "9.7.0",+ "chromium-pickle-js": "^0.2.0",+ "ci-info": "4.3.1",+ "debug": "^4.3.4",+ "dotenv": "^16.4.5",+ "dotenv-expand": "^11.0.6",+ "ejs": "^3.1.8",+ "electron-publish": "26.16.0",+ "fs-extra": "^10.1.0",+ "hosted-git-info": "^4.1.0",+ "isbinaryfile": "^5.0.0",+ "jiti": "^2.4.2",+ "js-yaml": "^4.1.0",+ "json5": "^2.2.3",+ "lazy-val": "^1.0.5",+ "minimatch": "^10.2.5",+ "pkijs": "^3.4.0",+ "plist": "3.1.0",+ "proper-lockfile": "^4.1.2",+ "resedit": "^1.7.0",+ "semver": "~7.7.3",+ "tar": "^7.5.7",+ "temp-file": "^3.4.0",+ "tiny-async-pool": "1.3.0",+ "unzipper": "^0.12.3",+ "which": "^5.0.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "dmg-builder": "26.17.0",+ "electron-builder-squirrel-windows": "26.17.0"+ }},- "node_modules/archiver": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz",- "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==",+ "node_modules/app-builder-lib/node_modules/@electron/get": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-3.1.0.tgz",+ "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {- "archiver-utils": "^2.1.0",- "async": "^3.2.4",- "buffer-crc32": "^0.2.1",- "readable-stream": "^3.6.0",- "readdir-glob": "^1.1.2",- "tar-stream": "^2.2.0",- "zip-stream": "^4.1.0"+ "debug": "^4.1.1",+ "env-paths": "^2.2.0",+ "fs-extra": "^8.1.0",+ "got": "^11.8.5",+ "progress": "^2.0.3",+ "semver": "^6.2.0",+ "sumchecker": "^3.0.1"},"engines": {- "node": ">= 10"+ "node": ">=14"+ },+ "optionalDependencies": {+ "global-agent": "^3.0.0"}},- "node_modules/archiver-utils": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz",- "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==",+ "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",+ "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==","dev": true,"license": "MIT",- "peer": true,"dependencies": {- "glob": "^7.1.4","graceful-fs": "^4.2.0",- "lazystream": "^1.0.0",- "lodash.defaults": "^4.2.0",- "lodash.difference": "^4.5.0",- "lodash.flatten": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.union": "^4.6.0",- "normalize-path": "^3.0.0",- "readable-stream": "^2.0.0"+ "jsonfile": "^4.0.0",+ "universalify": "^0.1.0"},"engines": {- "node": ">= 6"+ "node": ">=6 <7 || >=8"}},- "node_modules/archiver-utils/node_modules/readable-stream": {- "version": "2.3.8",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",- "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==","dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/app-builder-lib/node_modules/ci-info": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz",+ "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],"license": "MIT",- "peer": true,- "dependencies": {- "core-util-is": "~1.0.0",- "inherits": "~2.0.3",- "isarray": "~1.0.0",- "process-nextick-args": "~2.0.0",- "safe-buffer": "~5.1.1",- "string_decoder": "~1.1.1",- "util-deprecate": "~1.0.1"+ "engines": {+ "node": ">=8"}},- "node_modules/archiver-utils/node_modules/safe-buffer": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "node_modules/app-builder-lib/node_modules/env-paths": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==","dev": true,"license": "MIT",- "peer": true+ "engines": {+ "node": ">=6"+ }},- "node_modules/archiver-utils/node_modules/string_decoder": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "node_modules/app-builder-lib/node_modules/jsonfile": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==","dev": true,"license": "MIT",- "peer": true,- "dependencies": {- "safe-buffer": "~5.1.0"+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"}},- "node_modules/are-we-there-yet": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz",- "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==",- "deprecated": "This package is no longer supported.",+ "node_modules/app-builder-lib/node_modules/semver": {+ "version": "7.7.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==","dev": true,"license": "ISC",- "dependencies": {- "delegates": "^1.0.0",- "readable-stream": "^3.6.0"+ "bin": {+ "semver": "bin/semver.js"},"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=10"+ }+ },+ "node_modules/app-builder-lib/node_modules/universalify": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4.0.0"}},"node_modules/argparse": {@@ -1111,26 +2373,19 @@"dev": true,"license": "Python-2.0"},- "node_modules/assert-plus": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",- "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=0.8"- }- },- "node_modules/astral-regex": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz",- "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==",+ "node_modules/asn1js": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/asn1js/-/asn1js-3.1.0.tgz",+ "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==","dev": true,- "license": "MIT",- "optional": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "pvtsutils": "^1.3.6",+ "pvutils": "^1.2.0",+ "tslib": "^2.8.1"+ },"engines": {- "node": ">=8"+ "node": ">=12.0.0"}},"node_modules/async": {@@ -1167,6 +2422,13 @@"node": ">= 4.0.0"}},+ "node_modules/aws4": {+ "version": "1.13.2",+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz",+ "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/balanced-match": {"version": "4.0.4","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",@@ -1198,16 +2460,17 @@],"license": "MIT"},- "node_modules/bl": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",- "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "node_modules/baseline-browser-mapping": {+ "version": "2.11.34",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.34.tgz",+ "integrity": "sha512-Aqr8mA1kIvyJ3UY5YAY7ib8LSo1DmDMbMnVqGPtsKW1LxaFQFwn9Eb3yvq2fUKJsRvaXjnAV7R5osqETapzNiA==","dev": true,- "license": "MIT",- "dependencies": {- "buffer": "^5.5.0",- "inherits": "^2.0.4",- "readable-stream": "^3.4.0"+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"}},"node_modules/bluebird": {@@ -1217,16 +2480,6 @@"dev": true,"license": "MIT"},- "node_modules/bluebird-lst": {- "version": "1.0.9",- "resolved": "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz",- "integrity": "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==",- "dev": true,- "license": "MIT",- "dependencies": {- "bluebird": "^3.5.5"- }- },"node_modules/boolean": {"version": "3.2.0","resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",@@ -1249,214 +2502,105 @@"node": "20 || >=22"}},- "node_modules/buffer": {- "version": "5.7.1",- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "node_modules/browserslist": {+ "version": "4.29.5",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz",+ "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==","dev": true,"funding": [{- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"},{- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT",- "dependencies": {- "base64-js": "^1.3.1",- "ieee754": "^1.1.13"- }- },- "node_modules/buffer-crc32": {- "version": "0.2.13",- "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",- "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },- "node_modules/buffer-from": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",- "dev": true,- "license": "MIT"- },- "node_modules/builder-util": {- "version": "25.1.7",- "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-25.1.7.tgz",- "integrity": "sha512-7jPjzBwEGRbwNcep0gGNpLXG9P94VA3CPAZQCzxkFXiV2GMQKlziMbY//rXPI7WKfhsvGgFXjTcXdBEwgXw9ww==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/debug": "^4.1.6",- "7zip-bin": "~5.2.0",- "app-builder-bin": "5.0.0-alpha.10",- "bluebird-lst": "^1.0.9",- "builder-util-runtime": "9.2.10",- "chalk": "^4.1.2",- "cross-spawn": "^7.0.3",- "debug": "^4.3.4",- "fs-extra": "^10.1.0",- "http-proxy-agent": "^7.0.0",- "https-proxy-agent": "^7.0.0",- "is-ci": "^3.0.0",- "js-yaml": "^4.1.0",- "source-map-support": "^0.5.19",- "stat-mode": "^1.0.0",- "temp-file": "^3.4.0"- }- },- "node_modules/builder-util-runtime": {- "version": "9.2.10",- "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.2.10.tgz",- "integrity": "sha512-6p/gfG1RJSQeIbz8TK5aPNkoztgY1q5TgmGFMAXcY8itsGW6Y2ld1ALsZ5UJn8rog7hKF3zHx5iQbNQ8uLcRlw==",- "dev": true,- "license": "MIT",- "dependencies": {- "debug": "^4.3.4",- "sax": "^1.2.4"- },- "engines": {- "node": ">=12.0.0"- }- },- "node_modules/builder-util/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/builder-util/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },- "node_modules/builder-util/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",- "dev": true,+ "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": ">= 10.0.0"+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"}},- "node_modules/cacache": {- "version": "16.1.3",- "resolved": "https://registry.npmjs.org/cacache/-/cacache-16.1.3.tgz",- "integrity": "sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "@npmcli/fs": "^2.1.0",- "@npmcli/move-file": "^2.0.0",- "chownr": "^2.0.0",- "fs-minipass": "^2.1.0",- "glob": "^8.0.1",- "infer-owner": "^1.0.4",- "lru-cache": "^7.7.1",- "minipass": "^3.1.6",- "minipass-collect": "^1.0.2",- "minipass-flush": "^1.0.5",- "minipass-pipeline": "^1.2.4",- "mkdirp": "^1.0.4",- "p-map": "^4.0.0",- "promise-inflight": "^1.0.1",- "rimraf": "^3.0.2",- "ssri": "^9.0.0",- "tar": "^6.1.11",- "unique-filename": "^2.0.0"- },- "engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"- }- },- "node_modules/cacache/node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==","dev": true,"license": "MIT"},- "node_modules/cacache/node_modules/brace-expansion": {- "version": "2.1.7",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",- "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",+ "node_modules/builder-util": {+ "version": "26.16.0",+ "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-26.16.0.tgz",+ "integrity": "sha512-RLyJhB7Si3YkzKR9ubQslWuXW3Vhs3CGe1i+SeixBZ0qTd1mk3XBmssvY22TlB6CS5blyko8Gu1JzpYk8UkYAg==","dev": true,"license": "MIT","dependencies": {- "balanced-match": "^1.0.0"+ "@types/debug": "^4.1.6",+ "builder-util-runtime": "9.7.0",+ "chalk": "^4.1.2",+ "cross-spawn": "^7.0.6",+ "debug": "^4.3.4",+ "fs-extra": "^10.1.0",+ "http-proxy-agent": "^7.0.0",+ "https-proxy-agent": "^7.0.0",+ "js-yaml": "^4.1.0",+ "sanitize-filename": "^1.6.3",+ "source-map-support": "^0.5.19",+ "stat-mode": "^1.0.0",+ "temp-file": "^3.4.0",+ "tiny-async-pool": "1.3.0"+ },+ "engines": {+ "node": ">=14.0.0"}},- "node_modules/cacache/node_modules/glob": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",- "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",- "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",+ "node_modules/builder-util-runtime": {+ "version": "9.7.0",+ "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz",+ "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "fs.realpath": "^1.0.0",- "inflight": "^1.0.4",- "inherits": "2",- "minimatch": "^5.0.1",- "once": "^1.3.0"+ "debug": "^4.3.4",+ "sax": "^1.2.4"},"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "node": ">=12.0.0"}},- "node_modules/cacache/node_modules/lru-cache": {- "version": "7.18.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",- "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",+ "node_modules/bytestreamjs": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz",+ "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==","dev": true,- "license": "ISC",+ "license": "BSD-3-Clause","engines": {- "node": ">=12"+ "node": ">=6.0.0"}},- "node_modules/cacache/node_modules/minimatch": {- "version": "5.1.9",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",- "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==","dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.1"- },+ "license": "MIT","engines": {- "node": ">=10"+ "node": ">=8"}},"node_modules/cacheable-lookup": {@@ -1502,6 +2646,27 @@"node": ">= 0.4"}},+ "node_modules/caniuse-lite": {+ "version": "1.0.30001819",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001819.tgz",+ "integrity": "sha512-LFUqIIAwpzsIuevnKnsR9qnStBcgzPShTX61lBwN9uFkkf8o8zLiebEjbW8AYtZiF+1YKDWfdt/pWDtMuG8Xwg==",+ "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/chalk": {"version": "4.1.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",@@ -1520,13 +2685,13 @@}},"node_modules/chownr": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",- "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",+ "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==","dev": true,- "license": "ISC",+ "license": "BlueOak-1.0.0","engines": {- "node": ">=10"+ "node": ">=18"}},"node_modules/chromium-pickle-js": {@@ -1537,9 +2702,9 @@"license": "MIT"},"node_modules/ci-info": {- "version": "3.9.0",- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",- "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",+ "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==","dev": true,"funding": [{@@ -1552,60 +2717,6 @@"node": ">=8"}},- "node_modules/clean-stack": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",- "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/cli-cursor": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",- "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",- "dev": true,- "license": "MIT",- "dependencies": {- "restore-cursor": "^3.1.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cli-spinners": {- "version": "2.9.2",- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",- "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/cli-truncate": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",- "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "slice-ansi": "^3.0.0",- "string-width": "^4.2.0"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/cliui": {"version": "8.0.1","resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",@@ -1621,246 +2732,112 @@"node": ">=12"}},- "node_modules/clone": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",- "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8"- }- },"node_modules/clone-response": {"version": "1.0.3","resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz","integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==",- "dev": true,- "license": "MIT",- "dependencies": {- "mimic-response": "^1.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true,- "license": "MIT"- },- "node_modules/color-support": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",- "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",- "dev": true,- "license": "ISC",- "bin": {- "color-support": "bin.js"- }- },- "node_modules/combined-stream": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",- "dev": true,- "license": "MIT",- "dependencies": {- "delayed-stream": "~1.0.0"- },- "engines": {- "node": ">= 0.8"- }- },- "node_modules/commander": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",- "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/compare-version": {- "version": "0.1.2",- "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz",- "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/compress-commons": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz",- "integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "buffer-crc32": "^0.2.13",- "crc32-stream": "^4.0.2",- "normalize-path": "^3.0.0",- "readable-stream": "^3.6.0"- },- "engines": {- "node": ">= 10"- }- },- "node_modules/concat-map": {- "version": "0.0.1",- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "dev": true,- "license": "MIT"- },- "node_modules/config-file-ts": {- "version": "0.2.8-rc1",- "resolved": "https://registry.npmjs.org/config-file-ts/-/config-file-ts-0.2.8-rc1.tgz",- "integrity": "sha512-GtNECbVI82bT4RiDIzBSVuTKoSHufnU7Ce7/42bkWZJZFLjmDF2WBpVsvRkhKCfKBnTBb3qZrBwPpFBU/Myvhg==",- "dev": true,- "license": "MIT",- "dependencies": {- "glob": "^10.3.12",- "typescript": "^5.4.3"- }- },- "node_modules/config-file-ts/node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/config-file-ts/node_modules/brace-expansion": {- "version": "2.1.7",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",- "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/config-file-ts/node_modules/glob": {- "version": "10.5.0",- "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",- "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",- "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",- "dev": true,- "license": "ISC",- "dependencies": {- "foreground-child": "^3.1.0",- "jackspeak": "^3.1.2",- "minimatch": "^9.0.4",- "minipass": "^7.1.2",- "package-json-from-dist": "^1.0.0",- "path-scurry": "^1.11.1"- },- "bin": {- "glob": "dist/esm/bin.mjs"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/config-file-ts/node_modules/minimatch": {- "version": "9.0.9",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",- "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.2"- },- "engines": {- "node": ">=16 || 14 >=14.17"+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^1.0.0"},"funding": {- "url": "https://github.com/sponsors/isaacs"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/config-file-ts/node_modules/minipass": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",- "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==","dev": true,- "license": "BlueOak-1.0.0",+ "license": "MIT","engines": {- "node": ">=16 || 14 >=14.17"+ "node": ">=6"}},- "node_modules/console-control-strings": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",- "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==","dev": true,- "license": "ISC"+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }},- "node_modules/core-util-is": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",- "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==","dev": true,"license": "MIT"},- "node_modules/crc": {- "version": "3.8.0",- "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz",- "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==",+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==","dev": true,"license": "MIT",- "optional": true,"dependencies": {- "buffer": "^5.1.0"+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"}},- "node_modules/crc-32": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz",- "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",+ "node_modules/commander": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",+ "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==","dev": true,- "license": "Apache-2.0",- "peer": true,- "bin": {- "crc32": "bin/crc32.njs"- },+ "license": "MIT","engines": {- "node": ">=0.8"+ "node": ">= 6"}},- "node_modules/crc32-stream": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz",- "integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==",+ "node_modules/compare-version": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz",+ "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==","dev": true,"license": "MIT",- "peer": true,- "dependencies": {- "crc-32": "^1.2.0",- "readable-stream": "^3.4.0"- },"engines": {- "node": ">= 10"+ "node": ">=0.10.0"}},+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/core-util-is": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-dirname": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz",+ "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peer": true+ },"node_modules/cross-spawn": {"version": "7.0.6","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",@@ -1876,6 +2853,36 @@"node": ">= 8"}},+ "node_modules/cross-spawn/node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/cross-spawn/node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/debug": {"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",@@ -1923,19 +2930,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/defaults": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",- "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "clone": "^1.0.2"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/defer-to-connect": {"version": "2.0.1","resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz",@@ -1994,13 +2988,6 @@"node": ">=0.4.0"}},- "node_modules/delegates": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",- "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",- "dev": true,- "license": "MIT"- },"node_modules/detect-libc": {"version": "2.1.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",@@ -2062,86 +3049,16 @@}},"node_modules/dmg-builder": {- "version": "25.1.8",- "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-25.1.8.tgz",- "integrity": "sha512-NoXo6Liy2heSklTI5OIZbCgXC1RzrDQsZkeEwXhdOro3FT1VBOvbubvscdPnjVuQ4AMwwv61oaH96AbiYg9EnQ==",+ "version": "26.17.0",+ "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-26.17.0.tgz",+ "integrity": "sha512-EAw1f2iGkICmUvAVBOjm7v5mxJdB7/+OZSycHFhKBimiTkCXtvkCC6wBKzHo7ZQYi58C2MmwIleRbgRnROlK2Q==","dev": true,"license": "MIT","dependencies": {- "app-builder-lib": "25.1.8",- "builder-util": "25.1.7",- "builder-util-runtime": "9.2.10",+ "app-builder-lib": "26.17.0",+ "builder-util": "26.16.0","fs-extra": "^10.1.0",- "iconv-lite": "^0.6.2","js-yaml": "^4.1.0"- },- "optionalDependencies": {- "dmg-license": "^1.0.11"- }- },- "node_modules/dmg-builder/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/dmg-builder/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },- "node_modules/dmg-builder/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 10.0.0"- }- },- "node_modules/dmg-license": {- "version": "1.0.11",- "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz",- "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==",- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "dependencies": {- "@types/plist": "^3.0.1",- "@types/verror": "^1.10.3",- "ajv": "^6.10.0",- "crc": "^3.8.0",- "iconv-corefoundation": "^1.1.7",- "plist": "^3.0.4",- "smart-buffer": "^4.0.2",- "verror": "^1.10.0"- },- "bin": {- "dmg-license": "bin/dmg-license.js"- },- "engines": {- "node": ">=8"}},"node_modules/dotenv": {@@ -2188,12 +3105,15 @@"node": ">= 0.4"}},- "node_modules/eastasianwidth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",+ "node_modules/duplexer2": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz",+ "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==","dev": true,- "license": "MIT"+ "license": "BSD-3-Clause",+ "dependencies": {+ "readable-stream": "^2.0.2"+ }},"node_modules/ejs": {"version": "3.1.10",@@ -2209,239 +3129,205 @@},"engines": {"node": ">=0.10.0"- }- },- "node_modules/electron": {- "version": "33.2.1",- "resolved": "https://registry.npmjs.org/electron/-/electron-33.2.1.tgz",- "integrity": "sha512-SG/nmSsK9Qg1p6wAW+ZfqU+AV8cmXMTIklUL18NnOKfZLlum4ZsDoVdmmmlL39ZmeCaq27dr7CgslRPahfoVJg==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "dependencies": {- "@electron/get": "^2.0.0",- "@types/node": "^20.9.0",- "extract-zip": "^2.0.1"- },- "bin": {- "electron": "cli.js"- },- "engines": {- "node": ">= 12.20.55"- }- },- "node_modules/electron-builder": {- "version": "25.1.8",- "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-25.1.8.tgz",- "integrity": "sha512-poRgAtUHHOnlzZnc9PK4nzG53xh74wj2Jy7jkTrqZ0MWPoHGh1M2+C//hGeYdA+4K8w4yiVCNYoLXF7ySj2Wig==",- "dev": true,- "license": "MIT",- "dependencies": {- "app-builder-lib": "25.1.8",- "builder-util": "25.1.7",- "builder-util-runtime": "9.2.10",- "chalk": "^4.1.2",- "dmg-builder": "25.1.8",- "fs-extra": "^10.1.0",- "is-ci": "^3.0.0",- "lazy-val": "^1.0.5",- "simple-update-notifier": "2.0.0",- "yargs": "^17.6.2"- },- "bin": {- "electron-builder": "cli.js",- "install-app-deps": "install-app-deps.js"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/electron-builder-squirrel-windows": {- "version": "25.1.8",- "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-25.1.8.tgz",- "integrity": "sha512-2ntkJ+9+0GFP6nAISiMabKt6eqBB0kX1QqHNWFWAXgi0VULKGisM46luRFpIBiU3u/TDmhZMM8tzvo2Abn3ayg==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "app-builder-lib": "25.1.8",- "archiver": "^5.3.1",- "builder-util": "25.1.7",- "fs-extra": "^10.1.0"- }- },- "node_modules/electron-builder-squirrel-windows/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/electron-builder-squirrel-windows/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"- }- },- "node_modules/electron-builder-squirrel-windows/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",- "dev": true,- "license": "MIT",- "peer": true,- "engines": {- "node": ">= 10.0.0"- }- },- "node_modules/electron-builder/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ }+ },+ "node_modules/electron": {+ "version": "44.7.0",+ "resolved": "https://registry.npmjs.org/electron/-/electron-44.7.0.tgz",+ "integrity": "sha512-aUq9/zLAAFYc+a9gy6cd0C3Y/N/RmovLCD8TV8LhIzNhuND6HEgsu96jJz9cbAxvckSPv+Trf2PKEjktoZgFkw==","dev": true,"license": "MIT","dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"+ "@electron-internal/extract-zip": "^1.0.1",+ "@electron/get": "^5.0.0",+ "@types/node": "^24.9.0"+ },+ "bin": {+ "electron": "cli.js",+ "install-electron": "install.js"},"engines": {- "node": ">=12"+ "node": ">= 22.12.0"}},- "node_modules/electron-builder/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "node_modules/electron-builder": {+ "version": "26.17.0",+ "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-26.17.0.tgz",+ "integrity": "sha512-iYHBRiagS9sDIbZx1ZD113f5rEGQvtpvTvHf70ovHKJ8mRvxwIkWX7JCwfmVQmVS4eX735p7TZmoxHnBPwF3vA==","dev": true,"license": "MIT","dependencies": {- "universalify": "^2.0.0"+ "app-builder-lib": "26.17.0",+ "builder-util": "26.16.0",+ "builder-util-runtime": "9.7.0",+ "chalk": "^4.1.2",+ "ci-info": "^4.2.0",+ "dmg-builder": "26.17.0",+ "fs-extra": "^10.1.0",+ "lazy-val": "^1.0.5",+ "simple-update-notifier": "2.0.0",+ "yargs": "^17.6.2"},- "optionalDependencies": {- "graceful-fs": "^4.1.6"+ "bin": {+ "electron-builder": "cli.js",+ "install-app-deps": "install-app-deps.js"+ },+ "engines": {+ "node": ">=14.0.0"}},- "node_modules/electron-builder/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/electron-builder-squirrel-windows": {+ "version": "26.17.0",+ "resolved": "https://registry.npmjs.org/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.17.0.tgz",+ "integrity": "sha512-uyh+D+B0m12qCRp9c/7dwBirHTh7JcvAzj5eTEbb4dXPPGAhYPx1nozzbu1fC6AdULfat6ZNqgWhipTFpb82lQ==","dev": true,"license": "MIT",- "engines": {- "node": ">= 10.0.0"+ "peer": true,+ "dependencies": {+ "app-builder-lib": "26.17.0",+ "builder-util": "26.16.0",+ "electron-winstaller": "5.4.0"}},"node_modules/electron-publish": {- "version": "25.1.7",- "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-25.1.7.tgz",- "integrity": "sha512-+jbTkR9m39eDBMP4gfbqglDd6UvBC7RLh5Y0MhFSsc6UkGHj9Vj9TWobxevHYMMqmoujL11ZLjfPpMX+Pt6YEg==",+ "version": "26.16.0",+ "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-26.16.0.tgz",+ "integrity": "sha512-Vt3KzQIiw9BImvNOYtndg9Mjki+tl4+1sQiC/+G5j8khWaENOJFWodiB+sUl6yyHwtd37avehskdtPw7f8y/+Q==","dev": true,"license": "MIT","dependencies": {"@types/fs-extra": "^9.0.11",- "builder-util": "25.1.7",- "builder-util-runtime": "9.2.10",+ "aws4": "^1.13.2",+ "builder-util": "26.16.0",+ "builder-util-runtime": "9.7.0","chalk": "^4.1.2",+ "form-data": "^4.0.5","fs-extra": "^10.1.0","lazy-val": "^1.0.5","mime": "^2.5.2"}},- "node_modules/electron-publish/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "node_modules/electron-to-chromium": {+ "version": "1.5.466",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.466.tgz",+ "integrity": "sha512-WkgFvScwZjvCPupYGfQr5qlKCv/Tu+GYELGMCGcoBOQbNb6nx/TqGwJyLMwcNAAy2kKJF2agjM7KZKest538JA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/electron-vite": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/electron-vite/-/electron-vite-5.0.0.tgz",+ "integrity": "sha512-OHp/vjdlubNlhNkPkL/+3JD34ii5ov7M0GpuXEVdQeqdQ3ulvVR7Dg/rNBLfS5XPIFwgoBLDf9sjjrL+CuDyRQ==","dev": true,"license": "MIT","dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"+ "@babel/core": "^7.28.4",+ "@babel/plugin-transform-arrow-functions": "^7.27.1",+ "cac": "^6.7.14",+ "esbuild": "^0.25.11",+ "magic-string": "^0.30.19",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "electron-vite": "bin/electron-vite.js"},"engines": {- "node": ">=12"+ "node": "^20.19.0 || >=22.12.0"+ },+ "peerDependencies": {+ "@swc/core": "^1.0.0",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"+ },+ "peerDependenciesMeta": {+ "@swc/core": {+ "optional": true+ }}},- "node_modules/electron-publish/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "node_modules/electron-winstaller": {+ "version": "5.4.0",+ "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.0.tgz",+ "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==","dev": true,+ "hasInstallScript": true,"license": "MIT",+ "peer": true,"dependencies": {- "universalify": "^2.0.0"+ "@electron/asar": "^3.2.1",+ "debug": "^4.1.1",+ "fs-extra": "^7.0.1",+ "lodash": "^4.17.21",+ "temp": "^0.9.0"+ },+ "engines": {+ "node": ">=8.0.0"},"optionalDependencies": {- "graceful-fs": "^4.1.6"+ "@electron/windows-sign": "^1.1.2"}},- "node_modules/electron-publish/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/electron-winstaller/node_modules/fs-extra": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",+ "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==","dev": true,"license": "MIT",+ "peer": true,+ "dependencies": {+ "graceful-fs": "^4.1.2",+ "jsonfile": "^4.0.0",+ "universalify": "^0.1.0"+ },"engines": {- "node": ">= 10.0.0"+ "node": ">=6 <7 || >=8"}},- "node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "node_modules/electron-winstaller/node_modules/jsonfile": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==","dev": true,- "license": "MIT"+ "license": "MIT",+ "peer": true,+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }},- "node_modules/encoding": {- "version": "0.1.14",- "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.14.tgz",- "integrity": "sha512-pqH+jIxIhwX5U4w+Tnu3jjowTo5QTACbqef2C5Cw2RhApr7COQqgnai53u8VbtqjWRcSoAcTf7uZ62dO5kC8Iw==",+ "node_modules/electron-winstaller/node_modules/universalify": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==","dev": true,"license": "MIT",- "optional": true,- "dependencies": {- "iconv-lite": "0.7.3"- },+ "peer": true,"engines": {- "node": ">=20.0.0"+ "node": ">= 4.0.0"}},- "node_modules/encoding/node_modules/iconv-lite": {- "version": "0.7.3",- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",- "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",+ "node_modules/electron/node_modules/@types/node": {+ "version": "24.19.2",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz",+ "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==","dev": true,"license": "MIT",- "optional": true,"dependencies": {- "safer-buffer": ">= 2.1.2 < 3.0.0"- },- "engines": {- "node": ">=0.10.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"+ "undici-types": ">=7.24.0 <7.24.7"}},+ "node_modules/electron/node_modules/undici-types": {+ "version": "7.24.6",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",+ "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "dev": true,+ "license": "MIT"+ },"node_modules/end-of-stream": {"version": "1.4.5","resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",@@ -2452,14 +3338,31 @@"once": "^1.4.0"}},+ "node_modules/enhanced-resolve": {+ "version": "5.26.0",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.0.tgz",+ "integrity": "sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },"node_modules/env-paths": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",- "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz",+ "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==","dev": true,"license": "MIT","engines": {- "node": ">=6"+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},"node_modules/err-code": {@@ -2526,6 +3429,48 @@"license": "MIT","optional": true},+ "node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@ -2557,38 +3502,6 @@"dev": true,"license": "Apache-2.0"},- "node_modules/extract-zip": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",- "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "debug": "^4.1.1",- "get-stream": "^5.1.0",- "yauzl": "^2.10.0"- },- "bin": {- "extract-zip": "cli.js"- },- "engines": {- "node": ">= 10.17.0"- },- "optionalDependencies": {- "@types/yauzl": "^2.9.1"- }- },- "node_modules/extsprintf": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz",- "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==",- "dev": true,- "engines": [- "node >=0.6.0"- ],- "license": "MIT",- "optional": true- },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -2596,21 +3509,39 @@"dev": true,"license": "MIT"},- "node_modules/fast-json-stable-stringify": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "node_modules/fast-uri": {+ "version": "3.1.9",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==","dev": true,- "license": "MIT"+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fastify"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fastify"+ }+ ],+ "license": "BSD-3-Clause"},- "node_modules/fd-slicer": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",- "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==","dev": true,"license": "MIT",- "dependencies": {- "pend": "~1.2.0"+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }}},"node_modules/filelist": {@@ -2653,36 +3584,6 @@"node": ">=10"}},- "node_modules/foreground-child": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",- "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",- "dev": true,- "license": "ISC",- "dependencies": {- "cross-spawn": "^7.0.6",- "signal-exit": "^4.0.1"- },- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/foreground-child/node_modules/signal-exit": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },"node_modules/form-data": {"version": "4.0.6","resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",@@ -2700,40 +3601,19 @@"node": ">= 6"}},- "node_modules/fs-constants": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",- "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",- "dev": true,- "license": "MIT",- "peer": true- },"node_modules/fs-extra": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",- "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",+ "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==","dev": true,"license": "MIT","dependencies": {"graceful-fs": "^4.2.0",- "jsonfile": "^4.0.0",- "universalify": "^0.1.0"- },- "engines": {- "node": ">=6 <7 || >=8"- }- },- "node_modules/fs-minipass": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",- "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",- "dev": true,- "license": "ISC",- "dependencies": {- "minipass": "^3.0.0"+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"},"engines": {- "node": ">= 8"+ "node": ">=12"}},"node_modules/fs.realpath": {@@ -2743,6 +3623,21 @@"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/function-bind": {"version": "1.1.2","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",@@ -2753,25 +3648,14 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/gauge": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz",- "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==",- "deprecated": "This package is no longer supported.",+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==","dev": true,- "license": "ISC",- "dependencies": {- "aproba": "^1.0.3 || ^2.0.0",- "color-support": "^1.1.3",- "console-control-strings": "^1.1.0",- "has-unicode": "^2.0.1",- "signal-exit": "^3.0.7",- "string-width": "^4.2.3",- "strip-ansi": "^6.0.1",- "wide-align": "^1.1.5"- },+ "license": "MIT","engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=6.9.0"}},"node_modules/get-caller-file": {@@ -3042,13 +3926,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/has-unicode": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",- "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",- "dev": true,- "license": "ISC"- },"node_modules/hasown": {"version": "2.0.4","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",@@ -3069,12 +3946,32 @@"dev": true,"license": "ISC","dependencies": {- "lru-cache": "^6.0.0"+ "lru-cache": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/hosted-git-info/node_modules/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"},"engines": {"node": ">=10"}},+ "node_modules/hosted-git-info/node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },"node_modules/http-cache-semantics": {"version": "4.3.0","resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz",@@ -3124,901 +4021,1138 @@"node": ">= 14"}},- "node_modules/humanize-ms": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",- "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.","dev": true,- "license": "MIT",+ "license": "ISC","dependencies": {- "ms": "^2.0.0"+ "once": "^1.3.0",+ "wrappy": "1"}},- "node_modules/iconv-corefoundation": {- "version": "1.1.7",- "resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz",- "integrity": "sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==",+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==","dev": true,"license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "dependencies": {- "cli-truncate": "^2.1.0",- "node-addon-api": "^1.6.3"- },"engines": {- "node": "^8.11.2 || >=10"+ "node": ">=8"}},- "node_modules/iconv-lite": {- "version": "0.6.3",- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",- "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",+ "node_modules/isarray": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/isbinaryfile": {+ "version": "5.0.7",+ "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz",+ "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==","dev": true,"license": "MIT",+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/gjtorikian/"+ }+ },+ "node_modules/isexe": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",+ "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/jake": {+ "version": "10.9.4",+ "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz",+ "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==",+ "dev": true,+ "license": "Apache-2.0","dependencies": {- "safer-buffer": ">= 2.1.2 < 3.0.0"+ "async": "^3.2.6",+ "filelist": "^1.0.4",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "jake": "bin/cli.js"},"engines": {- "node": ">=0.10.0"+ "node": ">=10"}},- "node_modules/ieee754": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "node_modules/jiti": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==","dev": true,"funding": [{"type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"+ "url": "https://github.com/sponsors/puzrin"},{- "type": "consulting",- "url": "https://feross.org/support"+ "type": "github",+ "url": "https://github.com/sponsors/nodeca"}],- "license": "BSD-3-Clause"+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }},- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==","dev": true,"license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },"engines": {- "node": ">=0.8.19"+ "node": ">=6"}},- "node_modules/indent-string": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stringify-safe": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",+ "dev": true,+ "license": "ISC",+ "optional": true+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==","dev": true,"license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },"engines": {- "node": ">=8"+ "node": ">=6"}},- "node_modules/infer-owner": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",- "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",+ "node_modules/jsonfile": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",+ "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==","dev": true,- "license": "ISC"+ "license": "MIT",+ "dependencies": {+ "universalify": "^2.0.0"+ },+ "optionalDependencies": {+ "graceful-fs": "^4.1.6"+ }},- "node_modules/inflight": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "once": "^1.3.0",- "wrappy": "1"+ "json-buffer": "3.0.1"}},- "node_modules/inherits": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "node_modules/lazy-val": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz",+ "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==","dev": true,- "license": "ISC"+ "license": "MIT"},- "node_modules/ip-address": {- "version": "10.7.5",- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.5.tgz",- "integrity": "sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==",+ "node_modules/lightningcss": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==","dev": true,- "license": "MIT",+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.32.0",+ "lightningcss-darwin-arm64": "1.32.0",+ "lightningcss-darwin-x64": "1.32.0",+ "lightningcss-freebsd-x64": "1.32.0",+ "lightningcss-linux-arm-gnueabihf": "1.32.0",+ "lightningcss-linux-arm64-gnu": "1.32.0",+ "lightningcss-linux-arm64-musl": "1.32.0",+ "lightningcss-linux-x64-gnu": "1.32.0",+ "lightningcss-linux-x64-musl": "1.32.0",+ "lightningcss-win32-arm64-msvc": "1.32.0",+ "lightningcss-win32-x64-msvc": "1.32.0"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 12"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/is-ci": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",- "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",+ "cpu": [+ "arm64"+ ],"dev": true,- "license": "MIT",- "dependencies": {- "ci-info": "^3.2.0"+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"},- "bin": {- "is-ci": "bin.js"+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT",+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=8"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/is-interactive": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",- "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT",+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=8"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/is-lambda": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz",- "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==",+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",+ "cpu": [+ "arm64"+ ],"dev": true,- "license": "MIT"+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }},- "node_modules/is-unicode-supported": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",- "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT",+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=10"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/isarray": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",- "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",+ "node_modules/lodash": {+ "version": "4.18.1",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",+ "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==","dev": true,- "license": "MIT",- "peer": true+ "license": "MIT"},- "node_modules/isbinaryfile": {- "version": "5.0.7",- "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz",- "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==",+ "node_modules/lowercase-keys": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==","dev": true,"license": "MIT","engines": {- "node": ">= 18.0.0"- },- "funding": {- "url": "https://github.com/sponsors/gjtorikian/"+ "node": ">=8"}},- "node_modules/isexe": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==","dev": true,- "license": "ISC"+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }},- "node_modules/jackspeak": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",- "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "node_modules/lucide-react": {+ "version": "1.55.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.55.0.tgz",+ "integrity": "sha512-bSozQHiI3/8q7JvgoqVRGOYUi7fYT3siAZwmZsljjsOH2Husp/2ODdFf/leD+ZC/2yKfn7r8oh6yeoR3ITR5vA==","dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "@isaacs/cliui": "^8.0.2"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "license": "ISC",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"},- "optionalDependencies": {- "@pkgjs/parseargs": "^0.11.0"+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/jake": {- "version": "10.9.4",- "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz",- "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==",+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==","dev": true,- "license": "Apache-2.0",+ "license": "MIT","dependencies": {- "async": "^3.2.6",- "filelist": "^1.0.4",- "picocolors": "^1.1.1"- },- "bin": {- "jake": "bin/cli.js"- },- "engines": {- "node": ">=10"+ "@jridgewell/sourcemap-codec": "^1.5.5"}},- "node_modules/js-yaml": {- "version": "4.3.2",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",- "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",+ "node_modules/matcher": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",+ "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==","dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/puzrin"- },- {- "type": "github",- "url": "https://github.com/sponsors/nodeca"- }- ],"license": "MIT",+ "optional": true,"dependencies": {- "argparse": "^2.0.1"+ "escape-string-regexp": "^4.0.0"},- "bin": {- "js-yaml": "bin/js-yaml.js"+ "engines": {+ "node": ">=10"}},- "node_modules/json-buffer": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",- "dev": true,- "license": "MIT"- },- "node_modules/json-schema-traverse": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",- "dev": true,- "license": "MIT"- },- "node_modules/json-stringify-safe": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",- "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==","dev": true,- "license": "ISC",- "optional": true+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }},- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "node_modules/mime": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==","dev": true,"license": "MIT","bin": {- "json5": "lib/cli.js"+ "mime": "cli.js"},"engines": {- "node": ">=6"+ "node": ">=4.0.0"}},- "node_modules/jsonfile": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",- "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==","dev": true,"license": "MIT",- "optionalDependencies": {- "graceful-fs": "^4.1.6"+ "engines": {+ "node": ">= 0.6"}},- "node_modules/keyv": {- "version": "4.5.4",- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==","dev": true,"license": "MIT","dependencies": {- "json-buffer": "3.0.1"+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"}},- "node_modules/lazy-val": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz",- "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==",- "dev": true,- "license": "MIT"- },- "node_modules/lazystream": {+ "node_modules/mimic-response": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz",- "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",+ "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==","dev": true,"license": "MIT",- "peer": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/minimatch": {+ "version": "10.2.6",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",+ "dev": true,+ "license": "BlueOak-1.0.0","dependencies": {- "readable-stream": "^2.0.5"+ "brace-expansion": "^5.0.8"},"engines": {- "node": ">= 0.6.3"+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "node_modules/lazystream/node_modules/readable-stream": {- "version": "2.3.8",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",- "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",+ "node_modules/minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==","dev": true,"license": "MIT",- "peer": true,- "dependencies": {- "core-util-is": "~1.0.0",- "inherits": "~2.0.3",- "isarray": "~1.0.0",- "process-nextick-args": "~2.0.0",- "safe-buffer": "~5.1.1",- "string_decoder": "~1.1.1",- "util-deprecate": "~1.0.1"+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/minipass": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=16 || 14 >=14.17"}},- "node_modules/lazystream/node_modules/safe-buffer": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "node_modules/minizlib": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz",+ "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==","dev": true,"license": "MIT",- "peer": true+ "dependencies": {+ "minipass": "^7.1.2"+ },+ "engines": {+ "node": ">= 18"+ }},- "node_modules/lazystream/node_modules/string_decoder": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",+ "node_modules/mkdirp": {+ "version": "0.5.6",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==","dev": true,"license": "MIT","peer": true,"dependencies": {- "safe-buffer": "~5.1.0"+ "minimist": "^1.2.6"+ },+ "bin": {+ "mkdirp": "bin/cmd.js"}},- "node_modules/lodash": {- "version": "4.18.1",- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",- "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==","dev": true,"license": "MIT"},- "node_modules/lodash.defaults": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",- "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==",- "dev": true,- "license": "MIT",- "peer": true- },- "node_modules/lodash.difference": {- "version": "4.5.0",- "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz",- "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==",- "dev": true,- "license": "MIT",- "peer": true- },- "node_modules/lodash.flatten": {- "version": "4.4.0",- "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",- "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==",- "dev": true,- "license": "MIT",- "peer": true- },- "node_modules/lodash.isplainobject": {- "version": "4.0.6",- "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",- "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",+ "node_modules/nanoid": {+ "version": "3.3.20",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==","dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],"license": "MIT",- "peer": true+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }},- "node_modules/lodash.union": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz",- "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==",+ "node_modules/node-abi": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.40.0.tgz",+ "integrity": "sha512-GuvqvtrOk+AC27RidBxBsMzVNkwNl7PjHgc4NXbmdvSVLgIUjpaqcG1FjNRYnt2Yn9Ytq+Ln37XsBaglUcte/w==","dev": true,"license": "MIT",- "peer": true+ "dependencies": {+ "semver": "^7.6.3"+ },+ "engines": {+ "node": ">=22.12.0"+ }},- "node_modules/log-symbols": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",- "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",+ "node_modules/node-abi/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==","dev": true,- "license": "MIT",- "dependencies": {- "chalk": "^4.1.0",- "is-unicode-supported": "^0.1.0"+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"},"engines": {"node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/lowercase-keys": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz",- "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",+ "node_modules/node-api-version": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz",+ "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==","dev": true,"license": "MIT",- "engines": {- "node": ">=8"+ "dependencies": {+ "semver": "^7.3.5"}},- "node_modules/lru-cache": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "node_modules/node-api-version/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==","dev": true,"license": "ISC",- "dependencies": {- "yallist": "^4.0.0"+ "bin": {+ "semver": "bin/semver.js"},"engines": {"node": ">=10"}},- "node_modules/make-fetch-happen": {- "version": "10.2.1",- "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz",- "integrity": "sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==",+ "node_modules/node-gyp": {+ "version": "12.4.0",+ "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz",+ "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "agentkeepalive": "^4.2.1",- "cacache": "^16.1.0",- "http-cache-semantics": "^4.1.0",- "http-proxy-agent": "^5.0.0",- "https-proxy-agent": "^5.0.0",- "is-lambda": "^1.0.1",- "lru-cache": "^7.7.1",- "minipass": "^3.1.6",- "minipass-collect": "^1.0.2",- "minipass-fetch": "^2.0.3",- "minipass-flush": "^1.0.5",- "minipass-pipeline": "^1.2.4",- "negotiator": "^0.6.3",- "promise-retry": "^2.0.1",- "socks-proxy-agent": "^7.0.0",- "ssri": "^9.0.0"+ "env-paths": "^2.2.0",+ "exponential-backoff": "^3.1.1",+ "graceful-fs": "^4.2.6",+ "nopt": "^9.0.0",+ "proc-log": "^6.0.0",+ "semver": "^7.3.5",+ "tar": "^7.5.4",+ "tinyglobby": "^0.2.12",+ "undici": "^6.25.0",+ "which": "^6.0.0"+ },+ "bin": {+ "node-gyp": "bin/node-gyp.js"},"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": "^20.17.0 || >=22.9.0"}},- "node_modules/make-fetch-happen/node_modules/agent-base": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "node_modules/node-gyp/node_modules/env-paths": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==","dev": true,"license": "MIT",- "dependencies": {- "debug": "4"- },"engines": {- "node": ">= 6.0.0"+ "node": ">=6"}},- "node_modules/make-fetch-happen/node_modules/http-proxy-agent": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz",- "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==",+ "node_modules/node-gyp/node_modules/isexe": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz",+ "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==","dev": true,- "license": "MIT",- "dependencies": {- "@tootallnate/once": "2",- "agent-base": "6",- "debug": "4"- },+ "license": "BlueOak-1.0.0","engines": {- "node": ">= 6"+ "node": ">=20"}},- "node_modules/make-fetch-happen/node_modules/https-proxy-agent": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",+ "node_modules/node-gyp/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==","dev": true,- "license": "MIT",- "dependencies": {- "agent-base": "6",- "debug": "4"+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"},"engines": {- "node": ">= 6"+ "node": ">=10"}},- "node_modules/make-fetch-happen/node_modules/lru-cache": {- "version": "7.18.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",- "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",+ "node_modules/node-gyp/node_modules/undici": {+ "version": "6.29.1",+ "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",+ "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==","dev": true,- "license": "ISC",+ "license": "MIT","engines": {- "node": ">=12"+ "node": ">=18.17"}},- "node_modules/matcher": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz",- "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==",+ "node_modules/node-gyp/node_modules/which": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz",+ "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==","dev": true,- "license": "MIT",- "optional": true,+ "license": "ISC","dependencies": {- "escape-string-regexp": "^4.0.0"+ "isexe": "^4.0.0"+ },+ "bin": {+ "node-which": "bin/which.js"},"engines": {- "node": ">=10"+ "node": "^20.17.0 || >=22.9.0"}},- "node_modules/math-intrinsics": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "node_modules/node-int64": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",+ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/node-releases": {+ "version": "2.0.60",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.60.tgz",+ "integrity": "sha512-OmO8+GM1JUZqXET720VrJCwkjUCXmCMQm0Z3UDDRbfNLHS4NEAvY60j5jiFv0tkKw2PNNlqOLhahVmwJIOLDIQ==","dev": true,"license": "MIT","engines": {- "node": ">= 0.4"+ "node": ">=18"}},- "node_modules/mime": {- "version": "2.6.0",- "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",- "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",+ "node_modules/nopt": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz",+ "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==","dev": true,- "license": "MIT",+ "license": "ISC",+ "dependencies": {+ "abbrev": "^4.0.0"+ },"bin": {- "mime": "cli.js"+ "nopt": "bin/nopt.js"},"engines": {- "node": ">=4.0.0"+ "node": "^20.17.0 || >=22.9.0"}},- "node_modules/mime-db": {- "version": "1.52.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "node_modules/normalize-url": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",+ "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==","dev": true,"license": "MIT","engines": {- "node": ">= 0.6"+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/mime-types": {- "version": "2.1.35",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==","dev": true,"license": "MIT",- "dependencies": {- "mime-db": "1.52.0"- },+ "optional": true,"engines": {- "node": ">= 0.6"+ "node": ">= 0.4"}},- "node_modules/mimic-fn": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==","dev": true,- "license": "MIT",- "engines": {- "node": ">=6"+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"}},- "node_modules/mimic-response": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",- "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",+ "node_modules/p-cancelable": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",+ "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==","dev": true,"license": "MIT","engines": {- "node": ">=4"+ "node": ">=8"}},- "node_modules/minimatch": {- "version": "10.2.6",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",- "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==","dev": true,- "license": "BlueOak-1.0.0",+ "license": "MIT","dependencies": {- "brace-expansion": "^5.0.8"+ "yocto-queue": "^0.1.0"},"engines": {- "node": "18 || 20 || >=22"+ "node": ">=10"},"funding": {- "url": "https://github.com/sponsors/isaacs"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/minimist": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==","dev": true,"license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "engines": {+ "node": ">=0.10.0"}},- "node_modules/minipass": {- "version": "3.3.6",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",- "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^4.0.0"- },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT","engines": {"node": ">=8"}},- "node_modules/minipass-collect": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz",- "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",+ "node_modules/pe-library": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz",+ "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==","dev": true,- "license": "ISC",- "dependencies": {- "minipass": "^3.0.0"- },+ "license": "MIT","engines": {- "node": ">= 8"+ "node": ">=12",+ "npm": ">=6"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/jet2jet"}},- "node_modules/minipass-fetch": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-2.1.2.tgz",- "integrity": "sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==",+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==","dev": true,"license": "MIT",- "dependencies": {- "minipass": "^3.1.6",- "minipass-sized": "^1.0.3",- "minizlib": "^2.1.2"- },"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=12"},- "optionalDependencies": {- "encoding": "^0.1.13"+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"}},- "node_modules/minipass-flush": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.7.tgz",- "integrity": "sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==",+ "node_modules/pkijs": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.3.tgz",+ "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==","dev": true,- "license": "BlueOak-1.0.0",+ "license": "BSD-3-Clause",+ "workspaces": [+ "website"+ ],"dependencies": {- "minipass": "^3.0.0"+ "@noble/hashes": "1.8.0",+ "asn1js": "^3.0.6",+ "bytestreamjs": "^2.0.1",+ "pvtsutils": "^1.3.6",+ "pvutils": "^1.1.3",+ "tslib": "^2.8.1"},"engines": {- "node": ">= 8"+ "node": ">=16.0.0"}},- "node_modules/minipass-pipeline": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",- "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",+ "node_modules/plist": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz",+ "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "minipass": "^3.0.0"+ "@xmldom/xmldom": "^0.8.8",+ "base64-js": "^1.5.1",+ "xmlbuilder": "^15.1.1"},"engines": {- "node": ">=8"+ "node": ">=10.4.0"}},- "node_modules/minipass-sized": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz",- "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==",+ "node_modules/postcss": {+ "version": "8.5.32",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz",+ "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==","dev": true,- "license": "ISC",+ "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": {- "minipass": "^3.0.0"+ "nanoid": "^3.3.20",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.2"},"engines": {- "node": ">=8"+ "node": "^10 || ^12 || >=14"}},- "node_modules/minizlib": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",- "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",+ "node_modules/postject": {+ "version": "1.0.0-alpha.6",+ "resolved": "https://registry.npmjs.org/postject/-/postject-1.0.0-alpha.6.tgz",+ "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==","dev": true,"license": "MIT",+ "optional": true,+ "peer": true,"dependencies": {- "minipass": "^3.0.0",- "yallist": "^4.0.0"+ "commander": "^9.4.0"},- "engines": {- "node": ">= 8"- }- },- "node_modules/mkdirp": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",- "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",- "dev": true,- "license": "MIT","bin": {- "mkdirp": "bin/cmd.js"+ "postject": "dist/cli.js"},"engines": {- "node": ">=10"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "dev": true,- "license": "MIT"- },- "node_modules/negotiator": {- "version": "0.6.4",- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz",- "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"+ "node": ">=14.0.0"}},- "node_modules/node-abi": {- "version": "3.101.0",- "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.101.0.tgz",- "integrity": "sha512-bkb/RkuWCE64eWu1PCh3Fu2pGc9mKRs+kOE+FU2bGHRYlQa86/D321DSATV54AsCQMKz3/xSt9sRgraZTpqdhQ==",+ "node_modules/postject/node_modules/commander": {+ "version": "9.5.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",+ "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==","dev": true,"license": "MIT",- "dependencies": {- "semver": "^7.3.5"- },+ "optional": true,+ "peer": true,"engines": {- "node": ">=10"+ "node": "^12.20.0 || >=14"}},- "node_modules/node-abi/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "node_modules/proc-log": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz",+ "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==","dev": true,"license": "ISC",- "bin": {- "semver": "bin/semver.js"- },"engines": {- "node": ">=10"+ "node": "^20.17.0 || >=22.9.0"}},- "node_modules/node-addon-api": {- "version": "1.7.2",- "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz",- "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==",+ "node_modules/process-nextick-args": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==","dev": true,- "license": "MIT",- "optional": true+ "license": "MIT"},- "node_modules/node-api-version": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz",- "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==",+ "node_modules/progress": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==","dev": true,"license": "MIT",- "dependencies": {- "semver": "^7.3.5"+ "engines": {+ "node": ">=0.4.0"}},- "node_modules/node-api-version/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "node_modules/promise-retry": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",+ "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==","dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"+ "license": "MIT",+ "dependencies": {+ "err-code": "^2.0.2",+ "retry": "^0.12.0"},"engines": {"node": ">=10"}},- "node_modules/node-gyp": {- "version": "9.4.1",- "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.4.1.tgz",- "integrity": "sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ==",+ "node_modules/proper-lockfile": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz",+ "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==","dev": true,"license": "MIT","dependencies": {- "env-paths": "^2.2.0",- "exponential-backoff": "^3.1.1",- "glob": "^7.1.4",- "graceful-fs": "^4.2.6",- "make-fetch-happen": "^10.0.3",- "nopt": "^6.0.0",- "npmlog": "^6.0.0",- "rimraf": "^3.0.2",- "semver": "^7.3.5",- "tar": "^6.1.2",- "which": "^2.0.2"- },- "bin": {- "node-gyp": "bin/node-gyp.js"- },- "engines": {- "node": "^12.13 || ^14.13 || >=16"+ "graceful-fs": "^4.2.4",+ "retry": "^0.12.0",+ "signal-exit": "^3.0.2"}},- "node_modules/node-gyp/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "node_modules/pump": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==","dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"}},- "node_modules/nopt": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/nopt/-/nopt-6.0.0.tgz",- "integrity": "sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==",+ "node_modules/pvtsutils": {+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/pvtsutils/-/pvtsutils-1.3.6.tgz",+ "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "abbrev": "^1.0.0"- },- "bin": {- "nopt": "bin/nopt.js"- },- "engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "tslib": "^2.8.1"}},- "node_modules/normalize-path": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "node_modules/pvutils": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/pvutils/-/pvutils-1.2.0.tgz",+ "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==","dev": true,"license": "MIT",- "peer": true,"engines": {- "node": ">=0.10.0"+ "node": ">=16.0.0"}},- "node_modules/normalize-url": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz",- "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==",+ "node_modules/quick-lru": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==","dev": true,"license": "MIT","engines": {@@ -4028,1117 +5162,1319 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/npmlog": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz",- "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==",- "deprecated": "This package is no longer supported.",+ "node_modules/react": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz",+ "integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==","dev": true,- "license": "ISC",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.3.0",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz",+ "integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==",+ "dev": true,+ "license": "MIT","dependencies": {- "are-we-there-yet": "^3.0.0",- "console-control-strings": "^1.1.0",- "gauge": "^4.0.3",- "set-blocking": "^2.0.0"+ "scheduler": "^0.28.0"},- "engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "peerDependencies": {+ "react": "^19.3.0"}},- "node_modules/object-keys": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "node_modules/react-refresh": {+ "version": "0.18.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",+ "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==","dev": true,"license": "MIT",- "optional": true,"engines": {- "node": ">= 0.4"+ "node": ">=0.10.0"}},- "node_modules/once": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "node_modules/read-binary-file-arch": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz",+ "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "wrappy": "1"+ "debug": "^4.3.4"+ },+ "bin": {+ "read-binary-file-arch": "cli.js"}},- "node_modules/onetime": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "node_modules/readable-stream": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==","dev": true,"license": "MIT","dependencies": {- "mimic-fn": "^2.1.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "core-util-is": "~1.0.0",+ "inherits": "~2.0.3",+ "isarray": "~1.0.0",+ "process-nextick-args": "~2.0.0",+ "safe-buffer": "~5.1.1",+ "string_decoder": "~1.1.1",+ "util-deprecate": "~1.0.1"}},- "node_modules/ora": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz",- "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==",+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==","dev": true,"license": "MIT",- "dependencies": {- "bl": "^4.1.0",- "chalk": "^4.1.0",- "cli-cursor": "^3.1.0",- "cli-spinners": "^2.5.0",- "is-interactive": "^1.0.0",- "is-unicode-supported": "^0.1.0",- "log-symbols": "^4.1.0",- "strip-ansi": "^6.0.0",- "wcwidth": "^1.0.1"- },"engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=0.10.0"}},- "node_modules/p-cancelable": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz",- "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==",+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==","dev": true,"license": "MIT","engines": {- "node": ">=8"+ "node": ">=0.10.0"}},- "node_modules/p-limit": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "node_modules/resedit": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz",+ "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==","dev": true,"license": "MIT","dependencies": {- "yocto-queue": "^0.1.0"+ "pe-library": "^0.4.1"},"engines": {- "node": ">=10"+ "node": ">=12",+ "npm": ">=6"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "github",+ "url": "https://github.com/sponsors/jet2jet"}},- "node_modules/p-map": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",- "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",+ "node_modules/resolve-alpn": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",+ "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/responselike": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",+ "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==","dev": true,"license": "MIT","dependencies": {- "aggregate-error": "^3.0.0"- },- "engines": {- "node": ">=10"+ "lowercase-keys": "^2.0.0"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/package-json-from-dist": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",- "dev": true,- "license": "BlueOak-1.0.0"- },- "node_modules/path-is-absolute": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "node_modules/retry": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",+ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==","dev": true,"license": "MIT","engines": {- "node": ">=0.10.0"+ "node": ">= 4"}},- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "node_modules/rimraf": {+ "version": "2.6.3",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",+ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported","dev": true,- "license": "MIT",+ "license": "ISC",+ "peer": true,+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ }+ },+ "node_modules/roarr": {+ "version": "2.15.4",+ "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",+ "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "boolean": "^3.0.1",+ "detect-node": "^2.0.4",+ "globalthis": "^1.0.1",+ "json-stringify-safe": "^5.0.1",+ "semver-compare": "^1.0.0",+ "sprintf-js": "^1.1.2"+ },"engines": {- "node": ">=8"+ "node": ">=8.0"}},- "node_modules/path-scurry": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",- "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "node_modules/rollup": {+ "version": "4.65.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.65.1.tgz",+ "integrity": "sha512-HzD4IdphaPMvuAacnL/vtoq5B8FwqewKvxTtqYibWvP6VDyZ+UsTtlw5F8HIOIIpLQAkN2NOP/0sM3puo9xN/A==","dev": true,- "license": "BlueOak-1.0.0",+ "license": "MIT","dependencies": {- "lru-cache": "^10.2.0",- "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ "@types/estree": "1.0.9"+ },+ "bin": {+ "rollup": "dist/bin/rollup"},"engines": {- "node": ">=16 || 14 >=14.18"+ "node": ">=18.0.0",+ "npm": ">=8.0.0"},- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "optionalDependencies": {+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",+ "@rollup/rollup-android-arm-eabi": "4.65.1",+ "@rollup/rollup-android-arm64": "4.65.1",+ "@rollup/rollup-darwin-arm64": "4.65.1",+ "@rollup/rollup-darwin-x64": "4.65.1",+ "@rollup/rollup-freebsd-arm64": "4.65.1",+ "@rollup/rollup-freebsd-x64": "4.65.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.65.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.65.1",+ "@rollup/rollup-linux-arm64-gnu": "4.65.1",+ "@rollup/rollup-linux-arm64-musl": "4.65.1",+ "@rollup/rollup-linux-loong64-gnu": "4.65.1",+ "@rollup/rollup-linux-loong64-musl": "4.65.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.65.1",+ "@rollup/rollup-linux-ppc64-musl": "4.65.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.65.1",+ "@rollup/rollup-linux-riscv64-musl": "4.65.1",+ "@rollup/rollup-linux-s390x-gnu": "4.65.1",+ "@rollup/rollup-linux-x64-gnu": "4.65.1",+ "@rollup/rollup-linux-x64-musl": "4.65.1",+ "@rollup/rollup-openbsd-x64": "4.65.1",+ "@rollup/rollup-openharmony-arm64": "4.65.1",+ "@rollup/rollup-win32-arm64-msvc": "4.65.1",+ "@rollup/rollup-win32-ia32-msvc": "4.65.1",+ "@rollup/rollup-win32-x64-gnu": "4.65.1",+ "@rollup/rollup-win32-x64-msvc": "4.65.1",+ "fsevents": "~2.3.2"}},- "node_modules/path-scurry/node_modules/lru-cache": {- "version": "10.4.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==","dev": true,- "license": "ISC"+ "license": "MIT"},- "node_modules/path-scurry/node_modules/minipass": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",- "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "node_modules/sanitize-filename": {+ "version": "1.6.4",+ "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz",+ "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==","dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": ">=16 || 14 >=14.17"+ "license": "WTFPL OR ISC",+ "dependencies": {+ "truncate-utf8-bytes": "^1.0.0"}},- "node_modules/pe-library": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/pe-library/-/pe-library-0.4.1.tgz",- "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==",+ "node_modules/sax": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz",+ "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==","dev": true,- "license": "MIT",+ "license": "BlueOak-1.0.0","engines": {- "node": ">=12",- "npm": ">=6"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/jet2jet"+ "node": ">=11.0.0"}},- "node_modules/pend": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",- "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",+ "node_modules/scheduler": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==","dev": true,"license": "MIT"},- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==","dev": true,- "license": "ISC"+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }},- "node_modules/plist": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.1.tgz",- "integrity": "sha512-ZIfcLJC+7E7FBFnDxm9MPmt7D+DidyQ26lewieO75AdhA2ayMtsJSES0iWzqJQbcVRSrTufQoy0DR94xHue0oA==",+ "node_modules/semver-compare": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",+ "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/serialize-error": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",+ "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==","dev": true,"license": "MIT",+ "optional": true,"dependencies": {- "@xmldom/xmldom": "^0.9.10",- "base64-js": "^1.5.1",- "xmlbuilder": "^15.1.1"+ "type-fest": "^0.13.1"},"engines": {- "node": ">=10.4.0"+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/process-nextick-args": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",- "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==","dev": true,"license": "MIT",- "peer": true+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }},- "node_modules/progress": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",- "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==","dev": true,"license": "MIT","engines": {- "node": ">=0.4.0"+ "node": ">=8"}},- "node_modules/promise-inflight": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",- "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==","dev": true,"license": "ISC"},- "node_modules/promise-retry": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",- "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",+ "node_modules/simple-update-notifier": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==","dev": true,"license": "MIT","dependencies": {- "err-code": "^2.0.2",- "retry": "^0.12.0"+ "semver": "^7.5.3"},"engines": {"node": ">=10"}},- "node_modules/pump": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",- "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",+ "node_modules/simple-update-notifier/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==","dev": true,- "license": "MIT",- "dependencies": {- "end-of-stream": "^1.1.0",- "once": "^1.3.1"+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"}},- "node_modules/punycode": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",- "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==","dev": true,- "license": "MIT",+ "license": "BSD-3-Clause","engines": {- "node": ">=6"+ "node": ">=0.10.0"}},- "node_modules/quick-lru": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",- "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",+ "node_modules/source-map-js": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==","dev": true,- "license": "MIT",+ "license": "BSD-3-Clause","engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=0.10.0"}},- "node_modules/read-binary-file-arch": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz",- "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==",+ "node_modules/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==","dev": true,"license": "MIT","dependencies": {- "debug": "^4.3.4"- },- "bin": {- "read-binary-file-arch": "cli.js"+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"}},- "node_modules/readable-stream": {- "version": "3.6.2",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "node_modules/sprintf-js": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",+ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true+ },+ "node_modules/stat-mode": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz",+ "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==","dev": true,"license": "MIT",- "dependencies": {- "inherits": "^2.0.3",- "string_decoder": "^1.1.1",- "util-deprecate": "^1.0.1"- },"engines": {"node": ">= 6"}},- "node_modules/readdir-glob": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz",- "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==",+ "node_modules/string_decoder": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==","dev": true,- "license": "Apache-2.0",- "peer": true,+ "license": "MIT","dependencies": {- "minimatch": "^5.1.0"+ "safe-buffer": "~5.1.0"}},- "node_modules/readdir-glob/node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,- "license": "MIT",- "peer": true- },- "node_modules/readdir-glob/node_modules/brace-expansion": {- "version": "2.1.7",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz",- "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==",+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==","dev": true,"license": "MIT",- "peer": true,"dependencies": {- "balanced-match": "^1.0.0"+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"}},- "node_modules/readdir-glob/node_modules/minimatch": {- "version": "5.1.9",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",- "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==","dev": true,- "license": "ISC",- "peer": true,+ "license": "MIT","dependencies": {- "brace-expansion": "^2.0.1"+ "ansi-regex": "^5.0.1"},"engines": {- "node": ">=10"+ "node": ">=8"}},- "node_modules/require-directory": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "node_modules/sumchecker": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",+ "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==","dev": true,- "license": "MIT",+ "license": "Apache-2.0",+ "dependencies": {+ "debug": "^4.1.0"+ },"engines": {- "node": ">=0.10.0"+ "node": ">= 8.0"}},- "node_modules/resedit": {- "version": "1.7.2",- "resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz",- "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==",+ "node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==","dev": true,"license": "MIT","dependencies": {- "pe-library": "^0.4.1"+ "has-flag": "^4.0.0"},"engines": {- "node": ">=12",- "npm": ">=6"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/jet2jet"+ "node": ">=8"}},- "node_modules/resolve-alpn": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz",- "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",+ "node_modules/tailwindcss": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",+ "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==","dev": true,"license": "MIT"},- "node_modules/responselike": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz",- "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==",+ "node_modules/tapable": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==","dev": true,"license": "MIT",- "dependencies": {- "lowercase-keys": "^2.0.0"+ "engines": {+ "node": ">=6"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"}},- "node_modules/restore-cursor": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",- "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",+ "node_modules/tar": {+ "version": "7.5.22",+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz",+ "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==","dev": true,- "license": "MIT",+ "license": "BlueOak-1.0.0","dependencies": {- "onetime": "^5.1.0",- "signal-exit": "^3.0.2"+ "@isaacs/fs-minipass": "^4.0.0",+ "chownr": "^3.0.0",+ "minipass": "^7.1.2",+ "minizlib": "^3.1.0",+ "yallist": "^5.0.0"},"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/retry": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",- "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",+ "node_modules/tar/node_modules/yallist": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz",+ "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==","dev": true,- "license": "MIT",+ "license": "BlueOak-1.0.0","engines": {- "node": ">= 4"- }- },- "node_modules/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "deprecated": "Rimraf versions prior to v4 are no longer supported",- "dev": true,- "license": "ISC",- "dependencies": {- "glob": "^7.1.3"- },- "bin": {- "rimraf": "bin.js"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "node": ">=18"}},- "node_modules/roarr": {- "version": "2.15.4",- "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",- "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==",+ "node_modules/temp": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz",+ "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==","dev": true,- "license": "BSD-3-Clause",- "optional": true,+ "license": "MIT",+ "peer": true,"dependencies": {- "boolean": "^3.0.1",- "detect-node": "^2.0.4",- "globalthis": "^1.0.1",- "json-stringify-safe": "^5.0.1",- "semver-compare": "^1.0.0",- "sprintf-js": "^1.1.2"+ "mkdirp": "^0.5.1",+ "rimraf": "~2.6.2"},"engines": {- "node": ">=8.0"+ "node": ">=6.0.0"}},- "node_modules/safe-buffer": {- "version": "5.2.1",- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },- "node_modules/safer-buffer": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",- "dev": true,- "license": "MIT"- },- "node_modules/sanitize-filename": {- "version": "1.6.4",- "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz",- "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==",+ "node_modules/temp-file": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz",+ "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==","dev": true,- "license": "WTFPL OR ISC",+ "license": "MIT","dependencies": {- "truncate-utf8-bytes": "^1.0.0"+ "async-exit-hook": "^2.0.1",+ "fs-extra": "^10.0.0"}},- "node_modules/sax": {- "version": "1.6.1",- "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz",- "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==",+ "node_modules/tiny-async-pool": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",+ "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==","dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": ">=11.0.0"+ "license": "MIT",+ "dependencies": {+ "semver": "^5.5.0"}},- "node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "node_modules/tiny-async-pool/node_modules/semver": {+ "version": "5.7.2",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",+ "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==","dev": true,"license": "ISC","bin": {- "semver": "bin/semver.js"+ "semver": "bin/semver"}},- "node_modules/semver-compare": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",- "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/serialize-error": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",- "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==",+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==","dev": true,"license": "MIT",- "optional": true,"dependencies": {- "type-fest": "^0.13.1"+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"},"engines": {- "node": ">=10"+ "node": ">=12.0.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/sponsors/SuperchupuDev"}},- "node_modules/set-blocking": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",- "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",- "dev": true,- "license": "ISC"- },- "node_modules/shebang-command": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "node_modules/tmp": {+ "version": "0.2.7",+ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz",+ "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==","dev": true,"license": "MIT",- "dependencies": {- "shebang-regex": "^3.0.0"- },"engines": {- "node": ">=8"+ "node": ">=14.14"}},- "node_modules/shebang-regex": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "node_modules/tmp-promise": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",+ "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==","dev": true,"license": "MIT",- "engines": {- "node": ">=8"+ "dependencies": {+ "tmp": "^0.2.0"}},- "node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "node_modules/truncate-utf8-bytes": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",+ "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",+ "dev": true,+ "license": "WTFPL",+ "dependencies": {+ "utf8-byte-length": "^1.0.1"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","dev": true,- "license": "ISC"+ "license": "0BSD"},- "node_modules/simple-update-notifier": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",- "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",+ "node_modules/type-fest": {+ "version": "0.13.1",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==","dev": true,- "license": "MIT",- "dependencies": {- "semver": "^7.5.3"- },+ "license": "(MIT OR CC0-1.0)",+ "optional": true,"engines": {"node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/simple-update-notifier/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==","dev": true,- "license": "ISC",+ "license": "Apache-2.0","bin": {- "semver": "bin/semver.js"+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"},"engines": {- "node": ">=10"+ "node": ">=14.17"}},- "node_modules/slice-ansi": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",- "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==",+ "node_modules/undici": {+ "version": "7.30.1",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz",+ "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==","dev": true,"license": "MIT","optional": true,- "dependencies": {- "ansi-styles": "^4.0.0",- "astral-regex": "^2.0.0",- "is-fullwidth-code-point": "^3.0.0"- },"engines": {- "node": ">=8"+ "node": ">=20.18.1"}},- "node_modules/smart-buffer": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",- "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/universalify": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==","dev": true,"license": "MIT","engines": {- "node": ">= 6.0.0",- "npm": ">= 3.0.0"+ "node": ">= 10.0.0"}},- "node_modules/socks": {- "version": "2.8.10",- "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz",- "integrity": "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==",+ "node_modules/unzipper": {+ "version": "0.12.5",+ "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz",+ "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==","dev": true,"license": "MIT","dependencies": {- "ip-address": "^10.1.1",- "smart-buffer": "^4.2.0"- },- "engines": {- "node": ">= 10.0.0",- "npm": ">= 3.0.0"+ "bluebird": "~3.7.2",+ "duplexer2": "~0.1.4",+ "fs-extra": "11.3.1",+ "graceful-fs": "^4.2.2",+ "node-int64": "^0.4.0"}},- "node_modules/socks-proxy-agent": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz",- "integrity": "sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==",+ "node_modules/unzipper/node_modules/fs-extra": {+ "version": "11.3.1",+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.1.tgz",+ "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==","dev": true,"license": "MIT","dependencies": {- "agent-base": "^6.0.2",- "debug": "^4.3.3",- "socks": "^2.6.2"+ "graceful-fs": "^4.2.0",+ "jsonfile": "^6.0.1",+ "universalify": "^2.0.0"},"engines": {- "node": ">= 10"+ "node": ">=14.14"}},- "node_modules/socks-proxy-agent/node_modules/agent-base": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "node_modules/update-browserslist-db": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz",+ "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==","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": {- "debug": "4"+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"},- "engines": {- "node": ">= 6.0.0"+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"}},- "node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "node_modules/utf8-byte-length": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",+ "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==","dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }+ "license": "(WTFPL OR MIT)"},- "node_modules/source-map-support": {- "version": "0.5.21",- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",- "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "7.3.7",+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.7.tgz",+ "integrity": "sha512-AHEzTORMbi7/7aXp7w7KZ5+DCUdSeLsJz0grY8xHpc9DHdYb0vQu6DqJfm2tOw3gDExNgPgnJTXxM6syYFHaCA==","dev": true,"license": "MIT","dependencies": {- "buffer-from": "^1.0.0",- "source-map": "^0.6.0"+ "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/sprintf-js": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",- "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true- },- "node_modules/ssri": {- "version": "9.0.1",- "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz",- "integrity": "sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==",+ "node_modules/vite/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": "ISC",- "dependencies": {- "minipass": "^3.1.1"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=18"}},- "node_modules/stat-mode": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz",- "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==",+ "node_modules/vite/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": ">= 6"+ "node": ">=18"}},- "node_modules/string_decoder": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "node_modules/vite/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",- "dependencies": {- "safe-buffer": "~5.2.0"+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "node_modules/vite/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",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/string-width-cjs": {- "name": "string-width",- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "node_modules/vite/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",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "node_modules/vite/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",- "dependencies": {- "ansi-regex": "^5.0.1"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/strip-ansi-cjs": {- "name": "strip-ansi",- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "node_modules/vite/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",- "dependencies": {- "ansi-regex": "^5.0.1"- },+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/sumchecker": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",- "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",+ "node_modules/vite/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": "Apache-2.0",- "dependencies": {- "debug": "^4.1.0"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">= 8.0"+ "node": ">=18"}},- "node_modules/supports-color": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "node_modules/vite/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",- "dependencies": {- "has-flag": "^4.0.0"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/tar": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",- "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",- "deprecated": "Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",+ "node_modules/vite/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": "ISC",- "dependencies": {- "chownr": "^2.0.0",- "fs-minipass": "^2.0.0",- "minipass": "^5.0.0",- "minizlib": "^2.1.1",- "mkdirp": "^1.0.3",- "yallist": "^4.0.0"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=10"+ "node": ">=18"}},- "node_modules/tar-stream": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",- "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "node_modules/vite/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",- "peer": true,- "dependencies": {- "bl": "^4.0.3",- "end-of-stream": "^1.4.1",- "fs-constants": "^1.0.0",- "inherits": "^2.0.3",- "readable-stream": "^3.1.1"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6"+ "node": ">=18"}},- "node_modules/tar/node_modules/minipass": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",- "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",+ "node_modules/vite/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": "ISC",+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=8"+ "node": ">=18"}},- "node_modules/temp-file": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz",- "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==",+ "node_modules/vite/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",- "dependencies": {- "async-exit-hook": "^2.0.1",- "fs-extra": "^10.0.0"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/temp-file/node_modules/fs-extra": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",- "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",+ "node_modules/vite/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",- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=12"+ "node": ">=18"}},- "node_modules/temp-file/node_modules/jsonfile": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",- "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",+ "node_modules/vite/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",- "dependencies": {- "universalify": "^2.0.0"- },- "optionalDependencies": {- "graceful-fs": "^4.1.6"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/temp-file/node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/vite/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": ">= 10.0.0"+ "node": ">=18"}},- "node_modules/tmp": {- "version": "0.2.7",- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz",- "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==",+ "node_modules/vite/node_modules/@esbuild/linux-x64": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=14.14"+ "node": ">=18"}},- "node_modules/tmp-promise": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",- "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==",+ "node_modules/vite/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",- "dependencies": {- "tmp": "^0.2.0"+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/truncate-utf8-bytes": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",- "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",+ "node_modules/vite/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": "WTFPL",- "dependencies": {- "utf8-byte-length": "^1.0.1"+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/type-fest": {- "version": "0.13.1",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",- "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",+ "node_modules/vite/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 OR CC0-1.0)",+ "license": "MIT","optional": true,+ "os": [+ "openbsd"+ ],"engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=18"}},- "node_modules/typescript": {- "version": "5.9.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",- "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "node_modules/vite/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": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],"engines": {- "node": ">=14.17"+ "node": ">=18"}},- "node_modules/undici-types": {- "version": "6.21.0",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",- "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",- "dev": true,- "license": "MIT"- },- "node_modules/unique-filename": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-2.0.1.tgz",- "integrity": "sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==",+ "node_modules/vite/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": "ISC",- "dependencies": {- "unique-slug": "^3.0.0"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=18"}},- "node_modules/unique-slug": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-3.0.0.tgz",- "integrity": "sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==",+ "node_modules/vite/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": "ISC",- "dependencies": {- "imurmurhash": "^0.1.4"- },+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],"engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"+ "node": ">=18"}},- "node_modules/universalify": {- "version": "0.1.2",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",- "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",+ "node_modules/vite/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": ">= 4.0.0"+ "node": ">=18"}},- "node_modules/uri-js": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "node_modules/vite/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": "BSD-2-Clause",- "dependencies": {- "punycode": "^2.1.0"+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/utf8-byte-length": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",- "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==",- "dev": true,- "license": "(WTFPL OR MIT)"- },- "node_modules/util-deprecate": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",- "dev": true,- "license": "MIT"- },- "node_modules/verror": {- "version": "1.10.1",- "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz",- "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==",+ "node_modules/vite/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,- "dependencies": {- "assert-plus": "^1.0.0",- "core-util-is": "1.0.2",- "extsprintf": "^1.2.0"- },+ "os": [+ "win32"+ ],"engines": {- "node": ">=0.6.0"+ "node": ">=18"}},- "node_modules/wcwidth": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",- "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",+ "node_modules/vite/node_modules/esbuild": {+ "version": "0.28.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==","dev": true,+ "hasInstallScript": true,"license": "MIT",- "dependencies": {- "defaults": "^1.0.3"+ "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/webcrypto-core": {+ "version": "1.9.2",+ "resolved": "https://registry.npmjs.org/webcrypto-core/-/webcrypto-core-1.9.2.tgz",+ "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@peculiar/asn1-schema": "^2.7.0",+ "@peculiar/json-schema": "^1.1.12",+ "@peculiar/utils": "^2.0.2",+ "asn1js": "^3.0.10",+ "tslib": "^2.8.1"}},"node_modules/which": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",+ "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==","dev": true,"license": "ISC","dependencies": {- "isexe": "^2.0.0"+ "isexe": "^3.1.1"},"bin": {- "node-which": "bin/node-which"+ "node-which": "bin/which.js"},"engines": {- "node": ">= 8"- }- },- "node_modules/wide-align": {- "version": "1.1.5",- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",- "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^1.0.2 || 2 || 3 || 4"+ "node": "^18.17.0 || >=20.5.0"}},"node_modules/wrap-ansi": {@@ -5159,25 +6495,6 @@"url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},- "node_modules/wrap-ansi-cjs": {- "name": "wrap-ansi",- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },"node_modules/wrappy": {"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",@@ -5206,9 +6523,9 @@}},"node_modules/yallist": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==","dev": true,"license": "ISC"},@@ -5241,17 +6558,6 @@"node": ">=12"}},- "node_modules/yauzl": {- "version": "2.10.0",- "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",- "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",- "dev": true,- "license": "MIT",- "dependencies": {- "buffer-crc32": "~0.2.3",- "fd-slicer": "~1.1.0"- }- },"node_modules/yocto-queue": {"version": "0.1.0","resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",@@ -5265,43 +6571,34 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/zip-stream": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz",- "integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==",+ "node_modules/zustand": {+ "version": "5.0.15",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.15.tgz",+ "integrity": "sha512-MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==","dev": true,"license": "MIT",- "peer": true,- "dependencies": {- "archiver-utils": "^3.0.4",- "compress-commons": "^4.1.2",- "readable-stream": "^3.6.0"- },"engines": {- "node": ">= 10"- }- },- "node_modules/zip-stream/node_modules/archiver-utils": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.4.tgz",- "integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==",- "dev": true,- "license": "MIT",- "peer": true,- "dependencies": {- "glob": "^7.2.3",- "graceful-fs": "^4.2.0",- "lazystream": "^1.0.0",- "lodash.defaults": "^4.2.0",- "lodash.difference": "^4.5.0",- "lodash.flatten": "^4.4.0",- "lodash.isplainobject": "^4.0.6",- "lodash.union": "^4.6.0",- "normalize-path": "^3.0.0",- "readable-stream": "^3.6.0"+ "node": ">=12.20.0"},- "engines": {- "node": ">= 10"+ "peerDependencies": {+ "@types/react": ">=18.0.0",+ "immer": ">=9.0.6",+ "react": ">=18.0.0",+ "use-sync-external-store": ">=1.2.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "use-sync-external-store": {+ "optional": true+ }}}}diff --git a/app/package.json b/app/package.jsonindex dcaf83b..5c7d9d3 100644--- a/app/package.json+++ b/app/package.json@@ -1,27 +1,52 @@{"name": "keyword-monitor","productName": "Keyword Monitor",- "version": "0.2.0",+ "version": "0.3.0","description": "Shows which sides of the Keyword have a Keybit attached, and remaps them, over USB serial or Bluetooth",- "main": "main.js",+ "main": "out/main/index.js","private": true,+ "type": "module","scripts": {- "start": "node scripts/start.js",- "test": "node --test",- "dist": "electron-builder"+ "dev": "electron-vite dev",+ "start": "electron-vite preview",+ "build": "electron-vite build",+ "typecheck": "tsc --noEmit -p tsconfig.node.json && tsc --noEmit -p tsconfig.web.json",+ "test": "node --experimental-strip-types --no-warnings --test test/*.test.ts",+ "dist": "electron-vite build && electron-builder"},"devDependencies": {- "electron": "33.2.1",- "electron-builder": "25.1.8"+ "@tailwindcss/vite": "4.3.3",+ "@types/node": "22.19.1",+ "@types/react": "19.3.0",+ "@types/react-dom": "19.3.0",+ "@types/w3c-web-serial": "1.0.8",+ "@types/web-bluetooth": "0.0.21",+ "@vitejs/plugin-react": "5.2.0",+ "clsx": "2.1.1",+ "electron": "44.7.0",+ "electron-builder": "26.17.0",+ "electron-vite": "5.0.0",+ "lucide-react": "1.55.0",+ "react": "19.3.0",+ "react-dom": "19.3.0",+ "tailwindcss": "4.3.3",+ "typescript": "5.9.3",+ "vite": "7.3.7",+ "zustand": "5.0.15"+ },+ "engines": {+ "node": ">=22.12"},"build": {"appId": "com.keybytes.keyword-monitor","productName": "Keyword Monitor","publish": null,+ "directories": {+ "output": "dist",+ "buildResources": "build"+ },"files": [- "main.js",- "preload.js",- "renderer/**",+ "out/**","package.json"],"mac": {diff --git a/app/preload.js b/app/preload.jsdeleted file mode 100644index 151a14e..0000000--- a/app/preload.js+++ /dev/null@@ -1,22 +0,0 @@-const { contextBridge, ipcRenderer } = require('electron');--contextBridge.exposeInMainWorld('devicePicker', {- onList: (fn) => ipcRenderer.on('chooser:list', (_e, data) => fn(data)),- pick: (id) => ipcRenderer.send('chooser:pick', id || ''),-});--contextBridge.exposeInMainWorld('desktop', {- loadStore: () => ipcRenderer.invoke('store:load'),- saveStore: (store) => ipcRenderer.invoke('store:save', store),- saveFile: (name, text) => ipcRenderer.invoke('file:save', name, text),- openFiles: () => ipcRenderer.invoke('file:open'),- setCapture: (on) => ipcRenderer.send('capture:set', on),- onCaptureKey: (fn) => ipcRenderer.on('capture:key', (_e, k) => fn(k)),- runHost: (action) => ipcRenderer.invoke('host:run', action),- appInfo: () => ipcRenderer.invoke('app:info'),- openDataFolder: () => ipcRenderer.send('open:data'),- applySettings: (s) => ipcRenderer.send('settings:apply', s),- updateState: (s) => ipcRenderer.send('state:update', s),- onMenu: (fn) => ipcRenderer.on('menu', (_e, cmd, arg) => fn(cmd, arg)),- onFrontApp: (fn) => ipcRenderer.on('app:front', (_e, name) => fn(name)),-});diff --git a/app/renderer/app.js b/app/renderer/app.jsdeleted file mode 100644index 129d85d..0000000--- a/app/renderer/app.js+++ /dev/null@@ -1,1648 +0,0 @@-/* global KeywordProtocol, Hid, Profiles, Templates */-const { SIDES, NUS, OTA, LineBuffer, parseLine, cmd, entryCommands, profileCommands, hasHold, MAX_MACRO_STEPS, DEFAULT_HOLD_MS, otaBaseCommand, checkAppImage, otaChunks } = KeywordProtocol;--const POLL_MS = 2000; // ask for SIDES? this often in case a push was missed-const KEYS_POLL_MS = 10000; // full KEYS? resync-const BATT_POLL_MS = 30000;-const STALE_MS = 5000; // no line from the Keyword for this long means stale-const SIDE_NAMES = { L: 'left', R: 'right', T: 'top edge' };-const MAC = /Mac/i.test(navigator.platform);-const MOD_KEY = MAC ? 'Cmd' : 'Ctrl';-// Clicking our own window shouldn't count as "switched app" for per-app profiles.-const SELF_APPS = new Set(['keyword monitor', 'electron', 'keyword-monitor']);--const $ = (sel) => document.querySelector(sel);-const $$ = (sel) => [...document.querySelectorAll(sel)];-const el = (tag, props = {}, ...children) => {- const e = Object.assign(document.createElement(tag), props);- e.append(...children.filter((c) => c != null && c !== false));- return e;-};-const logEl = $('#log');-const bridge = window.desktop || null;--function log(dir, text) {- const t = new Date().toLocaleTimeString();- logEl.textContent += `${t} ${dir} ${text}\n`;- if (logEl.textContent.length > 20000) logEl.textContent = logEl.textContent.slice(-15000);- logEl.scrollTop = logEl.scrollHeight;-}--// ---- Transports: each has open(onText, onClose), write(text), close() ------class SerialTransport {- label = 'USB serial';- kind = 'serial';- constructor(port) { this.port = port || null; } // an already-granted port skips the picker- async open(onText, onClose) {- if (!this.port) this.port = await navigator.serial.requestPort();- await this.port.open({ baudRate: 115200 }); // CDC ignores the baud rate- // The Keyword only pushes events once DTR is set.- try { await this.port.setSignals({ dataTerminalReady: true }); } catch {}- this.writer = this.port.writable.getWriter();- this.closed = false;- (async () => {- const decoder = new TextDecoder();- try {- while (!this.closed && this.port.readable) {- this.reader = this.port.readable.getReader();- try {- for (;;) {- const { value, done } = await this.reader.read();- if (done) break;- onText(decoder.decode(value, { stream: true }));- }- } finally {- this.reader.releaseLock();- }- }- } catch (e) {- log('!!', `serial: ${e.message}`);- }- if (!this.closed) onClose();- })();- }- identity() {- const i = this.port.getInfo?.() || {};- return { kind: 'serial', usbVendorId: i.usbVendorId ?? null, usbProductId: i.usbProductId ?? null };- }- async write(text) {- await this.writer.write(new TextEncoder().encode(text));- }- async close() {- this.closed = true;- try { await this.reader?.cancel(); } catch {}- try { this.writer?.releaseLock(); } catch {}- try { await this.port?.close(); } catch {}- }-}--class BleTransport {- label = 'Bluetooth';- kind = 'ble';- constructor(device) { this.device = device || null; }- async open(onText, onClose) {- if (!this.device) {- this.device = await navigator.bluetooth.requestDevice({- // NUS's 128-bit UUID isn't advertised, so match on the name.- filters: [{ namePrefix: 'Keyword' }],- optionalServices: [NUS.service, OTA.service],- });- }- // Picked a Keyword sitting in its update bootloader: hand it to the update dialog.- if (this.device.name === OTA.name) throw Object.assign(new Error('in update mode'), { name: 'OtaModeError', device: this.device });- this.onClose = onClose;- this.onDisconnect = () => { if (!this.closed) this.onClose(); };- this.device.addEventListener('gattserverdisconnected', this.onDisconnect);- const server = await this.device.gatt.connect();- const svc = await server.getPrimaryService(NUS.service);- this.rx = await svc.getCharacteristic(NUS.rx);- const tx = await svc.getCharacteristic(NUS.tx);- const decoder = new TextDecoder();- tx.addEventListener('characteristicvaluechanged', (e) =>- onText(decoder.decode(e.target.value, { stream: true })));- await tx.startNotifications();- this.closed = false;- }- identity() { return { kind: 'ble', id: this.device.id, name: this.device.name || '' }; }- async write(text) {- const bytes = new TextEncoder().encode(text);- for (let i = 0; i < bytes.length; i += 20) { // fits the default 23-byte ATT MTU- const chunk = bytes.slice(i, i + 20);- if (this.rx.writeValueWithoutResponse) await this.rx.writeValueWithoutResponse(chunk);- else await this.rx.writeValue(chunk);- }- }- async close() {- this.closed = true;- this.device?.removeEventListener('gattserverdisconnected', this.onDisconnect);- if (this.device?.gatt.connected) this.device.gatt.disconnect();- }-}--// Pretends to be a Keyword (with every optional feature) so the app can be tried without hardware.-class DemoTransport {- label = 'Demo';- kind = 'demo';- uids = { L: '3B0A4F1C88D2E61F5F1821C1', R: '91C7002DE4B3A75C0A33B7E2', T: '0F5E19A2C6B84D37C4D90015' };- versions = { L: 3, R: 2, T: 3 };- present = { L: true, R: false, T: false };- maps = {};- battery = 82;- kb = 3;- async open(onText) {- this.onText = onText;- this.battTimer = setInterval(() => {- if (this.battery > 5) { this.battery -= 1; this.emit(this.battLine()); }- }, 20000);- }- identity() { return { kind: 'demo' }; }- emit(line) { setTimeout(() => this.onText?.(line + '\n'), 20); }- battLine() { return `BATT pct=${this.battery} chg=0 usb=0`; }- sidesLine() { return 'SIDES ' + SIDES.map((s) => `${s}=${this.present[s] ? 1 : 0}`).join(' '); }- keyLine(s) { return `KEY+ uid=${this.uids[s]} at=${s} v=${this.versions[s]}`; }- // A Keybit chained behind the right one, reported by its low 32 bits like a real relay.- chained = 'D00DF00D';- chainedLine() { return `KEY+ uid=${this.chained} at=X via=${this.uids.R} depth=1 v=3`; }- toggle(side) {- this.present[side] = !this.present[side];- this.emit(this.present[side] ? this.keyLine(side) : `KEY- uid=${this.uids[side]}`);- if (side === 'R') this.emit(this.present.R ? this.chainedLine() : `KEY- uid=${this.chained}`);- this.emit(this.sidesLine());- }- sideOf(uid) { return SIDES.find((s) => this.uids[s] === uid && this.present[s]) || (uid === this.chained && this.present.R ? 'X' : undefined); }- tap(uid) {- if (!this.sideOf(uid)) return;- this.emit(`PRESS uid=${uid} down=1`);- setTimeout(() => this.emit(`PRESS uid=${uid} down=0`), 180);- }- flash(uid) {- const s = this.sideOf(uid);- if (!s) return this.emit(`ERR flash ${uid} not present`);- if (s === 'X') return this.emit('ERR flash only Keybits touching the Keyword can be reflashed');- let pct = 0;- const t = setInterval(() => {- pct += 20;- this.emit(`FLASH uid=${uid} pct=${pct}`);- if (pct >= 100) {- clearInterval(t);- this.versions[s] = this.kb;- this.emit(`OK FLASH uid=${uid}`);- this.emit(this.keyLine(s));- }- }, 300);- }- async write(text) {- for (const line of text.split('\n').map((s) => s.trim()).filter(Boolean)) {- const [c] = line.split(' ');- const f = Object.fromEntries(line.split(' ').slice(1).map((p) => p.split('=')));- if (c === 'HELLO') this.emit(`KEYWORD v=demo proto=1 caps=batt,hold,macro,flash,ota kb=${this.kb}`);- else if (c === 'SIDES?') this.emit(this.sidesLine());- else if (c === 'BATT?') this.emit(this.battLine());- else if (c === 'KEYS?') {- for (const s of SIDES) if (this.present[s]) this.emit(this.keyLine(s));- if (this.present.R) this.emit(this.chainedLine());- this.emit('KEYS END');- } else if (['MAP', 'MAPC', 'MACRO', 'HOLD'].includes(c)) { this.maps[f.uid] = f; this.emit(`OK ${c} uid=${f.uid}`); }- else if (c === 'UNMAP') { delete this.maps[f.uid]; this.emit(`OK UNMAP uid=${f.uid}`); }- else if (c === 'CLEAR') { this.maps = {}; this.emit('OK CLEAR'); }- else if (c === 'SAVE') this.emit('OK SAVE');- else if (c === 'FLASH') this.flash(f.uid);- else if (c === 'STACK?') this.emit('STACK ble v=1.24.0 fus=2.2.0');- else if (c === 'OTA') this.emit('OK OTA');- else if (c === 'DFU') this.emit('OK DFU');- else this.emit(`ERR unknown command ${c}`);- }- }- async close() { clearInterval(this.battTimer); this.onText = null; }-}--// ---- Keyword firmware update targets: connect(), start(), write(chunk), finish(), cancel(), close() ------// ST's BLE_Ota bootloader, which the Keyword restarts into after OTA.-class BleOtaTarget {- constructor(device) { this.device = device || null; }- async connect() {- this.device ??= await navigator.bluetooth.requestDevice({- filters: [{ name: OTA.name }],- optionalServices: [OTA.service],- });- const server = await this.device.gatt.connect();- const svc = await server.getPrimaryService(OTA.service);- this.base = await svc.getCharacteristic(OTA.base);- this.raw = await svc.getCharacteristic(OTA.raw);- this.confirm = await svc.getCharacteristic(OTA.confirm);- this.confirmed = new Promise((resolve) => {- this.confirm.addEventListener('characteristicvaluechanged', (e) => resolve(e.target.value.getUint8(0)));- });- await this.confirm.startNotifications(); // indications, as far as Web Bluetooth is concerned- this.lost = new Promise((resolve) => this.device.addEventListener('gattserverdisconnected', resolve, { once: true }));- }- async writeBase(bytes) {- if (this.base.writeValueWithoutResponse) await this.base.writeValueWithoutResponse(bytes);- else await this.base.writeValue(bytes);- }- start() { return this.writeBase(otaBaseCommand(OTA.START, OTA.APP_OFFSET)); }- write(chunk) { return this.raw.writeValueWithoutResponse ? this.raw.writeValueWithoutResponse(chunk) : this.raw.writeValue(chunk); }- finish() { return this.writeBase(otaBaseCommand(OTA.FINISH)); }- cancel() { return this.writeBase(otaBaseCommand(OTA.CANCEL)).catch(() => {}); }- close() { if (this.device?.gatt.connected) this.device.gatt.disconnect(); }-}--// Stands in for the bootloader in Demo mode.-class DemoOtaTarget {- async connect() { await sleep(400); this.bytes = 0; }- async start() { this.bytes = 0; }- async write(chunk) { this.bytes += chunk.length; }- async finish() { await sleep(300); this.confirmed = Promise.resolve(this.bytes > 0 ? 1 : 0); this.lost = new Promise(() => {}); }- async cancel() {}- close() {}-}--const sleep = (ms) => new Promise((r) => setTimeout(r, ms));--// ---- Saved state (main.js writes it to disk; localStorage when run in a browser) ------const storage = bridge- ? { load: () => bridge.loadStore(), save: (s) => bridge.saveStore(s) }- : {- load: async () => { try { return JSON.parse(localStorage.getItem('keyword-profiles')); } catch { return null; } },- save: async (s) => { try { localStorage.setItem('keyword-profiles', JSON.stringify(s)); } catch {} },- };--let store = Profiles.normalizeStore(null);-const history = new Profiles.History();-const activeProfile = () => store.profiles.find((p) => p.id === store.active) || store.profiles[0];-const settings = () => store.settings;--let saveTimer = null;-function persist() {- clearTimeout(saveTimer);- saveTimer = setTimeout(() => storage.save(store).catch((e) => log('!!', `could not save: ${e.message}`)), 150);-}--// Every user edit goes through here so it can be undone.-// sync: 'full' pushes the whole profile to the Keyword afterwards; a function runs custom sync.-function mutate(label, fn, sync = 'full') {- history.record({ active: store.active, profiles: store.profiles }, label);- fn();- persist();- render();- if (sync === 'full') applyProfile(true);- else if (typeof sync === 'function') sync();-}--function restore(entry, verb) {- if (!entry) return;- store.profiles = Profiles.normalizeStore({ ...entry.state, settings: store.settings }).profiles;- store.active = entry.state.active;- manualActive = store.active;- persist();- render();- applyProfile(true);- toast(`${verb} ${entry.label}`);-}-const undo = () => restore(history.undo({ active: store.active, profiles: store.profiles }), 'Undid');-const redo = () => restore(history.redo({ active: store.active, profiles: store.profiles }), 'Redid');--// ---- Connection state ------let transport = null;-let timers = [];-let lastRx = 0;-let device = { fw: null, caps: new Set(), kb: null, battery: null };-const keys = new Map(); // uid -> { at, pressed, v, flashing } for Keybits the Keyword reports-let sides = {}; // from SIDES lines-let syncSeen = null; // uids seen during a KEYS? reply-let reconnect = null; // { timer, tries } while trying to get a dropped link back-let flashUid = null; // card to highlight on the next render-let frontApp = null;-let manualActive = null; // profile the user picked by hand, for returning after per-app switches-let autoSwitched = false;-const seenApps = new Set();--const caps = () => device.caps;-const can = (c) => caps().has(c);--function setStatus(text, cls) {- $('#status-text').textContent = text;- $('#status').className = 'status ' + (cls || '');- pushState();-}--function activity(text, cls) {- const list = $('#activity');- list.prepend(el('li', { className: cls || '' }, el('time', { textContent: new Date().toLocaleTimeString() }), el('span', { textContent: text })));- while (list.children.length > 200) list.lastChild.remove();-}--function toast(text, opts = {}) {- const t = el('div', { className: 'toast' + (opts.error ? ' error' : '') }, el('span', { textContent: text }));- if (opts.undo) t.append(el('button', { className: 'link', textContent: 'Undo', onclick: () => { undo(); t.remove(); } }));- $('#toasts').append(t);- setTimeout(() => t.classList.add('out'), opts.ms || 4000);- setTimeout(() => t.remove(), (opts.ms || 4000) + 400);-}--function notify(title, body) {- if (!settings().notifications || document.hasFocus()) return;- try { new Notification(title, { body, silent: true }); } catch {}-}--const shortUid = (uid) => uid.slice(-4);-const entryOf = (uid) => activeProfile().keys[uid];-const keyName = (uid) => entryOf(uid)?.name || `Keybit ${shortUid(uid)}`;--function hostLabel(h) {- switch (h.type) {- case 'url': return `Open ${h.value.replace(/^https?:\/\//, '')}`;- case 'app': return `Open ${h.value}`;- case 'cmd': return `Run ${h.value}`;- case 'next-profile': return 'Next profile';- case 'profile': return `Profile: ${store.profiles.find((p) => p.id === h.value)?.name || '?'}`;- }- return '?';-}--// Short label for what an entry does, or '' if nothing.-function actionLabel(m) {- if (!m) return '';- if (m.host) return hostLabel(m.host);- if (m.macro?.length) return Hid.macroLabel(m.macro, MAC);- if (m.consumer) return Hid.consumerLabel(m.consumer);- return Hid.comboLabel(m.mods || 0, m.key || 0, MAC);-}-const comboFor = (uid) => actionLabel(entryOf(uid));-const holdLabel = (h) => (h && (h.mods || h.key) ? Hid.comboLabel(h.mods, h.key, MAC) : '');--// Relayed Keybits may only be reported by their low 32 bits. Map those to a full-// UID we already know (connected, or set up in any profile) so they keep their setup.-function resolveUid(uid) {- if (!uid || uid.length !== 8) return uid;- const known = [...keys.keys(), ...store.profiles.flatMap((p) => Object.keys(p.keys))];- return known.find((u) => u.length === 24 && u.endsWith(uid)) || uid;-}--function addKey(uid, at, v, relay) {- const known = keys.get(uid);- // Seen in full for the first time: carry over a setup saved under its short UID.- if (!known && uid.length === 24) {- for (const p of store.profiles) {- const short = uid.slice(-8);- if (p.keys[short] && !p.keys[uid]) { p.keys[uid] = p.keys[short]; delete p.keys[short]; persist(); }- }- }- keys.set(uid, {- at, pressed: known?.pressed || false, v: v ?? known?.v ?? null, flashing: known?.flashing ?? null,- via: relay?.via ? resolveUid(relay.via) : known?.via ?? null, depth: relay?.depth ?? known?.depth ?? null,- });- if (!known) {- const where = at ? ` on the ${SIDE_NAMES[at]}` : relay?.via ? ` behind ${keyName(resolveUid(relay.via))}` : '';- activity(`${keyName(uid)} connected${where}`, 'add');- notify('Keybit connected', `${keyName(uid)}${where}`);- flashUid = uid;- }-}-function removeKey(uid) {- if (!keys.has(uid)) return;- const { at } = keys.get(uid);- keys.delete(uid);- const where = at ? ` from the ${SIDE_NAMES[at]}` : '';- activity(`${keyName(uid)} disconnected${where}`, 'remove');- notify('Keybit disconnected', `${keyName(uid)}${where}`);-}--const outdated = (k) => k?.v != null && device.kb != null && k.v < device.kb;--// ---- Rendering ------function render() {- const p = activeProfile();-- // Board- for (const s of SIDES) {- const uid = [...keys].find(([, k]) => k.at === s)?.[0];- const present = !!uid || !!sides[s];- const slot = $(`.slot[data-side="${s}"]`);- slot.classList.toggle('present', present);- slot.classList.toggle('pressed', !!(uid && keys.get(uid).pressed));- slot.querySelector('.slot-label').textContent = !present ? '' : uid ? (comboFor(uid) || keyName(uid)) : 'Keybit';- slot.title = uid ? `${keyName(uid)} · uid ${uid}` : '';- slot.dataset.uid = uid || '';- }- $('#board-profile').textContent = p.name;-- // Key list: connected first (left, top, right), then mapped keys that are offline.- const order = { L: 0, T: 1, R: 2 };- const online = [...keys].sort((a, b) => (order[a[1].at] ?? 9) - (order[b[1].at] ?? 9)).map(([u]) => u);- const offline = Object.keys(p.keys).filter((u) => !keys.has(u)).sort();- const q = $('#key-filter').value.trim().toLowerCase();- const matches = (uid) => !q || [keyName(uid), comboFor(uid), uid, holdLabel(entryOf(uid)?.hold)].join(' ').toLowerCase().includes(q);- const list = $('#keys');- list.replaceChildren();- for (const uid of [...online, ...offline].filter(matches)) list.append(keyCard(uid));- flashUid = null;- const any = online.length + offline.length > 0;- $('#keys-empty').hidden = list.children.length > 0;- $('#keys-empty').textContent = q && any ? `No keys match "${q}".`- : transport ? "No Keybits connected. Attach one to the Keyword's left, right or top edge."- : 'Connect to the Keyword, or try Demo, to see its Keybits.';-- // Profiles- $('#profile-select').replaceChildren(...store.profiles.map((x, i) =>- el('option', { value: x.id, textContent: x.name, title: i < 9 ? `${MOD_KEY}+${i + 1}` : '', selected: x.id === store.active })));- $('#p-delete').disabled = store.profiles.length < 2;- $('#p-apply').disabled = !transport;- renderApps();-- // Undo/redo- $('#btn-undo').disabled = !history.canUndo;- $('#btn-undo').title = history.canUndo ? `Undo ${history.undoLabel} (${MOD_KEY}+Z)` : 'Nothing to undo';- $('#btn-redo').disabled = !history.canRedo;- $('#btn-redo').title = history.canRedo ? `Redo ${history.redoLabel}` : 'Nothing to redo';-- // Status pills- const fwPill = $('#pill-fw');- fwPill.hidden = !transport || !device.fw;- fwPill.textContent = `Firmware ${device.fw}`;- const b = device.battery;- $('#pill-batt').hidden = !transport || !b;- if (b) {- $('#pill-batt .batt-fill').style.width = `${b.pct}%`;- $('#pill-batt').classList.toggle('low', b.pct <= 15 && !b.charging);- $('#pill-batt').classList.toggle('charging', b.charging);- $('#pill-batt .batt-text').textContent = `${b.pct}%${b.charging ? ' charging' : b.usb ? ' on USB' : ''}`;- }- const appPill = $('#pill-app');- appPill.hidden = !settings().perApp || !frontApp;- if (frontApp) appPill.textContent = autoSwitched ? `${frontApp} → ${p.name}` : `App: ${frontApp}`;- appPill.title = 'Per-app profiles are on (Settings)';-- pushState();-}--function keyCard(uid) {- const k = keys.get(uid);- const m = entryOf(uid);- const combo = comboFor(uid);- const hold = holdLabel(m?.hold);- const where = !k ? 'Not connected'- : k.at ? SIDE_NAMES[k.at][0].toUpperCase() + SIDE_NAMES[k.at].slice(1)- : k.via ? `Chained behind ${keyName(k.via)}${k.depth > 1 ? ` (${k.depth} hops)` : ''}` : 'Connected';- const presses = store.stats[uid] || 0;-- const btns = el('div', { className: 'btns' });- btns.append(el('button', { className: 'ghost small', textContent: 'Assign…', onclick: () => openAssign(uid) }));- if (k && transport instanceof DemoTransport) {- btns.append(el('button', { className: 'ghost small', textContent: 'Tap', title: 'Simulate a press', onclick: () => transport.tap(uid) }));- }- if (k && !k.via && can('flash') && k.flashing == null) {- btns.append(el('button', {- className: 'ghost small' + (outdated(k) ? ' attention' : ''), textContent: outdated(k) ? 'Update' : 'Reflash',- title: outdated(k) ? `Keybit firmware v${k.v}, Keyword has v${device.kb}` : 'Reflash this Keybit', onclick: () => flashKey(uid),- }));- }- if (!k && m && [...keys.keys()].some((u) => !Profiles.isMapped(entryOf(u)))) {- btns.append(el('button', { className: 'ghost small', textContent: 'Move to…', title: 'Give this setup to a connected Keybit, e.g. after swapping one out', onclick: () => moveKey(uid) }));- }- if (!k) btns.append(el('button', { className: 'ghost small', textContent: 'Forget', onclick: () => forgetKey(uid) }));-- const kind = m?.host ? 'host' : m?.macro?.length ? 'macro' : '';- const badges = el('span', { className: 'badges' },- k?.v != null ? el('span', { className: 'badge ver' + (outdated(k) ? ' warn' : ''), textContent: `v${k.v}`, title: outdated(k) ? 'Firmware update available' : 'Keybit firmware' }) : null,- kind === 'host' ? el('span', { className: 'badge', textContent: 'computer', title: 'Runs on this computer while the app is open' }) : null,- kind === 'macro' ? el('span', { className: 'badge', textContent: 'macro' }) : null);-- const meta = el('div', { className: 'meta' },- `${where} · `,- el('button', { className: 'uid link', textContent: `…${uid.slice(-8)}`, title: `${uid}\nClick to copy`, onclick: () => copyUid(uid) }),- presses ? ` · ${presses.toLocaleString()} press${presses === 1 ? '' : 'es'}` : '',- k?.flashing != null ? el('span', { className: 'flashing', textContent: ` · Flashing ${k.flashing}%` }) : null);-- const li = el('li', { className: [k ? '' : 'offline', k?.pressed ? 'pressed' : '', flashUid === uid ? 'flash' : ''].join(' ') },- el('div', { className: 'info' }, el('div', { className: 'name' }, keyName(uid), badges), meta),- el('div', { className: 'actions-col' },- el('span', { className: 'combo' + (combo ? '' : ' none'), textContent: combo || 'not assigned', title: combo }),- hold ? el('span', { className: 'hold', textContent: `hold: ${hold}` }) : null),- btns);- li.dataset.uid = uid;- li.addEventListener('dblclick', (e) => { if (!e.target.closest('button')) openAssign(uid); });- return li;-}--function renderApps() {- const p = activeProfile();- const box = $('#apps');- box.replaceChildren(...p.apps.map((a) => el('span', { className: 'chip' }, a,- el('button', { className: 'chip-x', textContent: '×', title: `Stop using in ${a}`, onclick: () => mutate(`remove ${a}`, () => { p.apps = p.apps.filter((x) => x !== a); }, null) }))));- $('#apps-hint').textContent = !settings().perApp- ? 'Turn on "Switch profiles by the app in front" in Settings to use this.'- : p.apps.length ? '' : 'Not tied to any app. Other profiles switch back to this one when you leave their app.';-}--let lastState = '';-function pushState() {- if (!bridge) return;- const s = {- status: $('#status-text').textContent,- profiles: store.profiles.map((p) => ({ id: p.id, name: p.name })),- active: store.active,- battery: transport && device.battery ? device.battery.pct : null,- };- const j = JSON.stringify(s);- if (j !== lastState) { lastState = j; bridge.updateState(s); }-}--async function copyUid(uid) {- try { await navigator.clipboard.writeText(uid); toast('UID copied'); } catch { toast(uid); }-}--// ---- Protocol handling ------// Lets a flow wait for a particular reply. pred returns true to take the message.-const waiters = new Set();-function waitForMessage(pred, ms) {- return new Promise((resolve) => {- const w = { pred, resolve, timer: setTimeout(() => { waiters.delete(w); resolve(null); }, ms) };- waiters.add(w);- });-}--function handleLine(line) {- lastRx = Date.now();- log('<-', line);- const msg = parseLine(line);- for (const w of [...waiters]) if (w.pred(msg)) { clearTimeout(w.timer); waiters.delete(w); w.resolve(msg); }- switch (msg.type) {- case 'hello': {- const first = !device.fw;- device = { ...device, fw: msg.fw, caps: msg.caps, kb: msg.kb };- setStatus(`Connected over ${transport.label}`, 'connected');- if (msg.proto !== 1) log('!!', `protocol ${msg.proto}, app expects 1`);- if (first) {- if (can('batt')) send(cmd.battery());- applyProfile(true); // now that caps are known- }- break;- }- case 'sides':- for (const [s, v] of Object.entries(msg.sides)) {- sides[s] = v;- // A KEY- may have been missed: drop keys on a side that is now empty.- if (!v) for (const [uid, k] of keys) if (k.at === s) removeKey(uid);- }- break;- case 'keyAdd': {- const uid = resolveUid(msg.uid);- syncSeen?.add(uid);- addKey(uid, msg.at, msg.v, msg.via !== undefined ? { via: msg.via, depth: msg.depth } : null);- break;- }- case 'keyRemove':- removeKey(resolveUid(msg.uid));- break;- case 'keysEnd':- if (syncSeen) for (const uid of [...keys.keys()]) if (!syncSeen.has(uid)) removeKey(uid);- syncSeen = null;- break;- case 'press':- onPress(resolveUid(msg.uid), msg.down);- return;- case 'battery': {- const prev = device.battery;- device.battery = { pct: msg.pct, charging: msg.charging, usb: msg.usb };- if (prev && prev.pct > 15 && msg.pct <= 15 && !msg.charging) {- toast(`Keyword battery low (${msg.pct}%)`, { error: true });- notify('Keyword battery low', `${msg.pct}% left`);- }- break;- }- case 'flashProgress': {- const k = keys.get(msg.uid);- if (k) k.flashing = msg.pct;- break;- }- case 'ok':- if (msg.what === 'FLASH' && msg.uid) {- const uid = msg.uid.toUpperCase();- const k = keys.get(uid);- if (k) k.flashing = null;- activity(`${keyName(uid)} reflashed`, 'add');- toast(`${keyName(uid)} reflashed`);- syncKeys();- }- break;- case 'error': {- log('!!', msg.message);- activity(`Keyword: ${msg.message}`, 'remove');- if (/^flash/i.test(msg.message)) for (const k of keys.values()) k.flashing = null;- break;- }- }- render();-}--let statsDirty = false;-let pressRender = null;-function onPress(uid, down) {- const k = keys.get(uid);- if (k) k.pressed = down;- else addKey(uid, null, null);- if (down) {- store.stats[uid] = (store.stats[uid] || 0) + 1;- statsDirty = true;- const m = entryOf(uid);- if (m?.host) runHost(m.host, uid);- }- // Cheap update instead of a full render on every press.- const li = document.querySelector(`#keys li[data-uid="${uid}"]`);- if (li && k) li.classList.toggle('pressed', down);- const slot = document.querySelector(`.slot[data-uid="${uid}"]`);- if (slot) slot.classList.toggle('pressed', down);- if (!k) render();- else if (down) { clearTimeout(pressRender); pressRender = setTimeout(render, 400); }- if (assign.open && assignUid === uid && down) $('#assign-name').classList.add('blink');-}-setInterval(() => { if (statsDirty) { statsDirty = false; persist(); } }, 10000);--async function runHost(h, uid) {- if (h.type === 'next-profile') return cycleProfile(1);- if (h.type === 'profile') {- if (store.profiles.some((p) => p.id === h.value)) switchTo(h.value, { manual: true });- return;- }- if (!bridge) return toast(`${hostLabel(h)} (only in the bridge app)`);- const r = await bridge.runHost(h);- if (!r.ok) toast(`${keyName(uid)}: ${r.error}`, { error: true });-}--async function send(...lines) {- if (!transport) return;- for (const l of lines) {- log('->', l);- try { await transport.write(l + '\n'); } catch (e) { log('!!', `write failed: ${e.message}`); return; }- }-}--function syncKeys() {- syncSeen = new Set();- send(cmd.keys());-}--function applyProfile(quiet) {- if (!transport || !device.fw) return;- send(...profileCommands(activeProfile().keys, caps()));- if (!quiet) {- activity(`Sent "${activeProfile().name}" to the Keyword`);- toast(`Sent "${activeProfile().name}" to the Keyword`);- }-}--// Programs one key after an edit. UNMAP first clears any old macro/hold.-function syncKey(uid) {- const m = entryOf(uid);- const c = caps();- send(cmd.unmap(uid), ...(m ? entryCommands(uid, m, c) : []), cmd.save());-}--function flashKey(uid) {- const k = keys.get(uid);- if (!k) return;- k.flashing = 0;- activity(`Reflashing ${keyName(uid)}…`);- send(cmd.flash(uid));- render();-}--// ---- Connecting ------async function connect(t, { auto = false } = {}) {- await disconnect({ quiet: true });- setStatus(auto ? `Reconnecting over ${t.label}…` : `Connecting over ${t.label}…`, 'busy');- const lines = new LineBuffer(handleLine);- try {- await t.open((text) => lines.push(text), () => onLinkLost(t));- } catch (e) {- closeDialog($('#chooser'));- if (e.name === 'OtaModeError') {- setStatus('Not connected');- openOta({ device: e.device });- return false;- }- if (auto) throw e;- setStatus(e.name === 'NotFoundError' ? 'Not connected' : `Could not connect: ${e.message}`);- return false;- }- stopReconnect();- transport = t;- device = { fw: null, caps: new Set(), kb: null, battery: null };- lastRx = Date.now();- setStatus(`Connected over ${t.label} · waiting for the Keyword…`, 'busy');- const demo = t instanceof DemoTransport;- document.body.classList.toggle('demo', demo);- $('#demo-hint').hidden = !demo;- $('#btn-disconnect').hidden = false;- activity(`Connected over ${t.label}`);- if (!demo) { settings().lastConnection = t.identity(); persist(); }- render();- await send(cmd.hello(), cmd.sides());- syncKeys();- timers = [- setInterval(() => {- send(cmd.sides());- if (Date.now() - lastRx > STALE_MS) setStatus(`Connected over ${t.label} · no reply from the Keyword`, 'stale');- }, POLL_MS),- setInterval(syncKeys, KEYS_POLL_MS),- setInterval(() => { if (can('batt')) send(cmd.battery()); }, BATT_POLL_MS),- ];- return true;-}--async function disconnect({ quiet = false } = {}) {- timers.forEach(clearInterval);- timers = [];- const t = transport;- transport = null;- if (t) {- await t.close();- if (!quiet) activity('Disconnected');- }- if (!quiet) stopReconnect();- document.body.classList.remove('demo');- $('#demo-hint').hidden = true;- $('#btn-disconnect').hidden = true;- keys.clear();- sides = {};- device = { fw: null, caps: new Set(), kb: null, battery: null };- render();- if (!reconnect) setStatus('Not connected');-}--function onLinkLost(t) {- if (transport !== t) return;- log('!!', 'device disconnected');- activity('Keyword disconnected', 'remove');- notify('Keyword disconnected', settings().autoReconnect ? 'Trying to reconnect…' : '');- disconnect({ quiet: true });- if (settings().autoReconnect) startReconnect(t);- else setStatus('Not connected');-}--// Retries with backoff. Serial waits for the port to come back; BLE re-dials the same device.-function startReconnect(t) {- stopReconnect();- reconnect = { tries: 0, timer: null, kind: t.kind, device: t.device };- const attempt = async () => {- if (!reconnect || transport) return;- reconnect.tries++;- setStatus(`Reconnecting… (try ${reconnect.tries})`, 'busy');- try {- if (reconnect.kind === 'ble' && reconnect.device) await connect(new BleTransport(reconnect.device), { auto: true });- else if (reconnect.kind === 'serial') {- const port = await findSerialPort();- if (!port) throw new Error('port not back yet');- await connect(new SerialTransport(port), { auto: true });- }- return;- } catch (e) {- log('!!', `reconnect: ${e.message}`);- }- if (!reconnect) return;- if (reconnect.tries >= 20) { stopReconnect(); setStatus('Not connected · gave up reconnecting'); return; }- reconnect.timer = setTimeout(attempt, Math.min(30000, 1000 * 2 ** Math.min(reconnect.tries, 5)));- };- reconnect.timer = setTimeout(attempt, 1000);-}-function stopReconnect() {- if (reconnect?.timer) clearTimeout(reconnect.timer);- reconnect = null;-}--async function findSerialPort() {- const last = settings().lastConnection;- if (!('serial' in navigator) || last?.kind !== 'serial') return null;- const ports = await navigator.serial.getPorts();- return ports.find((p) => {- const i = p.getInfo?.() || {};- return last.usbVendorId == null || (i.usbVendorId === last.usbVendorId && i.usbProductId === last.usbProductId);- }) || null;-}--// On launch, quietly reconnect to the last Keyword if its permission is still granted.-async function autoConnectOnLaunch() {- const last = settings().lastConnection;- if (!settings().autoReconnect || !last || transport) return;- try {- if (last.kind === 'serial') {- const port = await findSerialPort();- if (port) await connect(new SerialTransport(port), { auto: true });- } else if (last.kind === 'ble' && navigator.bluetooth?.getDevices) {- const dev = (await navigator.bluetooth.getDevices()).find((d) => d.id === last.id);- if (dev) await connect(new BleTransport(dev), { auto: true });- }- } catch (e) {- log('!!', `auto-connect: ${e.message}`);- setStatus('Not connected');- }-}--// A Keyword plugged back in over USB reconnects straight away.-if ('serial' in navigator) {- navigator.serial.addEventListener('connect', async () => {- if (transport || ota.busy || !settings().autoReconnect || settings().lastConnection?.kind !== 'serial') return;- const port = await findSerialPort();- if (port) connect(new SerialTransport(port), { auto: true }).catch((e) => log('!!', e.message));- });-}--// ---- Dialog helpers ------function closeDialog(d) { if (d.open) d.close(); }--function askText(title, value, suggestions = []) {- const d = $('#prompt');- $('#prompt-title').textContent = title;- const input = $('#prompt-input');- input.value = value || '';- $('#prompt-list').replaceChildren(...suggestions.map((s) => el('option', { value: s })));- return new Promise((resolve) => {- const done = (v) => { closeDialog(d); resolve(v); };- $('#prompt-ok').onclick = () => done(input.value.trim() || null);- $('#prompt-cancel').onclick = () => done(null);- input.onkeydown = (e) => { if (e.key === 'Enter') { e.preventDefault(); done(input.value.trim() || null); } };- d.oncancel = () => resolve(null);- d.showModal();- input.select();- });-}--// ---- Device chooser (Electron forwards the device list from main.js) ------const chooser = $('#chooser');-if (window.devicePicker) {- window.devicePicker.onList(({ kind, devices }) => {- $('#chooser-title').textContent = kind === 'serial' ? 'Choose the Keyword serial port' : 'Choose the Keyword';- const list = $('#chooser-list');- list.replaceChildren();- devices.sort((a, b) => b.likely - a.likely);- for (const d of devices) {- const b = el('button', { className: d.likely ? 'likely' : '' },- el('span', { textContent: d.name }), el('small', { textContent: d.detail || '' }));- b.onclick = () => { window.devicePicker.pick(d.id); closeDialog(chooser); };- list.append(el('li', {}, b));- }- $('#chooser-empty').textContent = kind === 'serial' ? 'No serial ports found. Is the Keyword plugged in?' : 'Searching for Bluetooth devices…';- $('#chooser-empty').hidden = devices.length > 0;- if (!chooser.open) chooser.showModal();- });-}-$('#chooser-cancel').onclick = () => { window.devicePicker?.pick(''); closeDialog(chooser); };-chooser.addEventListener('cancel', () => window.devicePicker?.pick(''));--// ---- Assign dialog ------const assign = $('#assign');-let assignUid = null;-let tab = 'shortcut';-let draft = null; // { mods, key, consumer, macro: [], host: {type, value}, hold: {mods, key, ms} }--$('#assign-mods').append(...Hid.MODS.map((m) =>- el('label', {}, el('input', { type: 'checkbox', value: m.bit }), Hid.modName(m, MAC))));-// Option values are "k:<usage>" for keyboard keys and "c:<usage>" for media keys.-$('#assign-key').append(el('option', { value: 'k:0', textContent: '(no key, modifiers only)' }),- el('optgroup', { label: 'Keys' }, ...Hid.KEYS.map((k) => el('option', { value: `k:${k.usage}`, textContent: k.label }))),- el('optgroup', { label: 'Media' }, ...Hid.CONSUMER.map((c) => el('option', { value: `c:${c.usage}`, textContent: c.label }))));--function setTab(t) {- tab = t;- $$('#assign .tab').forEach((b) => b.setAttribute('aria-selected', String(b.dataset.tab === t)));- $$('#assign .tab-panel').forEach((p) => { p.hidden = p.dataset.panel !== t; });- $('#assign-test').hidden = t !== 'host';- $('#hold-box').hidden = t === 'host';- showDraft();- const focus = { shortcut: '#capture', macro: '#macro-capture', host: '#host-value' }[t];- setTimeout(() => $(focus)?.focus(), 0);-}-$$('#assign .tab').forEach((b) => { b.onclick = () => setTab(b.dataset.tab); });--const shortcutLabel = () => (draft.consumer ? Hid.consumerLabel(draft.consumer) : Hid.comboLabel(draft.mods, draft.key, MAC));--function showDraft() {- // Shortcut tab- $('#assign-mods').querySelectorAll('input').forEach((c) => { c.checked = !!(draft.mods & (1 << c.value)); c.disabled = !!draft.consumer; });- $('#assign-key').value = draft.consumer ? `c:${draft.consumer}` : `k:${draft.key}`;- $('#capture-combo').textContent = shortcutLabel() || 'Click here and press a key or shortcut…';-- // Macro tab- const steps = $('#macro-steps');- steps.replaceChildren(...draft.macro.map((st, i) => el('span', { className: 'chip' }, Hid.stepLabel(st, MAC),- el('button', { className: 'chip-x', textContent: '×', title: 'Remove', onclick: (e) => { e.stopPropagation(); draft.macro.splice(i, 1); showDraft(); } }))));- if (!draft.macro.length) steps.append(el('span', { className: 'hint', textContent: 'Click here and press keys to record…' }));- const macroNote = [`${draft.macro.length}/${MAX_MACRO_STEPS} steps.`];- if (device.fw && !can('macro')) macroNote.push("This Keyword's firmware doesn't support macros yet, so it won't be sent.");- $('#macro-note').textContent = macroNote.join(' ');-- // Host tab- const type = draft.host.type;- $('#host-type').value = type;- const needsValue = ['url', 'app', 'cmd'].includes(type);- $('#host-value').hidden = !needsValue;- $('#host-value').placeholder = { url: 'https://example.com or spotify:…', app: MAC ? 'App name, e.g. Spotify' : 'App or program, e.g. notepad', cmd: 'Shell command, e.g. open ~/Downloads' }[type] || '';- $('#host-value').setAttribute('list', type === 'app' ? 'app-names' : '');- if ($('#host-value').value !== draft.host.value && needsValue) $('#host-value').value = draft.host.value;- $('#host-profile').hidden = type !== 'profile';- $('#host-profile').replaceChildren(...store.profiles.map((p) => el('option', { value: p.id, textContent: p.name, selected: p.id === draft.host.value })));-- // Hold- const hl = holdLabel(draft.hold);- $('#hold-combo').textContent = hl || 'Click here and press what to send while held…';- $('#hold-summary').textContent = hl ? `· ${hl}` : '';- $('#hold-ms').value = draft.hold.ms || DEFAULT_HOLD_MS;- $('#hold-note').textContent = device.fw && !can('hold')- ? "This Keyword's firmware doesn't support hold actions yet, so it won't be sent."- : 'A quick tap sends the main action; holding longer than this sends the hold action.';-}--$('#assign-mods').addEventListener('change', () => {- draft.mods = [...$('#assign-mods').querySelectorAll('input')].reduce((m, c) => m | (c.checked ? 1 << c.value : 0), 0);- showDraft();-});-$('#assign-key').addEventListener('change', (e) => {- const [kind, usage] = e.target.value.split(':');- if (kind === 'c') Object.assign(draft, { mods: 0, key: 0, consumer: Number(usage) });- else Object.assign(draft, { key: Number(usage), consumer: 0 });- showDraft();-});--// Key search: results are clickable chips; Enter picks the first.-function showSearch() {- const q = $('#key-search').value;- const res = q.trim() ? Hid.search(q).slice(0, 14) : [];- $('#key-results').replaceChildren(...res.map((r) => el('button', {- className: 'chip pick', textContent: r.label + (r.kind === 'c' ? ' ♪' : ''),- onclick: () => pickSearch(r),- })));-}-function pickSearch(r) {- if (r.kind === 'c') Object.assign(draft, { mods: 0, key: 0, consumer: r.usage });- else Object.assign(draft, { key: r.usage, consumer: 0 });- $('#key-search').value = '';- showSearch();- showDraft();-}-$('#key-search').addEventListener('input', showSearch);-$('#key-search').addEventListener('keydown', (e) => {- if (e.key === 'Enter') { e.preventDefault(); const r = Hid.search($('#key-search').value)[0]; if (r) pickSearch(r); }-});--// Capture boxes. Electron hands us every key (even Cmd+Q) while one is focused.-let captureTarget = null;-function onCaptured(e) {- const r = Hid.fromEvent(e);- if (!r || !captureTarget) return;- if (captureTarget === 'shortcut') {- if (r.consumer) Object.assign(draft, { mods: 0, key: 0, consumer: r.consumer });- else Object.assign(draft, { mods: r.mods, key: r.usage, consumer: 0 });- } else if (captureTarget === 'macro') {- if (r.consumer || !r.usage) return; // wait for a real key; media keys can't go in a macro- if (draft.macro.length >= MAX_MACRO_STEPS) return toast(`Macros hold up to ${MAX_MACRO_STEPS} steps`);- draft.macro.push([r.mods, r.usage]);- } else if (captureTarget === 'hold') {- if (r.consumer) return;- draft.hold = { ...draft.hold, mods: r.mods, key: r.usage };- }- showDraft();-}-for (const [id, target] of [['#capture', 'shortcut'], ['#macro-capture', 'macro'], ['#hold-capture', 'hold']]) {- const box = $(id);- box.addEventListener('keydown', (e) => { e.preventDefault(); e.stopPropagation(); onCaptured(e); });- box.addEventListener('focus', () => { captureTarget = target; bridge?.setCapture(true); box.classList.add('listening'); });- box.addEventListener('blur', () => { captureTarget = null; bridge?.setCapture(false); box.classList.remove('listening'); });-}-bridge?.onCaptureKey((k) => { if (k.type === 'keyDown') onCaptured(k); });--$('#macro-add-text').onclick = () => {- const { steps, skipped } = Hid.textToSteps($('#macro-text').value);- const room = MAX_MACRO_STEPS - draft.macro.length;- draft.macro.push(...steps.slice(0, room));- if (steps.length > room) toast(`Only ${room} more step${room === 1 ? '' : 's'} fit; the rest was cut`);- if (skipped.length) toast(`Skipped characters with no US key: ${[...new Set(skipped)].join(' ')}`);- $('#macro-text').value = '';- showDraft();-};-$('#macro-text').addEventListener('keydown', (e) => { if (e.key === 'Enter') { e.preventDefault(); $('#macro-add-text').click(); } });-$('#macro-clear').onclick = () => { draft.macro = []; showDraft(); };--$('#host-type').onchange = (e) => {- draft.host = { type: e.target.value, value: e.target.value === 'profile' ? store.profiles[0].id : '' };- $('#host-value').value = '';- showDraft();-};-$('#host-value').oninput = (e) => { draft.host.value = e.target.value; };-$('#host-profile').onchange = (e) => { draft.host.value = e.target.value; };-$('#hold-ms').onchange = (e) => { draft.hold.ms = Math.min(2000, Math.max(50, Number(e.target.value) || DEFAULT_HOLD_MS)); };-$('#hold-clear').onclick = () => { draft.hold = { mods: 0, key: 0, ms: draft.hold.ms }; showDraft(); };--function openAssign(uid) {- assignUid = uid;- const m = entryOf(uid) || {};- draft = {- mods: m.mods || 0, key: m.key || 0, consumer: m.consumer || 0,- macro: (m.macro || []).map((s) => [...s]),- host: m.host ? { ...m.host } : { type: 'url', value: '' },- hold: m.hold ? { ...m.hold } : { mods: 0, key: 0, ms: DEFAULT_HOLD_MS },- };- $('#assign-name').textContent = keyName(uid);- $('#assign-name').classList.remove('blink');- $('#assign-label').value = m.name || '';- $('#assign-clear').disabled = !Profiles.isMapped(m) && !m.name;- $('#key-search').value = '';- $('#host-value').value = m.host?.value || '';- $('#app-names').replaceChildren(...[...seenApps].sort().map((a) => el('option', { value: a })));- $('#hold-box').open = hasHold(m);- showSearch();- assign.showModal();- setTab(m.host ? 'host' : m.macro?.length ? 'macro' : 'shortcut');-}-function closeAssign() {- bridge?.setCapture(false);- closeDialog(assign);-}-assign.addEventListener('close', () => bridge?.setCapture(false));-$('#assign-cancel').onclick = closeAssign;--// The entry the dialog describes, for the current tab.-function draftEntry() {- const name = $('#assign-label').value.trim();- let e;- if (tab === 'host') {- const v = draft.host.type === 'profile' ? $('#host-profile').value : draft.host.type === 'next-profile' ? '' : $('#host-value').value.trim();- e = { host: { type: draft.host.type, value: v } };- } else if (tab === 'macro') e = draft.macro.length ? { macro: draft.macro } : { mods: 0, key: 0 };- else e = draft.consumer ? { mods: 0, key: 0, consumer: draft.consumer } : { mods: draft.mods, key: draft.key };- if (tab !== 'host' && (draft.hold.mods || draft.hold.key)) e.hold = { ...draft.hold };- if (name) e.name = name;- return Profiles.cleanEntry(e);-}--$('#assign-save').onclick = () => {- const uid = assignUid;- const e = draftEntry();- if (e.host && ['url', 'app', 'cmd'].includes(e.host.type) && !e.host.value) {- toast('Fill in what to open or run first', { error: true });- return $('#host-value').focus();- }- const p = activeProfile();- mutate(`assign ${keyName(uid)}`, () => {- if (!Profiles.isMapped(e) && !e.name && !hasHold(e)) delete p.keys[uid];- else p.keys[uid] = e;- }, () => syncKey(uid));- activity(`${keyName(uid)} → ${comboFor(uid) || 'nothing'}`);- closeAssign();-};-$('#assign-clear').onclick = () => {- const uid = assignUid;- mutate(`unassign ${keyName(uid)}`, () => { delete activeProfile().keys[uid]; }, () => syncKey(uid));- closeAssign();- toast(`Unassigned ${keyName(uid)}`, { undo: true });-};-$('#assign-test').onclick = () => {- const e = draftEntry();- if (e.host) runHost(e.host, assignUid);-};--// Hands an offline key's setup to a connected, unassigned Keybit.-async function moveKey(uid) {- const free = [...keys.keys()].filter((u) => !Profiles.isMapped(entryOf(u)));- if (!free.length) return;- let target = free[0];- if (free.length > 1) {- const labels = free.map((u) => `${keys.get(u).at ? SIDE_NAMES[keys.get(u).at] : 'connected'} (…${u.slice(-4)})`);- const pick = await askText(`Move "${keyName(uid)}" to which Keybit?`, labels[0], labels);- if (!pick) return;- target = free[labels.indexOf(pick)] ?? free.find((u) => pick.includes(u.slice(-4)));- if (!target) return;- }- const name = keyName(uid);- mutate(`move ${name}`, () => {- const p = activeProfile();- p.keys[target] = p.keys[uid];- delete p.keys[uid];- }, () => syncKey(target));- toast(`Moved ${name} to the ${SIDE_NAMES[keys.get(target)?.at] || 'connected'} Keybit`, { undo: true });-}--function forgetKey(uid) {- const name = keyName(uid);- mutate(`forget ${name}`, () => { delete activeProfile().keys[uid]; }, null);- toast(`Forgot ${name}`, { undo: true });-}--// ---- Profiles ------function switchTo(id, { manual = true, record = false } = {}) {- if (!store.profiles.some((p) => p.id === id)) return;- if (id === store.active) return;- const doIt = () => { store.active = id; };- if (record) mutate('switch profile', doIt, null);- else { doIt(); persist(); render(); }- if (manual) { manualActive = id; autoSwitched = false; }- applyProfile(true);- if (manual) activity(`Switched to "${activeProfile().name}"`);- render();-}--function cycleProfile(dir) {- const i = store.profiles.findIndex((p) => p.id === store.active);- const next = store.profiles[(i + dir + store.profiles.length) % store.profiles.length];- switchTo(next.id);- toast(`Profile: ${next.name}`);-}--$('#profile-select').onchange = (e) => switchTo(e.target.value);-$('#p-new').onclick = newProfileFlow;-async function newProfileFlow() {- const name = await askText('New profile name', `Profile ${store.profiles.length + 1}`);- if (!name) return;- const p = Profiles.newProfile(name);- mutate(`new profile ${name}`, () => { store.profiles.push(p); store.active = p.id; });- manualActive = p.id;-}-$('#p-dup').onclick = async () => {- const cur = activeProfile();- const name = await askText('Name for the copy', `${cur.name} copy`);- if (!name) return;- const p = Profiles.newProfile(name, cur.keys);- mutate(`duplicate ${cur.name}`, () => { store.profiles.push(p); store.active = p.id; });- manualActive = p.id;-};-$('#p-rename').onclick = async () => {- const cur = activeProfile();- const name = await askText('Rename profile', cur.name);- if (!name || name === cur.name) return;- mutate(`rename ${cur.name}`, () => { cur.name = name; }, null);-};-$('#p-delete').onclick = () => {- if (store.profiles.length < 2) return;- const cur = activeProfile();- mutate(`delete ${cur.name}`, () => {- store.profiles = store.profiles.filter((p) => p.id !== cur.id);- store.active = store.profiles[0].id;- });- manualActive = store.active;- toast(`Deleted "${cur.name}"`, { undo: true });-};--async function saveText(name, text) {- if (bridge) return bridge.saveFile(name, text);- const a = el('a', { href: URL.createObjectURL(new Blob([text], { type: 'application/json' })), download: name });- a.click();- URL.revokeObjectURL(a.href);- return true;-}-async function exportCurrent() {- const p = activeProfile();- if (await saveText(`${p.name}.keyword.json`, Profiles.exportProfile(p))) activity(`Exported "${p.name}"`);-}-async function exportAll() {- if (await saveText('Keyword profiles.keyword.json', Profiles.exportLibrary(store.profiles))) activity(`Exported ${store.profiles.length} profiles`);-}-$('#p-export').onclick = exportCurrent;-$('#set-export-all').onclick = exportAll;--function importTexts(files) {- const added = [];- for (const f of files) {- try { added.push(...Profiles.importProfiles(f.text)); } catch (e) { toast(`${f.name}: ${e.message}`, { error: true }); }- }- if (!added.length) return;- // A shared profile could run anything on this computer, so ask before keeping commands.- const risky = added.flatMap((p) => Object.values(p.keys).filter((e) => e.host && ['cmd', 'app'].includes(e.host.type)).map((e) => e.host));- if (risky.length) {- const list = risky.slice(0, 8).map((h) => `• ${h.type === 'cmd' ? 'Run' : 'Open'}: ${h.value}`).join('\n');- const keep = confirm(`These profiles run things on this computer when a key is pressed:\n\n${list}${risky.length > 8 ? '\n…' : ''}\n\nKeep them? Cancel removes those actions and imports the rest.`);- if (!keep) for (const p of added) for (const [u, e] of Object.entries(p.keys)) if (e.host && ['cmd', 'app'].includes(e.host.type)) delete p.keys[u];- }- // Keep names unique so the menu stays readable.- const names = new Set(store.profiles.map((p) => p.name));- for (const p of added) {- let n = p.name, i = 2;- while (names.has(n)) n = `${p.name} (${i++})`;- p.name = n;- names.add(n);- }- mutate(`import ${added.length} profile${added.length === 1 ? '' : 's'}`, () => {- store.profiles.push(...added);- store.active = added[0].id;- });- manualActive = store.active;- toast(`Imported ${added.map((p) => `"${p.name}"`).join(', ')}`, { undo: true });-}-async function importFlow() {- if (bridge) return importTexts(await bridge.openFiles());- const input = el('input', { type: 'file', accept: '.json,application/json', multiple: true });- input.onchange = async () => importTexts(await Promise.all([...input.files].map(async (f) => ({ name: f.name, text: await f.text() }))));- input.click();-}-$('#p-import').onclick = importFlow;-$('#p-apply').onclick = () => applyProfile(false);--// Drag a profile file onto the window to import it.-document.addEventListener('dragover', (e) => { e.preventDefault(); document.body.classList.add('dropping'); });-document.addEventListener('dragleave', (e) => { if (!e.relatedTarget) document.body.classList.remove('dropping'); });-document.addEventListener('drop', async (e) => {- e.preventDefault();- document.body.classList.remove('dropping');- const files = [...(e.dataTransfer?.files || [])].filter((f) => /\.json$/i.test(f.name));- if (files.length) importTexts(await Promise.all(files.map(async (f) => ({ name: f.name, text: await f.text() }))));-});--// Apps for per-app switching-$('#p-add-app').onclick = async () => {- const suggestions = [...seenApps].filter((a) => !SELF_APPS.has(a.toLowerCase())).sort();- const name = await askText('Use this profile in which app?', '', suggestions);- if (!name) return;- const p = activeProfile();- if (p.apps.some((a) => a.toLowerCase() === name.toLowerCase())) return;- const other = Profiles.profileForApp(store.profiles, name);- mutate(`add ${name}`, () => {- if (other) other.apps = other.apps.filter((a) => a.toLowerCase() !== name.toLowerCase());- p.apps.push(name);- }, null);- if (other) toast(`Moved ${name} from "${other.name}"`);- if (!settings().perApp) toast('Turn on per-app switching in Settings for this to take effect');-};--function onFrontApp(name) {- if (!name || SELF_APPS.has(name.toLowerCase())) return;- seenApps.add(name);- frontApp = name;- if (!settings().perApp) return render();- const target = Profiles.profileForApp(store.profiles, name);- if (target) {- if (target.id !== store.active) {- switchTo(target.id, { manual: false });- autoSwitched = true;- activity(`${name} → "${target.name}"`);- }- } else if (autoSwitched && manualActive && manualActive !== store.active) {- switchTo(manualActive, { manual: false });- autoSwitched = false;- }- render();-}-bridge?.onFrontApp(onFrontApp);--// ---- Library ------function openLibrary() {- const known = [...new Set([...keys.keys(), ...Object.keys(activeProfile().keys)])];- const uids = Templates.orderUids(known, (u) => keys.get(u)?.at);- const list = $('#library-list');- list.replaceChildren(...Templates.TEMPLATES.map((t) => {- const preview = t.build(MAC).map((a) => a.name || actionLabel(a)).join(' · ');- return el('li', {},- el('div', {}, el('b', { textContent: t.name }), el('p', { className: 'hint', textContent: t.description }),- el('p', { className: 'preview', textContent: preview })),- el('div', { className: 'btns' },- el('button', { className: 'small', textContent: 'New profile', onclick: () => useTemplate(t, uids, true) }),- el('button', { className: 'ghost small', textContent: 'Apply here', title: 'Overwrite these keys in the current profile', onclick: () => useTemplate(t, uids, false) })));- }));- $('#library').showModal();-}-function useTemplate(t, uids, asNew) {- if (!uids.length) return toast('Attach a Keybit (or try Demo) first, so there are keys to assign', { error: true });- const { keys: k, apps, used, total } = Templates.applyTemplate(t, uids, MAC);- if (asNew) {- const p = Profiles.newProfile(t.name, k, apps);- mutate(`add ${t.name}`, () => { store.profiles.push(p); store.active = p.id; });- manualActive = p.id;- } else {- const p = activeProfile();- mutate(`apply ${t.name}`, () => { Object.assign(p.keys, k); });- }- closeDialog($('#library'));- toast(`${t.name}: ${used} of ${total} actions assigned${used < total ? ' (attach more Keybits for the rest)' : ''}`, { undo: true });-}-$('#p-library').onclick = openLibrary;-$('#library-close').onclick = () => closeDialog($('#library'));--// ---- Keyword firmware update (BLE OTA) ------// The Keyword restarts into ST's BLE_Ota bootloader on OTA, erasing its app first (4-5 s).-// From there the image goes over Bluetooth whatever link the app was using.-const OTA_RESTART_MS = 6500;-const ota = { busy: false, image: null, fileName: '', stage: 'pick', target: null, demo: false, cancelled: false, device: null };--function otaSet(text, { error = false, pct = null } = {}) {- const st = $('#ota-status');- st.textContent = text;- st.classList.toggle('error-text', error);- $('#ota-progress').hidden = pct == null;- if (pct != null) $('#ota-progress').value = pct;-}--function otaButtons() {- const go = $('#ota-go');- const realLink = transport && !(transport instanceof DemoTransport);- const labels = {- pick: realLink || transport ? 'Start update' : `Find ${OTA.name}`,- find: ota.device ? 'Start update' : `Find ${OTA.name}`,- sending: 'Sending…', done: 'Done', waiting: 'Restarting…',- };- go.textContent = labels[ota.stage];- go.disabled = ota.stage === 'sending' || ota.stage === 'waiting' || (ota.stage !== 'done' && !ota.image);- $('#ota-cancel').textContent = ota.stage === 'sending' ? 'Cancel' : 'Close';- $('#ota-file').disabled = ota.busy;-}--// device: a Keyword already in its update bootloader, picked from the normal Bluetooth chooser.-async function openOta({ device = null } = {}) {- if (ota.busy) { $('#ota').showModal(); return; }- Object.assign(ota, { stage: device ? 'find' : 'pick', cancelled: false, demo: transport instanceof DemoTransport, device });- $('#ota-dfu').hidden = true;- $('#ota-stack').textContent = '';- otaSet(device- ? 'This Keyword is in update mode. Pick the firmware image and click Start update.'- : transport- ? (can('ota') ? '' : 'This Keyword firmware does not report OTA support. The update will be tried anyway.')- : `Not connected. If the Keyword is already in update mode (it shows up as "${OTA.name}"), pick the image and find it.`);- otaButtons();- closeDialog($('#settings'));- $('#ota').showModal();- if (transport && device.fw) {- send(cmd.stack());- const m = await waitForMessage((x) => x.type === 'stack' || (x.type === 'error' && /stack/i.test(x.message)), 2000);- if (m?.type === 'stack') {- $('#ota-stack').textContent = `Keyword firmware ${device.fw} · wireless stack ${m.stack === 'ble' ? `BLE ${m.v || ''}` : m.stack}${m.fus ? ` · FUS ${m.fus}` : ''}`;- if (m.stack === 'none') {- otaSet('The Keyword has no Bluetooth stack on its radio core, so it can only be updated over USB DFU.', { error: true });- $('#ota-dfu').hidden = false;- }- } else $('#ota-stack').textContent = `Keyword firmware ${device.fw}`;- }-}--$('#ota-file').onchange = async (e) => {- const f = e.target.files[0];- ota.image = null;- if (f) {- const bytes = new Uint8Array(await f.arrayBuffer());- const check = checkAppImage(bytes);- if (check.ok) {- ota.image = bytes;- ota.fileName = f.name;- $('#ota-file-info').textContent = `${f.name} · ${(bytes.length / 1024).toFixed(1)} KB`;- if ($('#ota-dfu').hidden) otaSet('');- } else {- $('#ota-file-info').textContent = '';- otaSet(check.error, { error: true });- }- }- otaButtons();-};--$('#ota-go').onclick = async () => {- if (ota.stage === 'done') return closeDialog($('#ota'));- if (ota.stage === 'pick' && transport) return otaRestartKeyword();- return otaSend();-};--$('#ota-cancel').onclick = async () => {- if (ota.stage === 'sending') {- ota.cancelled = true;- return;- }- closeDialog($('#ota'));-};-$('#ota').addEventListener('cancel', (e) => { if (ota.busy) e.preventDefault(); });--$('#ota-dfu').onclick = async () => {- if (!transport) return;- if (!confirm('Restart the Keyword into its USB DFU bootloader? It stops working as a keyboard until it is flashed with STM32CubeProgrammer (or dfu-util) and restarted.')) return;- send(cmd.dfu());- const m = await waitForMessage((x) => (x.type === 'ok' && x.what === 'DFU') || x.type === 'error', 2000);- if (m?.type === 'ok') {- await disconnect();- // Over USB DFU, starting the app from the programmer (-g, :leave, -startfus, -fwupgrade)- // rewrites nSWBOOT0 and can lock the Keyword out of DFU.- otaSet('The Keyword is in USB DFU mode. Flash keyword_full.bin at 0x08000000 with STM32CubeProgrammer, then unplug and replug it. Don\'t use "run after programming" (-g / :leave) or the FUS/stack upgrade, which can lock it out of DFU.');- } else otaSet(m ? `Keyword: ${m.message}` : 'No reply from the Keyword.', { error: true });-};--// Step 1: ask the running Keyword to restart into the bootloader.-async function otaRestartKeyword() {- ota.busy = true;- ota.stage = 'waiting';- otaButtons();- otaSet('Asking the Keyword to restart into update mode…');- send(cmd.ota());- const m = await waitForMessage((x) => (x.type === 'ok' && x.what === 'OTA') || x.type === 'error', 3000);- if (m?.type !== 'ok') {- ota.busy = false;- ota.stage = 'pick';- otaButtons();- if (m && /no BLE stack/i.test(m.message)) {- otaSet('The Keyword has no Bluetooth stack on its radio core, so it can only be updated over USB DFU.', { error: true });- $('#ota-dfu').hidden = false;- } else otaSet(m ? `Keyword: ${m.message}` : 'The Keyword did not answer. Its firmware may be too old for OTA.', { error: true });- return;- }- ota.demo = transport instanceof DemoTransport;- await disconnect();- activity('Keyword restarting into update mode');- const until = Date.now() + (ota.demo ? 1500 : OTA_RESTART_MS);- while (Date.now() < until) {- otaSet(`The Keyword is erasing its app and restarting into update mode… ${Math.ceil((until - Date.now()) / 1000)}`);- await sleep(250);- }- ota.stage = 'find';- otaButtons();- // Web Bluetooth only opens its picker from a click, so the user presses Find.- otaSet(`Ready. Click "Find ${OTA.name}" and pick it from the list.`);-}--// Step 2: send the image to the bootloader.-async function otaSend() {- if (!ota.image) return;- if (!ota.demo && !('bluetooth' in navigator)) return otaSet('Web Bluetooth is not available here.', { error: true });- ota.busy = true;- ota.cancelled = false;- stopReconnect();- const target = ota.demo ? new DemoOtaTarget() : new BleOtaTarget(ota.device);- ota.target = target;- try {- otaSet(`Connecting to ${OTA.name}…`);- ota.stage = 'waiting';- otaButtons();- await target.connect();- ota.stage = 'sending';- otaButtons();- await target.start();- // There's no flow control, so pace the writes to the bootloader's flash speed (~3 ms per 248 bytes).- // Chunks fit common MTUs; if a size is refused, step down to a smaller one.- const sizes = MAC ? [176, 16] : [240, 176, 16];- let chunks = otaChunks(ota.image, sizes[0]);- let size = 0;- let sent = 0;- const t0 = Date.now();- for (let i = 0; i < chunks.length; i++) {- if (ota.cancelled) throw new Error('cancelled');- try {- await target.write(chunks[i]);- } catch (e) {- if (i > 0 || size + 1 >= sizes.length) throw e;- size++;- log('!!', `OTA write of ${chunks[i].length} B refused (${e.message}), trying ${sizes[size]}`);- chunks = otaChunks(ota.image, sizes[size]);- i = -1;- continue;- }- sent += chunks[i].length;- // macOS drops write-without-response packets that come too fast (a run of- // 131 x 176 B went missing at 4 ms), so pace it much slower there.- await sleep(MAC ? 20 : Math.max(2, Math.ceil(chunks[i].length / 248 * 3) + 1));- if (i % 8 === 0 || i === chunks.length - 1) {- const rate = sent / Math.max(1, Date.now() - t0); // bytes per ms- const left = Math.ceil((ota.image.length - sent) / rate / 1000);- otaSet(`Sending ${ota.fileName}… ${Math.round(sent / 1024)} of ${Math.round(ota.image.length / 1024)} KB${left > 1 ? ` · about ${left} s left` : ''}`,- { pct: Math.min(100, Math.round(sent / ota.image.length * 100)) });- }- }- otaSet('Checking the image…', { pct: 100 });- await target.finish();- const ack = await Promise.race([target.confirmed, target.lost.then(() => 'lost'), sleep(15000).then(() => 'timeout')]);- if (ack === 1) {- ota.stage = 'done';- otaSet('Updated. The Keyword is restarting with the new firmware.');- activity('Keyword firmware updated', 'add');- toast('Keyword firmware updated');- target.close();- setTimeout(() => { if (!ota.demo) autoConnectOnLaunch(); else connect(new DemoTransport()); }, 3000);- } else {- throw new Error(ack === 'lost' ? 'the Keyword disconnected before confirming'- : ack === 'timeout' ? 'no confirmation from the Keyword' : `the Keyword rejected the image (${ack})`);- }- } catch (e) {- await target.cancel?.();- target.close();- ota.stage = 'find';- if (e.name === 'NotFoundError') otaSet(`Didn't find ${OTA.name}. Click Find to try again.`);- else if (e.message === 'cancelled') otaSet(`Cancelled. The Keyword stays in update mode (as "${OTA.name}") until it gets a good image.`);- else otaSet(`Update failed: ${e.message}. The Keyword stays in update mode, so you can try again.`, { error: true });- log('!!', `OTA: ${e.message}`);- } finally {- ota.busy = false;- ota.target = null;- otaButtons();- }-}--$('#set-ota').onclick = openOta;--// ---- Settings ------function applySettings() {- const s = settings();- if (s.theme === 'system') delete document.documentElement.dataset.theme;- else document.documentElement.dataset.theme = s.theme;- bridge?.applySettings({ theme: s.theme, closeToTray: s.closeToTray, launchAtLogin: s.launchAtLogin, perApp: s.perApp });- if (!s.perApp) { autoSwitched = false; }-}-function openSettings() {- const s = settings();- $('#set-theme').value = s.theme;- for (const k of ['autoReconnect', 'perApp', 'notifications', 'closeToTray', 'launchAtLogin']) $(`#set-${k}`).checked = !!s[k];- $('#settings').showModal();-}-$('#set-theme').onchange = (e) => { settings().theme = e.target.value; persist(); applySettings(); };-for (const k of ['autoReconnect', 'perApp', 'notifications', 'closeToTray', 'launchAtLogin']) {- $(`#set-${k}`).onchange = async (e) => {- settings()[k] = e.target.checked;- if (k === 'notifications' && e.target.checked && 'Notification' in window && Notification.permission === 'default') {- try { await Notification.requestPermission(); } catch {}- }- persist();- applySettings();- render();- };-}-$('#set-reset-stats').onclick = () => { store.stats = {}; persist(); render(); toast('Press counts reset'); };-$('#set-data').onclick = () => bridge?.openDataFolder();-$('#set-data').hidden = !bridge;-$('#settings-close').onclick = () => closeDialog($('#settings'));-$('#btn-settings').onclick = openSettings;--function toggleTheme() {- const dark = document.documentElement.dataset.theme === 'dark'- || (!document.documentElement.dataset.theme && matchMedia('(prefers-color-scheme: dark)').matches);- settings().theme = dark ? 'light' : 'dark';- persist();- applySettings();-}-$('#btn-theme').onclick = toggleTheme;--// ---- Buttons, menu and shortcuts ------const connectUsb = () => {- if (!('serial' in navigator)) return setStatus('Web Serial is not available here');- connect(new SerialTransport());-};-const connectBle = () => {- if (!('bluetooth' in navigator)) return setStatus('Web Bluetooth is not available here');- connect(new BleTransport());-};-$('#btn-usb').onclick = connectUsb;-$('#btn-ble').onclick = connectBle;-$('#btn-demo').onclick = () => connect(new DemoTransport());-$('#btn-disconnect').onclick = () => disconnect();-$('#btn-undo').onclick = undo;-$('#btn-redo').onclick = redo;-$('#activity-clear').onclick = () => $('#activity').replaceChildren();-$('#key-filter').addEventListener('input', render);--$$('.board .slot').forEach((slot) => {- slot.addEventListener('click', () => {- if (transport instanceof DemoTransport) transport.toggle(slot.dataset.side);- else if (slot.dataset.uid) openAssign(slot.dataset.uid);- });-});--const inTextField = () => {- const a = document.activeElement;- return a && (a.tagName === 'TEXTAREA' || (a.tagName === 'INPUT' && !['checkbox', 'radio'].includes(a.type)));-};-const anyDialogOpen = () => $$('dialog').some((d) => d.open);--function onMenu(command, arg) {- if (captureTarget) return; // the recorder owns the keyboard- switch (command) {- case 'undo': if (inTextField()) document.execCommand('undo'); else if (!anyDialogOpen()) undo(); break;- case 'redo': if (inTextField()) document.execCommand('redo'); else if (!anyDialogOpen()) redo(); break;- case 'settings': openSettings(); break;- case 'import': importFlow(); break;- case 'export': exportCurrent(); break;- case 'export-all': exportAll(); break;- case 'connect-usb': connectUsb(); break;- case 'connect-ble': connectBle(); break;- case 'disconnect': disconnect(); break;- case 'profile': switchTo(arg); break;- case 'next-profile': cycleProfile(1); break;- case 'prev-profile': cycleProfile(-1); break;- case 'new-profile': newProfileFlow(); break;- case 'library': openLibrary(); break;- case 'apply': applyProfile(false); break;- case 'toggle-theme': toggleTheme(); break;- case 'update-firmware': openOta(); break;- case 'find': $('#key-filter').focus(); $('#key-filter').select(); break;- }-}-bridge?.onMenu(onMenu);--// In a plain browser (no Electron menu) handle the same shortcuts here.-if (!bridge) {- document.addEventListener('keydown', (e) => {- const mod = MAC ? e.metaKey : e.ctrlKey;- if (!mod || captureTarget) return;- const k = e.key.toLowerCase();- if (k === 'z' && !e.shiftKey) { if (!inTextField()) { e.preventDefault(); onMenu('undo'); } }- else if ((k === 'z' && e.shiftKey) || k === 'y') { if (!inTextField()) { e.preventDefault(); onMenu('redo'); } }- else if (k === 'f') { e.preventDefault(); onMenu('find'); }- else if (/^[1-9]$/.test(k) && store.profiles[k - 1]) { e.preventDefault(); onMenu('profile', store.profiles[k - 1].id); }- });-}--// ---- Start ------storage.load().then(async (s) => {- store = Profiles.normalizeStore(s);- manualActive = store.active;- applySettings();- render();- if (bridge) {- const info = await bridge.appInfo();- $('#set-about').textContent = `Keyword Monitor ${info.version} · ${info.platform}`;- }- autoConnectOnLaunch();-});-render();diff --git a/app/renderer/hid.js b/app/renderer/hid.jsdeleted file mode 100644index c9f9a74..0000000--- a/app/renderer/hid.js+++ /dev/null@@ -1,167 +0,0 @@-// USB HID keyboard usages (HID Usage Tables, page 0x07) keyed by KeyboardEvent.code.-(function (root) {- const KEYS = [];- const add = (code, usage, label) => KEYS.push({ code, usage, label });-- for (let i = 0; i < 26; i++) {- const c = String.fromCharCode(65 + i);- add(`Key${c}`, 0x04 + i, c);- }- '1234567890'.split('').forEach((d, i) => add(`Digit${d}`, 0x1e + i, d));- [- ['Enter', 0x28, 'Enter'], ['Escape', 0x29, 'Esc'], ['Backspace', 0x2a, 'Backspace'],- ['Tab', 0x2b, 'Tab'], ['Space', 0x2c, 'Space'], ['Minus', 0x2d, '-'], ['Equal', 0x2e, '='],- ['BracketLeft', 0x2f, '['], ['BracketRight', 0x30, ']'], ['Backslash', 0x31, '\\'],- ['Semicolon', 0x33, ';'], ['Quote', 0x34, "'"], ['Backquote', 0x35, '`'], ['Comma', 0x36, ','],- ['Period', 0x37, '.'], ['Slash', 0x38, '/'], ['CapsLock', 0x39, 'Caps Lock'],- ].forEach((k) => add(...k));- for (let i = 1; i <= 12; i++) add(`F${i}`, 0x39 + i, `F${i}`);- [- ['PrintScreen', 0x46, 'Print Screen'], ['ScrollLock', 0x47, 'Scroll Lock'], ['Pause', 0x48, 'Pause'],- ['Insert', 0x49, 'Insert'], ['Home', 0x4a, 'Home'], ['PageUp', 0x4b, 'Page Up'],- ['Delete', 0x4c, 'Delete'], ['End', 0x4d, 'End'], ['PageDown', 0x4e, 'Page Down'],- ['ArrowRight', 0x4f, '→'], ['ArrowLeft', 0x50, '←'], ['ArrowDown', 0x51, '↓'], ['ArrowUp', 0x52, '↑'],- ['NumLock', 0x53, 'Num Lock'], ['NumpadDivide', 0x54, 'Num /'], ['NumpadMultiply', 0x55, 'Num *'],- ['NumpadSubtract', 0x56, 'Num -'], ['NumpadAdd', 0x57, 'Num +'], ['NumpadEnter', 0x58, 'Num Enter'],- ].forEach((k) => add(...k));- for (let i = 1; i <= 9; i++) add(`Numpad${i}`, 0x58 + i, `Num ${i}`);- [- ['Numpad0', 0x62, 'Num 0'], ['NumpadDecimal', 0x63, 'Num .'], ['IntlBackslash', 0x64, 'Intl \\'],- ['ContextMenu', 0x65, 'Menu'], ['NumpadEqual', 0x67, 'Num ='],- ].forEach((k) => add(...k));- for (let i = 13; i <= 24; i++) add(`F${i}`, 0x5b + i, `F${i}`);-- // Media keys go through the Consumer page (0x0C), sent with MAPC. Keyed by- // KeyboardEvent.code where the browser reports one.- const CONSUMER = [- ['MediaPlayPause', 0xcd, 'Play/Pause'], ['MediaTrackNext', 0xb5, 'Next Track'],- ['MediaTrackPrevious', 0xb6, 'Previous Track'], ['MediaStop', 0xb7, 'Stop'],- ['AudioVolumeMute', 0xe2, 'Mute'], ['AudioVolumeUp', 0xe9, 'Volume Up'],- ['AudioVolumeDown', 0xea, 'Volume Down'], ['', 0x6f, 'Brightness Up'],- ['', 0x70, 'Brightness Down'], ['LaunchApp2', 0x192, 'Calculator'],- ['LaunchMail', 0x18a, 'Mail'], ['BrowserSearch', 0x221, 'Search'],- ['BrowserHome', 0x223, 'Browser Home'],- ].map(([code, usage, label]) => ({ code, usage, label }));- const consumerByCode = new Map(CONSUMER.filter((c) => c.code).map((c) => [c.code, c]));- const consumerByUsage = new Map(CONSUMER.map((c) => [c.usage, c]));-- const byCode = new Map(KEYS.map((k) => [k.code, k]));- const byUsage = new Map(KEYS.map((k) => [k.usage, k]));-- // Modifier byte bits, as in the HID boot keyboard report.- const MODS = [- { bit: 0, code: 'ControlLeft', name: 'Ctrl' },- { bit: 1, code: 'ShiftLeft', name: 'Shift' },- { bit: 2, code: 'AltLeft', name: 'Alt' },- { bit: 3, code: 'MetaLeft', name: 'GUI' },- { bit: 4, code: 'ControlRight', name: 'Right Ctrl' },- { bit: 5, code: 'ShiftRight', name: 'Right Shift' },- { bit: 6, code: 'AltRight', name: 'Right Alt' },- { bit: 7, code: 'MetaRight', name: 'Right GUI' },- ];- const modByCode = new Map(MODS.map((m) => [m.code, m]));-- function modName(m, mac) {- if (!mac) return m.name.replace('GUI', 'Win');- return m.name.replace('GUI', 'Cmd').replace('Alt', 'Option');- }-- function consumerLabel(usage) {- return consumerByUsage.get(usage)?.label || `Media 0x${usage.toString(16).padStart(4, '0')}`;- }-- // "Ctrl+Shift+A", "Cmd+Space", "Shift" (modifier only), "" when empty.- function comboLabel(mods, usage, mac) {- const parts = MODS.filter((m) => mods & (1 << m.bit)).map((m) => modName(m, mac));- if (usage) parts.push(byUsage.get(usage)?.label || `0x${usage.toString(16).padStart(2, '0')}`);- return parts.join('+');- }-- // Turns a key event ({code, ctrlKey, shiftKey, altKey, metaKey}) into {mods, usage},- // or {consumer} for a media key. usage is 0 when only modifiers are held.- // Returns null for keys HID can't send.- function fromEvent(e) {- const media = consumerByCode.get(e.code);- if (media) return { consumer: media.usage };- let mods = (e.ctrlKey ? 1 : 0) | (e.shiftKey ? 2 : 0) | (e.altKey ? 4 : 0) | (e.metaKey ? 8 : 0);- const mod = modByCode.get(e.code);- if (mod) return { mods: mods | (1 << mod.bit), usage: 0 };- const k = byCode.get(e.code);- if (!k) return null;- return { mods, usage: k.usage };- }-- // Characters on a US layout -> [mods, usage] taps, for typing text with a macro.- const SHIFTED = { '!': '1', '@': '2', '#': '3', $: '4', '%': '5', '^': '6', '&': '7', '*': '8', '(': '9', ')': '0',- _: '-', '+': '=', '{': '[', '}': ']', '|': '\\', ':': ';', '"': "'", '~': '`', '<': ',', '>': '.', '?': '/' };- const PLAIN = { '-': 0x2d, '=': 0x2e, '[': 0x2f, ']': 0x30, '\\': 0x31, ';': 0x33, "'": 0x34, '`': 0x35,- ',': 0x36, '.': 0x37, '/': 0x38, ' ': 0x2c, '\n': 0x28, '\t': 0x2b };- function charToStep(ch) {- if (/[a-z]/.test(ch)) return [0, 0x04 + ch.charCodeAt(0) - 97];- if (/[A-Z]/.test(ch)) return [2, 0x04 + ch.charCodeAt(0) - 65];- if (/[1-9]/.test(ch)) return [0, 0x1e + Number(ch) - 1];- if (ch === '0') return [0, 0x27];- if (ch in PLAIN) return [0, PLAIN[ch]];- if (ch in SHIFTED) { const base = charToStep(SHIFTED[ch]); return base && [2, base[1]]; }- return null;- }- // Returns { steps, skipped } where skipped lists characters with no US-layout key.- function textToSteps(text) {- const steps = [];- const skipped = [];- for (const ch of text) {- const st = charToStep(ch);- if (st) steps.push(st); else skipped.push(ch);- }- return { steps, skipped };- }-- // Label for one macro step, and for a whole sequence ("Ctrl+C, Ctrl+V").- const stepLabel = ([mods, key], mac) => comboLabel(mods, key, mac);- function macroLabel(steps, mac) {- // Runs of plain or shifted printable characters read better as text.- const out = [];- let text = '';- const flush = () => { if (text) out.push(`"${text}"`); text = ''; };- for (const st of steps) {- const ch = stepChar(st);- if (ch != null) text += ch;- else { flush(); out.push(stepLabel(st, mac)); }- }- flush();- return out.join(', ');- }- const charByStep = new Map();- for (let c = 32; c < 127; c++) {- const ch = String.fromCharCode(c);- const st = charToStep(ch);- if (st && !charByStep.has(st.join(':'))) charByStep.set(st.join(':'), ch);- }- const stepChar = (st) => charByStep.get(st.join(':')) ?? null;-- // Fuzzy-ish search over keys and media keys for the Assign dialog.- // Returns [{kind: 'k'|'c', usage, label}] best match first.- function search(query) {- const q = query.trim().toLowerCase();- const all = [- ...KEYS.map((k) => ({ kind: 'k', usage: k.usage, label: k.label, hay: `${k.label} ${k.code}`.toLowerCase() })),- ...CONSUMER.map((c) => ({ kind: 'c', usage: c.usage, label: c.label, hay: `${c.label} ${c.code} media`.toLowerCase() })),- ];- if (!q) return all.map(({ hay, ...r }) => r);- const scored = [];- for (const r of all) {- const label = r.label.toLowerCase();- let score = -1;- if (label === q) score = 0;- else if (label.startsWith(q)) score = 1;- else if (r.hay.includes(q)) score = 2;- else if (q.split(/\s+/).every((w) => r.hay.includes(w))) score = 3;- if (score >= 0) scored.push([score, r]);- }- return scored.sort((a, b) => a[0] - b[0]).map(([, { hay, ...r }]) => r);- }-- const api = { KEYS, MODS, CONSUMER, byUsage, comboLabel, consumerLabel, fromEvent, modName, textToSteps, macroLabel, stepLabel, search };- if (typeof module !== 'undefined' && module.exports) module.exports = api;- else root.Hid = api;-})(typeof window !== 'undefined' ? window : globalThis);diff --git a/app/renderer/index.html b/app/renderer/index.htmldeleted file mode 100644index f7fba9a..0000000--- a/app/renderer/index.html+++ /dev/null@@ -1,217 +0,0 @@-<!doctype html>-<html lang="en">-<head>- <meta charset="utf-8">- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'self'">- <meta name="viewport" content="width=device-width, initial-scale=1">- <title>Keyword Monitor</title>- <link rel="stylesheet" href="style.css">-</head>-<body>- <header>- <h1>Keyword Monitor</h1>- <div class="actions">- <button id="btn-usb" title="Connect over USB (Cmd/Ctrl+U)">USB serial</button>- <button id="btn-ble" title="Connect over Bluetooth (Cmd/Ctrl+B)">Bluetooth</button>- <button id="btn-demo" class="ghost">Demo</button>- <button id="btn-disconnect" class="ghost" hidden>Disconnect</button>- <span class="sep"></span>- <button id="btn-undo" class="icon ghost" title="Undo" aria-label="Undo">↶</button>- <button id="btn-redo" class="icon ghost" title="Redo" aria-label="Redo">↷</button>- <button id="btn-theme" class="icon ghost" title="Toggle light/dark (Cmd/Ctrl+Shift+L)" aria-label="Toggle theme">◐</button>- <button id="btn-settings" class="icon ghost" title="Settings" aria-label="Settings">⚙</button>- </div>- </header>-- <div id="status" class="status">- <span class="dot"></span><span id="status-text">Not connected</span>- <span class="pills">- <span id="pill-app" class="pill" hidden></span>- <span id="pill-fw" class="pill" hidden></span>- <span id="pill-batt" class="pill batt" hidden><span class="batt-icon"><span class="batt-fill"></span></span><span class="batt-text"></span></span>- </span>- </div>-- <main>- <section class="col">- <div class="board" aria-label="Keyword and its sides">- <div class="slot slot-T" data-side="T"><span class="slot-label"></span></div>- <div class="slot slot-L" data-side="L"><span class="slot-label"></span></div>- <div class="keyword"><span>Keyword</span><small id="board-profile"></small></div>- <div class="slot slot-R" data-side="R"><span class="slot-label"></span></div>- </div>- <p id="demo-hint" class="hint center" hidden>Demo: click a side to attach or remove a Keybit.</p>-- <div class="section-head">- <h2>Keys</h2>- <input id="key-filter" type="search" placeholder="Find a key…" aria-label="Find a key">- </div>- <ul id="keys" class="keys"></ul>- <p id="keys-empty" class="hint"></p>- </section>-- <section class="col side">- <h2>Profile</h2>- <select id="profile-select" aria-label="Active profile"></select>- <div class="btn-row">- <button id="p-new" class="ghost small">New</button>- <button id="p-dup" class="ghost small">Duplicate</button>- <button id="p-rename" class="ghost small">Rename</button>- <button id="p-delete" class="ghost small">Delete</button>- </div>- <div class="btn-row">- <button id="p-library" class="ghost small">Library…</button>- <button id="p-import" class="ghost small">Import…</button>- <button id="p-export" class="ghost small">Export…</button>- </div>- <button id="p-apply" class="small">Send to Keyword</button>-- <div id="apps-box" class="apps-box">- <div class="apps-head"><b>Use automatically in</b> <button id="p-add-app" class="link">+ Add app</button></div>- <div id="apps" class="chips"></div>- <p id="apps-hint" class="hint small-text"></p>- </div>-- <div class="section-head">- <h2>Activity</h2>- <button id="activity-clear" class="link">Clear</button>- </div>- <ul id="activity" class="activity"></ul>- </section>- </main>-- <details class="log">- <summary>Raw log</summary>- <pre id="log"></pre>- </details>-- <div id="toasts" class="toasts" aria-live="polite"></div>-- <dialog id="chooser">- <h2 id="chooser-title">Choose a device</h2>- <ul id="chooser-list"></ul>- <p id="chooser-empty" class="hint">Searching…</p>- <div class="dialog-actions"><button id="chooser-cancel" class="ghost">Cancel</button></div>- </dialog>-- <dialog id="assign" class="wide">- <h2>Assign <span id="assign-name"></span></h2>- <div class="tabs" role="tablist">- <button role="tab" data-tab="shortcut" class="tab">Key or shortcut</button>- <button role="tab" data-tab="macro" class="tab">Macro</button>- <button role="tab" data-tab="host" class="tab">Computer action</button>- </div>-- <div class="tab-panel" data-panel="shortcut">- <div id="capture" class="capture" tabindex="0"><span id="capture-combo"></span></div>- <input id="key-search" type="search" placeholder="Search keys: volume, f13, page down…" aria-label="Search keys">- <div id="key-results" class="chips results"></div>- <div id="assign-mods" class="mods"></div>- <select id="assign-key" aria-label="Key"></select>- </div>-- <div class="tab-panel" data-panel="macro">- <p class="hint">Keys are tapped in order. Click the box and press keys to record, or type text to add it.</p>- <div id="macro-capture" class="capture macro" tabindex="0"><span id="macro-steps" class="chips"></span></div>- <div class="row">- <input id="macro-text" placeholder="Text to type, e.g. your email">- <button id="macro-add-text" class="ghost small">Add text</button>- <button id="macro-clear" class="ghost small">Clear</button>- </div>- <p id="macro-note" class="hint small-text"></p>- </div>-- <div class="tab-panel" data-panel="host">- <p class="hint">Runs on this computer while Keyword Monitor is open. The Keyword sends no key for it.</p>- <select id="host-type" aria-label="Action">- <option value="url">Open a website or link</option>- <option value="app">Open an app</option>- <option value="cmd">Run a command</option>- <option value="next-profile">Switch to the next profile</option>- <option value="profile">Switch to a profile</option>- </select>- <input id="host-value" aria-label="Value">- <select id="host-profile" aria-label="Profile"></select>- <datalist id="app-names"></datalist>- </div>-- <details id="hold-box" class="hold-box">- <summary>When held <span id="hold-summary" class="hint"></span></summary>- <div id="hold-capture" class="capture small" tabindex="0"><span id="hold-combo"></span></div>- <div class="row">- <label class="inline">Hold for <input id="hold-ms" type="number" min="50" max="2000" step="10" value="200"> ms</label>- <button id="hold-clear" class="ghost small">No hold action</button>- </div>- <p id="hold-note" class="hint small-text"></p>- </details>-- <label class="field">Name <input id="assign-label" maxlength="40" placeholder="optional, e.g. Mute mic"></label>- <div class="dialog-actions">- <button id="assign-clear" class="ghost">Unassign</button>- <button id="assign-test" class="ghost">Test</button>- <span class="spacer"></span>- <button id="assign-cancel" class="ghost">Cancel</button>- <button id="assign-save">Save</button>- </div>- </dialog>-- <dialog id="library" class="wide">- <h2>Profile library</h2>- <p class="hint">Ready-made layouts. Actions go to your Keybits in order: left, top edge, right.</p>- <ul id="library-list" class="library"></ul>- <div class="dialog-actions"><button id="library-close" class="ghost">Close</button></div>- </dialog>-- <dialog id="settings">- <h2>Settings</h2>- <label class="field">Theme- <select id="set-theme"><option value="system">Match system</option><option value="light">Light</option><option value="dark">Dark</option></select>- </label>- <label class="check"><input type="checkbox" id="set-autoReconnect"> Reconnect to the last Keyword automatically</label>- <label class="check"><input type="checkbox" id="set-perApp"> Switch profiles by the app in front</label>- <label class="check"><input type="checkbox" id="set-notifications"> Notify when Keybits connect or disconnect</label>- <label class="check"><input type="checkbox" id="set-closeToTray"> Keep running in the menu bar / tray when closed</label>- <label class="check"><input type="checkbox" id="set-launchAtLogin"> Open at login</label>- <div class="btn-row">- <button id="set-ota" class="ghost small">Update Keyword firmware…</button>- <button id="set-export-all" class="ghost small">Export all profiles…</button>- <button id="set-reset-stats" class="ghost small">Reset press counts</button>- <button id="set-data" class="ghost small">Open data folder</button>- </div>- <p id="set-about" class="hint small-text"></p>- <div class="dialog-actions"><button id="settings-close">Done</button></div>- </dialog>-- <dialog id="ota">- <h2>Update Keyword firmware</h2>- <p class="hint">Sends a new firmware image to the Keyword over Bluetooth, even when you're connected over USB. Pick <code>keyword_app.bin</code> from <code>firmware/release</code>.</p>- <p id="ota-stack" class="hint small-text"></p>- <label class="field">Firmware image <input type="file" id="ota-file" accept=".bin"></label>- <p id="ota-file-info" class="hint small-text"></p>- <progress id="ota-progress" max="100" value="0" hidden></progress>- <p id="ota-status" class="small-text" aria-live="polite"></p>- <div class="dialog-actions">- <button id="ota-dfu" class="ghost" hidden>Restart into USB DFU</button>- <span class="spacer"></span>- <button id="ota-cancel" class="ghost">Close</button>- <button id="ota-go">Start update</button>- </div>- </dialog>-- <dialog id="prompt">- <h2 id="prompt-title"></h2>- <input id="prompt-input" maxlength="80" list="prompt-list">- <datalist id="prompt-list"></datalist>- <div class="dialog-actions">- <button id="prompt-cancel" class="ghost">Cancel</button>- <button id="prompt-ok">OK</button>- </div>- </dialog>-- <script src="protocol.js"></script>- <script src="hid.js"></script>- <script src="profiles.js"></script>- <script src="templates.js"></script>- <script src="app.js"></script>-</body>-</html>diff --git a/app/renderer/profiles.js b/app/renderer/profiles.jsdeleted file mode 100644index 5704218..0000000--- a/app/renderer/profiles.js+++ /dev/null@@ -1,173 +0,0 @@-// Keymap profiles and the app's saved state.-//-// store = { active, profiles: [profile], settings, stats }-// profile = { id, name, apps: [app name], keys: { <UID>: entry } }-// entry: one main action, plus an optional name and hold action:-// { mods, key } keyboard key or shortcut-// { consumer } media key (HID consumer page)-// { macro: [[mods, key], ...] } sequence of taps-// { host: { type, value } } run by the app: url | app | cmd | next-profile | profile-// name: 'Mute mic' optional label-// hold: { mods, key, ms } optional action while held (firmware tap/hold)-(function (root) {- const FORMAT = 'keyword-profile';- const LIBRARY_FORMAT = 'keyword-profile-library';- const HOST_TYPES = ['url', 'app', 'cmd', 'next-profile', 'profile'];- const MAX_MACRO_STEPS = 16;-- const DEFAULT_SETTINGS = {- theme: 'system', // system | light | dark- autoReconnect: true,- perApp: false, // switch profiles by frontmost app- notifications: false, // OS notification on connect/disconnect- closeToTray: false,- launchAtLogin: false,- lastConnection: null, // { kind: 'serial', usbVendorId, usbProductId } | { kind: 'ble', id, name }- };-- const newId = () => Math.random().toString(36).slice(2, 10);- const byte = (n) => (Number(n) || 0) & 0xff;-- function newProfile(name, keys = {}, apps = []) {- return { id: newId(), name: name || 'Profile', apps: [...apps], keys: JSON.parse(JSON.stringify(keys)) };- }-- function cleanEntry(m) {- if (!m || typeof m !== 'object') return null;- const entry = {};- if (m.host && HOST_TYPES.includes(m.host.type)) {- entry.host = { type: m.host.type, value: typeof m.host.value === 'string' ? m.host.value.slice(0, 1000) : '' };- } else if (Array.isArray(m.macro) && m.macro.length) {- entry.macro = m.macro.slice(0, MAX_MACRO_STEPS)- .filter((s) => Array.isArray(s) && s.length === 2)- .map(([mods, key]) => [byte(mods), byte(key)]);- } else {- const consumer = (Number(m.consumer) || 0) & 0xffff;- if (consumer) Object.assign(entry, { mods: 0, key: 0, consumer });- else Object.assign(entry, { mods: byte(m.mods), key: byte(m.key) });- }- if (m.hold && (m.hold.mods || m.hold.key)) {- entry.hold = { mods: byte(m.hold.mods), key: byte(m.hold.key), ms: Math.min(2000, Math.max(50, Number(m.hold.ms) || 200)) };- }- if (typeof m.name === 'string' && m.name.trim()) entry.name = m.name.trim().slice(0, 40);- return entry;- }-- function cleanKeys(keys) {- const out = {};- if (!keys || typeof keys !== 'object') return out;- for (const [uid, m] of Object.entries(keys)) {- if (!/^([0-9a-fA-F]{24}|[0-9a-fA-F]{8})$/.test(uid)) continue;- const entry = cleanEntry(m);- if (entry) out[uid.toUpperCase()] = entry;- }- return out;- }-- const cleanApps = (apps) => (Array.isArray(apps) ? [...new Set(apps.filter((a) => typeof a === 'string' && a.trim()).map((a) => a.trim().slice(0, 80)))] : []);-- // Does an entry do anything when pressed?- const isMapped = (m) => !!(m && (m.host || m.macro?.length || m.consumer || m.mods || m.key));-- // What gets written by Export.- function exportProfile(p) {- return JSON.stringify({ format: FORMAT, version: 1, name: p.name, apps: cleanApps(p.apps), keys: cleanKeys(p.keys) }, null, 2);- }-- // Every profile in one file.- function exportLibrary(profiles) {- return JSON.stringify({- format: LIBRARY_FORMAT, version: 1,- profiles: profiles.map((p) => ({ name: p.name, apps: cleanApps(p.apps), keys: cleanKeys(p.keys) })),- }, null, 2);- }-- // Parses an exported profile or library. Throws with a readable message if it's neither.- // Always returns a list of new profiles.- function importProfiles(text) {- let data;- try { data = JSON.parse(text); } catch { throw new Error('Not a JSON file'); }- const one = (d, fallback) => newProfile(typeof d.name === 'string' && d.name.trim() ? d.name.trim() : fallback, cleanKeys(d.keys), cleanApps(d.apps));- if (data?.format === LIBRARY_FORMAT) {- if (data.version !== 1) throw new Error(`Unsupported library version ${data.version}`);- if (!Array.isArray(data.profiles)) throw new Error('Library has no profiles');- return data.profiles.filter((d) => d && typeof d === 'object').map((d) => one(d, 'Imported'));- }- if (!data || data.format !== FORMAT) throw new Error('Not a Keyword profile');- if (data.version !== 1) throw new Error(`Unsupported profile version ${data.version}`);- return [one(data, 'Imported')];- }-- function importProfile(text) {- return importProfiles(text)[0];- }-- // Repairs a store loaded from disk so the UI can trust it.- function normalizeStore(store) {- const profiles = Array.isArray(store?.profiles)- ? store.profiles.filter((p) => p && typeof p === 'object').map((p) => ({- id: typeof p.id === 'string' ? p.id : newId(),- name: typeof p.name === 'string' && p.name ? p.name : 'Profile',- apps: cleanApps(p.apps),- keys: cleanKeys(p.keys),- }))- : [];- if (!profiles.length) profiles.push(newProfile('Default'));- const active = profiles.some((p) => p.id === store?.active) ? store.active : profiles[0].id;- const settings = { ...DEFAULT_SETTINGS };- for (const k of Object.keys(DEFAULT_SETTINGS)) {- const v = store?.settings?.[k];- if (v !== undefined && (typeof v === typeof DEFAULT_SETTINGS[k] || DEFAULT_SETTINGS[k] === null)) settings[k] = v;- }- if (!['system', 'light', 'dark'].includes(settings.theme)) settings.theme = 'system';- const stats = {};- for (const [uid, n] of Object.entries(store?.stats || {})) if (Number.isFinite(n) && n > 0) stats[uid] = Math.floor(n);- return { active, profiles, settings, stats };- }-- // Which profile should be active for a frontmost app, or null for "no rule".- function profileForApp(profiles, appName) {- if (!appName) return null;- const a = appName.toLowerCase();- return profiles.find((p) => p.apps.some((x) => x.toLowerCase() === a)) || null;- }-- // Undo/redo over JSON snapshots of the parts the user edits.- class History {- constructor(limit = 100) {- this.limit = limit;- this.undoStack = [];- this.redoStack = [];- }- // Call before a change, with the state as it is now.- record(snapshot, label) {- this.undoStack.push({ snapshot: JSON.stringify(snapshot), label });- if (this.undoStack.length > this.limit) this.undoStack.shift();- this.redoStack = [];- }- get canUndo() { return this.undoStack.length > 0; }- get canRedo() { return this.redoStack.length > 0; }- get undoLabel() { return this.undoStack.at(-1)?.label || ''; }- get redoLabel() { return this.redoStack.at(-1)?.label || ''; }- // Both take the current state and return the one to restore, or null.- undo(current) {- const e = this.undoStack.pop();- if (!e) return null;- this.redoStack.push({ snapshot: JSON.stringify(current), label: e.label });- return { state: JSON.parse(e.snapshot), label: e.label };- }- redo(current) {- const e = this.redoStack.pop();- if (!e) return null;- this.undoStack.push({ snapshot: JSON.stringify(current), label: e.label });- return { state: JSON.parse(e.snapshot), label: e.label };- }- }-- const api = {- DEFAULT_SETTINGS, HOST_TYPES, newProfile, cleanEntry, cleanKeys, isMapped, exportProfile, exportLibrary,- importProfile, importProfiles, normalizeStore, profileForApp, History,- };- if (typeof module !== 'undefined' && module.exports) module.exports = api;- else root.Profiles = api;-})(typeof window !== 'undefined' ? window : globalThis);diff --git a/app/renderer/protocol.js b/app/renderer/protocol.jsdeleted file mode 100644index d2d71d0..0000000--- a/app/renderer/protocol.js+++ /dev/null@@ -1,216 +0,0 @@-// Keyword host protocol: newline-terminated ASCII lines, same over USB CDC and BLE.-// See ../PROTOCOL.md for the full description.-(function (root) {- const SIDES = ['L', 'R', 'T'];-- // Nordic UART Service, used as a plain byte pipe over BLE.- const NUS = {- service: '6e400001-b5a3-f393-e0a9-e50e24dcca9e',- rx: '6e400002-b5a3-f393-e0a9-e50e24dcca9e', // host writes here- tx: '6e400003-b5a3-f393-e0a9-e50e24dcca9e', // keyword notifies here- };-- // ST BLE_Ota bootloader on the Keyword, reached with the OTA command. See PROTOCOL.md.- const OTA = {- name: 'Keyword OTA',- service: '0000fe20-cc7a-482a-984a-7f2ed5b3e58f',- base: '0000fe22-8e22-4541-9d4c-21edae82ed19', // write: [cmd, offset >> 16, >> 8, offset]- confirm: '0000fe23-8e22-4541-9d4c-21edae82ed19', // indicate: 0x01 once the image is accepted- raw: '0000fe24-8e22-4541-9d4c-21edae82ed19', // write without response: image bytes, in order- START: 0x02, FINISH: 0x07, CANCEL: 0x08,- FLASH_BASE: 0x08000000,- APP_OFFSET: 0x7000, // the app lives at 0x08007000, behind the bootloader- MAX_SIZE: 0x08100000 - 0x08007000,- };- const otaBaseCommand = (op, offset = 0) => new Uint8Array([op, (offset >> 16) & 0xff, (offset >> 8) & 0xff, offset & 0xff]);-- // Sanity checks an app image before sending it: the right file, linked for 0x08007000.- function checkAppImage(bytes) {- if (!bytes || bytes.length < 64) return { ok: false, error: 'The file is too small to be a Keyword firmware image.' };- if (bytes.length > OTA.MAX_SIZE) return { ok: false, error: 'The file is too big for the Keyword.' };- const word = (i) => (bytes[i] | (bytes[i + 1] << 8) | (bytes[i + 2] << 16) | (bytes[i + 3] << 24)) >>> 0;- const sp = word(0), reset = word(4);- if (sp < 0x20000000 || sp > 0x20040000 || !(reset & 1)) {- return { ok: false, error: "This doesn't look like a Keyword firmware image (no vector table at the start)." };- }- const appStart = OTA.FLASH_BASE + OTA.APP_OFFSET;- if (reset < appStart || reset >= appStart + bytes.length) {- return { ok: false, error: reset < appStart- ? 'This image starts at 0x08000000, so it is the full image for USB DFU. Pick keyword_app.bin instead.'- : 'This image is not linked for 0x08007000.' };- }- return { ok: true, size: bytes.length };- }-- // Splits an image into OTA writes. The bootloader programs flash 8 bytes at a time,- // so chunks are multiples of 8 and the tail is padded with 0xFF (erased flash).- function otaChunks(bytes, size) {- const step = Math.max(8, size - (size % 8));- const padded = new Uint8Array(Math.ceil(bytes.length / 8) * 8).fill(0xff);- padded.set(bytes);- const out = [];- for (let i = 0; i < padded.length; i += step) out.push(padded.subarray(i, i + step));- return out;- }-- const MAX_MACRO_STEPS = 16;- const DEFAULT_HOLD_MS = 200;-- // Splits a byte/char stream into lines ending in \n, \r\n or a bare \r. Handles partial chunks.- class LineBuffer {- constructor(onLine) {- this.buf = '';- this.onLine = onLine;- }- push(text) {- this.buf += text;- let i;- while ((i = this.buf.search(/[\r\n]/)) >= 0) {- const line = this.buf.slice(0, i).trim();- this.buf = this.buf.slice(i + 1); // a \r\n leaves an empty line, which is skipped- if (line) this.onLine(line);- }- if (this.buf.length > 4096) this.buf = ''; // garbage with no newline- }- }-- // Parses "KEY=val KEY=val" into an object.- function parseFields(parts) {- const out = {};- for (const p of parts) {- const eq = p.indexOf('=');- if (eq > 0) out[p.slice(0, eq)] = p.slice(eq + 1);- }- return out;- }-- const isUid = (u) => typeof u === 'string' && /^([0-9a-fA-F]{24}|[0-9a-fA-F]{8})$/.test(u);- const hex2 = (n) => (n & 0xff).toString(16).toUpperCase().padStart(2, '0');- const hex4 = (n) => (n & 0xffff).toString(16).toUpperCase().padStart(4, '0');- const int = (s, radix = 10) => { const n = parseInt(s, radix); return Number.isFinite(n) ? n : 0; };-- // Host -> Keyword commands.- const cmd = {- hello: () => 'HELLO',- sides: () => 'SIDES?',- keys: () => 'KEYS?',- battery: () => 'BATT?',- map: (uid, mods, key) => `MAP uid=${uid} mods=${hex2(mods)} key=${hex2(key)}`,- mapConsumer: (uid, usage) => `MAPC uid=${uid} usage=${hex4(usage)}`,- macro: (uid, steps) => `MACRO uid=${uid} seq=${steps.slice(0, MAX_MACRO_STEPS).map(([m, k]) => hex2(m) + hex2(k)).join(',')}`,- hold: (uid, mods, key, ms) => `HOLD uid=${uid} mods=${hex2(mods)} key=${hex2(key)} ms=${Math.round(ms || DEFAULT_HOLD_MS)}`,- mapQuery: (uid) => `MAP? uid=${uid}`,- unmap: (uid) => `UNMAP uid=${uid}`,- flash: (uid) => `FLASH uid=${uid}`,- ota: () => 'OTA',- dfu: () => 'DFU',- stack: () => 'STACK?',- clear: () => 'CLEAR',- save: () => 'SAVE',- };-- const hasHold = (m) => !!(m.hold && (m.hold.mods || m.hold.key));-- // One profile entry -> the commands that program it into the Keyword.- // Host actions (run by the app) and empty entries need nothing.- // caps is the set from HELLO; commands it doesn't list are left out.- function entryCommands(uid, m, caps) {- const out = [];- if (m.host) return out;- if (m.macro?.length) {- if (caps.has('macro')) out.push(cmd.macro(uid, m.macro));- } else if (m.consumer) out.push(cmd.mapConsumer(uid, m.consumer));- else if (m.mods || m.key) out.push(cmd.map(uid, m.mods || 0, m.key || 0));- if (hasHold(m) && caps.has('hold')) out.push(cmd.hold(uid, m.hold.mods || 0, m.hold.key || 0, m.hold.ms));- return out;- }-- // Back-compat helper: the main MAP/MAPC command for an entry, or null.- function mapCommand(uid, m) {- if (m.consumer) return cmd.mapConsumer(uid, m.consumer);- if (m.mods || m.key) return cmd.map(uid, m.mods || 0, m.key || 0);- return null;- }-- // Commands that make the Keyword match a profile exactly.- function profileCommands(keys, caps = new Set()) {- const out = [cmd.clear()];- for (const [uid, m] of Object.entries(keys)) {- if (isUid(uid)) out.push(...entryCommands(uid.toUpperCase(), m, caps));- }- out.push(cmd.save());- return out;- }-- // Returns {type, ...} or {type: 'unknown', line}.- function parseLine(line) {- const parts = line.trim().split(/\s+/);- const name = parts[0];- const f = parseFields(parts.slice(1));- const uid = isUid(f.uid) ? f.uid.toUpperCase() : null;- switch (name) {- case 'KEYWORD':- return {- type: 'hello', fw: f.v || '?', proto: int(f.proto),- caps: new Set((f.caps || '').split(',').filter(Boolean)),- kb: f.kb != null ? int(f.kb) : null,- };- case 'SIDES': {- const sides = {};- for (const s of SIDES) if (s in f) sides[s] = f[s] === '1';- if (!Object.keys(sides).length) break;- return { type: 'sides', sides };- }- case 'KEY+':- if (!uid) break;- return {- type: 'keyAdd', uid, at: SIDES.includes(f.at) ? f.at : null, v: f.v != null ? int(f.v) : null,- // Keybits relayed through another Keybit: at=X, via=<uid of the next Keybit in>, depth=<hops>.- ...(f.via ? { via: isUid(f.via) ? f.via.toUpperCase() : null, depth: int(f.depth) || null } : {}),- };- case 'KEY-':- if (!uid) break;- return { type: 'keyRemove', uid };- case 'KEYS':- if (parts[1] === 'END') return { type: 'keysEnd' };- break;- case 'PRESS':- if (!uid) break;- return { type: 'press', uid, down: f.down === '1' };- case 'MAP':- if (!uid) break;- return { type: 'map', uid, mods: int(f.mods, 16), key: int(f.key, 16) };- case 'MAPC':- if (!uid) break;- return { type: 'mapConsumer', uid, usage: int(f.usage, 16) };- case 'MACRO':- if (!uid) break;- return { type: 'macro', uid, steps: (f.seq || '').split(',').filter((s) => /^[0-9a-fA-F]{4}$/.test(s)).map((s) => [int(s.slice(0, 2), 16), int(s.slice(2), 16)]) };- case 'HOLD':- if (!uid) break;- return { type: 'hold', uid, mods: int(f.mods, 16), key: int(f.key, 16), ms: int(f.ms) || DEFAULT_HOLD_MS };- case 'BATT':- if (f.pct == null) break;- return { type: 'battery', pct: Math.max(0, Math.min(100, int(f.pct))), charging: f.chg === '1', usb: f.usb === '1' };- case 'FLASH':- if (!uid) break;- return { type: 'flashProgress', uid, pct: Math.max(0, Math.min(100, int(f.pct))) };- case 'STACK':- // STACK ble v=1.24.0 fus=2.2.0 | STACK none fus=x.y.z | STACK unknown- return { type: 'stack', stack: parts[1] || 'unknown', v: f.v || null, fus: f.fus || null };- case 'OK':- return { type: 'ok', what: parts[1] || '', ...parseFields(parts.slice(2)) };- case 'ERR':- return { type: 'error', message: parts.slice(1).join(' ') };- }- return { type: 'unknown', line };- }-- const api = {- SIDES, NUS, MAX_MACRO_STEPS, DEFAULT_HOLD_MS, LineBuffer, parseLine, cmd,- mapCommand, entryCommands, profileCommands, isUid, hasHold,- OTA, otaBaseCommand, checkAppImage, otaChunks,- };- if (typeof module !== 'undefined' && module.exports) module.exports = api;- else root.KeywordProtocol = api;-})(typeof window !== 'undefined' ? window : globalThis);diff --git a/app/renderer/style.css b/app/renderer/style.cssdeleted file mode 100644index 1f54ac6..0000000--- a/app/renderer/style.css+++ /dev/null@@ -1,235 +0,0 @@-:root {- --bg: #f5f6f8;- --panel: #ffffff;- --text: #1b1d22;- --muted: #6b7280;- --line: #d6d9df;- --accent: #2f6fde;- --accent-text: #ffffff;- --on: #1f9d63;- --on-soft: #d9f2e6;- --warn: #b7790a;- --warn-soft: #fbefd6;- --danger: #c2413a;- --off: #9aa1ad;- --keyword: #2a2f3a;- --keyword-text: #f0f2f5;- --press-soft: #e3ecfb;- --shadow: 0 6px 24px rgba(15, 20, 30, 0.14);- color-scheme: light;-}-/* Dark tokens, used when the system is dark (unless forced light) or when forced dark. */-@media (prefers-color-scheme: dark) {- :root:not([data-theme="light"]) {- --bg: #14161a; --panel: #1d2026; --text: #e8eaee; --muted: #9099a8; --line: #333844;- --accent: #6c9cf0; --accent-text: #0d1220; --on: #3cc287; --on-soft: #18392b;- --warn: #e0a83a; --warn-soft: #3a2e15; --danger: #ef6b63; --off: #5d6472;- --keyword: #3a4150; --keyword-text: #f0f2f5; --press-soft: #1d2c47;- --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);- color-scheme: dark;- }-}-:root[data-theme="dark"] {- --bg: #14161a; --panel: #1d2026; --text: #e8eaee; --muted: #9099a8; --line: #333844;- --accent: #6c9cf0; --accent-text: #0d1220; --on: #3cc287; --on-soft: #18392b;- --warn: #e0a83a; --warn-soft: #3a2e15; --danger: #ef6b63; --off: #5d6472;- --keyword: #3a4150; --keyword-text: #f0f2f5; --press-soft: #1d2c47;- --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);- color-scheme: dark;-}--* { box-sizing: border-box; }-[hidden] { display: none !important; }-body {- margin: 0;- font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;- background: var(--bg);- color: var(--text);- display: flex;- flex-direction: column;- min-height: 100vh;-}-body.dropping::after {- content: "Drop to import profiles";- position: fixed; inset: 12px; border: 3px dashed var(--accent); border-radius: 14px;- display: grid; place-items: center; font-size: 18px; font-weight: 600; color: var(--accent);- background: color-mix(in srgb, var(--bg) 85%, transparent); z-index: 50; pointer-events: none;-}--header {- display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;- padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel);-}-h1 { font-size: 16px; margin: 0; font-weight: 600; }-.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }-.actions .sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }--button {- font: inherit; padding: 6px 14px; border-radius: 6px; cursor: pointer;- border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text);-}-button.ghost { background: transparent; color: var(--text); border-color: var(--line); }-button.ghost:hover:not(:disabled) { border-color: var(--muted); }-button.icon { padding: 4px 9px; font-size: 16px; line-height: 1.2; }-button.small { padding: 4px 10px; font-size: 13px; }-button.link { background: none; border: none; padding: 0; color: var(--accent); font-size: 13px; }-button.attention { border-color: var(--warn); color: var(--warn); }-button:disabled { opacity: 0.45; cursor: default; }-button:focus-visible, select:focus-visible, input:focus-visible, .capture:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }--.status { display: flex; align-items: center; gap: 8px; padding: 10px 20px; color: var(--muted); flex-wrap: wrap; }-.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--off); flex: none; }-.status.connected .dot { background: var(--on); }-.status.stale .dot, .status.busy .dot { background: var(--warn); }-.status.busy .dot { animation: pulse 1s ease-in-out infinite alternate; }-@keyframes pulse { to { opacity: 0.3; } }-.pills { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }-.pill { border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 12px; background: var(--panel); display: inline-flex; align-items: center; gap: 6px; }-.batt-icon { width: 20px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; display: inline-block; }-.batt-icon::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }-.batt-fill { position: absolute; left: 1px; top: 1px; bottom: 1px; max-width: calc(100% - 2px); background: var(--on); border-radius: 1px; }-.batt.low { color: var(--danger); border-color: var(--danger); }-.batt.low .batt-fill { background: var(--danger); }-.batt.charging .batt-fill { background: var(--accent); }--main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 8px 20px 20px; align-items: start; }-@media (max-width: 780px) { main { grid-template-columns: 1fr; } }-.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }-.col.side { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; gap: 10px; }-h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 6px 0 0; font-weight: 600; }-.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }-.section-head input { max-width: 220px; }-.center { text-align: center; }-.hint { color: var(--muted); margin: 0; }-.small-text { font-size: 12px; }-.btn-row, .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }-.row input { flex: 1; min-width: 140px; }-select, input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; width: 100%; }-input[type="number"] { width: 80px; }-input[type="checkbox"] { width: auto; }--/* Keyword in the middle, Keybit slots left, right and above. */-.board {- --u: clamp(64px, 13vw, 104px);- display: grid; align-self: center; margin: 8px 0 0; gap: 6px;- grid-template-columns: var(--u) calc(var(--u) * 2) var(--u);- grid-template-rows: var(--u) var(--u);-}-.keyword {- grid-column: 2; grid-row: 2; background: var(--keyword); color: var(--keyword-text); border-radius: 8px;- display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; gap: 2px;-}-.keyword small { font-weight: 400; opacity: 0.7; font-size: 11px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }-.slot-T { grid-column: 2; grid-row: 1; width: var(--u); justify-self: center; }-.slot-L { grid-column: 1; grid-row: 2; }-.slot-R { grid-column: 3; grid-row: 2; }-.slot {- border: 2px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: transparent;- transition: background 0.15s, border-color 0.15s, transform 0.08s;-}-.slot.present { border: 2px solid var(--on); background: var(--on-soft); color: var(--on); font-weight: 600; cursor: pointer; }-.slot.pressed { transform: translateY(2px); border-color: var(--accent); background: var(--press-soft); color: var(--accent); }-.demo .slot { cursor: pointer; }-.demo .slot:hover { border-color: var(--accent); }-.slot-label { font-size: 12px; text-align: center; padding: 3px; word-break: break-word; overflow: hidden; max-height: 100%; }--.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }-.keys li {- background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;- display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;- transition: border-color 0.1s, background 0.1s;-}-.keys li.offline { opacity: 0.55; }-.keys li.pressed { border-color: var(--accent); background: var(--press-soft); }-.keys li.flash { animation: flash 1.2s ease-out; }-@keyframes flash { from { border-color: var(--on); box-shadow: 0 0 0 3px var(--on-soft); } to { box-shadow: 0 0 0 0 transparent; } }-.keys .name { font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }-.keys .meta { color: var(--muted); font-size: 12px; }-.keys .meta .uid { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: 12px; }-.keys .flashing { color: var(--accent); }-.actions-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }-.keys .combo {- font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--line);- border-radius: 5px; padding: 2px 8px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;-}-.keys .combo.none { color: var(--muted); font-family: inherit; border-style: dashed; }-.keys .hold { font-size: 11px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }-.keys .btns { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }-.badges { display: inline-flex; gap: 4px; }-.badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }-.badge.ver { text-transform: none; }-.badge.warn { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }--.apps-box { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }-.apps-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }-.chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }-.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-family: ui-monospace, Menlo, monospace; }-.chip-x { background: none; border: none; color: var(--muted); padding: 0 0 0 2px; font-size: 13px; line-height: 1; }-.chip.pick { cursor: pointer; color: var(--text); font-family: inherit; }-.chip.pick:hover { border-color: var(--accent); }-.results:empty { display: none; }--.activity { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }-.activity li { display: flex; gap: 8px; }-.activity time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }-.activity .add { color: var(--on); }-.activity .remove { color: var(--warn); }--.log { border-top: 1px solid var(--line); background: var(--panel); padding: 8px 20px; }-.log summary { cursor: pointer; color: var(--muted); }-.log pre { max-height: 160px; overflow: auto; margin: 8px 0 0; font: 12px/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; }--.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 40; width: max-content; max-width: calc(100vw - 32px); }-.toast { background: var(--keyword); color: var(--keyword-text); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: opacity 0.3s, transform 0.3s; animation: toast-in 0.2s ease-out; }-.toast.error { background: var(--danger); color: #fff; }-.toast .link { color: inherit; text-decoration: underline; font-weight: 600; }-.toast.out { opacity: 0; transform: translateY(6px); }-@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }--dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); width: min(440px, 92vw); padding: 18px; box-shadow: var(--shadow); }-dialog.wide { width: min(600px, 94vw); }-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }-dialog h2 { font-size: 15px; margin: 0 0 12px; text-transform: none; letter-spacing: 0; color: var(--text); }-dialog > * + * { margin-top: 8px; }-#chooser-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; }-#chooser-list button { width: 100%; text-align: left; background: transparent; color: var(--text); border: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }-#chooser-list button.likely { border-color: var(--on); }-#chooser-list small { color: var(--muted); }-.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }-.spacer { flex: 1; }-#assign-name.blink { animation: blink 0.4s; }-@keyframes blink { 50% { color: var(--accent); } }--.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }-.tab { background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 6px 10px; }-.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }-.tab-panel { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }--.capture { border: 2px dashed var(--line); border-radius: 8px; padding: 16px; text-align: center; font-size: 17px; font-family: ui-monospace, Menlo, monospace; outline: none; cursor: text; min-height: 58px; display: flex; align-items: center; justify-content: center; }-.capture.listening { border-color: var(--accent); background: var(--press-soft); }-.capture.small { font-size: 14px; padding: 10px; min-height: 42px; }-.capture.macro { justify-content: flex-start; font-size: 13px; padding: 10px; }-.capture .hint { font-family: inherit; }-.mods { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }-.mods label { display: flex; gap: 4px; align-items: center; }-.field { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--muted); }-.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }-.inline { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }-.hold-box { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 12px; }-.hold-box summary { cursor: pointer; font-size: 13px; font-weight: 600; }-.hold-box[open] summary { margin-bottom: 8px; }-.hold-box > * + * { margin-top: 8px; }--.library { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }-.library li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }-.library li p { margin: 2px 0 0; }-.library .preview { font-size: 12px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }-.library .btns { display: flex; flex-direction: column; gap: 6px; flex: none; }--/* Firmware update */-#ota progress { width: 100%; height: 8px; appearance: none; border: none; border-radius: 4px; background: var(--line); overflow: hidden; }-#ota progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }-#ota progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; transition: width 0.2s; }-#ota input[type=file] { display: block; margin-top: 4px; font: inherit; color: var(--text); }-#ota code { font-size: 12px; }-.error-text { color: var(--danger); }diff --git a/app/renderer/templates.js b/app/renderer/templates.jsdeleted file mode 100644index 0c38249..0000000--- a/app/renderer/templates.js+++ /dev/null@@ -1,79 +0,0 @@-// Ready-made profiles. Each template is a list of actions that get handed out to-// Keybits in order (left, top edge, right, then the rest), so a 3-key setup takes-// the first three.-(function (root) {- // Modifier bits: 1 Ctrl, 2 Shift, 4 Alt, 8 GUI (Cmd/Win).- const C = 1, S = 2, A = 4, G = 8;- const k = (key, mods = 0, name) => ({ mods, key, ...(name ? { name } : {}) });- const media = (consumer, name) => ({ consumer, mods: 0, key: 0, name });- // HID usages used below.- const U = {- A: 0x04, C: 0x06, D: 0x07, E: 0x08, L: 0x0f, P: 0x13, Q: 0x14, R: 0x15, S: 0x16, T: 0x17, V: 0x19, W: 0x1a, X: 0x1b, Y: 0x1c, Z: 0x1d,- N3: 0x20, N4: 0x21, N5: 0x22, Space: 0x2c, Slash: 0x38, Backquote: 0x35, BracketL: 0x2f, BracketR: 0x30,- F5: 0x3e, F11: 0x44, PrintScreen: 0x46, Left: 0x50, Right: 0x4f, Up: 0x52, F13: 0x68,- };-- // Each build(mac) returns the action list for that platform.- const TEMPLATES = [- {- id: 'media', name: 'Media controls', description: 'Play/pause, skip and volume.',- build: () => [media(0xcd, 'Play/Pause'), media(0xb6, 'Previous'), media(0xb5, 'Next'),- media(0xe2, 'Mute'), media(0xea, 'Volume down'), media(0xe9, 'Volume up')],- },- {- id: 'editing', name: 'Editing', description: 'Copy, paste, undo and friends.',- build: (mac) => { const M = mac ? G : C; return [k(U.C, M, 'Copy'), k(U.V, M, 'Paste'), k(U.Z, M, 'Undo'),- mac ? k(U.Z, G | S, 'Redo') : k(U.Y, C, 'Redo'), k(U.X, M, 'Cut'), k(U.A, M, 'Select all')]; },- },- {- id: 'meetings', name: 'Meetings', description: 'Mute and camera for Zoom and Google Meet.', apps: ['zoom.us', 'Zoom'],- build: (mac) => mac- ? [k(U.A, G | S, 'Zoom mute'), k(U.V, G | S, 'Zoom video'), k(U.D, G, 'Meet mute'), k(U.E, G, 'Meet camera')]- : [k(U.A, A, 'Zoom mute'), k(U.V, A, 'Zoom video'), k(U.D, C, 'Meet mute'), k(U.E, C, 'Meet camera')],- },- {- id: 'stream', name: 'Streaming (F13+)', description: 'F13 to F18, which no app uses by default. Bind them as hotkeys in OBS.',- build: () => [0, 1, 2, 3, 4, 5].map((i) => k(U.F13 + i, 0, `Scene ${i + 1}`)),- },- {- id: 'screens', name: 'Screenshots', description: 'Whole screen, area and the capture toolbar.',- build: (mac) => mac- ? [k(U.N3, G | S, 'Full screen'), k(U.N4, G | S, 'Area'), k(U.N5, G | S, 'Capture menu')]- : [k(U.PrintScreen, 0, 'Full screen'), k(U.S, G | S, 'Snip area')],- },- {- id: 'browser', name: 'Browser', description: 'Tabs, history and reload.',- build: (mac) => { const M = mac ? G : C; return [k(U.T, M, 'New tab'), k(U.W, M, 'Close tab'), k(U.T, M | S, 'Reopen tab'),- mac ? k(U.BracketL, G, 'Back') : k(U.Left, A, 'Back'), mac ? k(U.BracketR, G, 'Forward') : k(U.Right, A, 'Forward'), k(U.R, M, 'Reload')]; },- },- {- id: 'code', name: 'VS Code', description: 'Command palette, quick open, terminal and comments.', apps: ['Code', 'Visual Studio Code'],- build: (mac) => { const M = mac ? G : C; return [k(U.P, M | S, 'Commands'), k(U.P, M, 'Quick open'), k(U.Backquote, C, 'Terminal'),- k(U.Slash, M, 'Comment'), k(U.F5, 0, 'Run/debug')]; },- },- {- id: 'system', name: 'System', description: 'Search, lock screen and overview.',- build: (mac) => mac- ? [k(U.Space, G, 'Spotlight'), k(U.Q, C | G, 'Lock screen'), k(U.Up, C, 'Mission Control')]- : [k(0, G, 'Start menu'), k(U.L, G, 'Lock screen'), k(U.D, G, 'Show desktop')],- },- ];-- // Order Keybits are handed actions in.- const SIDE_ORDER = { L: 0, T: 1, R: 2 };- function orderUids(uids, sideOf) {- return [...uids].sort((a, b) => (SIDE_ORDER[sideOf(a)] ?? 9) - (SIDE_ORDER[sideOf(b)] ?? 9) || a.localeCompare(b));- }-- // Template -> { keys, apps, used, extra } for the given Keybits.- function applyTemplate(t, uids, mac) {- const actions = t.build(mac);- const keys = {};- uids.slice(0, actions.length).forEach((uid, i) => { keys[uid] = actions[i]; });- return { keys, apps: t.apps || [], used: Math.min(uids.length, actions.length), total: actions.length };- }-- const api = { TEMPLATES, applyTemplate, orderUids };- if (typeof module !== 'undefined' && module.exports) module.exports = api;- else root.Templates = api;-})(typeof window !== 'undefined' ? window : globalThis);diff --git a/app/scripts/mac-electron.sh b/app/scripts/mac-electron.shnew file mode 100755index 0000000..0f62eb6--- /dev/null+++ b/app/scripts/mac-electron.sh@@ -0,0 +1,22 @@+#!/bin/sh+# Used by electron-vite on macOS in place of the Electron binary (see electron.vite.config.ts).+# Launches Electron.app through LaunchServices so macOS asks for Bluetooth on behalf of+# Electron.app rather than the terminal, which would otherwise get the app killed.+here="$(cd "$(dirname "$0")/.." && pwd)"+bundle="$here/node_modules/electron/dist/Electron.app"++# electron-vite passes "." for the app folder; open starts Electron in /, so make it absolute.+args=""+for a in "$@"; do+ [ "$a" = "." ] && a="$PWD"+ args="$args $(printf '%s' "$a" | sed "s/'/'\\\\''/g; s/^/'/; s/\$/'/")"+done++# The dev server URL normally arrives in the environment, which open doesn't pass on.+[ -n "$ELECTRON_RENDERER_URL" ] && args="$args '--renderer-url=$ELECTRON_RENDERER_URL'"++# Send the app's output back to this terminal.+io=""+t="$(tty 2>/dev/null)" && case "$t" in /dev/*) io="--stdout $t --stderr $t" ;; esac++eval "exec open -W -n $io \"\$bundle\" --args $args"diff --git a/app/scripts/start.js b/app/scripts/start.jsdeleted file mode 100644index 718ca2f..0000000--- a/app/scripts/start.js+++ /dev/null@@ -1,26 +0,0 @@-// Starts the app for development.-//-// On macOS, an Electron started straight from a terminal is treated as part of the terminal-// app for privacy checks. The first Bluetooth scan is then charged to Terminal / iTerm /-// VS Code, which has no Bluetooth usage string, and macOS kills the app on the spot.-// Starting it through LaunchServices (`open`) makes Electron.app itself responsible, and-// its Info.plist does declare Bluetooth use.-const { spawn, execSync } = require('child_process');-const path = require('path');--const appDir = path.join(__dirname, '..');-const electron = require('electron'); // path to the binary-const args = process.argv.slice(2);--if (process.platform !== 'darwin' || process.env.KEYWORD_DIRECT_START) {- const child = spawn(electron, [appDir, ...args], { stdio: 'inherit' });- child.on('exit', (code) => process.exit(code ?? 0));-} else {- const bundle = path.resolve(path.dirname(electron), '..', '..'); // …/Electron.app- // Send the app's output back to this terminal, since `open` would otherwise drop it.- let tty = null;- try { tty = execSync('tty', { stdio: ['inherit', 'pipe', 'ignore'] }).toString().trim(); } catch {}- const io = tty && tty.startsWith('/dev/') ? ['--stdout', tty, '--stderr', tty] : [];- const child = spawn('open', ['-W', '-n', ...io, bundle, '--args', appDir, ...args], { stdio: 'inherit' });- child.on('exit', (code) => process.exit(code ?? 0));-}diff --git a/app/main.js b/app/src/main/index.tssimilarity index 79%rename from app/main.jsrename to app/src/main/index.tsindex d84f849..b2ab818 100644--- a/app/main.js+++ b/app/src/main/index.ts@@ -3,36 +3,38 @@// the device lists to the renderer and hand back whatever the user picks.// This side also owns the tray, the app menu, the frontmost-app watcher used for// per-app profiles, and running "host actions" (open URL/app, run a command).-const { app, BrowserWindow, ipcMain, dialog, Menu, Tray, nativeImage, nativeTheme, shell } = require('electron');-const { execFile, spawn } = require('child_process');-const fs = require('fs');-const path = require('path');+import { app, BrowserWindow, dialog, ipcMain, Menu, nativeImage, nativeTheme, shell, Tray } from 'electron';+import type { MenuItemConstructorOptions } from 'electron';+import { execFile, spawn } from 'node:child_process';+import fs from 'node:fs';+import path from 'node:path';+import type { HostAction, MainSettings, MenuCommand, PickerDevice, TrayState } from '../shared/bridge';const IS_MAC = process.platform === 'darwin';const IS_WIN = process.platform === 'win32';-const dataPath = (name) => path.join(app.getPath('userData'), name);+const dataPath = (name: string) => path.join(app.getPath('userData'), name);// Chromium gates Web Bluetooth behind this flag on some platforms.app.commandLine.appendSwitch('enable-experimental-web-platform-features');if (!app.requestSingleInstanceLock()) app.quit();-let win;-let tray = null;+let win: BrowserWindow | null = null;+let tray: Tray | null = null;let quitting = false;-let pendingPick = null; // { kind, callback }+let pendingPick: { kind: 'serial' | 'bluetooth'; callback: (id: string) => void } | null = null;let capturing = false;-let settings = { closeToTray: false, perApp: false };-let trayState = { status: 'Not connected', profiles: [], active: null, battery: null };+let settings: Partial<MainSettings> = { closeToTray: false, perApp: false };+let trayState: TrayState = { status: 'Not connected', profiles: [], active: null, battery: null };-function finishPick(id) {+function finishPick(id: string) {if (!pendingPick) return;const { callback } = pendingPick;pendingPick = null;callback(id || '');}-const send = (channel, ...args) => { if (win && !win.isDestroyed()) win.webContents.send(channel, ...args); };+const send = (channel: string, ...args: unknown[]) => { if (win && !win.isDestroyed()) win.webContents.send(channel, ...args); };function showWindow() {if (!win || win.isDestroyed()) return createWindow();@@ -46,7 +48,7 @@ function showWindow() {function loadBounds() {try {const b = JSON.parse(fs.readFileSync(dataPath('window.json'), 'utf8'));- if ([b.width, b.height].every(Number.isFinite)) return b;+ if ([b.width, b.height].every(Number.isFinite)) return b as Electron.Rectangle;} catch {}return { width: 1000, height: 700 };}@@ -64,22 +66,24 @@ function createWindow() {backgroundColor: nativeTheme.shouldUseDarkColors ? '#14161a' : '#f5f6f8',show: false,webPreferences: {- preload: path.join(__dirname, 'preload.js'),+ preload: path.join(import.meta.dirname, '../preload/index.cjs'),contextIsolation: true,nodeIntegration: false,+ sandbox: true,},});- win.once('ready-to-show', () => win.show());- win.on('resize', saveBounds);- win.on('move', saveBounds);- win.on('close', (e) => {+ const w = win;+ w.once('ready-to-show', () => w.show());+ w.on('resize', saveBounds);+ w.on('move', saveBounds);+ w.on('close', (e) => {if (settings.closeToTray && !quitting) {e.preventDefault();- win.hide();+ w.hide();}});- const ses = win.webContents.session;+ const ses = w.webContents.session;ses.setPermissionCheckHandler((_wc, permission) =>['serial', 'bluetooth', 'notifications'].includes(permission));@@ -100,7 +104,7 @@ function createWindow() {pendingPick = { kind: 'serial', callback };send('chooser:list', {kind: 'serial',- devices: portList.map((p) => ({+ devices: portList.map((p): PickerDevice => ({id: p.portId,name: p.displayName || p.portName,detail: [p.portName, p.vendorId && `VID ${p.vendorId}`, p.productId && `PID ${p.productId}`]@@ -115,7 +119,7 @@ function createWindow() {ses.on('serial-port-removed', () => {});// Fires again every time a new device is found while the scan runs.- win.webContents.on('select-bluetooth-device', (event, devices, callback) => {+ w.webContents.on('select-bluetooth-device', (event, devices, callback) => {event.preventDefault();if (!pendingPick || pendingPick.kind !== 'bluetooth') {finishPick('');@@ -125,7 +129,7 @@ function createWindow() {}send('chooser:list', {kind: 'bluetooth',- devices: devices.map((d) => ({+ devices: devices.map((d): PickerDevice => ({id: d.deviceId,name: d.deviceName || 'Unnamed device',detail: d.deviceId,@@ -136,7 +140,7 @@ function createWindow() {// While the shortcut recorder is open, swallow keys before menus and the OS-level// accelerators (Cmd+W, Cmd+Q, Alt+F4...) see them and pass them to the page.- win.webContents.on('before-input-event', (event, input) => {+ w.webContents.on('before-input-event', (event, input) => {if (!capturing) return;event.preventDefault();send('capture:key', {@@ -146,24 +150,28 @@ function createWindow() {});// Links in the page open in the browser, never in the app.- win.webContents.setWindowOpenHandler(({ url }) => {+ w.webContents.setWindowOpenHandler(({ url }) => {if (/^https?:/i.test(url)) shell.openExternal(url);return { action: 'deny' };});- win.loadFile(path.join(__dirname, 'renderer', 'index.html'));+ // In development the page comes from electron-vite's dev server. scripts/mac-electron.sh+ // passes its URL as a switch, since `open` drops environment variables.+ const devUrl = process.env.ELECTRON_RENDERER_URL || app.commandLine.getSwitchValue('renderer-url');+ if (!app.isPackaged && devUrl) w.loadURL(devUrl);+ else w.loadFile(path.join(import.meta.dirname, '../renderer/index.html'));}// ---- Menu ----function buildMenu() {- const m = (cmd) => () => send('menu', cmd);- const profileItems = trayState.profiles.slice(0, 9).map((p, i) => ({+ const m = (cmd: MenuCommand) => () => send('menu', cmd);+ const profileItems = trayState.profiles.slice(0, 9).map((p, i): MenuItemConstructorOptions => ({label: p.name, type: 'radio', checked: p.id === trayState.active,accelerator: `CmdOrCtrl+${i + 1}`, click: () => send('menu', 'profile', p.id),}));- const template = [- ...(IS_MAC ? [{+ const template: MenuItemConstructorOptions[] = [+ ...(IS_MAC ? [<MenuItemConstructorOptions>{label: app.name,submenu: [{ role: 'about' }, { type: 'separator' },@@ -184,7 +192,8 @@ function buildMenu() {{ label: 'Export All Profiles…', accelerator: 'CmdOrCtrl+Shift+E', click: m('export-all') },{ type: 'separator' },{ label: 'Update Keyword Firmware…', click: m('update-firmware') },- ...(IS_MAC ? [] : [{ type: 'separator' }, { label: 'Settings…', accelerator: 'Ctrl+,', click: m('settings') },+ { label: 'Console', accelerator: 'CmdOrCtrl+Shift+K', click: m('console') },+ ...(IS_MAC ? [] : <MenuItemConstructorOptions[]>[{ type: 'separator' }, { label: 'Settings…', accelerator: 'Ctrl+,', click: m('settings') },{ type: 'separator' }, { role: 'quit' }]),],},@@ -238,8 +247,8 @@ function trayIcon() {const size = 32; // @2xconst buf = Buffer.alloc(size * size * 4);const [r, g, b] = IS_MAC ? [0, 0, 0] : [128, 128, 128];- const put = (x, y, a) => { const i = (y * size + x) * 4; buf[i] = b; buf[i + 1] = g; buf[i + 2] = r; buf[i + 3] = a; };- const inRounded = (x, y, x0, y0, x1, y1, rad) => {+ const put = (x: number, y: number, a: number) => { const i = (y * size + x) * 4; buf[i] = b; buf[i + 1] = g; buf[i + 2] = r; buf[i + 3] = a; };+ const inRounded = (x: number, y: number, x0: number, y0: number, x1: number, y1: number, rad: number) => {const cx = Math.min(Math.max(x, x0 + rad), x1 - rad);const cy = Math.min(Math.max(y, y0 + rad), y1 - rad);return (x - cx) ** 2 + (y - cy) ** 2 <= rad * rad;@@ -270,7 +279,7 @@ function updateTray() {{ label: status, enabled: false },...(battery != null ? [{ label: `Battery ${battery}%`, enabled: false }] : []),{ type: 'separator' },- ...profiles.map((p) => ({ label: p.name, type: 'radio', checked: p.id === active, click: () => send('menu', 'profile', p.id) })),+ ...profiles.map((p): MenuItemConstructorOptions => ({ label: p.name, type: 'radio', checked: p.id === active, click: () => send('menu', 'profile', p.id) })),{ type: 'separator' },{ label: 'Show Keyword Monitor', click: showWindow },{ label: 'Quit', click: () => { quitting = true; app.quit(); } },@@ -279,10 +288,10 @@ function updateTray() {// ---- Frontmost app, for per-app profiles -----let watcher = null;-let lastFront = null;+let watcher: { stop: () => void } | null = null;+let lastFront: string | null = null;-function reportFront(name) {+function reportFront(name: string) {name = (name || '').trim();if (!name || name === lastFront) return;lastFront = name;@@ -337,8 +346,8 @@ function stopWatcher() {// ---- Host actions -----function runHostAction({ type, value }) {- value = String(value || '').trim();+function runHostAction({ type, value: raw }: HostAction): { ok: boolean; error?: string } {+ let value = String(raw || '').trim();if (!value) return { ok: false, error: 'Nothing to run' };try {if (type === 'url') {@@ -355,14 +364,14 @@ function runHostAction({ type, value }) {}return { ok: true };} catch (e) {- return { ok: false, error: e.message };+ return { ok: false, error: (e as Error).message };}}// ---- IPC -----ipcMain.on('chooser:pick', (_e, id) => finishPick(id));-ipcMain.on('capture:set', (_e, on) => { capturing = !!on; });+ipcMain.on('chooser:pick', (_e, id: string) => finishPick(id));+ipcMain.on('capture:set', (_e, on: boolean) => { capturing = !!on; });ipcMain.handle('store:load', () => {try { return JSON.parse(fs.readFileSync(dataPath('profiles.json'), 'utf8')); } catch { return null; }@@ -372,8 +381,8 @@ ipcMain.handle('store:save', (_e, store) => {fs.writeFileSync(tmp, JSON.stringify(store, null, 2));fs.renameSync(tmp, dataPath('profiles.json'));});-ipcMain.handle('file:save', async (_e, defaultName, text) => {- const { canceled, filePath } = await dialog.showSaveDialog(win, {+ipcMain.handle('file:save', async (_e, defaultName: string, text: string) => {+ const { canceled, filePath } = await dialog.showSaveDialog(win!, {title: 'Export',defaultPath: defaultName.replace(/[^\w .-]+/g, '_') || 'profile.keyword.json',filters: [{ name: 'Keyword profile', extensions: ['json'] }],@@ -383,7 +392,7 @@ ipcMain.handle('file:save', async (_e, defaultName, text) => {return true;});ipcMain.handle('file:open', async () => {- const { canceled, filePaths } = await dialog.showOpenDialog(win, {+ const { canceled, filePaths } = await dialog.showOpenDialog(win!, {title: 'Import profiles',filters: [{ name: 'Keyword profile', extensions: ['json'] }],properties: ['openFile', 'multiSelections'],@@ -391,20 +400,20 @@ ipcMain.handle('file:open', async () => {if (canceled || !filePaths.length) return [];return filePaths.map((p) => ({ name: path.basename(p), text: fs.readFileSync(p, 'utf8') }));});-ipcMain.handle('host:run', (_e, action) => runHostAction(action));+ipcMain.handle('host:run', (_e, action: HostAction) => runHostAction(action));ipcMain.handle('app:info', () => ({ version: app.getVersion(), platform: process.platform }));ipcMain.on('open:data', () => shell.openPath(app.getPath('userData')));-ipcMain.on('settings:apply', (_e, s) => {+ipcMain.on('settings:apply', (_e, s: MainSettings) => {settings = { ...settings, ...s };nativeTheme.themeSource = ['light', 'dark'].includes(s.theme) ? s.theme : 'system';if (!process.env.KEYWORD_NO_LOGIN_ITEM && (IS_MAC || IS_WIN)) {- try { app.setLoginItemSettings({ openAtLogin: !!s.launchAtLogin, openAsHidden: true }); } catch {}+ try { app.setLoginItemSettings({ openAtLogin: !!s.launchAtLogin }); } catch {}}if (s.perApp) startWatcher(); else stopWatcher();});-ipcMain.on('state:update', (_e, s) => {+ipcMain.on('state:update', (_e, s: TrayState) => {const profilesChanged = JSON.stringify(s.profiles) !== JSON.stringify(trayState.profiles) || s.active !== trayState.active;trayState = s;updateTray();diff --git a/app/src/preload/index.d.ts b/app/src/preload/index.d.tsnew file mode 100644index 0000000..8442f0f--- /dev/null+++ b/app/src/preload/index.d.ts@@ -0,0 +1,8 @@+import type { DesktopBridge, DevicePicker } from '../shared/bridge';++declare global {+ interface Window {+ desktop?: DesktopBridge;+ devicePicker?: DevicePicker;+ }+}diff --git a/app/src/preload/index.ts b/app/src/preload/index.tsnew file mode 100644index 0000000..02a7ec9--- /dev/null+++ b/app/src/preload/index.ts@@ -0,0 +1,33 @@+import { contextBridge, ipcRenderer, type IpcRendererEvent } from 'electron';+import type { DesktopBridge, DevicePicker } from '../shared/bridge';++// Subscribes to a channel and returns a function that unsubscribes.+function on<T extends unknown[]>(channel: string, fn: (...args: T) => void): () => void {+ const listener = (_e: IpcRendererEvent, ...args: unknown[]) => fn(...(args as T));+ ipcRenderer.on(channel, listener);+ return () => ipcRenderer.off(channel, listener);+}++const devicePicker: DevicePicker = {+ onList: (fn) => on('chooser:list', fn),+ pick: (id) => ipcRenderer.send('chooser:pick', id || ''),+};++const desktop: DesktopBridge = {+ loadStore: () => ipcRenderer.invoke('store:load'),+ saveStore: (store) => ipcRenderer.invoke('store:save', store),+ saveFile: (name, text) => ipcRenderer.invoke('file:save', name, text),+ openFiles: () => ipcRenderer.invoke('file:open'),+ setCapture: (enabled) => ipcRenderer.send('capture:set', enabled),+ onCaptureKey: (fn) => on('capture:key', fn),+ runHost: (action) => ipcRenderer.invoke('host:run', action),+ appInfo: () => ipcRenderer.invoke('app:info'),+ openDataFolder: () => ipcRenderer.send('open:data'),+ applySettings: (s) => ipcRenderer.send('settings:apply', s),+ updateState: (s) => ipcRenderer.send('state:update', s),+ onMenu: (fn) => on('menu', fn),+ onFrontApp: (fn) => on('app:front', fn),+};++contextBridge.exposeInMainWorld('devicePicker', devicePicker);+contextBridge.exposeInMainWorld('desktop', desktop);diff --git a/app/src/renderer/index.html b/app/src/renderer/index.htmlnew file mode 100644index 0000000..12916c8--- /dev/null+++ b/app/src/renderer/index.html@@ -0,0 +1,12 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <title>Keyword Monitor</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/app/src/renderer/src/App.tsx b/app/src/renderer/src/App.tsxnew file mode 100644index 0000000..8bd2b28--- /dev/null+++ b/app/src/renderer/src/App.tsx@@ -0,0 +1,60 @@+import clsx from 'clsx';+import { Activity } from './components/Activity.tsx';+import { Board } from './components/Board.tsx';+import { Console } from './components/Console.tsx';+import { AssignDialog } from './components/dialogs/AssignDialog.tsx';+import { ChooserDialog } from './components/dialogs/ChooserDialog.tsx';+import { ConfirmDialog, PromptDialog } from './components/dialogs/PromptDialog.tsx';+import { LibraryDialog } from './components/dialogs/LibraryDialog.tsx';+import { OtaDialog } from './components/dialogs/OtaDialog.tsx';+import { SettingsDialog } from './components/dialogs/SettingsDialog.tsx';+import { Header } from './components/Header.tsx';+import { KeyList } from './components/KeyList.tsx';+import { ProfilePanel } from './components/ProfilePanel.tsx';+import { StatusBar } from './components/StatusBar.tsx';+import { Toasts } from './components/Toasts.tsx';+import { importTexts } from './controller.ts';+import { useApp } from './store.ts';++export default function App() {+ const dropping = useApp((s) => s.dropping);++ // Drag a profile file onto the window to import it.+ const onDrop = async (e: React.DragEvent) => {+ e.preventDefault();+ useApp.setState({ dropping: false });+ const files = [...e.dataTransfer.files].filter((f) => /\.json$/i.test(f.name));+ if (files.length) await importTexts(await Promise.all(files.map(async (f) => ({ name: f.name, text: await f.text() }))));+ };++ return (+ <div+ className={clsx('flex h-full flex-col', dropping && 'outline-2 -outline-offset-4 outline-dashed outline-accent')}+ onDragOver={(e) => { e.preventDefault(); if (!dropping) useApp.setState({ dropping: true }); }}+ onDragLeave={(e) => { if (!e.relatedTarget) useApp.setState({ dropping: false }); }}+ onDrop={onDrop}+ >+ <Header />+ <StatusBar />+ <main className="grid min-h-0 flex-1 grid-cols-1 gap-4 overflow-y-auto p-4 md:grid-cols-[minmax(0,1fr)_300px] md:overflow-hidden">+ <section className="flex min-h-0 flex-col gap-4 md:overflow-y-auto">+ <Board />+ <KeyList />+ </section>+ <aside className="flex min-h-0 flex-col gap-4 md:overflow-y-auto">+ <ProfilePanel />+ <Activity />+ </aside>+ </main>+ <Console />+ <Toasts />+ <ChooserDialog />+ <AssignDialog />+ <LibraryDialog />+ <SettingsDialog />+ <OtaDialog />+ <PromptDialog />+ <ConfirmDialog />+ </div>+ );+}diff --git a/app/src/renderer/src/components/Activity.tsx b/app/src/renderer/src/components/Activity.tsxnew file mode 100644index 0000000..5aeb8d7--- /dev/null+++ b/app/src/renderer/src/components/Activity.tsx@@ -0,0 +1,26 @@+import clsx from 'clsx';+import { useApp } from '../store.ts';+import { Button, SectionTitle } from './ui.tsx';++export function Activity() {+ const items = useApp((s) => s.activity);+ return (+ <div className="flex min-h-40 flex-1 flex-col rounded-xl border border-line bg-panel p-3.5">+ <SectionTitle action={<Button variant="link" size="sm" onClick={() => useApp.setState({ activity: [] })}>Clear</Button>}>+ Activity+ </SectionTitle>+ {items.length ? (+ <ul className="min-h-0 flex-1 space-y-1 overflow-y-auto text-xs">+ {items.map((a) => (+ <li key={a.id} className="flex gap-2">+ <time className="shrink-0 text-muted tabular-nums">{a.time}</time>+ <span className={clsx(a.tone === 'add' && 'text-on', a.tone === 'remove' && 'text-danger')}>{a.text}</span>+ </li>+ ))}+ </ul>+ ) : (+ <p className="text-xs text-muted">Connections, presses that run actions and profile changes show up here.</p>+ )}+ </div>+ );+}diff --git a/app/src/renderer/src/components/Board.tsx b/app/src/renderer/src/components/Board.tsxnew file mode 100644index 0000000..1bbad3f--- /dev/null+++ b/app/src/renderer/src/components/Board.tsx@@ -0,0 +1,55 @@+import clsx from 'clsx';+import { actionLabel, activeProfile, demo, entryOf, keyName, openAssign } from '../controller.ts';+import type { Side } from '../lib/types.ts';+import { useApp } from '../store.ts';++/** The Keyword from above, with a slot on each side a Keybit can attach to. */+export function Board() {+ const keys = useApp((s) => s.keys);+ const sides = useApp((s) => s.sides);+ const transport = useApp((s) => s.transport);+ useApp((s) => s.store); // labels follow the active profile+ const isDemo = transport === 'demo';++ const slot = (side: Side, className: string) => {+ const uid = Object.entries(keys).find(([, k]) => k.at === side)?.[0];+ const present = !!uid || !!sides[side];+ const label = !present ? '' : uid ? actionLabel(entryOf(uid)) || keyName(uid) : 'Keybit';+ return (+ <button+ type="button"+ title={uid ? `${keyName(uid)} · uid ${uid}` : isDemo ? 'Attach a Keybit here' : ''}+ disabled={!isDemo && !uid}+ onClick={() => {+ const d = demo();+ if (d) d.toggle(side);+ else if (uid) openAssign(uid);+ }}+ className={clsx(+ 'grid place-items-center overflow-hidden rounded-xl border-2 px-1.5 text-center text-xs font-medium transition-all',+ present ? 'border-solid border-on bg-on-soft text-on' : 'border-dashed border-line text-transparent',+ uid && keys[uid].pressed && 'scale-95 border-accent bg-press text-accent',+ (isDemo || uid) && 'hover:border-accent',+ className,+ )}+ >+ <span className="line-clamp-2">{label}</span>+ </button>+ );+ };++ return (+ <div className="flex flex-col items-center gap-2 rounded-xl border border-line bg-panel py-5">+ <div className="grid grid-cols-[96px_200px_96px] grid-rows-[96px_96px] gap-2" aria-label="The Keyword and its sides">+ {slot('T', 'col-start-2 row-start-1 mx-auto w-24')}+ {slot('L', 'col-start-1 row-start-2')}+ <div className="col-start-2 row-start-2 flex flex-col items-center justify-center rounded-xl bg-keyword text-keyword-fg shadow-inner">+ <span className="font-semibold tracking-wide">Keyword</span>+ <small className="mt-0.5 text-[11px] opacity-70">{activeProfile().name}</small>+ </div>+ {slot('R', 'col-start-3 row-start-2')}+ </div>+ {isDemo && <p className="text-xs text-muted">Demo: click a side to attach or remove a Keybit.</p>}+ </div>+ );+}diff --git a/app/src/renderer/src/components/Console.tsx b/app/src/renderer/src/components/Console.tsxnew file mode 100644index 0000000..626d2ba--- /dev/null+++ b/app/src/renderer/src/components/Console.tsx@@ -0,0 +1,128 @@+import clsx from 'clsx';+import { ChevronDown, ChevronUp, Copy, Trash2 } from 'lucide-react';+import { useEffect, useLayoutEffect, useRef, useState } from 'react';+import { MOD_KEY, send, toast } from '../controller.ts';+import { useApp } from '../store.ts';+import { Button, IconButton, inputClass } from './ui.tsx';++// Handy commands for poking at the firmware. Anything typed is sent as-is.+const QUICK = ['HELLO', 'KEYS?', 'SIDES?', 'BATT?', 'STACK?', 'DOCK?', 'BOOTCFG?'];++/** The raw line log, with a box to send commands by hand. */+export function Console() {+ const open = useApp((s) => s.consoleOpen);+ const log = useApp((s) => s.log);+ const connected = useApp((s) => !!s.transport);+ const [text, setText] = useState('');+ const [hidePolls, setHidePolls] = useState(true);+ const [history, setHistory] = useState<string[]>([]);+ const [pos, setPos] = useState(-1);+ const box = useRef<HTMLDivElement>(null);+ const input = useRef<HTMLInputElement>(null);+ const stick = useRef(true);++ // The app polls SIDES?, KEYS? and BATT? on a timer; hiding them makes the rest readable.+ const isPoll = (t: string) => /^(SIDES\??|KEYS\?|KEYS END|BATT\??)( |$)/.test(t);+ const lines = hidePolls ? log.filter((l) => !isPoll(l.text)) : log;++ useLayoutEffect(() => {+ if (open && stick.current && box.current) box.current.scrollTop = box.current.scrollHeight;+ }, [lines.length, open]);+ useEffect(() => { if (open) input.current?.focus(); }, [open]);++ const submit = (line: string) => {+ const l = line.trim();+ if (!l) return;+ void send(l);+ setHistory((h) => [...h.filter((x) => x !== l), l].slice(-50));+ setPos(-1);+ setText('');+ };++ return (+ <section className={clsx('border-t border-line bg-panel', open ? 'flex h-64 flex-col' : '')}>+ <button+ type="button"+ onClick={() => useApp.setState({ consoleOpen: !open })}+ className="flex w-full items-center gap-2 px-4 py-1.5 text-xs text-muted hover:text-fg"+ title={`${MOD_KEY}+Shift+K`}+ >+ {open ? <ChevronDown size={14} /> : <ChevronUp size={14} />}+ Console+ <span className="ml-auto tabular-nums">{log.length} lines</span>+ </button>+ {open && (+ <>+ <div+ ref={box}+ onScroll={(e) => {+ const el = e.currentTarget;+ stick.current = el.scrollHeight - el.scrollTop - el.clientHeight < 24;+ }}+ className="min-h-0 flex-1 overflow-y-auto px-4 font-mono text-[11.5px] leading-[1.55] select-text"+ >+ {lines.map((l) => (+ <div key={l.id} className="flex gap-2 whitespace-pre-wrap">+ <span className="shrink-0 text-muted tabular-nums">{l.time}</span>+ <span className={clsx('shrink-0', l.dir === '->' ? 'text-accent' : l.dir === '!!' ? 'text-danger' : 'text-on')}>{l.dir}</span>+ <span className={clsx(l.dir === '!!' && 'text-danger')}>{l.text}</span>+ </div>+ ))}+ </div>+ <div className="flex flex-wrap items-center gap-1.5 border-t border-line px-4 py-2">+ <form+ className="flex min-w-60 flex-1 gap-1.5"+ onSubmit={(e) => { e.preventDefault(); submit(text); }}+ >+ <input+ ref={input}+ value={text}+ disabled={!connected}+ placeholder={connected ? 'Send a command, e.g. DOCK?' : 'Connect to send commands'}+ onChange={(e) => setText(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === 'ArrowUp' && history.length) {+ e.preventDefault();+ const i = pos < 0 ? history.length - 1 : Math.max(0, pos - 1);+ setPos(i);+ setText(history[i]);+ } else if (e.key === 'ArrowDown' && pos >= 0) {+ e.preventDefault();+ const i = pos + 1;+ setPos(i >= history.length ? -1 : i);+ setText(i >= history.length ? '' : history[i]);+ }+ }}+ className={clsx(inputClass, 'h-7 font-mono text-xs')}+ spellCheck={false}+ autoCapitalize="characters"+ />+ <Button size="sm" type="submit" disabled={!connected || !text.trim()}>Send</Button>+ </form>+ <div className="flex flex-wrap gap-1">+ {QUICK.map((q) => (+ <Button key={q} size="sm" variant="ghost" className="font-mono" disabled={!connected} onClick={() => submit(q)}>{q}</Button>+ ))}+ </div>+ <label className="flex items-center gap-1 text-xs text-muted">+ <input type="checkbox" checked={hidePolls} onChange={(e) => setHidePolls(e.target.checked)} /> Hide polling+ </label>+ <IconButton+ label="Copy the log"+ className="size-7"+ onClick={async () => {+ await navigator.clipboard.writeText(log.map((l) => `${l.time} ${l.dir} ${l.text}`).join('\n'));+ toast('Log copied');+ }}+ >+ <Copy size={13} />+ </IconButton>+ <IconButton label="Clear the log" className="size-7" onClick={() => useApp.setState({ log: [] })}>+ <Trash2 size={13} />+ </IconButton>+ </div>+ </>+ )}+ </section>+ );+}diff --git a/app/src/renderer/src/components/Header.tsx b/app/src/renderer/src/components/Header.tsxnew file mode 100644index 0000000..e6b4f9e--- /dev/null+++ b/app/src/renderer/src/components/Header.tsx@@ -0,0 +1,64 @@+import { Bluetooth, Moon, Redo2, Settings, SquareTerminal, Sun, Undo2, Unplug, Usb } from 'lucide-react';+import {+ connectBle, connectDemo, connectUsb, disconnect, MOD_KEY, openDialog, redo, toggleTheme, undo,+} from '../controller.ts';+import { useApp } from '../store.ts';+import { Button, IconButton } from './ui.tsx';++export function Header() {+ const transport = useApp((s) => s.transport);+ const history = useApp((s) => s.history);+ const theme = useApp((s) => s.store.settings.theme);+ const consoleOpen = useApp((s) => s.consoleOpen);+ const dark = typeof document !== 'undefined' && document.documentElement.dataset.theme === 'dark';++ return (+ <header className="flex flex-wrap items-center gap-2 border-b border-line bg-panel px-4 py-2.5">+ <h1 className="mr-auto flex items-center gap-2 text-[15px] font-semibold">+ <span className="grid size-6 place-items-center rounded-md bg-keyword text-keyword-fg">+ <span className="size-1.5 rounded-full bg-current" />+ </span>+ Keyword Monitor+ </h1>+ <Button onClick={connectUsb} title={`Connect over USB (${MOD_KEY}+U)`}>+ <Usb size={15} /> USB+ </Button>+ <Button onClick={connectBle} title={`Connect over Bluetooth (${MOD_KEY}+B)`}>+ <Bluetooth size={15} /> Bluetooth+ </Button>+ <Button variant="ghost" onClick={connectDemo} title="Try the app with a pretend Keyword">+ Demo+ </Button>+ {transport && (+ <Button variant="ghost" onClick={() => void disconnect()}>+ <Unplug size={15} /> Disconnect+ </Button>+ )}+ <span className="mx-1 h-6 w-px bg-line" />+ <IconButton+ label={history.canUndo ? `Undo ${history.undoLabel} (${MOD_KEY}+Z)` : 'Nothing to undo'}+ disabled={!history.canUndo}+ onClick={undo}+ >+ <Undo2 size={15} />+ </IconButton>+ <IconButton label={history.canRedo ? `Redo ${history.redoLabel}` : 'Nothing to redo'} disabled={!history.canRedo} onClick={redo}>+ <Redo2 size={15} />+ </IconButton>+ <IconButton label={`Switch to ${dark ? 'light' : 'dark'} theme (${MOD_KEY}+Shift+L)`} onClick={toggleTheme} data-theme-setting={theme}>+ {dark ? <Sun size={15} /> : <Moon size={15} />}+ </IconButton>+ <IconButton+ label={`Console (${MOD_KEY}+Shift+K)`}+ aria-pressed={consoleOpen}+ className={consoleOpen ? 'border-accent text-accent' : ''}+ onClick={() => useApp.setState({ consoleOpen: !consoleOpen })}+ >+ <SquareTerminal size={15} />+ </IconButton>+ <IconButton label="Settings" onClick={() => openDialog('settings')}>+ <Settings size={15} />+ </IconButton>+ </header>+ );+}diff --git a/app/src/renderer/src/components/KeyList.tsx b/app/src/renderer/src/components/KeyList.tsxnew file mode 100644index 0000000..316407f--- /dev/null+++ b/app/src/renderer/src/components/KeyList.tsx@@ -0,0 +1,160 @@+import clsx from 'clsx';+import { Search } from 'lucide-react';+import {+ actionLabel, activeProfile, copyUid, demo, entryOf, flashKey, forgetKey, holdLabel, isOutdated, keyName, moveKey,+ openAssign, SIDE_NAMES,+} from '../controller.ts';+import { isMapped } from '../lib/profiles.ts';+import { useApp } from '../store.ts';+import { Button, inputClass, SectionTitle } from './ui.tsx';++const ORDER: Record<string, number> = { L: 0, T: 1, R: 2 };++export function KeyList() {+ const keys = useApp((s) => s.keys);+ const filter = useApp((s) => s.filter);+ const transport = useApp((s) => s.transport);+ useApp((s) => s.store);+ const p = activeProfile();++ // Connected first (left, top, right), then keys set up in this profile that are offline.+ const online = Object.entries(keys).sort((a, b) => (ORDER[a[1].at ?? ''] ?? 9) - (ORDER[b[1].at ?? ''] ?? 9)).map(([u]) => u);+ const offline = Object.keys(p.keys).filter((u) => !keys[u]).sort();+ const q = filter.trim().toLowerCase();+ const matches = (uid: string) =>+ !q || [keyName(uid), actionLabel(entryOf(uid)), uid, holdLabel(entryOf(uid)?.hold)].join(' ').toLowerCase().includes(q);+ const shown = [...online, ...offline].filter(matches);+ const any = online.length + offline.length > 0;++ return (+ <div>+ <SectionTitle+ action={+ <label className="relative w-48">+ <Search size={13} className="pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-muted" />+ <input+ id="key-filter"+ type="search"+ placeholder="Find a key…"+ aria-label="Find a key"+ value={filter}+ onChange={(e) => useApp.setState({ filter: e.target.value })}+ className={clsx(inputClass, 'h-7 pl-7 text-xs')}+ />+ </label>+ }+ >+ Keys+ </SectionTitle>+ {shown.length ? (+ <ul className="space-y-2">+ {shown.map((uid) => <KeyCard key={uid} uid={uid} />)}+ </ul>+ ) : (+ <p className="text-muted">+ {q && any+ ? `No keys match "${q}".`+ : transport+ ? "No Keybits connected. Attach one to the Keyword's left, right or top edge."+ : 'Connect to the Keyword, or try Demo, to see its Keybits.'}+ </p>+ )}+ </div>+ );+}++function KeyCard({ uid }: { uid: string }) {+ const k = useApp((s) => s.keys[uid]);+ const keys = useApp((s) => s.keys);+ const kb = useApp((s) => s.device.kb);+ const canFlash = useApp((s) => s.device.caps.includes('flash'));+ const presses = useApp((s) => s.store.stats[uid] || 0);+ const highlight = useApp((s) => s.highlight === uid);+ const isDemo = useApp((s) => s.transport === 'demo');+ const m = entryOf(uid);+ const combo = actionLabel(m);+ const hold = holdLabel(m?.hold);+ const outdated = isOutdated(k, kb);+ const where = !k+ ? 'Not connected'+ : k.at+ ? SIDE_NAMES[k.at][0].toUpperCase() + SIDE_NAMES[k.at].slice(1)+ : k.via+ ? `Chained behind ${keyName(k.via)}${k.depth && k.depth > 1 ? ` (${k.depth} hops)` : ''}`+ : 'Connected';+ const canMove = !k && m && Object.keys(keys).some((u) => !isMapped(entryOf(u)));++ return (+ <li+ onDoubleClick={(e) => { if (!(e.target as HTMLElement).closest('button')) openAssign(uid); }}+ className={clsx(+ 'flex flex-wrap items-center gap-3 rounded-xl border bg-panel px-3.5 py-2.5 transition-colors',+ k?.pressed ? 'border-accent bg-press' : 'border-line',+ !k && 'opacity-60',+ highlight && 'animate-pop',+ )}+ >+ <div className="min-w-0 flex-1">+ <div className="flex flex-wrap items-center gap-1.5 font-semibold">+ {keyName(uid)}+ {k?.v != null && (+ <Badge tone={outdated ? 'warn' : undefined} title={outdated ? 'Firmware update available' : 'Keybit firmware'}>v{k.v}</Badge>+ )}+ {m?.host && <Badge title="Runs on this computer while the app is open">computer</Badge>}+ {!!m?.macro?.length && <Badge>macro</Badge>}+ </div>+ <div className="mt-0.5 text-xs text-muted">+ {where} ·{' '}+ <button type="button" className="font-mono hover:text-accent" title={`${uid}\nClick to copy`} onClick={() => void copyUid(uid)}>+ …{uid.slice(-8)}+ </button>+ {presses > 0 && ` · ${presses.toLocaleString()} press${presses === 1 ? '' : 'es'}`}+ {k?.flashing != null && <span className="text-accent"> · Flashing {k.flashing}%</span>}+ </div>+ </div>+ <div className="flex min-w-0 flex-col items-end">+ <span className={clsx('max-w-56 truncate rounded-md px-2 py-0.5 font-mono text-xs', combo ? 'bg-app text-fg' : 'text-muted italic')} title={combo}>+ {combo || 'not assigned'}+ </span>+ {hold && <span className="mt-0.5 text-[11px] text-muted">hold: {hold}</span>}+ </div>+ <div className="flex flex-wrap gap-1.5">+ <Button size="sm" variant="ghost" onClick={() => openAssign(uid)}>Assign…</Button>+ {k && isDemo && (+ <Button size="sm" variant="ghost" title="Simulate a press" onClick={() => demo()?.tap(uid)}>Tap</Button>+ )}+ {k && !k.via && canFlash && k.flashing == null && (+ <Button+ size="sm"+ variant="ghost"+ className={outdated ? 'border-warn text-warn' : ''}+ title={outdated ? `Keybit firmware v${k.v}, Keyword has v${kb}` : 'Reflash this Keybit'}+ onClick={() => flashKey(uid)}+ >+ {outdated ? 'Update' : 'Reflash'}+ </Button>+ )}+ {canMove && (+ <Button size="sm" variant="ghost" title="Give this setup to a connected Keybit, e.g. after swapping one out" onClick={() => void moveKey(uid)}>+ Move to…+ </Button>+ )}+ {!k && <Button size="sm" variant="ghost" onClick={() => forgetKey(uid)}>Forget</Button>}+ </div>+ </li>+ );+}++function Badge({ children, tone, title }: { children: React.ReactNode; tone?: 'warn'; title?: string }) {+ return (+ <span+ title={title}+ className={clsx(+ 'rounded-full border px-1.5 text-[10px] leading-4 font-medium',+ tone === 'warn' ? 'border-warn/50 bg-warn-soft text-warn' : 'border-line text-muted',+ )}+ >+ {children}+ </span>+ );+}diff --git a/app/src/renderer/src/components/ProfilePanel.tsx b/app/src/renderer/src/components/ProfilePanel.tsxnew file mode 100644index 0000000..800ceaa--- /dev/null+++ b/app/src/renderer/src/components/ProfilePanel.tsx@@ -0,0 +1,62 @@+import { Copy, Download, FolderOpen, Library, Pencil, Plus, Send, Trash2 } from 'lucide-react';+import {+ activeProfile, addAppFlow, applyProfile, deleteProfile, duplicateProfile, exportCurrent, importFlow, MOD_KEY,+ newProfileFlow, openDialog, removeApp, renameProfile, switchTo,+} from '../controller.ts';+import { useApp } from '../store.ts';+import { Button, Chip, inputClass, SectionTitle } from './ui.tsx';++export function ProfilePanel() {+ const profiles = useApp((s) => s.store.profiles);+ const active = useApp((s) => s.store.active);+ const perApp = useApp((s) => s.store.settings.perApp);+ const connected = useApp((s) => !!s.transport && !!s.device.fw);+ const p = activeProfile();++ return (+ <div className="rounded-xl border border-line bg-panel p-3.5">+ <SectionTitle>Profile</SectionTitle>+ <select+ aria-label="Active profile"+ className={inputClass}+ value={active}+ onChange={(e) => switchTo(e.target.value)}+ >+ {profiles.map((x, i) => (+ <option key={x.id} value={x.id} title={i < 9 ? `${MOD_KEY}+${i + 1}` : ''}>{x.name}</option>+ ))}+ </select>+ <div className="mt-2 grid grid-cols-4 gap-1.5">+ <Button size="sm" variant="ghost" title="New profile" onClick={() => void newProfileFlow()}><Plus size={13} /> New</Button>+ <Button size="sm" variant="ghost" title="Duplicate" onClick={() => void duplicateProfile()}><Copy size={13} /></Button>+ <Button size="sm" variant="ghost" title="Rename" onClick={() => void renameProfile()}><Pencil size={13} /></Button>+ <Button size="sm" variant="ghost" title="Delete" disabled={profiles.length < 2} onClick={deleteProfile}><Trash2 size={13} /></Button>+ </div>+ <div className="mt-1.5 grid grid-cols-3 gap-1.5">+ <Button size="sm" variant="ghost" onClick={() => openDialog('library')}><Library size={13} /> Library</Button>+ <Button size="sm" variant="ghost" onClick={() => void importFlow()}><FolderOpen size={13} /> Import</Button>+ <Button size="sm" variant="ghost" onClick={() => void exportCurrent()}><Download size={13} /> Export</Button>+ </div>+ <Button className="mt-2 w-full" size="sm" disabled={!connected} onClick={() => applyProfile(false)}>+ <Send size={13} /> Send to Keyword+ </Button>++ <div className="mt-3 border-t border-line pt-3">+ <div className="mb-1.5 flex items-center justify-between">+ <b className="text-xs">Use automatically in</b>+ <Button variant="link" size="sm" onClick={() => void addAppFlow()}>+ Add app</Button>+ </div>+ <div className="flex flex-wrap gap-1">+ {p.apps.map((a) => <Chip key={a} onRemove={() => removeApp(a)} removeLabel={`Stop using in ${a}`}>{a}</Chip>)}+ </div>+ <p className="mt-1 text-xs text-muted">+ {!perApp+ ? 'Turn on "Switch profiles by the app in front" in Settings to use this.'+ : p.apps.length+ ? ''+ : 'Not tied to any app. Other profiles switch back to this one when you leave their app.'}+ </p>+ </div>+ </div>+ );+}diff --git a/app/src/renderer/src/components/StatusBar.tsx b/app/src/renderer/src/components/StatusBar.tsxnew file mode 100644index 0000000..0b90d59--- /dev/null+++ b/app/src/renderer/src/components/StatusBar.tsx@@ -0,0 +1,44 @@+import clsx from 'clsx';+import { activeProfile } from '../controller.ts';+import { useApp } from '../store.ts';+import { Pill } from './ui.tsx';++export function StatusBar() {+ const status = useApp((s) => s.status);+ const tone = useApp((s) => s.tone);+ const transport = useApp((s) => s.transport);+ const device = useApp((s) => s.device);+ const perApp = useApp((s) => s.store.settings.perApp);+ const frontApp = useApp((s) => s.frontApp);+ const autoSwitched = useApp((s) => s.autoSwitched);+ useApp((s) => s.store.active);+ const b = device.battery;++ return (+ <div className="flex flex-wrap items-center gap-2 px-4 pt-2.5 text-muted">+ <span+ className={clsx(+ 'size-2 rounded-full',+ tone === 'connected' ? 'bg-on' : tone === 'busy' ? 'animate-pulse bg-accent' : tone === 'stale' ? 'bg-warn' : 'bg-off',+ )}+ />+ <span className={clsx(tone === 'connected' && 'text-fg')}>{status}</span>+ <span className="ml-auto flex flex-wrap gap-1.5">+ {perApp && frontApp && (+ <Pill title="Per-app profiles are on (Settings)">+ {autoSwitched ? `${frontApp} → ${activeProfile().name}` : `App: ${frontApp}`}+ </Pill>+ )}+ {transport && device.fw && <Pill>Firmware {device.fw}</Pill>}+ {transport && b && (+ <Pill tone={b.pct <= 15 && !b.charging ? 'warn' : b.charging ? 'on' : undefined}>+ <span className="relative inline-block h-2.5 w-5 rounded-[3px] border border-current p-px after:absolute after:top-1/2 after:-right-[3px] after:h-1 after:w-0.5 after:-translate-y-1/2 after:rounded-r-sm after:bg-current">+ <span className="block h-full rounded-[1px] bg-current" style={{ width: `${b.pct}%` }} />+ </span>+ {b.pct}%{b.charging ? ' charging' : b.usb ? ' on USB' : ''}+ </Pill>+ )}+ </span>+ </div>+ );+}diff --git a/app/src/renderer/src/components/Toasts.tsx b/app/src/renderer/src/components/Toasts.tsxnew file mode 100644index 0000000..3495b34--- /dev/null+++ b/app/src/renderer/src/components/Toasts.tsx@@ -0,0 +1,32 @@+import clsx from 'clsx';+import { dismissToast, undo } from '../controller.ts';+import { useApp } from '../store.ts';++export function Toasts() {+ const toasts = useApp((s) => s.toasts);+ return (+ <div className="pointer-events-none fixed bottom-12 left-1/2 z-50 flex -translate-x-1/2 flex-col items-center gap-2" aria-live="polite">+ {toasts.map((t) => (+ <div+ key={t.id}+ className={clsx(+ 'pointer-events-auto flex max-w-[90vw] items-center gap-3 rounded-lg px-3.5 py-2 text-sm shadow-lg transition-all duration-300',+ t.error ? 'bg-danger text-white' : 'bg-keyword text-keyword-fg',+ t.leaving ? 'translate-y-2 opacity-0' : 'opacity-100',+ )}+ >+ <span>{t.text}</span>+ {t.undo && (+ <button+ type="button"+ className="font-semibold text-[#9cc0ff] hover:underline"+ onClick={() => { undo(); dismissToast(t.id); }}+ >+ Undo+ </button>+ )}+ </div>+ ))}+ </div>+ );+}diff --git a/app/src/renderer/src/components/dialogs/AssignDialog.tsx b/app/src/renderer/src/components/dialogs/AssignDialog.tsxnew file mode 100644index 0000000..3dfe375--- /dev/null+++ b/app/src/renderer/src/components/dialogs/AssignDialog.tsx@@ -0,0 +1,357 @@+import clsx from 'clsx';+import { ChevronRight } from 'lucide-react';+import { useEffect, useRef, useState, type ReactNode } from 'react';+import type { CapturedKey } from '../../../../shared/bridge';+import {+ bridge, closeAssign, entryOf, holdLabel, keyName, MAC, onKeyPress, runHost, saveEntry, setCapture, toast, unassign,+} from '../../controller.ts';+import * as Hid from '../../lib/hid.ts';+import { cleanEntry, isMapped } from '../../lib/profiles.ts';+import { DEFAULT_HOLD_MS, MAX_MACRO_STEPS } from '../../lib/protocol.ts';+import type { Entry, HostActionType, Hold, Step } from '../../lib/types.ts';+import { useApp } from '../../store.ts';+import { Button, Chip, Dialog, inputClass } from '../ui.tsx';++type Tab = 'shortcut' | 'macro' | 'host';+type Target = 'shortcut' | 'macro' | 'hold';++interface Draft {+ mods: number;+ key: number;+ consumer: number;+ macro: Step[];+ host: { type: HostActionType; value: string };+ hold: Hold;+ name: string;+}++function draftFrom(m: Entry | undefined): Draft {+ return {+ mods: m?.mods || 0,+ key: m?.key || 0,+ consumer: m?.consumer || 0,+ macro: (m?.macro || []).map((s): Step => [s[0], s[1]]),+ host: m?.host ? { ...m.host } : { type: 'url', value: '' },+ hold: m?.hold ? { ...m.hold } : { mods: 0, key: 0, ms: DEFAULT_HOLD_MS },+ name: m?.name || '',+ };+}++/** The entry the dialog describes, for the current tab. */+function toEntry(d: Draft, tab: Tab): Entry {+ let e: Entry;+ if (tab === 'host') e = { host: { type: d.host.type, value: d.host.type === 'next-profile' ? '' : d.host.value.trim() } };+ else if (tab === 'macro') e = d.macro.length ? { macro: d.macro } : { mods: 0, key: 0 };+ else e = d.consumer ? { mods: 0, key: 0, consumer: d.consumer } : { mods: d.mods, key: d.key };+ if (tab !== 'host' && (d.hold.mods || d.hold.key)) e.hold = { ...d.hold };+ if (d.name.trim()) e.name = d.name.trim();+ return cleanEntry(e)!;+}++export function AssignDialog() {+ const uid = useApp((s) => s.assignUid);+ return uid ? <AssignForm key={uid} uid={uid} /> : null;+}++function AssignForm({ uid }: { uid: string }) {+ const profiles = useApp((s) => s.store.profiles);+ const caps = useApp((s) => s.device.caps);+ const fw = useApp((s) => s.device.fw);+ const seenApps = useApp((s) => s.seenApps);+ const original = entryOf(uid);+ const [draft, setDraft] = useState<Draft>(() => draftFrom(original));+ const [tab, setTab] = useState<Tab>(original?.host ? 'host' : original?.macro?.length ? 'macro' : 'shortcut');+ const [query, setQuery] = useState('');+ const [macroText, setMacroText] = useState('');+ const [holdOpen, setHoldOpen] = useState(!!(original?.hold && (original.hold.mods || original.hold.key)));+ const [target, setTarget] = useState<Target | null>(null);+ const [blink, setBlink] = useState(0);+ const update = (patch: Partial<Draft>) => setDraft((d) => ({ ...d, ...patch }));++ // Pressing the Keybit itself flashes its name, so you can tell which one you're editing.+ useEffect(() => onKeyPress((u) => { if (u === uid) setBlink((n) => n + 1); }), [uid]);++ // Turns a captured key into the draft for whichever box is listening.+ const captured = useRef<(e: Hid.KeyLike) => void>(() => {});+ captured.current = (e) => {+ const r = Hid.fromEvent(e);+ if (!r || !target) return;+ if (target === 'shortcut') {+ if (r.consumer !== undefined) update({ mods: 0, key: 0, consumer: r.consumer });+ else update({ mods: r.mods, key: r.usage, consumer: 0 });+ } else if (target === 'macro') {+ if (r.consumer !== undefined || !r.usage) return; // wait for a real key; media keys can't go in a macro+ if (draft.macro.length >= MAX_MACRO_STEPS) return toast(`Macros hold up to ${MAX_MACRO_STEPS} steps`);+ update({ macro: [...draft.macro, [r.mods, r.usage]] });+ } else if (target === 'hold') {+ if (r.consumer !== undefined) return;+ update({ hold: { ...draft.hold, mods: r.mods, key: r.usage } });+ }+ };+ // Electron hands us every key (even Cmd+Q) while a capture box is focused.+ useEffect(() => bridge?.onCaptureKey((k: CapturedKey) => { if (k.type === 'keyDown') captured.current(k); }), []);+ useEffect(() => () => setCapture(false), []);++ const captureProps = (t: Target) => ({+ tabIndex: 0,+ onFocus: () => { setTarget(t); setCapture(true); },+ onBlur: () => { setTarget(null); setCapture(false); },+ onKeyDown: (e: React.KeyboardEvent) => { e.preventDefault(); e.stopPropagation(); captured.current(e); },+ });++ const can = (c: string) => caps.includes(c);+ const shortcutLabel = draft.consumer ? Hid.consumerLabel(draft.consumer) : Hid.comboLabel(draft.mods, draft.key, MAC);+ const results = query.trim() ? Hid.search(query).slice(0, 14) : [];+ const pick = (r: Hid.SearchResult) => {+ if (r.kind === 'c') update({ mods: 0, key: 0, consumer: r.usage });+ else update({ key: r.usage, consumer: 0 });+ setQuery('');+ };+ const needsValue = ['url', 'app', 'cmd'].includes(draft.host.type);++ const save = () => {+ const e = toEntry(draft, tab);+ if (e.host && ['url', 'app', 'cmd'].includes(e.host.type) && !e.host.value) {+ toast('Fill in what to open or run first', { error: true });+ return;+ }+ saveEntry(uid, e);+ closeAssign();+ };++ const addText = () => {+ const { steps, skipped } = Hid.textToSteps(macroText);+ const room = MAX_MACRO_STEPS - draft.macro.length;+ update({ macro: [...draft.macro, ...steps.slice(0, room)] });+ if (steps.length > room) toast(`Only ${room} more step${room === 1 ? '' : 's'} fit; the rest was cut`);+ if (skipped.length) toast(`Skipped characters with no US key: ${[...new Set(skipped)].join(' ')}`);+ setMacroText('');+ };++ const hl = holdLabel(draft.hold);++ return (+ <Dialog+ open+ wide+ onClose={closeAssign}+ title={<>Assign <span key={blink} className={clsx(blink > 0 && 'animate-blink')}>{keyName(uid)}</span></>}+ actions={+ <>+ <Button variant="ghost" disabled={!isMapped(original) && !original?.name} onClick={() => { unassign(uid); closeAssign(); }}>+ Unassign+ </Button>+ {tab === 'host' && <Button variant="ghost" onClick={() => { const e = toEntry(draft, tab); if (e.host) void runHost(e.host, uid); }}>Test</Button>}+ <span className="flex-1" />+ <Button variant="ghost" onClick={closeAssign}>Cancel</Button>+ <Button onClick={save}>Save</Button>+ </>+ }+ >+ <div role="tablist" className="flex gap-1 rounded-lg bg-app p-1">+ {([['shortcut', 'Key or shortcut'], ['macro', 'Macro'], ['host', 'Computer action']] as const).map(([t, label]) => (+ <button+ key={t}+ type="button"+ role="tab"+ aria-selected={tab === t}+ onClick={() => setTab(t)}+ className={clsx('flex-1 rounded-md py-1.5 text-sm', tab === t ? 'bg-panel font-medium shadow-sm' : 'text-muted hover:text-fg')}+ >+ {label}+ </button>+ ))}+ </div>++ {tab === 'shortcut' && (+ <div className="space-y-2.5">+ <CaptureBox listening={target === 'shortcut'} {...captureProps('shortcut')} autoFocus>+ {shortcutLabel || 'Click here and press a key or shortcut…'}+ </CaptureBox>+ <input+ type="search"+ className={inputClass}+ placeholder="Search keys: volume, f13, page down…"+ aria-label="Search keys"+ value={query}+ onChange={(e) => setQuery(e.target.value)}+ onKeyDown={(e) => { if (e.key === 'Enter') { e.preventDefault(); const r = Hid.search(query)[0]; if (r) pick(r); } }}+ />+ {results.length > 0 && (+ <div className="flex flex-wrap gap-1">+ {results.map((r) => (+ <button key={`${r.kind}${r.usage}`} type="button" onClick={() => pick(r)} className="rounded-full border border-line px-2 py-0.5 text-xs hover:border-accent hover:text-accent">+ {r.label}{r.kind === 'c' ? ' ♪' : ''}+ </button>+ ))}+ </div>+ )}+ <div className="flex flex-wrap gap-x-3 gap-y-1">+ {Hid.MODS.map((m) => (+ <label key={m.bit} className={clsx('flex items-center gap-1 text-xs', draft.consumer && 'opacity-50')}>+ <input+ type="checkbox"+ disabled={!!draft.consumer}+ checked={!!(draft.mods & (1 << m.bit))}+ onChange={(e) => update({ mods: e.target.checked ? draft.mods | (1 << m.bit) : draft.mods & ~(1 << m.bit) })}+ />+ {Hid.modName(m, MAC)}+ </label>+ ))}+ </div>+ <select+ aria-label="Key"+ className={inputClass}+ value={draft.consumer ? `c:${draft.consumer}` : `k:${draft.key}`}+ onChange={(e) => {+ const [kind, usage] = e.target.value.split(':');+ if (kind === 'c') update({ mods: 0, key: 0, consumer: Number(usage) });+ else update({ key: Number(usage), consumer: 0 });+ }}+ >+ <option value="k:0">(no key, modifiers only)</option>+ <optgroup label="Keys">{Hid.KEYS.map((k) => <option key={k.usage} value={`k:${k.usage}`}>{k.label}</option>)}</optgroup>+ <optgroup label="Media">{Hid.CONSUMER.map((c) => <option key={c.usage} value={`c:${c.usage}`}>{c.label}</option>)}</optgroup>+ </select>+ </div>+ )}++ {tab === 'macro' && (+ <div className="space-y-2.5">+ <p className="text-muted">Keys are tapped in order. Click the box and press keys to record, or type text to add it.</p>+ <CaptureBox listening={target === 'macro'} {...captureProps('macro')} autoFocus>+ {draft.macro.length ? (+ <span className="flex flex-wrap gap-1">+ {draft.macro.map((st, i) => (+ <Chip key={i} onRemove={() => update({ macro: draft.macro.filter((_, j) => j !== i) })}>{Hid.stepLabel(st, MAC)}</Chip>+ ))}+ </span>+ ) : 'Click here and press keys to record…'}+ </CaptureBox>+ <form className="flex gap-1.5" onSubmit={(e) => { e.preventDefault(); addText(); }}>+ <input className={inputClass} placeholder="Text to type, e.g. your email" value={macroText} onChange={(e) => setMacroText(e.target.value)} />+ <Button type="submit" variant="ghost" size="sm" className="h-8">Add text</Button>+ <Button variant="ghost" size="sm" className="h-8" onClick={() => update({ macro: [] })}>Clear</Button>+ </form>+ <p className="text-xs text-muted">+ {draft.macro.length}/{MAX_MACRO_STEPS} steps.+ {fw && !can('macro') && " This Keyword's firmware doesn't support macros yet, so it won't be sent."}+ </p>+ </div>+ )}++ {tab === 'host' && (+ <div className="space-y-2.5">+ <p className="text-muted">Runs on this computer while Keyword Monitor is open. The Keyword sends no key for it.</p>+ <select+ aria-label="Action"+ className={inputClass}+ value={draft.host.type}+ onChange={(e) => {+ const type = e.target.value as HostActionType;+ update({ host: { type, value: type === 'profile' ? profiles[0].id : '' } });+ }}+ >+ <option value="url">Open a website or link</option>+ <option value="app">Open an app</option>+ <option value="cmd">Run a command</option>+ <option value="next-profile">Switch to the next profile</option>+ <option value="profile">Switch to a profile</option>+ </select>+ {needsValue && (+ <>+ <input+ aria-label="Value"+ autoFocus+ className={inputClass}+ list="app-names"+ value={draft.host.value}+ placeholder={{ url: 'https://example.com or spotify:…', app: MAC ? 'App name, e.g. Spotify' : 'App or program, e.g. notepad', cmd: 'Shell command, e.g. open ~/Downloads' }[draft.host.type as 'url']}+ onChange={(e) => update({ host: { ...draft.host, value: e.target.value } })}+ />+ {draft.host.type === 'app' && <datalist id="app-names">{[...seenApps].sort().map((a) => <option key={a} value={a} />)}</datalist>}+ </>+ )}+ {draft.host.type === 'profile' && (+ <select aria-label="Profile" className={inputClass} value={draft.host.value} onChange={(e) => update({ host: { ...draft.host, value: e.target.value } })}>+ {profiles.map((p) => <option key={p.id} value={p.id}>{p.name}</option>)}+ </select>+ )}+ </div>+ )}++ {tab !== 'host' && (+ <details open={holdOpen} onToggle={(e) => setHoldOpen(e.currentTarget.open)} className="group rounded-lg border border-line px-3 py-2">+ <summary className="flex cursor-pointer list-none items-center gap-1 select-none">+ <ChevronRight size={14} className="transition-transform group-open:rotate-90" />+ When held {hl && <span className="text-muted">· {hl}</span>}+ </summary>+ <div className="mt-2 space-y-2">+ <CaptureBox small listening={target === 'hold'} {...captureProps('hold')}>+ {hl || 'Click here and press what to send while held…'}+ </CaptureBox>+ <div className="flex items-center gap-3">+ <label className="flex items-center gap-1.5 text-xs">+ Hold for+ <input+ type="number"+ min={50}+ max={2000}+ step={10}+ value={draft.hold.ms}+ onChange={(e) => update({ hold: { ...draft.hold, ms: Number(e.target.value) } })}+ onBlur={() => update({ hold: { ...draft.hold, ms: Math.min(2000, Math.max(50, draft.hold.ms || DEFAULT_HOLD_MS)) } })}+ className={clsx(inputClass, 'h-7 w-20')}+ />+ ms+ </label>+ <Button size="sm" variant="ghost" onClick={() => update({ hold: { mods: 0, key: 0, ms: draft.hold.ms } })}>No hold action</Button>+ </div>+ <p className="text-xs text-muted">+ {fw && !can('hold')+ ? "This Keyword's firmware doesn't support hold actions yet, so it won't be sent."+ : 'A quick tap sends the main action; holding longer than this sends the hold action.'}+ </p>+ </div>+ </details>+ )}++ <label className="block">+ <span className="mb-1 block text-xs text-muted">Name</span>+ <input className={inputClass} maxLength={40} placeholder="optional, e.g. Mute mic" value={draft.name} onChange={(e) => update({ name: e.target.value })} />+ </label>+ </Dialog>+ );+}++function CaptureBox({+ listening, small, children, autoFocus, ...props+}: {+ listening: boolean;+ small?: boolean;+ children: ReactNode;+ autoFocus?: boolean;+} & React.HTMLAttributes<HTMLDivElement>) {+ const ref = useRef<HTMLDivElement>(null);+ // React only autofocuses form fields. Wait a tick so the dialog has opened first.+ useEffect(() => {+ if (!autoFocus) return;+ const t = setTimeout(() => ref.current?.focus(), 0);+ return () => clearTimeout(t);+ }, [autoFocus]);+ return (+ <div+ ref={ref}+ {...props}+ role="textbox"+ aria-label="Press keys to record"+ className={clsx(+ 'flex w-full cursor-text items-center justify-center rounded-lg border-2 border-dashed px-3 text-center font-mono transition-colors focus:outline-none',+ small ? 'min-h-10 text-sm' : 'min-h-16 text-base',+ listening ? 'border-accent bg-press text-accent' : 'border-line text-muted hover:border-accent/60',+ )}+ >+ {children}+ </div>+ );+}diff --git a/app/src/renderer/src/components/dialogs/ChooserDialog.tsx b/app/src/renderer/src/components/dialogs/ChooserDialog.tsxnew file mode 100644index 0000000..fdd5d7c--- /dev/null+++ b/app/src/renderer/src/components/dialogs/ChooserDialog.tsx@@ -0,0 +1,49 @@+import clsx from 'clsx';+import { Loader2 } from 'lucide-react';+import { pickDevice } from '../../controller.ts';+import { useApp } from '../../store.ts';+import { Button, Dialog } from '../ui.tsx';++/** Electron has no device picker for Web Serial or Web Bluetooth, so main forwards the list here. */+export function ChooserDialog() {+ const chooser = useApp((s) => s.chooser);+ const serial = chooser?.kind === 'serial';+ return (+ <Dialog+ open={!!chooser}+ onClose={() => pickDevice('')}+ title={serial ? 'Choose the Keyword serial port' : 'Choose the Keyword'}+ actions={<Button variant="ghost" onClick={() => pickDevice('')}>Cancel</Button>}+ >+ {chooser?.devices.length ? (+ <ul className="space-y-1.5">+ {chooser.devices.map((d) => (+ <li key={d.id}>+ <button+ type="button"+ onClick={() => pickDevice(d.id)}+ className={clsx(+ 'flex w-full flex-col items-start rounded-lg border px-3 py-2 text-left hover:border-accent hover:bg-press',+ d.likely ? 'border-accent/60' : 'border-line',+ )}+ >+ <span className="font-medium">+ {d.name}+ {d.likely && <span className="ml-2 text-xs font-normal text-accent">Keyword</span>}+ </span>+ <small className="text-muted">{d.detail}</small>+ </button>+ </li>+ ))}+ </ul>+ ) : (+ <p className="flex items-center gap-2 text-muted">+ {serial ? 'No serial ports found. Is the Keyword plugged in?' : <><Loader2 size={14} className="animate-spin" /> Searching for Bluetooth devices…</>}+ </p>+ )}+ {!serial && chooser && (+ <p className="text-xs text-muted">A Keyword waiting for a firmware update shows up as "Keyword OTA".</p>+ )}+ </Dialog>+ );+}diff --git a/app/src/renderer/src/components/dialogs/LibraryDialog.tsx b/app/src/renderer/src/components/dialogs/LibraryDialog.tsxnew file mode 100644index 0000000..3ca3e48--- /dev/null+++ b/app/src/renderer/src/components/dialogs/LibraryDialog.tsx@@ -0,0 +1,38 @@+import { actionLabel, closeDialog, MAC, applyLibraryTemplate } from '../../controller.ts';+import { TEMPLATES } from '../../lib/templates.ts';+import { useApp } from '../../store.ts';+import { Button, Dialog } from '../ui.tsx';++export function LibraryDialog() {+ const open = useApp((s) => s.dialog === 'library');+ return (+ <Dialog+ open={open}+ onClose={closeDialog}+ wide+ title="Profile library"+ actions={<Button variant="ghost" onClick={closeDialog}>Close</Button>}+ >+ <p className="text-muted">Ready-made layouts. Actions go to your Keybits in order: left, top edge, right.</p>+ <ul className="divide-y divide-line">+ {TEMPLATES.map((t) => (+ <li key={t.id} className="flex items-start gap-3 py-3">+ <div className="min-w-0 flex-1">+ <b>{t.name}</b>+ <p className="text-muted">{t.description}</p>+ <p className="mt-1 truncate font-mono text-xs text-muted">+ {t.build(MAC).map((a) => a.name || actionLabel(a)).join(' · ')}+ </p>+ </div>+ <div className="flex shrink-0 gap-1.5">+ <Button size="sm" onClick={() => applyLibraryTemplate(t, true)}>New profile</Button>+ <Button size="sm" variant="ghost" title="Overwrite these keys in the current profile" onClick={() => applyLibraryTemplate(t, false)}>+ Apply here+ </Button>+ </div>+ </li>+ ))}+ </ul>+ </Dialog>+ );+}diff --git a/app/src/renderer/src/components/dialogs/OtaDialog.tsx b/app/src/renderer/src/components/dialogs/OtaDialog.tsxnew file mode 100644index 0000000..4fe025f--- /dev/null+++ b/app/src/renderer/src/components/dialogs/OtaDialog.tsx@@ -0,0 +1,59 @@+import clsx from 'clsx';+import { closeDialog, hasOtaImage, otaCancel, otaDfu, otaGo, pickOtaFile } from '../../controller.ts';+import { OTA } from '../../lib/protocol.ts';+import { useApp } from '../../store.ts';+import { Button, Dialog } from '../ui.tsx';++export function OtaDialog() {+ const open = useApp((s) => s.dialog === 'ota');+ const ota = useApp((s) => s.ota);+ const connected = useApp((s) => !!s.transport);++ const goLabel = {+ pick: connected ? 'Start update' : `Find ${OTA.name}`,+ find: ota.hasDevice ? 'Start update' : `Find ${OTA.name}`,+ sending: 'Sending…',+ done: 'Done',+ waiting: 'Restarting…',+ }[ota.stage];+ const goDisabled = ota.stage === 'sending' || ota.stage === 'waiting' || (ota.stage !== 'done' && !hasOtaImage());++ return (+ <Dialog+ open={open}+ onClose={closeDialog}+ title="Update Keyword firmware"+ actions={+ <>+ {ota.showDfu && <Button variant="ghost" onClick={() => void otaDfu()}>Restart into USB DFU</Button>}+ <span className="flex-1" />+ <Button variant="ghost" onClick={otaCancel}>{ota.stage === 'sending' ? 'Cancel' : 'Close'}</Button>+ <Button disabled={goDisabled} onClick={() => void otaGo()}>{goLabel}</Button>+ </>+ }+ >+ <p className="text-muted">+ Sends a new firmware image to the Keyword over Bluetooth, even when you're connected over USB. Pick{' '}+ <code className="font-mono text-xs">keyword_app.bin</code> from <code className="font-mono text-xs">firmware/release</code>.+ </p>+ {ota.stack && <p className="text-xs text-muted">{ota.stack}</p>}+ <label className="block">+ <span className="mb-1 block text-xs text-muted">Firmware image</span>+ <input+ type="file"+ accept=".bin"+ disabled={ota.busy}+ onChange={(e) => void pickOtaFile(e.target.files?.[0])}+ className="block w-full text-sm file:mr-3 file:rounded-lg file:border file:border-line file:bg-app file:px-3 file:py-1.5 file:text-fg"+ />+ </label>+ {ota.fileName && <p className="text-xs text-muted">{ota.fileName} · {(ota.fileSize / 1024).toFixed(1)} KB</p>}+ {ota.pct != null && (+ <div className="h-2 overflow-hidden rounded-full bg-line" role="progressbar" aria-valuenow={ota.pct} aria-valuemin={0} aria-valuemax={100}>+ <div className="h-full rounded-full bg-accent transition-[width] duration-200" style={{ width: `${ota.pct}%` }} />+ </div>+ )}+ {ota.status && <p aria-live="polite" className={clsx('text-sm', ota.error && 'text-danger')}>{ota.status}</p>}+ </Dialog>+ );+}diff --git a/app/src/renderer/src/components/dialogs/PromptDialog.tsx b/app/src/renderer/src/components/dialogs/PromptDialog.tsxnew file mode 100644index 0000000..181935b--- /dev/null+++ b/app/src/renderer/src/components/dialogs/PromptDialog.tsx@@ -0,0 +1,66 @@+import { useEffect, useId, useState } from 'react';+import { useApp } from '../../store.ts';+import { Button, Dialog, inputClass } from '../ui.tsx';++/** Asks for a line of text (profile names, app names). */+export function PromptDialog() {+ const prompt = useApp((s) => s.prompt);+ const [value, setValue] = useState('');+ const listId = useId();+ useEffect(() => { if (prompt) setValue(prompt.value); }, [prompt]);++ const done = (v: string | null) => {+ prompt?.resolve(v);+ useApp.setState({ prompt: null });+ };++ return (+ <Dialog+ open={!!prompt}+ onClose={() => done(null)}+ title={prompt?.title}+ actions={+ <>+ <Button variant="ghost" onClick={() => done(null)}>Cancel</Button>+ <Button onClick={() => done(value.trim() || null)}>OK</Button>+ </>+ }+ >+ <form onSubmit={(e) => { e.preventDefault(); done(value.trim() || null); }}>+ <input+ autoFocus+ onFocus={(e) => e.target.select()}+ className={inputClass}+ maxLength={80}+ value={value}+ list={listId}+ onChange={(e) => setValue(e.target.value)}+ />+ <datalist id={listId}>{prompt?.suggestions.map((s) => <option key={s} value={s} />)}</datalist>+ </form>+ </Dialog>+ );+}++export function ConfirmDialog() {+ const confirm = useApp((s) => s.confirm);+ const done = (ok: boolean) => {+ confirm?.resolve(ok);+ useApp.setState({ confirm: null });+ };+ return (+ <Dialog+ open={!!confirm}+ onClose={() => done(false)}+ title={confirm?.title}+ actions={+ <>+ <Button variant="ghost" onClick={() => done(false)}>{confirm?.cancel}</Button>+ <Button autoFocus onClick={() => done(true)}>{confirm?.ok}</Button>+ </>+ }+ >+ <p className="whitespace-pre-line text-muted">{confirm?.body}</p>+ </Dialog>+ );+}diff --git a/app/src/renderer/src/components/dialogs/SettingsDialog.tsx b/app/src/renderer/src/components/dialogs/SettingsDialog.tsxnew file mode 100644index 0000000..e591ef2--- /dev/null+++ b/app/src/renderer/src/components/dialogs/SettingsDialog.tsx@@ -0,0 +1,36 @@+import { closeDialog, bridge, exportAll, openOta, resetStats, setNotifications, updateSettings } from '../../controller.ts';+import type { Theme } from '../../lib/types.ts';+import { useApp } from '../../store.ts';+import { Button, Dialog, inputClass, Toggle } from '../ui.tsx';++export function SettingsDialog() {+ const open = useApp((s) => s.dialog === 'settings');+ const s = useApp((st) => st.store.settings);+ const about = useApp((st) => st.about);+ return (+ <Dialog open={open} onClose={closeDialog} title="Settings" actions={<Button onClick={closeDialog}>Done</Button>}>+ <label className="block">+ <span className="mb-1 block text-xs text-muted">Theme</span>+ <select className={inputClass} value={s.theme} onChange={(e) => updateSettings({ theme: e.target.value as Theme })}>+ <option value="system">Match system</option>+ <option value="light">Light</option>+ <option value="dark">Dark</option>+ </select>+ </label>+ <div>+ <Toggle checked={s.autoReconnect} onChange={(v) => updateSettings({ autoReconnect: v })}>Reconnect to the last Keyword automatically</Toggle>+ <Toggle checked={s.perApp} onChange={(v) => updateSettings({ perApp: v })}>Switch profiles by the app in front</Toggle>+ <Toggle checked={s.notifications} onChange={(v) => void setNotifications(v)}>Notify when Keybits connect or disconnect</Toggle>+ <Toggle checked={s.closeToTray} onChange={(v) => updateSettings({ closeToTray: v })}>Keep running in the menu bar / tray when closed</Toggle>+ <Toggle checked={s.launchAtLogin} onChange={(v) => updateSettings({ launchAtLogin: v })}>Open at login</Toggle>+ </div>+ <div className="flex flex-wrap gap-1.5">+ <Button size="sm" variant="ghost" onClick={() => void openOta()}>Update Keyword firmware…</Button>+ <Button size="sm" variant="ghost" onClick={() => void exportAll()}>Export all profiles…</Button>+ <Button size="sm" variant="ghost" onClick={resetStats}>Reset press counts</Button>+ {bridge && <Button size="sm" variant="ghost" onClick={() => bridge?.openDataFolder()}>Open data folder</Button>}+ </div>+ {about && <p className="text-xs text-muted">{about}</p>}+ </Dialog>+ );+}diff --git a/app/src/renderer/src/components/ui.tsx b/app/src/renderer/src/components/ui.tsxnew file mode 100644index 0000000..9824653--- /dev/null+++ b/app/src/renderer/src/components/ui.tsx@@ -0,0 +1,133 @@+// Small shared building blocks.+import clsx from 'clsx';+import { useEffect, useRef, type ButtonHTMLAttributes, type ReactNode } from 'react';++type Variant = 'primary' | 'ghost' | 'link' | 'danger';++export function Button({+ variant = 'primary', size = 'md', className, ...props+}: ButtonHTMLAttributes<HTMLButtonElement> & { variant?: Variant; size?: 'sm' | 'md' }) {+ return (+ <button+ type="button"+ className={clsx(+ 'inline-flex items-center justify-center gap-1.5 rounded-lg font-medium whitespace-nowrap transition-colors disabled:cursor-default disabled:opacity-45',+ size === 'sm' ? 'h-7 px-2.5 text-xs' : 'h-8 px-3.5',+ variant === 'primary' && 'bg-accent text-accent-fg hover:brightness-110',+ variant === 'ghost' && 'border border-line bg-panel text-fg hover:bg-app',+ variant === 'danger' && 'border border-danger/40 bg-panel text-danger hover:bg-danger/10',+ variant === 'link' && 'h-auto px-0 text-accent hover:underline',+ className,+ )}+ {...props}+ />+ );+}++export function IconButton({ label, className, ...props }: ButtonHTMLAttributes<HTMLButtonElement> & { label: string }) {+ return (+ <button+ type="button"+ aria-label={label}+ title={props.title ?? label}+ className={clsx(+ 'inline-flex size-8 items-center justify-center rounded-lg border border-line bg-panel text-fg transition-colors hover:bg-app disabled:cursor-default disabled:opacity-40',+ className,+ )}+ {...props}+ />+ );+}++export function Pill({ children, tone, title }: { children: ReactNode; tone?: 'warn' | 'on'; title?: string }) {+ return (+ <span+ title={title}+ className={clsx(+ 'inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs',+ tone === 'warn' ? 'border-warn/40 bg-warn-soft text-warn' : tone === 'on' ? 'border-on/40 bg-on-soft text-on' : 'border-line bg-panel text-muted',+ )}+ >+ {children}+ </span>+ );+}++export function Chip({ children, onRemove, removeLabel }: { children: ReactNode; onRemove?: () => void; removeLabel?: string }) {+ return (+ <span className="inline-flex items-center gap-1 rounded-full border border-line bg-app px-2 py-0.5 text-xs">+ {children}+ {onRemove && (+ <button+ type="button"+ aria-label={removeLabel ?? 'Remove'}+ title={removeLabel ?? 'Remove'}+ onClick={(e) => { e.stopPropagation(); onRemove(); }}+ className="-mr-1 rounded-full px-1 text-muted hover:text-danger"+ >+ ×+ </button>+ )}+ </span>+ );+}++export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) {+ return (+ <div className="mb-2 flex items-center justify-between gap-2">+ <h2 className="text-[11px] font-semibold tracking-wider text-muted uppercase">{children}</h2>+ {action}+ </div>+ );+}++export const inputClass =+ 'h-8 w-full rounded-lg border border-line bg-panel px-2.5 text-fg placeholder:text-muted focus:border-accent focus:outline-none';++/** A native modal dialog. Escape and the backdrop close it through onClose. */+export function Dialog({+ open, onClose, title, children, actions, wide,+}: {+ open: boolean;+ onClose: () => void;+ title: ReactNode;+ children: ReactNode;+ actions?: ReactNode;+ wide?: boolean;+}) {+ const ref = useRef<HTMLDialogElement>(null);+ useEffect(() => {+ const d = ref.current;+ if (!d) return;+ if (open && !d.open) d.showModal();+ if (!open && d.open) d.close();+ }, [open]);+ return (+ <dialog+ ref={ref}+ onCancel={(e) => { e.preventDefault(); onClose(); }}+ onMouseDown={(e) => { if (e.target === ref.current) onClose(); }}+ className={clsx(+ 'm-auto max-h-[90vh] rounded-xl border border-line bg-panel p-0 text-fg shadow-2xl',+ wide ? 'w-[min(620px,94vw)]' : 'w-[min(440px,92vw)]',+ )}+ >+ {open && (+ <div className="flex max-h-[90vh] flex-col">+ <h2 className="px-5 pt-4 pb-3 text-[15px] font-semibold">{title}</h2>+ <div className="flex-1 space-y-3 overflow-y-auto px-5 pb-1">{children}</div>+ {actions && <div className="flex items-center justify-end gap-2 px-5 pt-3 pb-4">{actions}</div>}+ </div>+ )}+ </dialog>+ );+}++export function Toggle({ checked, onChange, children }: { checked: boolean; onChange: (v: boolean) => void; children: ReactNode }) {+ return (+ <label className="flex cursor-pointer items-center gap-2.5 py-1">+ <input type="checkbox" className="size-4 accent-(--accent)" checked={checked} onChange={(e) => onChange(e.target.checked)} />+ <span>{children}</span>+ </label>+ );+}diff --git a/app/src/renderer/src/controller.ts b/app/src/renderer/src/controller.tsnew file mode 100644index 0000000..e29da56--- /dev/null+++ b/app/src/renderer/src/controller.ts@@ -0,0 +1,1150 @@+// The app's behaviour: talking to the Keyword, profiles, undo, per-app switching and+// firmware updates. Components read the zustand store and call these functions.+import type { MenuCommand, PickerList, TrayState } from '../../shared/bridge';+import * as Hid from './lib/hid.ts';+import * as Profiles from './lib/profiles.ts';+import {+ checkAppImage, cmd, entryCommands, LineBuffer, OTA, otaChunks, parseLine, profileCommands, type Message,+} from './lib/protocol.ts';+import * as Templates from './lib/templates.ts';+import {+ BleOtaTarget, BleTransport, DemoOtaTarget, DemoTransport, OtaModeError, SerialTransport, sleep,+ type OtaTarget, type Transport,+} from './lib/transports.ts';+import type { Entry, HostAction, Profile, Settings, Side } from './lib/types.ts';+import {+ activeProfileOf, emptyDevice, initialOta, useApp, type ActivityTone, type AppState, type KeyState, type OtaState,+} from './store.ts';++const POLL_MS = 2000; // ask SIDES? this often in case a push was missed+const KEYS_POLL_MS = 10000; // full KEYS? resync+const BATT_POLL_MS = 30000;+const STALE_MS = 5000; // no line from the Keyword for this long means stale+export const SIDE_NAMES: Record<Side, string> = { L: 'left', R: 'right', T: 'top edge' };+export const MAC = /Mac/i.test(navigator.platform);+export const MOD_KEY = MAC ? 'Cmd' : 'Ctrl';+// Clicking our own window shouldn't count as "switched app" for per-app profiles.+const SELF_APPS = new Set(['keyword monitor', 'electron', 'keyword-monitor']);++export const bridge = window.desktop ?? null;+const get = useApp.getState;+const set = useApp.setState;++let nextId = 1;+const now = () => new Date().toLocaleTimeString();++// ---- Log, activity, toasts, notifications ----++export function log(dir: '->' | '<-' | '!!', text: string) {+ set((s) => ({ log: [...s.log.slice(-1500), { id: nextId++, time: now(), dir, text }] }));+}++export function activity(text: string, tone?: ActivityTone) {+ set((s) => ({ activity: [{ id: nextId++, time: now(), text, tone }, ...s.activity].slice(0, 200) }));+}++export function toast(text: string, opts: { error?: boolean; undo?: boolean; ms?: number } = {}) {+ const id = nextId++;+ set((s) => ({ toasts: [...s.toasts, { id, text, error: opts.error, undo: opts.undo }] }));+ const ms = opts.ms ?? 4000;+ setTimeout(() => set((s) => ({ toasts: s.toasts.map((t) => (t.id === id ? { ...t, leaving: true } : t)) })), ms);+ setTimeout(() => dismissToast(id), ms + 300);+}+export const dismissToast = (id: number) => set((s) => ({ toasts: s.toasts.filter((t) => t.id !== id) }));++function notify(title: string, body: string) {+ if (!settings().notifications || document.hasFocus()) return;+ try { new Notification(title, { body, silent: true }); } catch { /* notifications unavailable */ }+}++function setStatus(status: string, tone: AppState['tone'] = 'idle') {+ set({ status, tone });+}++// ---- Saved state (main.js writes it to disk; localStorage when run in a browser) ----++const storage = bridge+ ? { load: () => bridge.loadStore(), save: (s: unknown) => bridge.saveStore(s) }+ : {+ load: async () => { try { return JSON.parse(localStorage.getItem('keyword-profiles') || 'null'); } catch { return null; } },+ save: async (s: unknown) => { try { localStorage.setItem('keyword-profiles', JSON.stringify(s)); } catch { /* storage full or blocked */ } },+ };++export const settings = (): Settings => get().store.settings;+export const activeProfile = (): Profile => activeProfileOf(get());++let saveTimer: ReturnType<typeof setTimeout> | undefined;+function persist() {+ clearTimeout(saveTimer);+ saveTimer = setTimeout(() => storage.save(get().store).catch((e: Error) => log('!!', `could not save: ${e.message}`)), 150);+}++export function updateSettings(patch: Partial<Settings>) {+ set((s) => ({ store: { ...s.store, settings: { ...s.store.settings, ...patch } } }));+ persist();+ applySettings();+}++// ---- Undo history ----++type Snapshot = { active: string; profiles: Profile[] };+const history = new Profiles.History<Snapshot>();+let manualActive: string | null = null; // profile picked by hand, for returning after per-app switches++const snapshot = (): Snapshot => ({ active: get().store.active, profiles: get().store.profiles });+function refreshHistory() {+ set({ history: { canUndo: history.canUndo, canRedo: history.canRedo, undoLabel: history.undoLabel, redoLabel: history.redoLabel } });+}++/**+ * Every user edit goes through here so it can be undone. fn changes a copy of the profiles.+ * sync: 'full' pushes the whole profile to the Keyword afterwards, a function runs custom sync.+ */+function mutate(label: string, fn: (d: Snapshot) => void, sync: 'full' | (() => void) | null = 'full') {+ history.record(snapshot(), label);+ const draft = structuredClone(snapshot());+ fn(draft);+ set((s) => ({ store: { ...s.store, active: draft.active, profiles: draft.profiles } }));+ refreshHistory();+ persist();+ if (sync === 'full') applyProfile(true);+ else if (typeof sync === 'function') sync();+}++function restore(entry: { state: Snapshot; label: string } | null, verb: string) {+ if (!entry) return;+ const fixed = Profiles.normalizeStore({ ...entry.state, settings: settings() });+ set((s) => ({ store: { ...s.store, profiles: fixed.profiles, active: fixed.active } }));+ manualActive = fixed.active;+ refreshHistory();+ persist();+ applyProfile(true);+ toast(`${verb} ${entry.label}`);+}+export const undo = () => restore(history.undo(snapshot()), 'Undid');+export const redo = () => restore(history.redo(snapshot()), 'Redid');++// ---- Names and labels ----++export const shortUid = (uid: string) => uid.slice(-4);+export const entryOf = (uid: string, p: Profile = activeProfile()): Entry | undefined => p.keys[uid];+export const keyName = (uid: string, p: Profile = activeProfile()) => entryOf(uid, p)?.name || `Keybit ${shortUid(uid)}`;++export function hostLabel(h: HostAction): string {+ switch (h.type) {+ case 'url': return `Open ${h.value.replace(/^https?:\/\//, '')}`;+ case 'app': return `Open ${h.value}`;+ case 'cmd': return `Run ${h.value}`;+ case 'next-profile': return 'Next profile';+ case 'profile': return `Profile: ${get().store.profiles.find((p) => p.id === h.value)?.name || '?'}`;+ }+}++/** Short label for what an entry does, or '' if nothing. */+export function actionLabel(m: Entry | undefined): string {+ if (!m) return '';+ if (m.host) return hostLabel(m.host);+ if (m.macro?.length) return Hid.macroLabel(m.macro, MAC);+ if (m.consumer) return Hid.consumerLabel(m.consumer);+ return Hid.comboLabel(m.mods || 0, m.key || 0, MAC);+}+export const holdLabel = (h: Entry['hold']) => (h && (h.mods || h.key) ? Hid.comboLabel(h.mods, h.key, MAC) : '');++export const can = (c: string) => get().device.caps.includes(c);+export const isOutdated = (k: KeyState | undefined, kb: number | null) => k?.v != null && kb != null && k.v < kb;++// ---- Keys ----++/**+ * Relayed Keybits may only be reported by their low 32 bits. Map those to a full UID we+ * already know (connected, or set up in any profile) so they keep their setup.+ */+function resolveUid(uid: string): string {+ if (!uid || uid.length !== 8) return uid;+ const s = get();+ const known = [...Object.keys(s.keys), ...s.store.profiles.flatMap((p) => Object.keys(p.keys))];+ return known.find((u) => u.length === 24 && u.endsWith(uid)) || uid;+}++let highlightTimer: ReturnType<typeof setTimeout> | undefined;++function addKey(uid: string, at: Side | null, v: number | null, relay: { via: string | null; depth: number | null } | null) {+ const s = get();+ const known = s.keys[uid];+ // Seen in full for the first time: carry over a setup saved under its short UID.+ if (!known && uid.length === 24) {+ const short = uid.slice(-8);+ if (s.store.profiles.some((p) => p.keys[short] && !p.keys[uid])) {+ const profiles = s.store.profiles.map((p) => {+ if (!p.keys[short] || p.keys[uid]) return p;+ const keys = { ...p.keys, [uid]: p.keys[short] };+ delete keys[short];+ return { ...p, keys };+ });+ set({ store: { ...s.store, profiles } });+ persist();+ }+ }+ const next: KeyState = {+ at,+ pressed: known?.pressed || false,+ v: v ?? known?.v ?? null,+ flashing: known?.flashing ?? null,+ via: relay?.via ? resolveUid(relay.via) : known?.via ?? null,+ depth: relay?.depth ?? known?.depth ?? null,+ };+ set((st) => ({ keys: { ...st.keys, [uid]: next } }));+ if (!known) {+ const where = at ? ` on the ${SIDE_NAMES[at]}` : relay?.via ? ` behind ${keyName(resolveUid(relay.via))}` : '';+ activity(`${keyName(uid)} connected${where}`, 'add');+ notify('Keybit connected', `${keyName(uid)}${where}`);+ clearTimeout(highlightTimer);+ set({ highlight: uid });+ highlightTimer = setTimeout(() => set({ highlight: null }), 1600);+ }+}++function removeKey(uid: string) {+ const k = get().keys[uid];+ if (!k) return;+ set((s) => {+ const keys = { ...s.keys };+ delete keys[uid];+ return { keys };+ });+ const where = k.at ? ` from the ${SIDE_NAMES[k.at]}` : '';+ activity(`${keyName(uid)} disconnected${where}`, 'remove');+ notify('Keybit disconnected', `${keyName(uid)}${where}`);+}++function patchKey(uid: string, patch: Partial<KeyState>) {+ set((s) => (s.keys[uid] ? { keys: { ...s.keys, [uid]: { ...s.keys[uid], ...patch } } } : {}));+}++export async function copyUid(uid: string) {+ try {+ await navigator.clipboard.writeText(uid);+ toast('UID copied');+ } catch {+ toast(uid);+ }+}++// ---- Protocol handling ----++let transport: Transport | null = null;+let timers: ReturnType<typeof setInterval>[] = [];+let lastRx = 0;+let syncSeen: Set<string> | null = null; // uids seen during a KEYS? reply+let reconnect: { tries: number; timer?: ReturnType<typeof setTimeout>; kind: Transport['kind']; device: BluetoothDevice | null } | null = null;++export const demo = () => (transport instanceof DemoTransport ? transport : null);++// Lets a flow wait for a particular reply. pred returns true to take the message.+type Waiter = { pred: (m: Message) => boolean; resolve: (m: Message | null) => void; timer: ReturnType<typeof setTimeout> };+const waiters = new Set<Waiter>();+function waitForMessage(pred: (m: Message) => boolean, ms: number): Promise<Message | null> {+ return new Promise((resolve) => {+ const w: Waiter = { pred, resolve, timer: setTimeout(() => { waiters.delete(w); resolve(null); }, ms) };+ waiters.add(w);+ });+}++function handleLine(line: string) {+ lastRx = Date.now();+ log('<-', line);+ const msg = parseLine(line);+ for (const w of [...waiters]) {+ if (w.pred(msg)) {+ clearTimeout(w.timer);+ waiters.delete(w);+ w.resolve(msg);+ }+ }+ switch (msg.type) {+ case 'hello': {+ const first = !get().device.fw;+ set((s) => ({ device: { ...s.device, fw: msg.fw, caps: [...msg.caps], kb: msg.kb } }));+ setStatus(`Connected over ${transport?.label}`, 'connected');+ if (msg.proto !== 1) log('!!', `protocol ${msg.proto}, app expects 1`);+ if (first) {+ if (can('batt')) send(cmd.battery());+ applyProfile(true); // now that caps are known+ }+ break;+ }+ case 'sides': {+ set((s) => ({ sides: { ...s.sides, ...msg.sides } }));+ // A KEY- may have been missed: drop keys on a side that is now empty.+ for (const [side, present] of Object.entries(msg.sides)) {+ if (!present) for (const [uid, k] of Object.entries(get().keys)) if (k.at === side) removeKey(uid);+ }+ break;+ }+ case 'keyAdd': {+ const uid = resolveUid(msg.uid);+ syncSeen?.add(uid);+ addKey(uid, msg.at, msg.v, msg.via !== undefined ? { via: msg.via ?? null, depth: msg.depth ?? null } : null);+ break;+ }+ case 'keyRemove':+ removeKey(resolveUid(msg.uid));+ break;+ case 'keysEnd':+ if (syncSeen) for (const uid of Object.keys(get().keys)) if (!syncSeen.has(uid)) removeKey(uid);+ syncSeen = null;+ break;+ case 'press':+ onPress(resolveUid(msg.uid), msg.down);+ break;+ case 'battery': {+ const prev = get().device.battery;+ set((s) => ({ device: { ...s.device, battery: { pct: msg.pct, charging: msg.charging, usb: msg.usb } } }));+ if (prev && prev.pct > 15 && msg.pct <= 15 && !msg.charging) {+ toast(`Keyword battery low (${msg.pct}%)`, { error: true });+ notify('Keyword battery low', `${msg.pct}% left`);+ }+ break;+ }+ case 'flashProgress':+ patchKey(msg.uid, { flashing: msg.pct });+ break;+ case 'ok':+ if (msg.what === 'FLASH' && msg.uid) {+ const uid = msg.uid.toUpperCase();+ patchKey(uid, { flashing: null });+ activity(`${keyName(uid)} reflashed`, 'add');+ toast(`${keyName(uid)} reflashed`);+ syncKeys();+ }+ break;+ case 'error':+ log('!!', msg.message);+ activity(`Keyword: ${msg.message}`, 'remove');+ if (/^flash/i.test(msg.message)) {+ set((s) => ({ keys: Object.fromEntries(Object.entries(s.keys).map(([u, k]) => [u, { ...k, flashing: null }])) }));+ }+ break;+ }+}++let statsDirty = false;+function onPress(uid: string, down: boolean) {+ const k = get().keys[uid];+ if (k) patchKey(uid, { pressed: down });+ else addKey(uid, null, null, null);+ if (!down) return;+ set((s) => ({ store: { ...s.store, stats: { ...s.store.stats, [uid]: (s.store.stats[uid] || 0) + 1 } } }));+ statsDirty = true;+ const m = entryOf(uid);+ if (m?.host) void runHost(m.host, uid);+ pressListeners.forEach((fn) => fn(uid));+}+setInterval(() => {+ if (statsDirty) {+ statsDirty = false;+ persist();+ }+}, 10000);++const pressListeners = new Set<(uid: string) => void>();+/** Lets a component react to presses (the Assign dialog flashes the key's name). */+export function onKeyPress(fn: (uid: string) => void) {+ pressListeners.add(fn);+ return () => { pressListeners.delete(fn); };+}++export async function runHost(h: HostAction, uid: string) {+ if (h.type === 'next-profile') return cycleProfile(1);+ if (h.type === 'profile') {+ if (get().store.profiles.some((p) => p.id === h.value)) switchTo(h.value, { manual: true });+ return;+ }+ if (!bridge) return toast(`${hostLabel(h)} (only in the desktop app)`);+ const r = await bridge.runHost(h);+ if (!r.ok) toast(`${keyName(uid)}: ${r.error}`, { error: true });+}++export async function send(...lines: string[]) {+ const t = transport;+ if (!t) return;+ for (const l of lines) {+ log('->', l);+ try {+ await t.write(l + '\n');+ } catch (e) {+ log('!!', `write failed: ${(e as Error).message}`);+ return;+ }+ }+}++function syncKeys() {+ syncSeen = new Set();+ void send(cmd.keys());+}++export function applyProfile(quiet: boolean) {+ if (!transport || !get().device.fw) return;+ const p = activeProfile();+ void send(...profileCommands(p.keys, new Set(get().device.caps)));+ if (!quiet) {+ activity(`Sent "${p.name}" to the Keyword`);+ toast(`Sent "${p.name}" to the Keyword`);+ }+}++/** Programs one key after an edit. UNMAP first clears any old macro or hold. */+function syncKey(uid: string) {+ const m = entryOf(uid);+ void send(cmd.unmap(uid), ...(m ? entryCommands(uid, m, new Set(get().device.caps)) : []), cmd.save());+}++export function flashKey(uid: string) {+ if (!get().keys[uid]) return;+ patchKey(uid, { flashing: 0 });+ activity(`Reflashing ${keyName(uid)}…`);+ void send(cmd.flash(uid));+}++// ---- Connecting ----++async function connect(t: Transport, { auto = false } = {}): Promise<boolean> {+ await disconnect({ quiet: true });+ setStatus(auto ? `Reconnecting over ${t.label}…` : `Connecting over ${t.label}…`, 'busy');+ const lines = new LineBuffer(handleLine);+ try {+ await t.open((text) => lines.push(text), () => onLinkLost(t));+ } catch (e) {+ set({ chooser: null });+ if (e instanceof OtaModeError) {+ setStatus('Not connected');+ void openOta({ device: e.device });+ return false;+ }+ if (auto) throw e;+ const err = e as Error;+ setStatus(err.name === 'NotFoundError' ? 'Not connected' : `Could not connect: ${err.message}`);+ return false;+ }+ stopReconnect();+ transport = t;+ lastRx = Date.now();+ set({ device: emptyDevice(), transport: t.kind });+ setStatus(`Connected over ${t.label} · waiting for the Keyword…`, 'busy');+ activity(`Connected over ${t.label}`);+ const id = t.identity();+ if (id) updateSettings({ lastConnection: id });+ await send(cmd.hello(), cmd.sides());+ syncKeys();+ timers = [+ setInterval(() => {+ void send(cmd.sides());+ if (Date.now() - lastRx > STALE_MS) setStatus(`Connected over ${t.label} · no reply from the Keyword`, 'stale');+ }, POLL_MS),+ setInterval(syncKeys, KEYS_POLL_MS),+ setInterval(() => { if (can('batt')) void send(cmd.battery()); }, BATT_POLL_MS),+ ];+ return true;+}++export async function disconnect({ quiet = false } = {}) {+ timers.forEach(clearInterval);+ timers = [];+ const t = transport;+ transport = null;+ if (t) {+ await t.close();+ if (!quiet) activity('Disconnected');+ }+ if (!quiet) stopReconnect();+ set({ keys: {}, sides: {}, device: emptyDevice(), transport: null });+ if (!reconnect) setStatus('Not connected');+}++function onLinkLost(t: Transport) {+ if (transport !== t) return;+ log('!!', 'device disconnected');+ activity('Keyword disconnected', 'remove');+ notify('Keyword disconnected', settings().autoReconnect ? 'Trying to reconnect…' : '');+ void disconnect({ quiet: true });+ if (settings().autoReconnect) startReconnect(t);+ else setStatus('Not connected');+}++/** Retries with backoff. Serial waits for the port to come back; BLE re-dials the same device. */+function startReconnect(t: Transport) {+ stopReconnect();+ const r: NonNullable<typeof reconnect> = { tries: 0, kind: t.kind, device: t instanceof BleTransport ? t.device : null };+ reconnect = r;+ set({ reconnecting: true });+ const attempt = async () => {+ if (reconnect !== r || transport) return;+ r.tries++;+ setStatus(`Reconnecting… (try ${r.tries})`, 'busy');+ try {+ if (r.kind === 'ble' && r.device) await connect(new BleTransport(r.device), { auto: true });+ else if (r.kind === 'serial') {+ const port = await findSerialPort();+ if (!port) throw new Error('port not back yet');+ await connect(new SerialTransport(port), { auto: true });+ }+ return;+ } catch (e) {+ log('!!', `reconnect: ${(e as Error).message}`);+ }+ if (reconnect !== r) return;+ if (r.tries >= 20) {+ stopReconnect();+ setStatus('Not connected · gave up reconnecting');+ return;+ }+ r.timer = setTimeout(attempt, Math.min(30000, 1000 * 2 ** Math.min(r.tries, 5)));+ };+ r.timer = setTimeout(attempt, 1000);+}++function stopReconnect() {+ if (reconnect?.timer) clearTimeout(reconnect.timer);+ reconnect = null;+ set({ reconnecting: false });+}++async function findSerialPort(): Promise<SerialPort | null> {+ const last = settings().lastConnection;+ if (!('serial' in navigator) || last?.kind !== 'serial') return null;+ const ports = await navigator.serial.getPorts();+ return ports.find((p) => {+ const i = p.getInfo?.() ?? {};+ return last.usbVendorId == null || (i.usbVendorId === last.usbVendorId && i.usbProductId === last.usbProductId);+ }) ?? null;+}++/** On launch, quietly reconnect to the last Keyword if its permission is still granted. */+async function autoConnect() {+ const last = settings().lastConnection;+ if (!settings().autoReconnect || !last || transport) return;+ try {+ if (last.kind === 'serial') {+ const port = await findSerialPort();+ if (port) await connect(new SerialTransport(port), { auto: true });+ } else if (last.kind === 'ble' && navigator.bluetooth?.getDevices) {+ const dev = (await navigator.bluetooth.getDevices()).find((d) => d.id === last.id);+ if (dev) await connect(new BleTransport(dev), { auto: true });+ }+ } catch (e) {+ log('!!', `auto-connect: ${(e as Error).message}`);+ setStatus('Not connected');+ }+}++export function connectUsb() {+ if (!('serial' in navigator)) return setStatus('Web Serial is not available here');+ void connect(new SerialTransport());+}+export function connectBle() {+ if (!('bluetooth' in navigator)) return setStatus('Web Bluetooth is not available here');+ void connect(new BleTransport());+}+export const connectDemo = () => void connect(new DemoTransport());++// ---- Device chooser (main forwards the device list) ----++export function pickDevice(id: string) {+ window.devicePicker?.pick(id);+ set({ chooser: null });+}++// ---- Dialog helpers ----++export function askText(title: string, value = '', suggestions: string[] = []): Promise<string | null> {+ return new Promise((resolve) => set({ prompt: { title, value, suggestions, resolve } }));+}+export function askConfirm(title: string, body: string, ok = 'OK', cancel = 'Cancel'): Promise<boolean> {+ return new Promise((resolve) => set({ confirm: { title, body, ok, cancel, resolve } }));+}++export const openAssign = (uid: string) => set({ assignUid: uid });+export const closeAssign = () => {+ bridge?.setCapture(false);+ set({ assignUid: null });+};+export const openDialog = (dialog: AppState['dialog']) => set({ dialog });+export const closeDialog = () => {+ if (get().dialog === 'ota' && get().ota.busy) return;+ set({ dialog: null });+};++// ---- Editing keys ----++/** Saves what the Assign dialog built for a key. */+export function saveEntry(uid: string, e: Entry) {+ mutate(`assign ${keyName(uid)}`, (d) => {+ const p = d.profiles.find((x) => x.id === d.active)!;+ if (!Profiles.isMapped(e) && !e.name && !(e.hold && (e.hold.mods || e.hold.key))) delete p.keys[uid];+ else p.keys[uid] = e;+ }, () => syncKey(uid));+ activity(`${keyName(uid)} → ${actionLabel(entryOf(uid)) || 'nothing'}`);+}++export function unassign(uid: string) {+ const name = keyName(uid);+ mutate(`unassign ${name}`, (d) => { delete d.profiles.find((x) => x.id === d.active)!.keys[uid]; }, () => syncKey(uid));+ toast(`Unassigned ${name}`, { undo: true });+}++/** Hands an offline key's setup to a connected, unassigned Keybit. */+export async function moveKey(uid: string) {+ const keys = get().keys;+ const free = Object.keys(keys).filter((u) => !Profiles.isMapped(entryOf(u)));+ if (!free.length) return;+ let target: string | undefined = free[0];+ if (free.length > 1) {+ const labels = free.map((u) => `${keys[u].at ? SIDE_NAMES[keys[u].at!] : 'connected'} (…${u.slice(-4)})`);+ const pick = await askText(`Move "${keyName(uid)}" to which Keybit?`, labels[0], labels);+ if (!pick) return;+ target = free[labels.indexOf(pick)] ?? free.find((u) => pick.includes(u.slice(-4)));+ if (!target) return;+ }+ const to = target;+ const name = keyName(uid);+ mutate(`move ${name}`, (d) => {+ const p = d.profiles.find((x) => x.id === d.active)!;+ p.keys[to] = p.keys[uid];+ delete p.keys[uid];+ }, () => syncKey(to));+ const at = get().keys[to]?.at;+ toast(`Moved ${name} to the ${at ? SIDE_NAMES[at] : 'connected'} Keybit`, { undo: true });+}++export function forgetKey(uid: string) {+ const name = keyName(uid);+ mutate(`forget ${name}`, (d) => { delete d.profiles.find((x) => x.id === d.active)!.keys[uid]; }, null);+ toast(`Forgot ${name}`, { undo: true });+}++// ---- Profiles ----++export function switchTo(id: string, { manual = true } = {}) {+ const s = get();+ if (!s.store.profiles.some((p) => p.id === id) || id === s.store.active) return;+ set({ store: { ...s.store, active: id } });+ persist();+ if (manual) {+ manualActive = id;+ set({ autoSwitched: false });+ }+ applyProfile(true);+ if (manual) activity(`Switched to "${activeProfile().name}"`);+}++export function cycleProfile(dir: number) {+ const { profiles, active } = get().store;+ const i = profiles.findIndex((p) => p.id === active);+ const next = profiles[(i + dir + profiles.length) % profiles.length];+ switchTo(next.id);+ toast(`Profile: ${next.name}`);+}++function addProfile(p: Profile, label: string) {+ mutate(label, (d) => {+ d.profiles.push(p);+ d.active = p.id;+ });+ manualActive = p.id;+}++export async function newProfileFlow() {+ const name = await askText('New profile name', `Profile ${get().store.profiles.length + 1}`);+ if (name) addProfile(Profiles.newProfile(name), `new profile ${name}`);+}++export async function duplicateProfile() {+ const cur = activeProfile();+ const name = await askText('Name for the copy', `${cur.name} copy`);+ if (name) addProfile(Profiles.newProfile(name, cur.keys, cur.apps), `duplicate ${cur.name}`);+}++export async function renameProfile() {+ const cur = activeProfile();+ const name = await askText('Rename profile', cur.name);+ if (!name || name === cur.name) return;+ mutate(`rename ${cur.name}`, (d) => { d.profiles.find((p) => p.id === cur.id)!.name = name; }, null);+}++export function deleteProfile() {+ const { profiles } = get().store;+ if (profiles.length < 2) return;+ const cur = activeProfile();+ mutate(`delete ${cur.name}`, (d) => {+ d.profiles = d.profiles.filter((p) => p.id !== cur.id);+ d.active = d.profiles[0].id;+ });+ manualActive = get().store.active;+ toast(`Deleted "${cur.name}"`, { undo: true });+}++async function saveText(name: string, text: string) {+ if (bridge) return bridge.saveFile(name, text);+ const a = Object.assign(document.createElement('a'), {+ href: URL.createObjectURL(new Blob([text], { type: 'application/json' })),+ download: name,+ });+ a.click();+ URL.revokeObjectURL(a.href);+ return true;+}++export async function exportCurrent() {+ const p = activeProfile();+ if (await saveText(`${p.name}.keyword.json`, Profiles.exportProfile(p))) activity(`Exported "${p.name}"`);+}++export async function exportAll() {+ const { profiles } = get().store;+ if (await saveText('Keyword profiles.keyword.json', Profiles.exportLibrary(profiles))) activity(`Exported ${profiles.length} profiles`);+}++export async function importTexts(files: { name: string; text: string }[]) {+ const added: Profile[] = [];+ for (const f of files) {+ try {+ added.push(...Profiles.importProfiles(f.text));+ } catch (e) {+ toast(`${f.name}: ${(e as Error).message}`, { error: true });+ }+ }+ if (!added.length) return;+ // A shared profile could run anything on this computer, so ask before keeping commands.+ const risky = added.flatMap((p) => Object.values(p.keys).filter((e) => e.host && ['cmd', 'app'].includes(e.host.type)).map((e) => e.host!));+ if (risky.length) {+ const list = risky.slice(0, 8).map((h) => `• ${h.type === 'cmd' ? 'Run' : 'Open'}: ${h.value}`).join('\n');+ const keep = await askConfirm(+ 'Keep actions that run things on this computer?',+ `These profiles run things on this computer when a key is pressed:\n\n${list}${risky.length > 8 ? '\n…' : ''}\n\nRemove them to import the rest without them.`,+ 'Keep them',+ 'Remove them',+ );+ if (!keep) {+ for (const p of added) {+ for (const [u, e] of Object.entries(p.keys)) if (e.host && ['cmd', 'app'].includes(e.host.type)) delete p.keys[u];+ }+ }+ }+ // Keep names unique so the menu stays readable.+ const names = new Set(get().store.profiles.map((p) => p.name));+ for (const p of added) {+ let n = p.name;+ let i = 2;+ while (names.has(n)) n = `${p.name} (${i++})`;+ p.name = n;+ names.add(n);+ }+ mutate(`import ${added.length} profile${added.length === 1 ? '' : 's'}`, (d) => {+ d.profiles.push(...added);+ d.active = added[0].id;+ });+ manualActive = get().store.active;+ toast(`Imported ${added.map((p) => `"${p.name}"`).join(', ')}`, { undo: true });+}++export async function importFlow() {+ if (bridge) return importTexts(await bridge.openFiles());+ const input = Object.assign(document.createElement('input'), { type: 'file', accept: '.json,application/json', multiple: true });+ input.onchange = async () => importTexts(await Promise.all([...(input.files ?? [])].map(async (f) => ({ name: f.name, text: await f.text() }))));+ input.click();+}++export async function addAppFlow() {+ const suggestions = get().seenApps.filter((a) => !SELF_APPS.has(a.toLowerCase())).sort();+ const name = await askText('Use this profile in which app?', '', suggestions);+ if (!name) return;+ const p = activeProfile();+ if (p.apps.some((a) => a.toLowerCase() === name.toLowerCase())) return;+ const other = Profiles.profileForApp(get().store.profiles, name);+ mutate(`add ${name}`, (d) => {+ for (const x of d.profiles) x.apps = x.apps.filter((a) => a.toLowerCase() !== name.toLowerCase());+ d.profiles.find((x) => x.id === p.id)!.apps.push(name);+ }, null);+ if (other) toast(`Moved ${name} from "${other.name}"`);+ if (!settings().perApp) toast('Turn on per-app switching in Settings for this to take effect');+}++export function removeApp(app: string) {+ const p = activeProfile();+ mutate(`remove ${app}`, (d) => {+ const x = d.profiles.find((y) => y.id === p.id)!;+ x.apps = x.apps.filter((a) => a !== app);+ }, null);+}++function onFrontApp(name: string) {+ if (!name || SELF_APPS.has(name.toLowerCase())) return;+ set((s) => ({ frontApp: name, seenApps: s.seenApps.includes(name) ? s.seenApps : [...s.seenApps, name] }));+ if (!settings().perApp) return;+ const target = Profiles.profileForApp(get().store.profiles, name);+ if (target) {+ if (target.id !== get().store.active) {+ switchTo(target.id, { manual: false });+ set({ autoSwitched: true });+ activity(`${name} → "${target.name}"`);+ }+ } else if (get().autoSwitched && manualActive && manualActive !== get().store.active) {+ switchTo(manualActive, { manual: false });+ set({ autoSwitched: false });+ }+}++// ---- Library ----++export function libraryUids() {+ const s = get();+ const known = [...new Set([...Object.keys(s.keys), ...Object.keys(activeProfile().keys)])];+ return Templates.orderUids(known, (u) => s.keys[u]?.at);+}++export function applyLibraryTemplate(t: Templates.Template, asNew: boolean) {+ const uids = libraryUids();+ if (!uids.length) return toast('Attach a Keybit (or try Demo) first, so there are keys to assign', { error: true });+ const { keys, apps, used, total } = Templates.applyTemplate(t, uids, MAC);+ if (asNew) addProfile(Profiles.newProfile(t.name, keys, apps), `add ${t.name}`);+ else mutate(`apply ${t.name}`, (d) => { Object.assign(d.profiles.find((p) => p.id === d.active)!.keys, keys); });+ set({ dialog: null });+ toast(`${t.name}: ${used} of ${total} actions assigned${used < total ? ' (attach more Keybits for the rest)' : ''}`, { undo: true });+}++// ---- Keyword firmware update (BLE OTA) ----++// The Keyword restarts into ST's BLE_Ota bootloader on OTA, erasing its app first (4-5 s).+// From there the image goes over Bluetooth whatever link the app was using.+const OTA_RESTART_MS = 6500;+let otaImage: Uint8Array | null = null;+let otaDevice: BluetoothDevice | null = null;+let otaDemo = false;+let otaCancelled = false;++const setOta = (patch: Partial<OtaState>) => set((s) => ({ ota: { ...s.ota, ...patch } }));+const otaSay = (status: string, { error = false, pct = null }: { error?: boolean; pct?: number | null } = {}) =>+ setOta({ status, error, pct });++export async function openOta({ device = null }: { device?: BluetoothDevice | null } = {}) {+ if (get().ota.busy) return set({ dialog: 'ota' });+ otaDevice = device;+ otaDemo = transport instanceof DemoTransport;+ otaCancelled = false;+ set({+ dialog: 'ota',+ ota: {+ ...initialOta(),+ stage: device ? 'find' : 'pick',+ hasDevice: !!device,+ fileName: otaImage ? get().ota.fileName : '',+ fileSize: otaImage?.length ?? 0,+ },+ });+ otaSay(device+ ? 'This Keyword is in update mode. Pick the firmware image and click Start update.'+ : transport+ ? (can('ota') ? '' : 'This Keyword firmware does not report OTA support. The update will be tried anyway.')+ : `Not connected. If the Keyword is already in update mode (it shows up as "${OTA.name}"), pick the image and find it.`);+ const fw = get().device.fw;+ if (transport && fw) {+ void send(cmd.stack());+ const m = await waitForMessage((x) => x.type === 'stack' || (x.type === 'error' && /stack/i.test(x.message)), 2000);+ if (m?.type === 'stack') {+ const stack = m.stack === 'ble' ? `BLE ${m.v || ''}` : m.stack;+ setOta({ stack: `Keyword firmware ${fw} · wireless stack ${stack}${m.fus ? ` · FUS ${m.fus}` : ''}` });+ if (m.stack === 'none') {+ otaSay('The Keyword has no Bluetooth stack on its radio core, so it can only be updated over USB DFU.', { error: true });+ setOta({ showDfu: true });+ }+ } else setOta({ stack: `Keyword firmware ${fw}` });+ }+}++export async function pickOtaFile(file: File | undefined) {+ otaImage = null;+ setOta({ fileName: '', fileSize: 0 });+ if (!file) return;+ const bytes = new Uint8Array(await file.arrayBuffer());+ const check = checkAppImage(bytes);+ if (check.ok) {+ otaImage = bytes;+ setOta({ fileName: file.name, fileSize: bytes.length });+ if (!get().ota.showDfu) otaSay('');+ } else otaSay(check.error, { error: true });+}++export function otaGo() {+ const { stage } = get().ota;+ if (stage === 'done') return set({ dialog: null });+ if (stage === 'pick' && transport) return otaRestartKeyword();+ return otaSend();+}++export function otaCancel() {+ if (get().ota.stage === 'sending') otaCancelled = true;+ else closeDialog();+}++export async function otaDfu() {+ if (!transport) return;+ const ok = await askConfirm(+ 'Restart into USB DFU?',+ 'The Keyword stops working as a keyboard until it is flashed with STM32CubeProgrammer (or dfu-util) and restarted.',+ 'Restart into DFU',+ );+ if (!ok) return;+ void send(cmd.dfu());+ const m = await waitForMessage((x) => (x.type === 'ok' && x.what === 'DFU') || x.type === 'error', 2000);+ if (m?.type === 'ok') {+ await disconnect();+ // Over USB DFU, starting the app from the programmer (-g, :leave, -startfus, -fwupgrade)+ // rewrites nSWBOOT0 and can lock the Keyword out of DFU.+ otaSay("The Keyword is in USB DFU mode. Flash keyword_full.bin at 0x08000000 with STM32CubeProgrammer, then unplug and replug it. Don't use \"run after programming\" (-g / :leave) or the FUS/stack upgrade, which can lock it out of DFU.");+ } else otaSay(m?.type === 'error' ? `Keyword: ${m.message}` : 'No reply from the Keyword.', { error: true });+}++/** Step 1: ask the running Keyword to restart into the bootloader. */+async function otaRestartKeyword() {+ setOta({ busy: true, stage: 'waiting' });+ otaSay('Asking the Keyword to restart into update mode…');+ void send(cmd.ota());+ const m = await waitForMessage((x) => (x.type === 'ok' && x.what === 'OTA') || x.type === 'error', 3000);+ if (m?.type !== 'ok') {+ setOta({ busy: false, stage: 'pick' });+ if (m?.type === 'error' && /no BLE stack/i.test(m.message)) {+ otaSay('The Keyword has no Bluetooth stack on its radio core, so it can only be updated over USB DFU.', { error: true });+ setOta({ showDfu: true });+ } else otaSay(m?.type === 'error' ? `Keyword: ${m.message}` : 'The Keyword did not answer. Its firmware may be too old for OTA.', { error: true });+ return;+ }+ otaDemo = transport instanceof DemoTransport;+ await disconnect();+ activity('Keyword restarting into update mode');+ const until = Date.now() + (otaDemo ? 1500 : OTA_RESTART_MS);+ while (Date.now() < until) {+ otaSay(`The Keyword is erasing its app and restarting into update mode… ${Math.ceil((until - Date.now()) / 1000)}`);+ await sleep(250);+ }+ // Web Bluetooth only opens its picker from a click, so the user presses Find.+ setOta({ stage: 'find', busy: false });+ otaSay(`Ready. Click "Find ${OTA.name}" and pick it from the list.`);+}++/** Step 2: send the image to the bootloader. */+async function otaSend() {+ const image = otaImage;+ if (!image) return;+ if (!otaDemo && !('bluetooth' in navigator)) return otaSay('Web Bluetooth is not available here.', { error: true });+ otaCancelled = false;+ stopReconnect();+ const target: OtaTarget = otaDemo ? new DemoOtaTarget() : new BleOtaTarget(otaDevice);+ setOta({ busy: true, stage: 'waiting' });+ try {+ otaSay(`Connecting to ${OTA.name}…`);+ await target.connect();+ setOta({ stage: 'sending' });+ await target.start();+ // There's no flow control, so pace the writes to the bootloader's flash speed (~3 ms per 248 bytes).+ // Chunks fit common MTUs; if a size is refused, step down to a smaller one.+ const sizes = MAC ? [176, 16] : [240, 176, 16];+ let chunks = otaChunks(image, sizes[0]);+ let size = 0;+ let sent = 0;+ const t0 = Date.now();+ for (let i = 0; i < chunks.length; i++) {+ if (otaCancelled) throw new Error('cancelled');+ try {+ await target.write(chunks[i]);+ } catch (e) {+ if (i > 0 || size + 1 >= sizes.length) throw e;+ size++;+ log('!!', `OTA write of ${chunks[i].length} B refused (${(e as Error).message}), trying ${sizes[size]}`);+ chunks = otaChunks(image, sizes[size]);+ i = -1;+ continue;+ }+ sent += chunks[i].length;+ // macOS drops write-without-response packets that come too fast (a run of+ // 131 x 176 B went missing at 4 ms), so pace it much slower there.+ await sleep(MAC && !otaDemo ? 20 : Math.max(2, Math.ceil((chunks[i].length / 248) * 3) + 1));+ if (i % 8 === 0 || i === chunks.length - 1) {+ const rate = sent / Math.max(1, Date.now() - t0); // bytes per ms+ const left = Math.ceil((image.length - sent) / rate / 1000);+ otaSay(+ `Sending ${get().ota.fileName}… ${Math.round(sent / 1024)} of ${Math.round(image.length / 1024)} KB${left > 1 ? ` · about ${left} s left` : ''}`,+ { pct: Math.min(100, Math.round((sent / image.length) * 100)) },+ );+ }+ }+ otaSay('Checking the image…', { pct: 100 });+ await target.finish();+ const ack = await Promise.race([target.confirmed, target.lost.then(() => 'lost' as const), sleep(15000).then(() => 'timeout' as const)]);+ if (ack !== 1) {+ throw new Error(ack === 'lost' ? 'the Keyword disconnected before confirming'+ : ack === 'timeout' ? 'no confirmation from the Keyword' : `the Keyword rejected the image (${ack})`);+ }+ setOta({ stage: 'done' });+ otaSay('Updated. The Keyword is restarting with the new firmware.');+ activity('Keyword firmware updated', 'add');+ toast('Keyword firmware updated');+ target.close();+ otaDevice = null;+ setTimeout(() => { if (otaDemo) connectDemo(); else void autoConnect(); }, 3000);+ } catch (e) {+ const err = e as Error;+ await target.cancel();+ target.close();+ setOta({ stage: 'find' });+ if (err.name === 'NotFoundError') otaSay(`Didn't find ${OTA.name}. Click Find to try again.`);+ else if (err.message === 'cancelled') otaSay(`Cancelled. The Keyword stays in update mode (as "${OTA.name}") until it gets a good image.`);+ else otaSay(`Update failed: ${err.message}. The Keyword stays in update mode, so you can try again.`, { error: true });+ log('!!', `OTA: ${err.message}`);+ } finally {+ setOta({ busy: false });+ }+}++export const hasOtaImage = () => !!otaImage;++// ---- Settings and theme ----++const darkQuery = matchMedia('(prefers-color-scheme: dark)');+function applyTheme() {+ const t = settings().theme;+ const dark = t === 'dark' || (t === 'system' && darkQuery.matches);+ document.documentElement.dataset.theme = dark ? 'dark' : 'light';+ document.documentElement.style.colorScheme = dark ? 'dark' : 'light';+}+darkQuery.addEventListener('change', applyTheme);++function applySettings() {+ const s = settings();+ applyTheme();+ bridge?.applySettings({ theme: s.theme, closeToTray: s.closeToTray, launchAtLogin: s.launchAtLogin, perApp: s.perApp });+ if (!s.perApp) set({ autoSwitched: false });+}++export function toggleTheme() {+ updateSettings({ theme: document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark' });+}++export async function setNotifications(on: boolean) {+ if (on && 'Notification' in window && Notification.permission === 'default') {+ try { await Notification.requestPermission(); } catch { /* ignored */ }+ }+ updateSettings({ notifications: on });+}++export function resetStats() {+ set((s) => ({ store: { ...s.store, stats: {} } }));+ persist();+ toast('Press counts reset');+}++// ---- Menu, tray and shortcuts ----++let capturing = false;+export function setCapture(on: boolean) {+ capturing = on;+ bridge?.setCapture(on);+}++const inTextField = () => {+ const a = document.activeElement as HTMLElement | null;+ return !!a && (a.tagName === 'TEXTAREA' || (a.tagName === 'INPUT' && !['checkbox', 'radio'].includes((a as HTMLInputElement).type)));+};+const anyDialogOpen = () => {+ const s = get();+ return !!(s.dialog || s.assignUid || s.prompt || s.confirm || s.chooser);+};++export function onMenu(command: MenuCommand, arg?: string) {+ if (capturing) return; // the recorder owns the keyboard+ switch (command) {+ case 'undo': if (inTextField()) document.execCommand('undo'); else if (!anyDialogOpen()) undo(); break;+ case 'redo': if (inTextField()) document.execCommand('redo'); else if (!anyDialogOpen()) redo(); break;+ case 'settings': set({ dialog: 'settings' }); break;+ case 'import': void importFlow(); break;+ case 'export': void exportCurrent(); break;+ case 'export-all': void exportAll(); break;+ case 'connect-usb': connectUsb(); break;+ case 'connect-ble': connectBle(); break;+ case 'disconnect': void disconnect(); break;+ case 'profile': if (arg) switchTo(arg); break;+ case 'next-profile': cycleProfile(1); break;+ case 'prev-profile': cycleProfile(-1); break;+ case 'new-profile': void newProfileFlow(); break;+ case 'library': set({ dialog: 'library' }); break;+ case 'apply': applyProfile(false); break;+ case 'toggle-theme': toggleTheme(); break;+ case 'find': document.querySelector<HTMLInputElement>('#key-filter')?.select(); break;+ case 'update-firmware': void openOta(); break;+ case 'console': set((s) => ({ consoleOpen: !s.consoleOpen })); break;+ }+}++let lastTray = '';+function pushTrayState(s: AppState) {+ if (!bridge) return;+ const state: TrayState = {+ status: s.status,+ profiles: s.store.profiles.map((p) => ({ id: p.id, name: p.name })),+ active: s.store.active,+ battery: s.transport && s.device.battery ? s.device.battery.pct : null,+ };+ const j = JSON.stringify(state);+ if (j !== lastTray) {+ lastTray = j;+ bridge.updateState(state);+ }+}++// ---- Start ----++let started = false;+export async function start() {+ if (started) return;+ started = true;+ useApp.subscribe(pushTrayState);+ bridge?.onMenu(onMenu);+ bridge?.onFrontApp(onFrontApp);+ window.devicePicker?.onList((list: PickerList) => {+ list.devices.sort((a, b) => Number(b.likely) - Number(a.likely));+ set({ chooser: list });+ });++ // In a plain browser (no Electron menu) handle the same shortcuts here.+ if (!bridge) {+ document.addEventListener('keydown', (e) => {+ const mod = MAC ? e.metaKey : e.ctrlKey;+ if (!mod || capturing) return;+ const k = e.key.toLowerCase();+ const profiles = get().store.profiles;+ if (k === 'z' && !e.shiftKey) { if (!inTextField()) { e.preventDefault(); onMenu('undo'); } }+ else if ((k === 'z' && e.shiftKey) || k === 'y') { if (!inTextField()) { e.preventDefault(); onMenu('redo'); } }+ else if (k === 'f') { e.preventDefault(); onMenu('find'); }+ else if (/^[1-9]$/.test(k) && profiles[Number(k) - 1]) { e.preventDefault(); onMenu('profile', profiles[Number(k) - 1].id); }+ });+ }++ // A Keyword plugged back in over USB reconnects straight away.+ if ('serial' in navigator) {+ navigator.serial.addEventListener('connect', async () => {+ if (transport || get().ota.busy || !settings().autoReconnect || settings().lastConnection?.kind !== 'serial') return;+ const port = await findSerialPort();+ if (port) connect(new SerialTransport(port), { auto: true }).catch((e: Error) => log('!!', e.message));+ });+ }++ const loaded = Profiles.normalizeStore(await storage.load());+ set({ store: loaded });+ manualActive = loaded.active;+ applySettings();+ if (bridge) {+ const info = await bridge.appInfo();+ set({ about: `Keyword Monitor ${info.version} · ${info.platform}` });+ }+ void autoConnect();+}diff --git a/app/src/renderer/src/index.css b/app/src/renderer/src/index.cssnew file mode 100644index 0000000..8480c14--- /dev/null+++ b/app/src/renderer/src/index.css@@ -0,0 +1,95 @@+@import 'tailwindcss';++/* dark: follows the resolved theme the app writes to <html data-theme>. */+@custom-variant dark (&:where([data-theme='dark'], [data-theme='dark'] *));++:root {+ --app: #f5f6f8;+ --panel: #ffffff;+ --fg: #1b1d22;+ --muted: #6b7280;+ --line: #d6d9df;+ --accent: #2f6fde;+ --accent-fg: #ffffff;+ --on: #1f9d63;+ --on-soft: #d9f2e6;+ --warn: #b7790a;+ --warn-soft: #fbefd6;+ --danger: #c2413a;+ --off: #9aa1ad;+ --keyword: #2a2f3a;+ --keyword-fg: #f0f2f5;+ --press: #e3ecfb;+}++[data-theme='dark'] {+ --app: #14161a;+ --panel: #1d2026;+ --fg: #e8eaee;+ --muted: #9099a8;+ --line: #333844;+ --accent: #6c9cf0;+ --accent-fg: #0d1220;+ --on: #3cc287;+ --on-soft: #18392b;+ --warn: #e0a83a;+ --warn-soft: #3a2e15;+ --danger: #ef6b63;+ --off: #5d6472;+ --keyword: #3a4150;+ --keyword-fg: #f0f2f5;+ --press: #1d2c47;+}++@theme inline {+ --color-app: var(--app);+ --color-panel: var(--panel);+ --color-fg: var(--fg);+ --color-muted: var(--muted);+ --color-line: var(--line);+ --color-accent: var(--accent);+ --color-accent-fg: var(--accent-fg);+ --color-on: var(--on);+ --color-on-soft: var(--on-soft);+ --color-warn: var(--warn);+ --color-warn-soft: var(--warn-soft);+ --color-danger: var(--danger);+ --color-off: var(--off);+ --color-keyword: var(--keyword);+ --color-keyword-fg: var(--keyword-fg);+ --color-press: var(--press);+ --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;+ --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;+ --animate-pop: pop 1.4s ease-out;+ --animate-blink: blink 0.5s ease-out;++ @keyframes pop {+ 0% { box-shadow: 0 0 0 3px var(--on); }+ 100% { box-shadow: 0 0 0 0 transparent; }+ }+ @keyframes blink {+ 0% { color: var(--accent); }+ 100% { color: inherit; }+ }+}++@layer base {+ html,+ body,+ #root {+ height: 100%;+ }+ body {+ @apply bg-app font-sans text-[13px] text-fg antialiased;+ }+ button:not(:disabled),+ [role='button']:not(:disabled) {+ cursor: pointer;+ }+ dialog::backdrop {+ background: rgb(0 0 0 / 0.4);+ }+ :focus-visible {+ @apply outline-2 outline-offset-1 outline-accent;+ }+}diff --git a/app/src/renderer/src/lib/hid.ts b/app/src/renderer/src/lib/hid.tsnew file mode 100644index 0000000..f9397d2--- /dev/null+++ b/app/src/renderer/src/lib/hid.ts@@ -0,0 +1,206 @@+// USB HID keyboard usages (HID Usage Tables, page 0x07) keyed by KeyboardEvent.code.+import type { Step } from './types.ts';++export interface HidKey {+ code: string;+ usage: number;+ label: string;+}++export const KEYS: HidKey[] = [];+const add = (code: string, usage: number, label: string) => KEYS.push({ code, usage, label });++for (let i = 0; i < 26; i++) {+ const c = String.fromCharCode(65 + i);+ add(`Key${c}`, 0x04 + i, c);+}+'1234567890'.split('').forEach((d, i) => add(`Digit${d}`, 0x1e + i, d));+([+ ['Enter', 0x28, 'Enter'], ['Escape', 0x29, 'Esc'], ['Backspace', 0x2a, 'Backspace'],+ ['Tab', 0x2b, 'Tab'], ['Space', 0x2c, 'Space'], ['Minus', 0x2d, '-'], ['Equal', 0x2e, '='],+ ['BracketLeft', 0x2f, '['], ['BracketRight', 0x30, ']'], ['Backslash', 0x31, '\\'],+ ['Semicolon', 0x33, ';'], ['Quote', 0x34, "'"], ['Backquote', 0x35, '`'], ['Comma', 0x36, ','],+ ['Period', 0x37, '.'], ['Slash', 0x38, '/'], ['CapsLock', 0x39, 'Caps Lock'],+] as const).forEach(([code, usage, label]) => add(code, usage, label));+for (let i = 1; i <= 12; i++) add(`F${i}`, 0x39 + i, `F${i}`);+([+ ['PrintScreen', 0x46, 'Print Screen'], ['ScrollLock', 0x47, 'Scroll Lock'], ['Pause', 0x48, 'Pause'],+ ['Insert', 0x49, 'Insert'], ['Home', 0x4a, 'Home'], ['PageUp', 0x4b, 'Page Up'],+ ['Delete', 0x4c, 'Delete'], ['End', 0x4d, 'End'], ['PageDown', 0x4e, 'Page Down'],+ ['ArrowRight', 0x4f, '→'], ['ArrowLeft', 0x50, '←'], ['ArrowDown', 0x51, '↓'], ['ArrowUp', 0x52, '↑'],+ ['NumLock', 0x53, 'Num Lock'], ['NumpadDivide', 0x54, 'Num /'], ['NumpadMultiply', 0x55, 'Num *'],+ ['NumpadSubtract', 0x56, 'Num -'], ['NumpadAdd', 0x57, 'Num +'], ['NumpadEnter', 0x58, 'Num Enter'],+] as const).forEach(([code, usage, label]) => add(code, usage, label));+for (let i = 1; i <= 9; i++) add(`Numpad${i}`, 0x58 + i, `Num ${i}`);+([+ ['Numpad0', 0x62, 'Num 0'], ['NumpadDecimal', 0x63, 'Num .'], ['IntlBackslash', 0x64, 'Intl \\'],+ ['ContextMenu', 0x65, 'Menu'], ['NumpadEqual', 0x67, 'Num ='],+] as const).forEach(([code, usage, label]) => add(code, usage, label));+for (let i = 13; i <= 24; i++) add(`F${i}`, 0x5b + i, `F${i}`);++/** Media keys go through the Consumer page (0x0C), sent with MAPC. Keyed by KeyboardEvent.code where there is one. */+export const CONSUMER: HidKey[] = ([+ ['MediaPlayPause', 0xcd, 'Play/Pause'], ['MediaTrackNext', 0xb5, 'Next Track'],+ ['MediaTrackPrevious', 0xb6, 'Previous Track'], ['MediaStop', 0xb7, 'Stop'],+ ['AudioVolumeMute', 0xe2, 'Mute'], ['AudioVolumeUp', 0xe9, 'Volume Up'],+ ['AudioVolumeDown', 0xea, 'Volume Down'], ['', 0x6f, 'Brightness Up'],+ ['', 0x70, 'Brightness Down'], ['LaunchApp2', 0x192, 'Calculator'],+ ['LaunchMail', 0x18a, 'Mail'], ['BrowserSearch', 0x221, 'Search'],+ ['BrowserHome', 0x223, 'Browser Home'],+] as const).map(([code, usage, label]) => ({ code, usage, label }));+const consumerByCode = new Map(CONSUMER.filter((c) => c.code).map((c) => [c.code, c]));+const consumerByUsage = new Map(CONSUMER.map((c) => [c.usage, c]));++const byCode = new Map(KEYS.map((k) => [k.code, k]));+export const byUsage = new Map(KEYS.map((k) => [k.usage, k]));++export interface Modifier {+ bit: number;+ code: string;+ name: string;+}++/** Modifier byte bits, as in the HID boot keyboard report. */+export const MODS: Modifier[] = [+ { bit: 0, code: 'ControlLeft', name: 'Ctrl' },+ { bit: 1, code: 'ShiftLeft', name: 'Shift' },+ { bit: 2, code: 'AltLeft', name: 'Alt' },+ { bit: 3, code: 'MetaLeft', name: 'GUI' },+ { bit: 4, code: 'ControlRight', name: 'Right Ctrl' },+ { bit: 5, code: 'ShiftRight', name: 'Right Shift' },+ { bit: 6, code: 'AltRight', name: 'Right Alt' },+ { bit: 7, code: 'MetaRight', name: 'Right GUI' },+];+const modByCode = new Map(MODS.map((m) => [m.code, m]));++export function modName(m: Modifier, mac: boolean): string {+ if (!mac) return m.name.replace('GUI', 'Win');+ return m.name.replace('GUI', 'Cmd').replace('Alt', 'Option');+}++export function consumerLabel(usage: number): string {+ return consumerByUsage.get(usage)?.label || `Media 0x${usage.toString(16).padStart(4, '0')}`;+}++/** "Ctrl+Shift+A", "Cmd+Space", "Shift" (modifier only), "" when empty. */+export function comboLabel(mods: number, usage: number, mac: boolean): string {+ const parts = MODS.filter((m) => mods & (1 << m.bit)).map((m) => modName(m, mac));+ if (usage) parts.push(byUsage.get(usage)?.label || `0x${usage.toString(16).padStart(2, '0')}`);+ return parts.join('+');+}++export interface KeyLike {+ code: string;+ ctrlKey?: boolean;+ shiftKey?: boolean;+ altKey?: boolean;+ metaKey?: boolean;+}+export type Captured = { mods: number; usage: number; consumer?: undefined } | { consumer: number; mods?: undefined; usage?: undefined };++/**+ * Turns a key event into {mods, usage}, or {consumer} for a media key. usage is 0 when only+ * modifiers are held. Returns null for keys HID can't send.+ */+export function fromEvent(e: KeyLike): Captured | null {+ const media = consumerByCode.get(e.code);+ if (media) return { consumer: media.usage };+ const mods = (e.ctrlKey ? 1 : 0) | (e.shiftKey ? 2 : 0) | (e.altKey ? 4 : 0) | (e.metaKey ? 8 : 0);+ const mod = modByCode.get(e.code);+ if (mod) return { mods: mods | (1 << mod.bit), usage: 0 };+ const k = byCode.get(e.code);+ if (!k) return null;+ return { mods, usage: k.usage };+}++// Characters on a US layout -> [mods, usage] taps, for typing text with a macro.+const SHIFTED: Record<string, string> = {+ '!': '1', '@': '2', '#': '3', $: '4', '%': '5', '^': '6', '&': '7', '*': '8', '(': '9', ')': '0',+ _: '-', '+': '=', '{': '[', '}': ']', '|': '\\', ':': ';', '"': "'", '~': '`', '<': ',', '>': '.', '?': '/',+};+const PLAIN: Record<string, number> = {+ '-': 0x2d, '=': 0x2e, '[': 0x2f, ']': 0x30, '\\': 0x31, ';': 0x33, "'": 0x34, '`': 0x35,+ ',': 0x36, '.': 0x37, '/': 0x38, ' ': 0x2c, '\n': 0x28, '\t': 0x2b,+};+function charToStep(ch: string): Step | null {+ if (/[a-z]/.test(ch)) return [0, 0x04 + ch.charCodeAt(0) - 97];+ if (/[A-Z]/.test(ch)) return [2, 0x04 + ch.charCodeAt(0) - 65];+ if (/[1-9]/.test(ch)) return [0, 0x1e + Number(ch) - 1];+ if (ch === '0') return [0, 0x27];+ if (ch in PLAIN) return [0, PLAIN[ch]];+ if (ch in SHIFTED) {+ const base = charToStep(SHIFTED[ch]);+ return base && [2, base[1]];+ }+ return null;+}++/** Returns the taps that type text, and the characters with no US-layout key. */+export function textToSteps(text: string): { steps: Step[]; skipped: string[] } {+ const steps: Step[] = [];+ const skipped: string[] = [];+ for (const ch of text) {+ const st = charToStep(ch);+ if (st) steps.push(st);+ else skipped.push(ch);+ }+ return { steps, skipped };+}++const charByStep = new Map<string, string>();+for (let c = 32; c < 127; c++) {+ const ch = String.fromCharCode(c);+ const st = charToStep(ch);+ if (st && !charByStep.has(st.join(':'))) charByStep.set(st.join(':'), ch);+}+const stepChar = (st: Step) => charByStep.get(st.join(':')) ?? null;++export const stepLabel = ([mods, key]: Step, mac: boolean) => comboLabel(mods, key, mac);++/** Label for a whole sequence. Runs of printable characters read as text: '"Hi", Cmd+C'. */+export function macroLabel(steps: Step[], mac: boolean): string {+ const out: string[] = [];+ let text = '';+ const flush = () => {+ if (text) out.push(`"${text}"`);+ text = '';+ };+ for (const st of steps) {+ const ch = stepChar(st);+ if (ch != null) text += ch;+ else {+ flush();+ out.push(stepLabel(st, mac));+ }+ }+ flush();+ return out.join(', ');+}++export interface SearchResult {+ kind: 'k' | 'c';+ usage: number;+ label: string;+}++/** Search over keys and media keys for the Assign dialog, best match first. */+export function search(query: string): SearchResult[] {+ const q = query.trim().toLowerCase();+ const all = [+ ...KEYS.map((k) => ({ kind: 'k' as const, usage: k.usage, label: k.label, hay: `${k.label} ${k.code}`.toLowerCase() })),+ ...CONSUMER.map((c) => ({ kind: 'c' as const, usage: c.usage, label: c.label, hay: `${c.label} ${c.code} media`.toLowerCase() })),+ ];+ const strip = ({ kind, usage, label }: SearchResult): SearchResult => ({ kind, usage, label });+ if (!q) return all.map(strip);+ const scored: [number, SearchResult][] = [];+ for (const r of all) {+ const label = r.label.toLowerCase();+ let score = -1;+ if (label === q) score = 0;+ else if (label.startsWith(q)) score = 1;+ else if (r.hay.includes(q)) score = 2;+ else if (q.split(/\s+/).every((w) => r.hay.includes(w))) score = 3;+ if (score >= 0) scored.push([score, strip(r)]);+ }+ return scored.sort((a, b) => a[0] - b[0]).map(([, r]) => r);+}diff --git a/app/src/renderer/src/lib/profiles.ts b/app/src/renderer/src/lib/profiles.tsnew file mode 100644index 0000000..d6213ed--- /dev/null+++ b/app/src/renderer/src/lib/profiles.ts@@ -0,0 +1,170 @@+// Keymap profiles and the app's saved state.+import type { Entry, HostActionType, Profile, Settings, Step, Store } from './types.ts';++const FORMAT = 'keyword-profile';+const LIBRARY_FORMAT = 'keyword-profile-library';+export const HOST_TYPES: HostActionType[] = ['url', 'app', 'cmd', 'next-profile', 'profile'];+const MAX_MACRO_STEPS = 16;++export const DEFAULT_SETTINGS: Settings = {+ theme: 'system',+ autoReconnect: true,+ perApp: false, // switch profiles by the app in front+ notifications: false, // OS notification on connect/disconnect+ closeToTray: false,+ launchAtLogin: false,+ lastConnection: null,+};++const newId = () => Math.random().toString(36).slice(2, 10);+const byte = (n: unknown) => (Number(n) || 0) & 0xff;+// Loaded files are untrusted, so the cleaners take anything.+// eslint-disable-next-line @typescript-eslint/no-explicit-any+type Loose = any;++export function newProfile(name: string, keys: Record<string, Entry> = {}, apps: string[] = []): Profile {+ return { id: newId(), name: name || 'Profile', apps: [...apps], keys: structuredClone(keys) };+}++export function cleanEntry(m: Loose): Entry | null {+ if (!m || typeof m !== 'object') return null;+ const entry: Entry = {};+ if (m.host && HOST_TYPES.includes(m.host.type)) {+ entry.host = { type: m.host.type, value: typeof m.host.value === 'string' ? m.host.value.slice(0, 1000) : '' };+ } else if (Array.isArray(m.macro) && m.macro.length) {+ entry.macro = m.macro.slice(0, MAX_MACRO_STEPS)+ .filter((s: unknown) => Array.isArray(s) && s.length === 2)+ .map(([mods, key]: [unknown, unknown]): Step => [byte(mods), byte(key)]);+ } else {+ const consumer = (Number(m.consumer) || 0) & 0xffff;+ if (consumer) Object.assign(entry, { mods: 0, key: 0, consumer });+ else Object.assign(entry, { mods: byte(m.mods), key: byte(m.key) });+ }+ if (m.hold && (m.hold.mods || m.hold.key)) {+ entry.hold = { mods: byte(m.hold.mods), key: byte(m.hold.key), ms: Math.min(2000, Math.max(50, Number(m.hold.ms) || 200)) };+ }+ if (typeof m.name === 'string' && m.name.trim()) entry.name = m.name.trim().slice(0, 40);+ return entry;+}++export function cleanKeys(keys: Loose): Record<string, Entry> {+ const out: Record<string, Entry> = {};+ if (!keys || typeof keys !== 'object') return out;+ for (const [uid, m] of Object.entries(keys)) {+ if (!/^([0-9a-fA-F]{24}|[0-9a-fA-F]{8})$/.test(uid)) continue;+ const entry = cleanEntry(m);+ if (entry) out[uid.toUpperCase()] = entry;+ }+ return out;+}++const cleanApps = (apps: Loose): string[] =>+ Array.isArray(apps)+ ? [...new Set(apps.filter((a): a is string => typeof a === 'string' && !!a.trim()).map((a) => a.trim().slice(0, 80)))]+ : [];++/** Does an entry do anything when pressed? */+export const isMapped = (m: Entry | null | undefined) => !!(m && (m.host || m.macro?.length || m.consumer || m.mods || m.key));++/** What gets written by Export. */+export function exportProfile(p: Profile): string {+ return JSON.stringify({ format: FORMAT, version: 1, name: p.name, apps: cleanApps(p.apps), keys: cleanKeys(p.keys) }, null, 2);+}++/** Every profile in one file. */+export function exportLibrary(profiles: Profile[]): string {+ return JSON.stringify({+ format: LIBRARY_FORMAT,+ version: 1,+ profiles: profiles.map((p) => ({ name: p.name, apps: cleanApps(p.apps), keys: cleanKeys(p.keys) })),+ }, null, 2);+}++/** Parses an exported profile or library into new profiles. Throws with a readable message if it's neither. */+export function importProfiles(text: string): Profile[] {+ let data: Loose;+ try {+ data = JSON.parse(text);+ } catch {+ throw new Error('Not a JSON file');+ }+ const one = (d: Loose, fallback: string) =>+ newProfile(typeof d.name === 'string' && d.name.trim() ? d.name.trim() : fallback, cleanKeys(d.keys), cleanApps(d.apps));+ if (data?.format === LIBRARY_FORMAT) {+ if (data.version !== 1) throw new Error(`Unsupported library version ${data.version}`);+ if (!Array.isArray(data.profiles)) throw new Error('Library has no profiles');+ return data.profiles.filter((d: unknown) => d && typeof d === 'object').map((d: Loose) => one(d, 'Imported'));+ }+ if (!data || data.format !== FORMAT) throw new Error('Not a Keyword profile');+ if (data.version !== 1) throw new Error(`Unsupported profile version ${data.version}`);+ return [one(data, 'Imported')];+}++export const importProfile = (text: string) => importProfiles(text)[0];++/** Repairs a store loaded from disk so the UI can trust it. */+export function normalizeStore(store: Loose): Store {+ const profiles: Profile[] = Array.isArray(store?.profiles)+ ? store.profiles.filter((p: unknown) => p && typeof p === 'object').map((p: Loose) => ({+ id: typeof p.id === 'string' ? p.id : newId(),+ name: typeof p.name === 'string' && p.name ? p.name : 'Profile',+ apps: cleanApps(p.apps),+ keys: cleanKeys(p.keys),+ }))+ : [];+ if (!profiles.length) profiles.push(newProfile('Default'));+ const active = profiles.some((p) => p.id === store?.active) ? store.active : profiles[0].id;+ const settings: Settings = { ...DEFAULT_SETTINGS };+ for (const k of Object.keys(DEFAULT_SETTINGS) as (keyof Settings)[]) {+ const v = store?.settings?.[k];+ if (v !== undefined && (typeof v === typeof DEFAULT_SETTINGS[k] || DEFAULT_SETTINGS[k] === null)) {+ (settings as Loose)[k] = v;+ }+ }+ if (!['system', 'light', 'dark'].includes(settings.theme)) settings.theme = 'system';+ const stats: Record<string, number> = {};+ for (const [uid, n] of Object.entries(store?.stats || {})) {+ if (typeof n === 'number' && Number.isFinite(n) && n > 0) stats[uid] = Math.floor(n);+ }+ return { active, profiles, settings, stats };+}++/** Which profile should be active for the app in front, or null for "no rule". */+export function profileForApp(profiles: Profile[], appName: string | null): Profile | null {+ if (!appName) return null;+ const a = appName.toLowerCase();+ return profiles.find((p) => p.apps.some((x) => x.toLowerCase() === a)) || null;+}++/** Undo/redo over JSON snapshots of the parts the user edits. */+export class History<T> {+ private undoStack: { snapshot: string; label: string }[] = [];+ private redoStack: { snapshot: string; label: string }[] = [];+ private readonly limit: number;+ constructor(limit = 100) {+ this.limit = limit;+ }+ /** Call before a change, with the state as it is now. */+ record(snapshot: T, label: string) {+ this.undoStack.push({ snapshot: JSON.stringify(snapshot), label });+ if (this.undoStack.length > this.limit) this.undoStack.shift();+ this.redoStack = [];+ }+ get canUndo() { return this.undoStack.length > 0; }+ get canRedo() { return this.redoStack.length > 0; }+ get undoLabel() { return this.undoStack.at(-1)?.label || ''; }+ get redoLabel() { return this.redoStack.at(-1)?.label || ''; }+ /** Takes the current state and returns the one to restore, or null. */+ undo(current: T): { state: T; label: string } | null {+ const e = this.undoStack.pop();+ if (!e) return null;+ this.redoStack.push({ snapshot: JSON.stringify(current), label: e.label });+ return { state: JSON.parse(e.snapshot), label: e.label };+ }+ redo(current: T): { state: T; label: string } | null {+ const e = this.redoStack.pop();+ if (!e) return null;+ this.undoStack.push({ snapshot: JSON.stringify(current), label: e.label });+ return { state: JSON.parse(e.snapshot), label: e.label };+ }+}diff --git a/app/src/renderer/src/lib/protocol.ts b/app/src/renderer/src/lib/protocol.tsnew file mode 100644index 0000000..2e1dc54--- /dev/null+++ b/app/src/renderer/src/lib/protocol.ts@@ -0,0 +1,256 @@+// Keyword host protocol: newline-terminated ASCII lines, the same over USB CDC and BLE.+// See PROTOCOL.md for the full description.+import type { Entry, Side, Step } from './types.ts';++export const SIDES: readonly Side[] = ['L', 'R', 'T'];++/** Nordic UART Service, used as a plain byte pipe over BLE. */+export const NUS = {+ service: '6e400001-b5a3-f393-e0a9-e50e24dcca9e',+ rx: '6e400002-b5a3-f393-e0a9-e50e24dcca9e', // host writes here+ tx: '6e400003-b5a3-f393-e0a9-e50e24dcca9e', // keyword notifies here+} as const;++/** ST BLE_Ota bootloader on the Keyword, reached with the OTA command. */+export const OTA = {+ name: 'Keyword OTA',+ service: '0000fe20-cc7a-482a-984a-7f2ed5b3e58f',+ base: '0000fe22-8e22-4541-9d4c-21edae82ed19', // write: [cmd, offset >> 16, >> 8, offset]+ confirm: '0000fe23-8e22-4541-9d4c-21edae82ed19', // indicate: 0x01 once the image is accepted+ raw: '0000fe24-8e22-4541-9d4c-21edae82ed19', // write without response: image bytes, in order+ START: 0x02,+ FINISH: 0x07,+ CANCEL: 0x08,+ FLASH_BASE: 0x08000000,+ APP_OFFSET: 0x7000, // the app lives at 0x08007000, behind the bootloader+ MAX_SIZE: 0x08100000 - 0x08007000,+} as const;++export const MAX_MACRO_STEPS = 16;+export const DEFAULT_HOLD_MS = 200;++export const otaBaseCommand = (op: number, offset = 0) =>+ new Uint8Array([op, (offset >> 16) & 0xff, (offset >> 8) & 0xff, offset & 0xff]);++/** Sanity checks an app image before sending it: the right file, linked for 0x08007000. */+export function checkAppImage(bytes: Uint8Array | null): { ok: true; size: number } | { ok: false; error: string } {+ if (!bytes || bytes.length < 64) return { ok: false, error: 'The file is too small to be a Keyword firmware image.' };+ if (bytes.length > OTA.MAX_SIZE) return { ok: false, error: 'The file is too big for the Keyword.' };+ const word = (i: number) => (bytes[i] | (bytes[i + 1] << 8) | (bytes[i + 2] << 16) | (bytes[i + 3] << 24)) >>> 0;+ const sp = word(0);+ const reset = word(4);+ if (sp < 0x20000000 || sp > 0x20040000 || !(reset & 1)) {+ return { ok: false, error: "This doesn't look like a Keyword firmware image (no vector table at the start)." };+ }+ const appStart = OTA.FLASH_BASE + OTA.APP_OFFSET;+ if (reset < appStart || reset >= appStart + bytes.length) {+ return {+ ok: false,+ error: reset < appStart+ ? 'This image starts at 0x08000000, so it is the full image for USB DFU. Pick keyword_app.bin instead.'+ : 'This image is not linked for 0x08007000.',+ };+ }+ return { ok: true, size: bytes.length };+}++/**+ * Splits an image into OTA writes. The bootloader programs flash 8 bytes at a time,+ * so chunks are multiples of 8 and the tail is padded with 0xFF (erased flash).+ */+export function otaChunks(bytes: Uint8Array, size: number): Uint8Array<ArrayBuffer>[] {+ const step = Math.max(8, size - (size % 8));+ const padded = new Uint8Array(Math.ceil(bytes.length / 8) * 8).fill(0xff);+ padded.set(bytes);+ const out: Uint8Array<ArrayBuffer>[] = [];+ for (let i = 0; i < padded.length; i += step) out.push(padded.subarray(i, i + step));+ return out;+}++/** Splits a stream into lines ending in \n, \r\n or a bare \r. Handles partial chunks. */+export class LineBuffer {+ private buf = '';+ private readonly onLine: (line: string) => void;+ constructor(onLine: (line: string) => void) {+ this.onLine = onLine;+ }+ push(text: string) {+ this.buf += text;+ let i: number;+ while ((i = this.buf.search(/[\r\n]/)) >= 0) {+ const line = this.buf.slice(0, i).trim();+ this.buf = this.buf.slice(i + 1); // a \r\n leaves an empty line, which is skipped+ if (line) this.onLine(line);+ }+ if (this.buf.length > 4096) this.buf = ''; // garbage with no newline+ }+}++/** Parses "KEY=val KEY=val" into an object. */+function parseFields(parts: string[]): Record<string, string> {+ const out: Record<string, string> = {};+ for (const p of parts) {+ const eq = p.indexOf('=');+ if (eq > 0) out[p.slice(0, eq)] = p.slice(eq + 1);+ }+ return out;+}++export const isUid = (u: unknown): u is string => typeof u === 'string' && /^([0-9a-fA-F]{24}|[0-9a-fA-F]{8})$/.test(u);+const hex2 = (n: number) => (n & 0xff).toString(16).toUpperCase().padStart(2, '0');+const hex4 = (n: number) => (n & 0xffff).toString(16).toUpperCase().padStart(4, '0');+const int = (s: string | undefined, radix = 10) => {+ const n = parseInt(s ?? '', radix);+ return Number.isFinite(n) ? n : 0;+};++/** Host -> Keyword commands. */+export const cmd = {+ hello: () => 'HELLO',+ sides: () => 'SIDES?',+ keys: () => 'KEYS?',+ battery: () => 'BATT?',+ map: (uid: string, mods: number, key: number) => `MAP uid=${uid} mods=${hex2(mods)} key=${hex2(key)}`,+ mapConsumer: (uid: string, usage: number) => `MAPC uid=${uid} usage=${hex4(usage)}`,+ macro: (uid: string, steps: Step[]) =>+ `MACRO uid=${uid} seq=${steps.slice(0, MAX_MACRO_STEPS).map(([m, k]) => hex2(m) + hex2(k)).join(',')}`,+ hold: (uid: string, mods: number, key: number, ms?: number) =>+ `HOLD uid=${uid} mods=${hex2(mods)} key=${hex2(key)} ms=${Math.round(ms || DEFAULT_HOLD_MS)}`,+ mapQuery: (uid: string) => `MAP? uid=${uid}`,+ unmap: (uid: string) => `UNMAP uid=${uid}`,+ flash: (uid: string) => `FLASH uid=${uid}`,+ ota: () => 'OTA',+ dfu: () => 'DFU',+ stack: () => 'STACK?',+ clear: () => 'CLEAR',+ save: () => 'SAVE',+};++export const hasHold = (m: Entry) => !!(m.hold && (m.hold.mods || m.hold.key));++/**+ * One profile entry -> the commands that program it into the Keyword.+ * Computer actions (run by the app) and empty entries need nothing.+ * caps is the set from HELLO; commands it doesn't list are left out.+ */+export function entryCommands(uid: string, m: Entry, caps: ReadonlySet<string>): string[] {+ const out: string[] = [];+ if (m.host) return out;+ if (m.macro?.length) {+ if (caps.has('macro')) out.push(cmd.macro(uid, m.macro));+ } else if (m.consumer) out.push(cmd.mapConsumer(uid, m.consumer));+ else if (m.mods || m.key) out.push(cmd.map(uid, m.mods || 0, m.key || 0));+ if (m.hold && hasHold(m) && caps.has('hold')) out.push(cmd.hold(uid, m.hold.mods || 0, m.hold.key || 0, m.hold.ms));+ return out;+}++/** The main MAP/MAPC command for an entry, or null. */+export function mapCommand(uid: string, m: Entry): string | null {+ if (m.consumer) return cmd.mapConsumer(uid, m.consumer);+ if (m.mods || m.key) return cmd.map(uid, m.mods || 0, m.key || 0);+ return null;+}++/** Commands that make the Keyword match a profile exactly. */+export function profileCommands(keys: Record<string, Entry>, caps: ReadonlySet<string> = new Set()): string[] {+ const out = [cmd.clear()];+ for (const [uid, m] of Object.entries(keys)) {+ if (isUid(uid)) out.push(...entryCommands(uid.toUpperCase(), m, caps));+ }+ out.push(cmd.save());+ return out;+}++export type Message =+ | { type: 'hello'; fw: string; proto: number; caps: Set<string>; kb: number | null }+ | { type: 'sides'; sides: Partial<Record<Side, boolean>> }+ | { type: 'keyAdd'; uid: string; at: Side | null; v: number | null; via?: string | null; depth?: number | null }+ | { type: 'keyRemove'; uid: string }+ | { type: 'keysEnd' }+ | { type: 'press'; uid: string; down: boolean }+ | { type: 'map'; uid: string; mods: number; key: number }+ | { type: 'mapConsumer'; uid: string; usage: number }+ | { type: 'macro'; uid: string; steps: Step[] }+ | { type: 'hold'; uid: string; mods: number; key: number; ms: number }+ | { type: 'battery'; pct: number; charging: boolean; usb: boolean }+ | { type: 'flashProgress'; uid: string; pct: number }+ | { type: 'stack'; stack: string; v: string | null; fus: string | null }+ | { type: 'ok'; what: string; uid?: string; [field: string]: string | undefined }+ | { type: 'error'; message: string }+ | { type: 'unknown'; line: string };++const isSide = (s: string | undefined): s is Side => SIDES.includes(s as Side);++/** Parses one line from the Keyword. Anything unrecognised comes back as {type: 'unknown'}. */+export function parseLine(line: string): Message {+ const parts = line.trim().split(/\s+/);+ const name = parts[0];+ const f = parseFields(parts.slice(1));+ const uid = isUid(f.uid) ? f.uid.toUpperCase() : null;+ switch (name) {+ case 'KEYWORD':+ return {+ type: 'hello',+ fw: f.v || '?',+ proto: int(f.proto),+ caps: new Set((f.caps || '').split(',').filter(Boolean)),+ kb: f.kb != null ? int(f.kb) : null,+ };+ case 'SIDES': {+ const sides: Partial<Record<Side, boolean>> = {};+ for (const s of SIDES) if (s in f) sides[s] = f[s] === '1';+ if (!Object.keys(sides).length) break;+ return { type: 'sides', sides };+ }+ case 'KEY+':+ if (!uid) break;+ return {+ type: 'keyAdd',+ uid,+ at: isSide(f.at) ? f.at : null,+ v: f.v != null ? int(f.v) : null,+ // Keybits relayed through another Keybit: at=X, via=<uid of the next Keybit in>, depth=<hops>.+ ...(f.via ? { via: isUid(f.via) ? f.via.toUpperCase() : null, depth: int(f.depth) || null } : {}),+ };+ case 'KEY-':+ if (!uid) break;+ return { type: 'keyRemove', uid };+ case 'KEYS':+ if (parts[1] === 'END') return { type: 'keysEnd' };+ break;+ case 'PRESS':+ if (!uid) break;+ return { type: 'press', uid, down: f.down === '1' };+ case 'MAP':+ if (!uid) break;+ return { type: 'map', uid, mods: int(f.mods, 16), key: int(f.key, 16) };+ case 'MAPC':+ if (!uid) break;+ return { type: 'mapConsumer', uid, usage: int(f.usage, 16) };+ case 'MACRO':+ if (!uid) break;+ return {+ type: 'macro',+ uid,+ steps: (f.seq || '').split(',').filter((s) => /^[0-9a-fA-F]{4}$/.test(s))+ .map((s): Step => [int(s.slice(0, 2), 16), int(s.slice(2), 16)]),+ };+ case 'HOLD':+ if (!uid) break;+ return { type: 'hold', uid, mods: int(f.mods, 16), key: int(f.key, 16), ms: int(f.ms) || DEFAULT_HOLD_MS };+ case 'BATT':+ if (f.pct == null) break;+ return { type: 'battery', pct: Math.max(0, Math.min(100, int(f.pct))), charging: f.chg === '1', usb: f.usb === '1' };+ case 'FLASH':+ if (!uid) break;+ return { type: 'flashProgress', uid, pct: Math.max(0, Math.min(100, int(f.pct))) };+ case 'STACK':+ // STACK ble v=1.24.0 fus=2.2.0 | STACK none fus=x.y.z | STACK unknown+ return { type: 'stack', stack: parts[1] || 'unknown', v: f.v || null, fus: f.fus || null };+ case 'OK':+ return { type: 'ok', what: parts[1] || '', ...parseFields(parts.slice(2)) };+ case 'ERR':+ return { type: 'error', message: parts.slice(1).join(' ') };+ }+ return { type: 'unknown', line };+}diff --git a/app/src/renderer/src/lib/templates.ts b/app/src/renderer/src/lib/templates.tsnew file mode 100644index 0000000..6ce18ef--- /dev/null+++ b/app/src/renderer/src/lib/templates.ts@@ -0,0 +1,89 @@+// Ready-made profiles. Each template is a list of actions handed out to Keybits in order+// (left, top edge, right, then the rest), so a 3-key setup takes the first three.+import type { Entry, Side } from './types.ts';++// Modifier bits: 1 Ctrl, 2 Shift, 4 Alt, 8 GUI (Cmd/Win).+const C = 1, S = 2, A = 4, G = 8;+const k = (key: number, mods = 0, name?: string): Entry => ({ mods, key, ...(name ? { name } : {}) });+const media = (consumer: number, name: string): Entry => ({ consumer, mods: 0, key: 0, name });+// HID usages used below.+const U = {+ A: 0x04, C: 0x06, D: 0x07, E: 0x08, L: 0x0f, P: 0x13, Q: 0x14, R: 0x15, S: 0x16, T: 0x17, V: 0x19, W: 0x1a, X: 0x1b, Y: 0x1c, Z: 0x1d,+ N3: 0x20, N4: 0x21, N5: 0x22, Space: 0x2c, Slash: 0x38, Backquote: 0x35, BracketL: 0x2f, BracketR: 0x30,+ F5: 0x3e, F11: 0x44, PrintScreen: 0x46, Left: 0x50, Right: 0x4f, Up: 0x52, F13: 0x68,+};++export interface Template {+ id: string;+ name: string;+ description: string;+ apps?: string[];+ build(mac: boolean): Entry[];+}++export const TEMPLATES: Template[] = [+ {+ id: 'media', name: 'Media controls', description: 'Play/pause, skip and volume.',+ build: () => [media(0xcd, 'Play/Pause'), media(0xb6, 'Previous'), media(0xb5, 'Next'),+ media(0xe2, 'Mute'), media(0xea, 'Volume down'), media(0xe9, 'Volume up')],+ },+ {+ id: 'editing', name: 'Editing', description: 'Copy, paste, undo and friends.',+ build: (mac) => {+ const M = mac ? G : C;+ return [k(U.C, M, 'Copy'), k(U.V, M, 'Paste'), k(U.Z, M, 'Undo'),+ mac ? k(U.Z, G | S, 'Redo') : k(U.Y, C, 'Redo'), k(U.X, M, 'Cut'), k(U.A, M, 'Select all')];+ },+ },+ {+ id: 'meetings', name: 'Meetings', description: 'Mute and camera for Zoom and Google Meet.', apps: ['zoom.us', 'Zoom'],+ build: (mac) => mac+ ? [k(U.A, G | S, 'Zoom mute'), k(U.V, G | S, 'Zoom video'), k(U.D, G, 'Meet mute'), k(U.E, G, 'Meet camera')]+ : [k(U.A, A, 'Zoom mute'), k(U.V, A, 'Zoom video'), k(U.D, C, 'Meet mute'), k(U.E, C, 'Meet camera')],+ },+ {+ id: 'stream', name: 'Streaming (F13+)', description: 'F13 to F18, which no app uses by default. Bind them as hotkeys in OBS.',+ build: () => [0, 1, 2, 3, 4, 5].map((i) => k(U.F13 + i, 0, `Scene ${i + 1}`)),+ },+ {+ id: 'screens', name: 'Screenshots', description: 'Whole screen, area and the capture toolbar.',+ build: (mac) => mac+ ? [k(U.N3, G | S, 'Full screen'), k(U.N4, G | S, 'Area'), k(U.N5, G | S, 'Capture menu')]+ : [k(U.PrintScreen, 0, 'Full screen'), k(U.S, G | S, 'Snip area')],+ },+ {+ id: 'browser', name: 'Browser', description: 'Tabs, history and reload.',+ build: (mac) => {+ const M = mac ? G : C;+ return [k(U.T, M, 'New tab'), k(U.W, M, 'Close tab'), k(U.T, M | S, 'Reopen tab'),+ mac ? k(U.BracketL, G, 'Back') : k(U.Left, A, 'Back'), mac ? k(U.BracketR, G, 'Forward') : k(U.Right, A, 'Forward'), k(U.R, M, 'Reload')];+ },+ },+ {+ id: 'code', name: 'VS Code', description: 'Command palette, quick open, terminal and comments.', apps: ['Code', 'Visual Studio Code'],+ build: (mac) => {+ const M = mac ? G : C;+ return [k(U.P, M | S, 'Commands'), k(U.P, M, 'Quick open'), k(U.Backquote, C, 'Terminal'), k(U.Slash, M, 'Comment'), k(U.F5, 0, 'Run/debug')];+ },+ },+ {+ id: 'system', name: 'System', description: 'Search, lock screen and overview.',+ build: (mac) => mac+ ? [k(U.Space, G, 'Spotlight'), k(U.Q, C | G, 'Lock screen'), k(U.Up, C, 'Mission Control')]+ : [k(0, G, 'Start menu'), k(U.L, G, 'Lock screen'), k(U.D, G, 'Show desktop')],+ },+];++/** The order Keybits are handed actions in. */+const SIDE_ORDER: Record<string, number> = { L: 0, T: 1, R: 2 };+export function orderUids(uids: string[], sideOf: (uid: string) => Side | null | undefined): string[] {+ return [...uids].sort((a, b) => (SIDE_ORDER[sideOf(a) ?? ''] ?? 9) - (SIDE_ORDER[sideOf(b) ?? ''] ?? 9) || a.localeCompare(b));+}++/** Hands a template's actions to the given Keybits. */+export function applyTemplate(t: Template, uids: string[], mac: boolean) {+ const actions = t.build(mac);+ const keys: Record<string, Entry> = {};+ uids.slice(0, actions.length).forEach((uid, i) => { keys[uid] = actions[i]; });+ return { keys, apps: t.apps || [], used: Math.min(uids.length, actions.length), total: actions.length };+}diff --git a/app/src/renderer/src/lib/transports.ts b/app/src/renderer/src/lib/transports.tsnew file mode 100644index 0000000..8531bbe--- /dev/null+++ b/app/src/renderer/src/lib/transports.ts@@ -0,0 +1,319 @@+// Ways to reach the Keyword. Each one carries the same line protocol.+import { NUS, OTA, SIDES, otaBaseCommand } from './protocol.ts';+import type { LastConnection, Side } from './types.ts';++export type TransportKind = 'serial' | 'ble' | 'demo';++export interface Transport {+ readonly label: string;+ readonly kind: TransportKind;+ open(onText: (text: string) => void, onClose: () => void): Promise<void>;+ write(text: string): Promise<void>;+ close(): Promise<void>;+ identity(): LastConnection | null;+}++/** Thrown when the picked Bluetooth device is a Keyword sitting in its update bootloader. */+export class OtaModeError extends Error {+ readonly device: BluetoothDevice;+ constructor(device: BluetoothDevice) {+ super('in update mode');+ this.name = 'OtaModeError';+ this.device = device;+ }+}++export class SerialTransport implements Transport {+ readonly label = 'USB serial';+ readonly kind = 'serial';+ private port: SerialPort | null;+ private writer: WritableStreamDefaultWriter<Uint8Array> | null = null;+ private reader: ReadableStreamDefaultReader<Uint8Array> | null = null;+ private closed = false;++ /** An already-granted port skips the picker. */+ constructor(port?: SerialPort | null) {+ this.port = port ?? null;+ }++ async open(onText: (text: string) => void, onClose: () => void) {+ const port = (this.port ??= await navigator.serial.requestPort());+ await port.open({ baudRate: 115200 }); // CDC ignores the baud rate+ // The Keyword only pushes events once DTR is set.+ try { await port.setSignals({ dataTerminalReady: true }); } catch { /* not every port has DTR */ }+ this.writer = port.writable!.getWriter();+ this.closed = false;+ void (async () => {+ const decoder = new TextDecoder();+ try {+ while (!this.closed && port.readable) {+ this.reader = port.readable.getReader();+ try {+ for (;;) {+ const { value, done } = await this.reader.read();+ if (done) break;+ onText(decoder.decode(value, { stream: true }));+ }+ } finally {+ this.reader.releaseLock();+ }+ }+ } catch (e) {+ console.warn('serial:', (e as Error).message);+ }+ if (!this.closed) onClose();+ })();+ }++ identity(): LastConnection {+ const i = this.port?.getInfo?.() ?? {};+ return { kind: 'serial', usbVendorId: i.usbVendorId ?? null, usbProductId: i.usbProductId ?? null };+ }++ async write(text: string) {+ await this.writer!.write(new TextEncoder().encode(text));+ }++ async close() {+ this.closed = true;+ try { await this.reader?.cancel(); } catch { /* already gone */ }+ try { this.writer?.releaseLock(); } catch { /* already gone */ }+ try { await this.port?.close(); } catch { /* already gone */ }+ }+}++export class BleTransport implements Transport {+ readonly label = 'Bluetooth';+ readonly kind = 'ble';+ device: BluetoothDevice | null;+ private rx: BluetoothRemoteGATTCharacteristic | null = null;+ private closed = false;+ private onDisconnect = () => {};++ constructor(device?: BluetoothDevice | null) {+ this.device = device ?? null;+ }++ async open(onText: (text: string) => void, onClose: () => void) {+ if (!this.device) {+ this.device = await navigator.bluetooth.requestDevice({+ // NUS's 128-bit UUID isn't advertised, so match on the name.+ filters: [{ namePrefix: 'Keyword' }],+ optionalServices: [NUS.service, OTA.service],+ });+ // Picked a Keyword sitting in its update bootloader: hand it to the update dialog.+ if (this.device.name === OTA.name) throw new OtaModeError(this.device);+ }+ const device = this.device;+ this.onDisconnect = () => { if (!this.closed) onClose(); };+ device.addEventListener('gattserverdisconnected', this.onDisconnect);+ const server = await device.gatt!.connect();+ const svc = await server.getPrimaryService(NUS.service);+ this.rx = await svc.getCharacteristic(NUS.rx);+ const tx = await svc.getCharacteristic(NUS.tx);+ const decoder = new TextDecoder();+ tx.addEventListener('characteristicvaluechanged', (e) => {+ const value = (e.target as BluetoothRemoteGATTCharacteristic).value!;+ onText(decoder.decode(value, { stream: true }));+ });+ await tx.startNotifications();+ this.closed = false;+ }++ identity(): LastConnection {+ return { kind: 'ble', id: this.device!.id, name: this.device!.name || '' };+ }++ async write(text: string) {+ const bytes = new TextEncoder().encode(text);+ for (let i = 0; i < bytes.length; i += 20) { // fits the default 23-byte ATT MTU+ const chunk = bytes.slice(i, i + 20);+ await this.rx!.writeValueWithoutResponse(chunk);+ }+ }++ async close() {+ this.closed = true;+ this.device?.removeEventListener('gattserverdisconnected', this.onDisconnect);+ if (this.device?.gatt?.connected) this.device.gatt.disconnect();+ }+}++/** Pretends to be a Keyword with every optional feature, so the app can be tried without hardware. */+export class DemoTransport implements Transport {+ readonly label = 'Demo';+ readonly kind = 'demo';+ readonly uids: Record<Side, string> = { L: '3B0A4F1C88D2E61F5F1821C1', R: '91C7002DE4B3A75C0A33B7E2', T: '0F5E19A2C6B84D37C4D90015' };+ /** A Keybit chained behind the right one, reported by its low 32 bits like a real relay. */+ readonly chained = 'D00DF00D';+ private versions: Record<Side, number> = { L: 3, R: 2, T: 3 };+ readonly present: Record<Side, boolean> = { L: true, R: false, T: false };+ private maps: Record<string, Record<string, string>> = {};+ private battery = 82;+ private readonly kb = 3;+ private onText: ((text: string) => void) | null = null;+ private battTimer: ReturnType<typeof setInterval> | undefined;++ async open(onText: (text: string) => void) {+ this.onText = onText;+ this.battTimer = setInterval(() => {+ if (this.battery > 5) {+ this.battery -= 1;+ this.emit(this.battLine());+ }+ }, 20000);+ }++ identity() { return null; }+ private emit(line: string) { setTimeout(() => this.onText?.(line + '\n'), 20); }+ private battLine() { return `BATT pct=${this.battery} chg=0 usb=0`; }+ private sidesLine() { return 'SIDES ' + SIDES.map((s) => `${s}=${this.present[s] ? 1 : 0}`).join(' '); }+ private keyLine(s: Side) { return `KEY+ uid=${this.uids[s]} at=${s} v=${this.versions[s]}`; }+ private chainedLine() { return `KEY+ uid=${this.chained} at=X via=${this.uids.R} depth=1 v=3`; }++ /** Attaches or removes the Keybit on a side. */+ toggle(side: Side) {+ this.present[side] = !this.present[side];+ this.emit(this.present[side] ? this.keyLine(side) : `KEY- uid=${this.uids[side]}`);+ if (side === 'R') this.emit(this.present.R ? this.chainedLine() : `KEY- uid=${this.chained}`);+ this.emit(this.sidesLine());+ }++ private sideOf(uid: string): Side | 'X' | undefined {+ return SIDES.find((s) => this.uids[s] === uid && this.present[s]) || (uid === this.chained && this.present.R ? 'X' : undefined);+ }++ /** Simulates a press and release. */+ tap(uid: string) {+ if (!this.sideOf(uid)) return;+ this.emit(`PRESS uid=${uid} down=1`);+ setTimeout(() => this.emit(`PRESS uid=${uid} down=0`), 180);+ }++ private flash(uid: string) {+ const s = this.sideOf(uid);+ if (!s) return this.emit(`ERR flash ${uid} not present`);+ if (s === 'X') return this.emit('ERR flash only Keybits touching the Keyword can be reflashed');+ let pct = 0;+ const t = setInterval(() => {+ pct += 20;+ this.emit(`FLASH uid=${uid} pct=${pct}`);+ if (pct >= 100) {+ clearInterval(t);+ this.versions[s] = this.kb;+ this.emit(`OK FLASH uid=${uid}`);+ this.emit(this.keyLine(s));+ }+ }, 300);+ }++ async write(text: string) {+ for (const line of text.split('\n').map((s) => s.trim()).filter(Boolean)) {+ const [c, ...rest] = line.split(' ');+ const f = Object.fromEntries(rest.map((p) => p.split('=')));+ if (c === 'HELLO') this.emit(`KEYWORD v=demo proto=1 caps=batt,hold,macro,flash,ota kb=${this.kb}`);+ else if (c === 'SIDES?') this.emit(this.sidesLine());+ else if (c === 'BATT?') this.emit(this.battLine());+ else if (c === 'KEYS?') {+ for (const s of SIDES) if (this.present[s]) this.emit(this.keyLine(s));+ if (this.present.R) this.emit(this.chainedLine());+ this.emit('KEYS END');+ } else if (['MAP', 'MAPC', 'MACRO', 'HOLD'].includes(c)) {+ this.maps[f.uid] = f;+ this.emit(`OK ${c} uid=${f.uid}`);+ } else if (c === 'UNMAP') {+ delete this.maps[f.uid];+ this.emit(`OK UNMAP uid=${f.uid}`);+ } else if (c === 'CLEAR') {+ this.maps = {};+ this.emit('OK CLEAR');+ } else if (c === 'SAVE') this.emit('OK SAVE');+ else if (c === 'FLASH') this.flash(f.uid);+ else if (c === 'STACK?') this.emit('STACK ble v=1.24.0 fus=2.2.0');+ else if (c === 'OTA') this.emit('OK OTA');+ else if (c === 'DFU') this.emit('OK DFU');+ else if (c === 'DOCK?') this.emit('DOCK r=0 cfg=00000000 status=00000000 t=16 od=1 hclk=64000000 cyc10ms=640000');+ else this.emit(`ERR unknown command ${c}`);+ }+ }++ async close() {+ clearInterval(this.battTimer);+ this.onText = null;+ }+}++// ---- Keyword firmware update targets ----++export interface OtaTarget {+ connect(): Promise<void>;+ start(): Promise<void>;+ write(chunk: Uint8Array<ArrayBuffer>): Promise<void>;+ finish(): Promise<void>;+ cancel(): Promise<void>;+ close(): void;+ /** Resolves with the confirm byte (1 = image accepted). Valid after connect (BLE) or finish (demo). */+ confirmed: Promise<number>;+ /** Resolves if the link drops. */+ lost: Promise<void>;+}++/** ST's BLE_Ota bootloader, which the Keyword restarts into after OTA. */+export class BleOtaTarget implements OtaTarget {+ private device: BluetoothDevice | null;+ private base!: BluetoothRemoteGATTCharacteristic;+ private raw!: BluetoothRemoteGATTCharacteristic;+ confirmed: Promise<number> = new Promise(() => {});+ lost: Promise<void> = new Promise(() => {});++ constructor(device?: BluetoothDevice | null) {+ this.device = device ?? null;+ }++ async connect() {+ const device = (this.device ??= await navigator.bluetooth.requestDevice({+ filters: [{ name: OTA.name }],+ optionalServices: [OTA.service],+ }));+ const server = await device.gatt!.connect();+ const svc = await server.getPrimaryService(OTA.service);+ this.base = await svc.getCharacteristic(OTA.base);+ this.raw = await svc.getCharacteristic(OTA.raw);+ const confirm = await svc.getCharacteristic(OTA.confirm);+ this.confirmed = new Promise((resolve) => {+ confirm.addEventListener('characteristicvaluechanged', (e) =>+ resolve((e.target as BluetoothRemoteGATTCharacteristic).value!.getUint8(0)));+ });+ await confirm.startNotifications(); // indications, as far as Web Bluetooth is concerned+ this.lost = new Promise((resolve) => device.addEventListener('gattserverdisconnected', () => resolve(), { once: true }));+ }++ private writeBase(bytes: Uint8Array<ArrayBuffer>) {+ return this.base.writeValueWithoutResponse(bytes);+ }+ start() { return this.writeBase(otaBaseCommand(OTA.START, OTA.APP_OFFSET)); }+ write(chunk: Uint8Array<ArrayBuffer>) {+ return this.raw.writeValueWithoutResponse(chunk);+ }+ finish() { return this.writeBase(otaBaseCommand(OTA.FINISH)); }+ cancel() { return this.writeBase(otaBaseCommand(OTA.CANCEL)).catch(() => {}); }+ close() { if (this.device?.gatt?.connected) this.device.gatt.disconnect(); }+}++/** Stands in for the bootloader in Demo mode. */+export class DemoOtaTarget implements OtaTarget {+ private bytes = 0;+ confirmed: Promise<number> = new Promise(() => {});+ lost: Promise<void> = new Promise(() => {});+ async connect() { await sleep(400); }+ async start() { this.bytes = 0; }+ async write(chunk: Uint8Array<ArrayBuffer>) { this.bytes += chunk.length; }+ async finish() {+ await sleep(300);+ this.confirmed = Promise.resolve(this.bytes > 0 ? 1 : 0);+ }+ async cancel() {}+ close() {}+}++export const sleep = (ms: number) => new Promise<void>((r) => setTimeout(r, ms));diff --git a/app/src/renderer/src/lib/types.ts b/app/src/renderer/src/lib/types.tsnew file mode 100644index 0000000..15967b0--- /dev/null+++ b/app/src/renderer/src/lib/types.ts@@ -0,0 +1,59 @@+import type { HostAction } from '../../../shared/bridge';++export type { HostAction, HostActionType } from '../../../shared/bridge';++/** A side of the Keyword a Keybit can sit on: left, right or top edge. */+export type Side = 'L' | 'R' | 'T';++/** One tap in a macro: [modifier byte, HID key usage]. */+export type Step = [number, number];++export interface Hold {+ mods: number;+ key: number;+ ms: number;+}++/**+ * What one Keybit does. One main action (a key or shortcut, a media key, a macro or a+ * computer action), plus an optional label and hold action.+ */+export interface Entry {+ mods?: number;+ key?: number;+ consumer?: number;+ macro?: Step[];+ host?: HostAction;+ hold?: Hold;+ name?: string;+}++export interface Profile {+ id: string;+ name: string;+ apps: string[];+ keys: Record<string, Entry>;+}++export type Theme = 'system' | 'light' | 'dark';++export type LastConnection =+ | { kind: 'serial'; usbVendorId: number | null; usbProductId: number | null }+ | { kind: 'ble'; id: string; name: string };++export interface Settings {+ theme: Theme;+ autoReconnect: boolean;+ perApp: boolean;+ notifications: boolean;+ closeToTray: boolean;+ launchAtLogin: boolean;+ lastConnection: LastConnection | null;+}++export interface Store {+ active: string;+ profiles: Profile[];+ settings: Settings;+ stats: Record<string, number>;+}diff --git a/app/src/renderer/src/main.tsx b/app/src/renderer/src/main.tsxnew file mode 100644index 0000000..b8e1744--- /dev/null+++ b/app/src/renderer/src/main.tsx@@ -0,0 +1,13 @@+import { StrictMode } from 'react';+import { createRoot } from 'react-dom/client';+import App from './App.tsx';+import { start } from './controller.ts';+import './index.css';++void start();++createRoot(document.getElementById('root')!).render(+ <StrictMode>+ <App />+ </StrictMode>,+);diff --git a/app/src/renderer/src/store.ts b/app/src/renderer/src/store.tsnew file mode 100644index 0000000..02e60ae--- /dev/null+++ b/app/src/renderer/src/store.ts@@ -0,0 +1,139 @@+// Everything the UI shows lives in one zustand store. controller.ts changes it.+import { create } from 'zustand';+import type { PickerList } from '../../shared/bridge';+import { normalizeStore } from './lib/profiles.ts';+import type { TransportKind } from './lib/transports.ts';+import type { Side, Store } from './lib/types.ts';++export interface KeyState {+ at: Side | null;+ pressed: boolean;+ v: number | null;+ flashing: number | null;+ via: string | null;+ depth: number | null;+}++export interface Battery {+ pct: number;+ charging: boolean;+ usb: boolean;+}++export interface DeviceInfo {+ fw: string | null;+ caps: string[];+ kb: number | null;+ battery: Battery | null;+}++export type Tone = 'idle' | 'busy' | 'connected' | 'stale';+export type ActivityTone = 'add' | 'remove' | undefined;++export interface ActivityItem { id: number; time: string; text: string; tone?: ActivityTone }+export interface LogLine { id: number; time: string; dir: '->' | '<-' | '!!'; text: string }+export interface Toast { id: number; text: string; error?: boolean; undo?: boolean; leaving?: boolean }++export type OtaStage = 'pick' | 'find' | 'waiting' | 'sending' | 'done';+export interface OtaState {+ busy: boolean;+ stage: OtaStage;+ fileName: string;+ fileSize: number;+ status: string;+ error: boolean;+ pct: number | null;+ stack: string;+ showDfu: boolean;+ /** A Keyword already in its bootloader, picked from the normal Bluetooth chooser. */+ hasDevice: boolean;+}++export type DialogName = 'library' | 'settings' | 'ota' | null;++export interface PromptRequest {+ title: string;+ value: string;+ suggestions: string[];+ resolve: (v: string | null) => void;+}+export interface ConfirmRequest {+ title: string;+ body: string;+ ok: string;+ cancel: string;+ resolve: (ok: boolean) => void;+}++export interface History {+ canUndo: boolean;+ canRedo: boolean;+ undoLabel: string;+ redoLabel: string;+}++export interface AppState {+ store: Store;+ history: History;+ status: string;+ tone: Tone;+ transport: TransportKind | null;+ reconnecting: boolean;+ device: DeviceInfo;+ keys: Record<string, KeyState>;+ sides: Partial<Record<Side, boolean>>;+ frontApp: string | null;+ autoSwitched: boolean;+ seenApps: string[];+ activity: ActivityItem[];+ log: LogLine[];+ toasts: Toast[];+ highlight: string | null;+ chooser: PickerList | null;+ assignUid: string | null;+ dialog: DialogName;+ consoleOpen: boolean;+ prompt: PromptRequest | null;+ confirm: ConfirmRequest | null;+ ota: OtaState;+ filter: string;+ about: string;+ dropping: boolean;+}++export const emptyDevice = (): DeviceInfo => ({ fw: null, caps: [], kb: null, battery: null });++export const initialOta = (): OtaState => ({+ busy: false, stage: 'pick', fileName: '', fileSize: 0, status: '', error: false, pct: null, stack: '', showDfu: false, hasDevice: false,+});++export const useApp = create<AppState>(() => ({+ store: normalizeStore(null),+ history: { canUndo: false, canRedo: false, undoLabel: '', redoLabel: '' },+ status: 'Not connected',+ tone: 'idle',+ transport: null,+ reconnecting: false,+ device: emptyDevice(),+ keys: {},+ sides: {},+ frontApp: null,+ autoSwitched: false,+ seenApps: [],+ activity: [],+ log: [],+ toasts: [],+ highlight: null,+ chooser: null,+ assignUid: null,+ dialog: null,+ consoleOpen: false,+ prompt: null,+ confirm: null,+ ota: initialOta(),+ filter: '',+ about: '',+ dropping: false,+}));++export const activeProfileOf = (s: AppState) => s.store.profiles.find((p) => p.id === s.store.active) || s.store.profiles[0];diff --git a/app/src/shared/bridge.ts b/app/src/shared/bridge.tsnew file mode 100644index 0000000..810425c--- /dev/null+++ b/app/src/shared/bridge.ts@@ -0,0 +1,67 @@+// The API the preload script exposes to the page as window.desktop and window.devicePicker.++export type HostActionType = 'url' | 'app' | 'cmd' | 'next-profile' | 'profile';+export interface HostAction {+ type: HostActionType;+ value: string;+}++export interface PickerDevice {+ id: string;+ name: string;+ detail: string;+ likely: boolean;+}+export interface PickerList {+ kind: 'serial' | 'bluetooth';+ devices: PickerDevice[];+}++export interface CapturedKey {+ type: 'keyDown' | 'keyUp' | string;+ code: string;+ ctrlKey: boolean;+ shiftKey: boolean;+ altKey: boolean;+ metaKey: boolean;+}++export interface TrayState {+ status: string;+ profiles: { id: string; name: string }[];+ active: string | null;+ battery: number | null;+}++export interface MainSettings {+ theme: 'system' | 'light' | 'dark';+ closeToTray: boolean;+ launchAtLogin: boolean;+ perApp: boolean;+}++export type MenuCommand =+ | 'undo' | 'redo' | 'settings' | 'import' | 'export' | 'export-all' | 'connect-usb' | 'connect-ble'+ | 'disconnect' | 'profile' | 'next-profile' | 'prev-profile' | 'new-profile' | 'library' | 'apply'+ | 'toggle-theme' | 'find' | 'update-firmware' | 'console';++export interface DesktopBridge {+ loadStore(): Promise<unknown>;+ saveStore(store: unknown): Promise<void>;+ saveFile(name: string, text: string): Promise<boolean>;+ openFiles(): Promise<{ name: string; text: string }[]>;+ setCapture(on: boolean): void;+ onCaptureKey(fn: (k: CapturedKey) => void): () => void;+ runHost(action: HostAction): Promise<{ ok: boolean; error?: string }>;+ appInfo(): Promise<{ version: string; platform: string }>;+ openDataFolder(): void;+ applySettings(s: MainSettings): void;+ updateState(s: TrayState): void;+ onMenu(fn: (cmd: MenuCommand, arg?: string) => void): () => void;+ onFrontApp(fn: (name: string) => void): () => void;+}++export interface DevicePicker {+ onList(fn: (list: PickerList) => void): () => void;+ pick(id: string): void;+}diff --git a/app/test/hid.test.js b/app/test/hid.test.tssimilarity index 90%rename from app/test/hid.test.jsrename to app/test/hid.test.tsindex 5532ee3..3054270 100644--- a/app/test/hid.test.js+++ b/app/test/hid.test.ts@@ -1,9 +1,9 @@-const test = require('node:test');-const assert = require('node:assert');-const Hid = require('../renderer/hid.js');+import test from 'node:test';+import assert from 'node:assert';+import * as Hid from '../src/renderer/src/lib/hid.ts';test('usages match the HID table', () => {- const u = (code) => Hid.KEYS.find((k) => k.code === code).usage;+ const u = (code: string) => Hid.KEYS.find((k) => k.code === code)!.usage;assert.strictEqual(u('KeyA'), 0x04);assert.strictEqual(u('KeyZ'), 0x1d);assert.strictEqual(u('Digit1'), 0x1e);diff --git a/app/test/profiles.test.js b/app/test/profiles.test.tssimilarity index 88%rename from app/test/profiles.test.jsrename to app/test/profiles.test.tsindex 9f3cb29..109ac2b 100644--- a/app/test/profiles.test.js+++ b/app/test/profiles.test.ts@@ -1,6 +1,6 @@-const test = require('node:test');-const assert = require('node:assert');-const P = require('../renderer/profiles.js');+import test from 'node:test';+import assert from 'node:assert';+import * as P from '../src/renderer/src/lib/profiles.ts';test('export then import round-trips', () => {const p = P.newProfile('Gaming', { '5f1821c1': { mods: 2, key: 4, name: 'Jump' } });@@ -67,20 +67,20 @@ test('settings are kept and repaired', () => {test('per-app lookup is case-insensitive', () => {const ps = [P.newProfile('Zoom', {}, ['zoom.us']), P.newProfile('Code', {}, ['Code'])];- assert.strictEqual(P.profileForApp(ps, 'ZOOM.US').name, 'Zoom');+ assert.strictEqual(P.profileForApp(ps, 'ZOOM.US')?.name, 'Zoom');assert.strictEqual(P.profileForApp(ps, 'Safari'), null);});test('history undoes and redoes', () => {- const h = new P.History(2);+ const h = new P.History<{ n: number }>(2);let state = { n: 1 };h.record(state, 'one'); state = { n: 2 };h.record(state, 'two'); state = { n: 3 };h.record(state, 'three'); state = { n: 4 }; // oldest entry drops (limit 2)- let r = h.undo(state); assert.deepStrictEqual([r.state, r.label], [{ n: 3 }, 'three']); state = r.state;- r = h.undo(state); assert.deepStrictEqual(r.state, { n: 2 }); state = r.state;+ let r = h.undo(state)!; assert.deepStrictEqual([r.state, r.label], [{ n: 3 }, 'three']); state = r.state;+ r = h.undo(state)!; assert.deepStrictEqual(r.state, { n: 2 }); state = r.state;assert.strictEqual(h.undo(state), null);- r = h.redo(state); assert.deepStrictEqual(r.state, { n: 3 }); state = r.state;+ r = h.redo(state)!; assert.deepStrictEqual(r.state, { n: 3 }); state = r.state;h.record(state, 'new');assert.strictEqual(h.canRedo, false);});diff --git a/app/test/protocol.test.js b/app/test/protocol.test.tssimilarity index 81%rename from app/test/protocol.test.jsrename to app/test/protocol.test.tsindex cb29b02..ac70d6f 100644--- a/app/test/protocol.test.js+++ b/app/test/protocol.test.ts@@ -1,6 +1,7 @@-const test = require('node:test');-const assert = require('node:assert');-const { LineBuffer, parseLine, cmd, profileCommands } = require('../renderer/protocol.js');+import test from 'node:test';+import assert from 'node:assert';+import { LineBuffer, parseLine, cmd, profileCommands, mapCommand, entryCommands, OTA, otaBaseCommand, checkAppImage, otaChunks } from '../src/renderer/src/lib/protocol.ts';+import type { Step } from '../src/renderer/src/lib/types.ts';test('parses SIDES', () => {assert.deepStrictEqual(parseLine('SIDES L=1 R=0 T=0'), {@@ -10,13 +11,14 @@ test('parses SIDES', () => {});test('SIDES with only some fields', () => {- assert.deepStrictEqual(parseLine('SIDES R=1').sides, { R: true });+ assert.deepStrictEqual((parseLine('SIDES R=1') as { sides: object }).sides, { R: true });assert.strictEqual(parseLine('SIDES').type, 'unknown');});test('parses HELLO reply', () => {assert.deepStrictEqual(parseLine('KEYWORD v=0.1 proto=1'), { type: 'hello', fw: '0.1', proto: 1, caps: new Set(), kb: null });const h = parseLine('KEYWORD v=0.2 proto=1 caps=batt,hold kb=3');+ assert.ok(h.type === 'hello');assert.deepStrictEqual([...h.caps], ['batt', 'hold']);assert.strictEqual(h.kb, 3);});@@ -33,7 +35,7 @@ test('parses ERR', () => {});test('line buffer splits chunks and CRLF', () => {- const lines = [];+ const lines: string[] = [];const lb = new LineBuffer((l) => lines.push(l));lb.push('SIDES L=1 ');lb.push('R=0\r\nKEYW');@@ -57,12 +59,11 @@ test('parses MAP and OK', () => {test('formats commands', () => {assert.strictEqual(cmd.map('5F1821C1', 0x0a, 0x04), 'MAP uid=5F1821C1 mods=0A key=04');- assert.deepStrictEqual(profileCommands({ '5F1821C1': { mods: 1, key: 6 }, '00000001': { mods: 0, key: 0 }, bad: { key: 4 } }),+ assert.deepStrictEqual(profileCommands({ '5F1821C1': { mods: 1, key: 6 }, '00000001': { mods: 0, key: 0 }, bad: { key: 4 } }, new Set()),['CLEAR', 'MAP uid=5F1821C1 mods=01 key=06', 'SAVE']);});test('media key mappings', () => {- const { mapCommand } = require('../renderer/protocol.js');assert.strictEqual(mapCommand('5F1821C1', { consumer: 0xcd }), 'MAPC uid=5F1821C1 usage=00CD');assert.strictEqual(mapCommand('5F1821C1', { mods: 0, key: 0 }), null);assert.deepStrictEqual(parseLine('MAPC uid=5F1821C1 usage=00E9'), { type: 'mapConsumer', uid: '5F1821C1', usage: 0xe9 });@@ -70,23 +71,22 @@ test('media key mappings', () => {});test('optional features: battery, macro, hold, flash', () => {- const { entryCommands } = require('../renderer/protocol.js');assert.deepStrictEqual(parseLine('BATT pct=81 chg=1 usb=1'), { type: 'battery', pct: 81, charging: true, usb: true });assert.deepStrictEqual(parseLine('MACRO uid=5F1821C1 seq=0006,0119,zz'), { type: 'macro', uid: '5F1821C1', steps: [[0, 6], [1, 0x19]] });assert.deepStrictEqual(parseLine('HOLD uid=5F1821C1 mods=02 key=00 ms=250'), { type: 'hold', uid: '5F1821C1', mods: 2, key: 0, ms: 250 });assert.deepStrictEqual(parseLine('FLASH uid=5F1821C1 pct=40'), { type: 'flashProgress', uid: '5F1821C1', pct: 40 });- assert.deepStrictEqual(parseLine('KEY+ uid=5F1821C1 at=L v=2').v, 2);+ assert.deepStrictEqual((parseLine('KEY+ uid=5F1821C1 at=L v=2') as { v: number }).v, 2);const all = new Set(['macro', 'hold']);- const e = { macro: [[1, 6], [1, 0x19]], hold: { mods: 2, key: 0, ms: 300 } };+ const e = { macro: [[1, 6], [1, 0x19]] as Step[], hold: { mods: 2, key: 0, ms: 300 } };assert.deepStrictEqual(entryCommands('5F1821C1', e, all), ['MACRO uid=5F1821C1 seq=0106,0119', 'HOLD uid=5F1821C1 mods=02 key=00 ms=300']);assert.deepStrictEqual(entryCommands('5F1821C1', e, new Set()), [], 'unsupported features are not sent');assert.deepStrictEqual(entryCommands('5F1821C1', { host: { type: 'url', value: 'x' } }, all), []);- assert.strictEqual(cmd.macro('5F1821C1', Array(20).fill([0, 4])).split(',').length, 16);+ assert.strictEqual(cmd.macro('5F1821C1', Array<Step>(20).fill([0, 4])).split(',').length, 16);});test('line buffer accepts a bare CR', () => {- const lines = [];+ const lines: string[] = [];const lb = new LineBuffer((l) => lines.push(l));lb.push('HELLO\rSIDES?\r');lb.push('\nKEYS?\n');@@ -99,22 +99,21 @@ test('relayed Keybits', () => {});test('OTA: stack reply, image checks and chunks', () => {- const { OTA, otaBaseCommand, checkAppImage, otaChunks } = require('../renderer/protocol.js');assert.deepStrictEqual(parseLine('STACK ble v=1.24.0 fus=2.2.0'), { type: 'stack', stack: 'ble', v: '1.24.0', fus: '2.2.0' });assert.deepStrictEqual(parseLine('STACK none fus=2.2.0'), { type: 'stack', stack: 'none', v: null, fus: '2.2.0' });assert.deepStrictEqual([...otaBaseCommand(OTA.START, OTA.APP_OFFSET)], [0x02, 0x00, 0x70, 0x00]);assert.deepStrictEqual([...otaBaseCommand(OTA.FINISH)], [0x07, 0, 0, 0]);- const image = (sp, reset, len = 1000) => {+ const image = (sp: number, reset: number, len = 1000) => {const b = new Uint8Array(len);new DataView(b.buffer).setUint32(0, sp, true);new DataView(b.buffer).setUint32(4, reset, true);return b;};assert.ok(checkAppImage(image(0x20030000, 0x08007119)).ok);- assert.match(checkAppImage(image(0x20030000, 0x08000119)).error, /keyword_app\.bin/);- assert.match(checkAppImage(image(0x12345678, 0x08007119)).error, /vector table/);- assert.match(checkAppImage(new Uint8Array(10)).error, /too small/);+ assert.match((checkAppImage(image(0x20030000, 0x08000119)) as { error: string }).error, /keyword_app\.bin/);+ assert.match((checkAppImage(image(0x12345678, 0x08007119)) as { error: string }).error, /vector table/);+ assert.match((checkAppImage(new Uint8Array(10)) as { error: string }).error, /too small/);const chunks = otaChunks(new Uint8Array(500).fill(1), 244);assert.deepStrictEqual(chunks.map((c) => c.length), [240, 240, 24]);diff --git a/app/test/templates.test.js b/app/test/templates.test.tssimilarity index 64%rename from app/test/templates.test.jsrename to app/test/templates.test.tsindex a309cf2..d80d1d5 100644--- a/app/test/templates.test.js+++ b/app/test/templates.test.ts@@ -1,7 +1,8 @@-const test = require('node:test');-const assert = require('node:assert');-const T = require('../renderer/templates.js');-const P = require('../renderer/profiles.js');+import test from 'node:test';+import assert from 'node:assert';+import * as T from '../src/renderer/src/lib/templates.ts';+import * as P from '../src/renderer/src/lib/profiles.ts';+import type { Side } from '../src/renderer/src/lib/types.ts';test('every template builds valid entries on both platforms', () => {for (const t of T.TEMPLATES) {@@ -14,10 +15,10 @@ test('every template builds valid entries on both platforms', () => {});test('templates fill keys left, top, right', () => {- const side = { A: 'R', B: 'L', C: 'T' };+ const side: Record<string, Side> = { A: 'R', B: 'L', C: 'T' };const uids = T.orderUids(['A', 'B', 'C'], (u) => side[u]);assert.deepStrictEqual(uids, ['B', 'C', 'A']);- const media = T.TEMPLATES.find((t) => t.id === 'media');+ const media = T.TEMPLATES.find((t) => t.id === 'media')!;const r = T.applyTemplate(media, uids, true);assert.strictEqual(r.used, 3);assert.strictEqual(r.keys.B.consumer, 0xcd);diff --git a/app/tsconfig.json b/app/tsconfig.jsonnew file mode 100644index 0000000..31bac6e--- /dev/null+++ b/app/tsconfig.json@@ -0,0 +1,4 @@+{+ "files": [],+ "references": [{ "path": "./tsconfig.node.json" }, { "path": "./tsconfig.web.json" }]+}diff --git a/app/tsconfig.node.json b/app/tsconfig.node.jsonnew file mode 100644index 0000000..242261e--- /dev/null+++ b/app/tsconfig.node.json@@ -0,0 +1,17 @@+{+ "compilerOptions": {+ "target": "ES2023",+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "lib": ["ES2023"],+ "types": ["node"],+ "strict": true,+ "noEmit": true,+ "skipLibCheck": true,+ "isolatedModules": true,+ "verbatimModuleSyntax": true,+ "allowImportingTsExtensions": true,+ "composite": true+ },+ "include": ["electron.vite.config.ts", "src/main/**/*", "src/preload/**/*", "src/shared/**/*"]+}diff --git a/app/tsconfig.web.json b/app/tsconfig.web.jsonnew file mode 100644index 0000000..7de297b--- /dev/null+++ b/app/tsconfig.web.json@@ -0,0 +1,19 @@+{+ "compilerOptions": {+ "target": "ES2023",+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "lib": ["ES2023", "DOM", "DOM.Iterable"],+ "types": ["w3c-web-serial", "web-bluetooth", "node"],+ "jsx": "react-jsx",+ "strict": true,+ "noEmit": true,+ "skipLibCheck": true,+ "isolatedModules": true,+ "verbatimModuleSyntax": true,+ "allowImportingTsExtensions": true,+ "erasableSyntaxOnly": true,+ "composite": true+ },+ "include": ["src/renderer/src/**/*", "src/preload/*.d.ts", "src/shared/**/*", "test/**/*"]+}