From 96ef83c904a6cb1fc20b16bea4af6d8ecd15cd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20=C3=81d=C3=A1m?= Date: Sat, 6 Jun 2026 13:52:05 +0200 Subject: [PATCH] Initial commit: StreamDeck Electron app --- .gitignore | 4 + README.md | 111 +++ config.template.json | 24 + electron-main.js | 400 ++++++++++ package-lock.json | 1722 ++++++++++++++++++++++++++++++++++++++++++ package.json | 18 + preload.js | 34 + public/app.js | 485 ++++++++++++ public/index.html | 37 + public/style.css | 359 +++++++++ server.js | 238 ++++++ start.sh | 30 + 12 files changed, 3462 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 config.template.json create mode 100644 electron-main.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 preload.js create mode 100644 public/app.js create mode 100644 public/index.html create mode 100644 public/style.css create mode 100644 server.js create mode 100755 start.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34b7754 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +config.json +*.log +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..28ab7a2 --- /dev/null +++ b/README.md @@ -0,0 +1,111 @@ +# StreamDeck – Custom Touchscreen Stream Deck + +A native macOS Stream Deck replacement for HDMI touchscreens. Built with **Electron**, it stays on a dedicated secondary monitor and sends keystrokes/clipboard/shell commands to whatever app you're working in — **without stealing focus**. + +![screenshot](screenshot.png) + +## Features + +- **Full grid of programmable buttons** – 6×3 configurable per page +- **Multiple pages** – swipe or tap arrows/dots to navigate +- **Realtime system monitor page** – CPU usage (overall + per-core), memory usage, uptime, load +- **Native macOS actions**: + - `keystroke` – sends keyboard shortcuts to your **currently active app** (e.g. `cmd+v`, `ctrl+up`, `space`) + - `copy` / `paste` / `cut` – clipboard operations via NSPasteboard + - `shell` – runs shell commands + - `osascript` – runs AppleScript + - `app` – opens any macOS application + - `url` – opens URLs in default browser + - `sleep` – puts Mac to sleep +- **Touchscreen-optimized** – large touch targets, frameless window, auto-fullscreen +- **No focus stealing** – app hides itself before sending keystrokes, so clipboard and shortcuts go to your previous app, not the StreamDeck + +## Requirements + +- **macOS** (tested on Sequoia 15.x) +- **Node.js** 18+ (for development / `npm install`) +- **Touchscreen** with USB touch controller (e.g. WCH `USB2IIC_CTP_CONTROL`) +- **Touch-Base / UPDD touch driver** – **required separately!** The touchscreen **will not work** without this driver on macOS. Download and install from [touch-base.com](https://www.touch-base.com/). After installation, use the UPDD Commander to map the touch device to your secondary monitor. + +## Quick Start + +```bash +# 1. Install dependencies +cd streamdeck +npm install + +# 2. Copy config template and customize +cp config.template.json config.json +# Edit config.json to set up your buttons + +# 3. Run! +./start.sh # Electron app (touchscreen) +# or +./start.sh server # Web-based mode for testing in browser +``` + +For the Electron app: + +- The window opens automatically on your **second monitor** (touchscreen) +- Fullscreen is enabled automatically on start +- Press **F11** to toggle fullscreen +- Press **F2** to show the debug event overlay + +## Button Configuration + +Edit `config.json`. Each button can have: + +```json +{ + "label": "Button Name", + "icon": "🔔", + "color": "blue", + "actions": [ + { "type": "keystroke", "value": "cmd+v" }, + { "type": "shell", "value": "open -a Safari" } + ] +} +``` + +### Available action types + +| Type | Value | Effect | +|---|---|---| +| `keystroke` | `cmd+v`, `ctrl+shift+z`, `space`, `f2` | Sends keyboard shortcut to active app | +| `shell` | `open -a Safari` | Runs shell command in background | +| `osascript` | `set volume 50` | Runs AppleScript | +| `app` | `Visual Studio Code` | Opens application | +| `url` | `https://github.com` | Opens URL in browser | +| `copy` | _none_ | Copies selected text (Cmd+C) | +| `paste` | `optional text` | Pastes text (Cmd+V) | +| `cut` | _none_ | Cuts selected text (Cmd+X) | +| `sleep` | _none_ | Puts Mac to sleep | + +### Key syntax + +- Modifiers: `cmd`, `ctrl`, `alt`, `shift` +- Special keys: `up`, `down`, `left`, `right`, `space`, `return`, `tab`, `escape`, `f1`–`f12` +- Combine with `+` (e.g. `cmd+shift+z`, `ctrl+up`) +- Regular characters are typed literally (e.g. `a`, `1`, `Hello`) + +## Project Structure + +``` +streamdeck/ +├── config.json # Your button configuration (local, not in git) +├── config.template.json # Template for config +├── electron-main.js # Electron main process (window, IPC, actions) +├── preload.js # Context bridge (renderer ↔ main) +├── server.js # Node.js web server for browser mode +├── package.json +├── start.sh # Convenience launcher +├── public/ +│ ├── index.html +│ ├── app.js # Frontend logic +│ └── style.css # Touch-optimized UI +└── README.md +``` + +## License + +MIT diff --git a/config.template.json b/config.template.json new file mode 100644 index 0000000..4e3929b --- /dev/null +++ b/config.template.json @@ -0,0 +1,24 @@ +{ + "gridCols": 6, + "gridRows": 3, + "pages": [ + { + "title": "General", + "buttons": [ + { "label": "Safari", "icon": "🌐", "color": "blue", "actions": [{ "type": "app", "value": "Safari" }] }, + { "label": "Terminal", "icon": "⬛", "color": "dark", "actions": [{ "type": "app", "value": "Terminal" }] }, + { "label": "VS Code", "icon": "💻", "color": "purple", "actions": [{ "type": "app", "value": "Visual Studio Code" }] }, + { "label": "Spotlight", "icon": "🔍", "color": "white", "actions": [{ "type": "keystroke", "value": "cmd+space" }] }, + { "label": "Mute", "icon": "🔇", "color": "orange", "actions": [{ "type": "keystroke", "value": "cmd+shift+m" }] }, + { "label": "Lock", "icon": "🔒", "color": "red", "actions": [{ "type": "shell", "value": "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -suspend" }] }, + + { "label": "Copy", "icon": "📋", "color": "white", "actions": [{ "type": "keystroke", "value": "cmd+c" }] }, + { "label": "Paste", "icon": "📌", "color": "white", "actions": [{ "type": "keystroke", "value": "cmd+v" }] }, + { "label": "Cut", "icon": "✂️", "color": "orange", "actions": [{ "type": "keystroke", "value": "cmd+x" }] }, + { "label": "Save", "icon": "💾", "color": "blue", "actions": [{ "type": "keystroke", "value": "cmd+s" }] }, + { "label": "Undo", "icon": "↩️", "color": "teal", "actions": [{ "type": "keystroke", "value": "cmd+z" }] }, + { "label": "Redo", "icon": "↪️", "color": "teal", "actions": [{ "type": "keystroke", "value": "cmd+shift+z" }] } + ] + } + ] +} diff --git a/electron-main.js b/electron-main.js new file mode 100644 index 0000000..b0c38ab --- /dev/null +++ b/electron-main.js @@ -0,0 +1,400 @@ +/* ─── Electron Main Process ────────────────────────────────────────────────── + * StreamDeck – natív macOS app a touchscreen-re + * + * Képességek: + * - Ablak a 2. monitorra (ZL480X1920, 1920×480) + * - Kiosk mód (nincs Safari címsor, nincs fókusz probléma) + * - natív clipboard (copy/paste) – nem kell fókusz + * - Billentyűk küldése az aktív app-nak System Events-en keresztül + * - Shell parancsok, app indítás, URL megnyitás + * ──────────────────────────────────────────────────────────────────────────── */ + +const { app, BrowserWindow, ipcMain, clipboard, shell, globalShortcut, screen } = require('electron'); +const path = require('path'); +const { exec, execSync } = require('child_process'); +const fs = require('fs'); +const os = require('os'); + +/* ─── Config ───────────────────────────────────────────────────────────────── */ +const CONFIG_PATH = path.join(__dirname, 'config.json'); +let config = loadConfig(); + +function loadConfig() { + try { + return JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); + } catch (e) { + console.error('Failed to load config.json:', e.message); + return { gridCols: 6, gridRows: 3, pages: [] }; + } +} + +/* ─── Window ───────────────────────────────────────────────────────────────── */ +let mainWindow = null; + +function createWindow() { + const display = getTouchscreenDisplay(); + + mainWindow = new BrowserWindow({ + x: display ? display.bounds.x : undefined, + y: display ? display.bounds.y : undefined, + width: display ? display.bounds.width : 1920, + height: display ? display.bounds.height : 480, + frame: false, // nincs címsor + fullscreen: false, + kiosk: false, + resizable: false, + alwaysOnTop: true, // mindig felül + skipTaskbar: true, // nem jelenik meg a Dock-ban + autoHideMenuBar: true, // menüsor elrejtése fullscreen-ben + webPreferences: { + preload: path.join(__dirname, 'preload.js'), + contextIsolation: true, + nodeIntegration: false, + sandbox: false, + }, + title: 'StreamDeck', + backgroundColor: '#1a1a2e', + }); + + // A touchscreen méretére igazítva, pont a monitorra + if (display) { + mainWindow.setBounds({ + x: display.bounds.x, + y: display.bounds.y, + width: display.bounds.width, + height: display.bounds.height, + }); + } + + mainWindow.loadFile(path.join(__dirname, 'public', 'index.html')); + + // DevTools kikapcsolva élesben + if (process.argv.includes('--dev')) { + mainWindow.webContents.openDevTools({ mode: 'detach' }); + } + + mainWindow.on('closed', () => { mainWindow = null; }); +} + +function getTouchscreenDisplay() { + const displays = screen.getAllDisplays(); + + // Keressük a ZL480X1920 nevű monitort (vagy a 2. monitort) + for (const d of displays) { + if (d.size.width === 1920 && (d.size.height === 480 || d.size.height === 479)) { + console.log(`Found touchscreen display:`, d.label || d.id, d.bounds); + return d; + } + } + + // Ha nem találjuk, a második monitor + if (displays.length >= 2) { + console.log(`Using second display:`, displays[1].label || displays[1].id); + return displays[1]; + } + + console.log('No second display found, using primary'); + return null; +} + +/* ─── Native Action Executor ────────────────────────────────────────────────── + * A config.json action típusok futtatása. + * A billentyűk az aktív (előző) app-nak mennek, nem a StreamDeck-nek. + * ───────────────────────────────────────────────────────────────────────────── */ + +async function executeAction(action) { + const { type, value } = action; + console.log(`Executing action: ${type} = "${value}"`); + + // Billentyűzet action-ök: elrejtjük az ablakot, hogy a billentyűk + // az előzőleg aktív app-hoz menjenek, ne a StreamDeck-hez + const stealsFocus = ['keystroke', 'copy', 'paste', 'cut'].includes(type); + if (stealsFocus) { + app.hide(); + await sleep(80); + } + + try { + switch (type) { + + /* ─── Keystroke → az előzőleg aktív app-nak megy ──────────────────── */ + case 'keystroke': { + const parsed = parseKeystroke(value || ''); + if (!parsed) break; + + let osaCmd; + if (parsed.modifiers.length > 0) { + const mods = parsed.modifiers.join(' '); + osaCmd = `osascript -e 'tell application "System Events" to keystroke "${parsed.key}" using {${mods}}'`; + } else { + osaCmd = `osascript -e 'tell application "System Events" to keystroke "${parsed.key}"'`; + } + await execPromise(osaCmd); + break; + } + + /* ─── Clipboard: copy ──────────────────────────────────────────────── */ + case 'copy': { + await execPromise(`osascript -e 'tell application "System Events" to keystroke "c" using command down'`); + await sleep(100); + const text = clipboard.readText(); + console.log(`Copied: "${text.substring(0, 80)}..."`); + if (mainWindow && !mainWindow.isDestroyed()) { + mainWindow.webContents.send('clipboard-result', { action: 'copy', text }); + } + break; + } + + /* ─── Clipboard: paste ─────────────────────────────────────────────── */ + case 'paste': { + const stored = value || clipboard.readText(); + clipboard.writeText(stored); + await execPromise(`osascript -e 'tell application "System Events" to keystroke "v" using command down'`); + break; + } + + /* ─── Clipboard: cut ───────────────────────────────────────────────── */ + case 'cut': { + await execPromise(`osascript -e 'tell application "System Events" to keystroke "x" using command down'`); + await sleep(100); + if (mainWindow && !mainWindow.isDestroyed()) { + mainWindow.webContents.send('clipboard-result', { action: 'cut', text: clipboard.readText() }); + } + break; + } + + /* ─── Shell ────────────────────────────────────────────────────────── */ + case 'shell': { + exec(value || '', { + timeout: 15000, + env: { ...process.env, PATH: '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' } + }, (err, stdout, stderr) => { + const output = (stdout || '') + (stderr ? '\n' + stderr : ''); + if (mainWindow && !mainWindow.isDestroyed()) { + mainWindow.webContents.send('shell-result', { type, value, output }); + } + if (err) console.error('shell error:', err.message); + console.log('shell output:', output.substring(0, 200)); + }); + break; + } + + /* ─── AppleScript ──────────────────────────────────────────────────── */ + case 'osascript': { + await execPromise(`osascript -e '${(value || "").replace(/'/g, "'\\''")}'`); + break; + } + + /* ─── App indítás ──────────────────────────────────────────────────── */ + case 'app': { + shell.openPath(`/Applications/${value}.app`).catch(() => { + exec(`open -a '${(value || "").replace(/'/g, "'\\''")}'`); + }); + break; + } + + /* ─── URL megnyitás ────────────────────────────────────────────────── */ + case 'url': { + if (value) shell.openExternal(value); + break; + } + + /* ─── Sleep ────────────────────────────────────────────────────────── */ + case 'sleep': { + exec('pmset sleepnow'); + break; + } + + default: + console.warn(`Unknown action type: ${type}`); + } + } catch (e) { + console.error(`Action failed [${type}]:`, e.message); + } + + // Visszahozzuk az ablakot + if (stealsFocus) { + await sleep(50); + app.show(); + if (mainWindow && !mainWindow.isDestroyed()) { + mainWindow.show(); + mainWindow.focus(); + } + } +} + +/* ─── IPC ──────────────────────────────────────────────────────────────────── */ +ipcMain.handle('get-config', () => config); +ipcMain.handle('reload-config', () => { + config = loadConfig(); + return config; +}); + +ipcMain.handle('execute-action', async (event, action) => { + await executeAction(action); + return { ok: true }; +}); + +ipcMain.handle('execute-actions', async (event, actions) => { + for (const action of actions) { + await executeAction(action); + await sleep(50); // kis késleltetés action-ök között + } + return { ok: true }; +}); + +ipcMain.handle('get-clipboard-text', () => clipboard.readText()); +ipcMain.handle('set-clipboard-text', (event, text) => clipboard.writeText(text)); +ipcMain.handle('toggle-fullscreen', () => { + if (mainWindow && !mainWindow.isDestroyed()) { + const newState = !mainWindow.isFullScreen(); + mainWindow.setFullScreen(newState); + return newState; + } + return false; +}); + +/* ─── System Stats ────────────────────────────────────────────────────────── + * Valós idejű CPU- és memóriafigyelés a Monitor oldalhoz. + * A CPU terhelést két mintavétel különbségéből számolja. + * ──────────────────────────────────────────────────────────────────────────── */ +let cpuPrevSample = null; + +function sampleCpuTimes() { + const cpus = os.cpus(); + const total = { idle: 0, tick: 0 }; + const cores = cpus.map(cpu => { + const tick = cpu.times.user + cpu.times.nice + cpu.times.sys + cpu.times.idle + cpu.times.irq; + const idle = cpu.times.idle; + total.idle += idle; + total.tick += tick; + return { tick, idle }; + }); + return { total, cores }; +} + +ipcMain.handle('get-system-stats', () => { + const memTotal = os.totalmem(); + const memFree = os.freemem(); + const memUsed = memTotal - memFree; + + const current = sampleCpuTimes(); + let cpuPercent = 0; + const perCore = []; + + if (cpuPrevSample) { + // Overall CPU + const idleDelta = current.total.idle - cpuPrevSample.total.idle; + const tickDelta = current.total.tick - cpuPrevSample.total.tick; + cpuPercent = tickDelta > 0 ? Math.round((1 - idleDelta / tickDelta) * 1000) / 10 : 0; + + // Per-core + current.cores.forEach((core, i) => { + const prevCore = cpuPrevSample.cores[i]; + if (prevCore) { + const dTick = core.tick - prevCore.tick; + const dIdle = core.idle - prevCore.idle; + const pct = dTick > 0 ? Math.round((1 - dIdle / dTick) * 100) : 0; + perCore.push({ usage: Math.min(pct, 100) }); + } else { + perCore.push({ usage: 0 }); + } + }); + } else { + current.cores.forEach(() => perCore.push({ usage: 0 })); + } + + cpuPrevSample = { total: current.total, cores: current.cores }; + + return { + cpu: { + usage: cpuPercent, + cores: current.cores.length, + perCore, + }, + memory: { + total: memTotal, + used: memUsed, + free: memFree, + usagePercent: Math.round((memUsed / memTotal) * 100), + }, + uptime: os.uptime(), + loadavg: os.loadavg(), + hostname: os.hostname(), + }; +}); + +/* ─── Global Shortcut: Escape kilépés kiosk-ból ─────────────────────────── */ +app.whenReady().then(() => { + // StreamDeck ikon elrejtése a Dock-ból (overlay app) + app.dock && app.dock.hide(); + createWindow(); + + // Ctrl+Cmd+F: fullscreen toggle + globalShortcut.register('Control+Command+F', () => { + if (mainWindow) { + mainWindow.setFullScreen(!mainWindow.isFullScreen()); + } + }); + + // F11: toggle kiosk + globalShortcut.register('F11', () => { + if (mainWindow) { + mainWindow.setFullScreen(!mainWindow.isFullScreen()); + } + }); + + // Esc: ha fullscreen, kilép belőle + globalShortcut.register('Escape', () => { + if (mainWindow && mainWindow.isFullScreen()) { + mainWindow.setFullScreen(false); + } + }); + + app.on('activate', () => { + if (BrowserWindow.getAllWindows().length === 0) createWindow(); + }); +}); + +app.on('window-all-closed', () => { + globalShortcut.unregisterAll(); + app.quit(); +}); + +/* ─── Helpers ──────────────────────────────────────────────────────────────── */ +function execPromise(cmd) { + return new Promise((resolve, reject) => { + exec(cmd, { + timeout: 10000, + env: { ...process.env, PATH: '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' } + }, (err, stdout, stderr) => { + if (err) reject(err); + else resolve(stdout); + }); + }); +} + +function sleep(ms) { return new Promise(r => setTimeout(r, ms)); } + +function parseKeystroke(str) { + if (!str) return null; + const parts = str.toLowerCase().split('+'); + const keyMap = { + 'cmd': 'command down', 'command': 'command down', + 'ctrl': 'control down', 'control': 'control down', + 'alt': 'option down', 'option': 'option down', + 'shift': 'shift down', + 'up': 'up arrow', 'down': 'down arrow', 'left': 'left arrow', 'right': 'right arrow', + 'return': 'return', 'enter': 'return', 'tab': 'tab', 'escape': 'escape', + 'space': 'space', 'backspace': 'delete', + 'del': 'delete', 'delete': 'delete', + 'f1': 'f1', 'f2': 'f2', 'f3': 'f3', 'f4': 'f4', 'f5': 'f5', + 'f6': 'f6', 'f7': 'f7', 'f8': 'f8', 'f9': 'f9', 'f10': 'f10', + 'f11': 'f11', 'f12': 'f12', + }; + + const key = keyMap[parts[parts.length - 1]] || parts[parts.length - 1]; + const modifiers = parts.slice(0, -1).map(p => keyMap[p]).filter(Boolean); + + return { key, modifiers }; +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..7b666ce --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1722 @@ +{ + "name": "streamdeck-custom", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "streamdeck-custom", + "version": "1.0.0", + "dependencies": { + "express": "^4.18.2", + "ws": "^8.16.0" + }, + "devDependencies": { + "electron": "^33.0.0" + } + }, + "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==", + "dev": true, + "license": "MIT", + "dependencies": { + "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": ">=12" + }, + "optionalDependencies": { + "global-agent": "^3.0.0" + } + }, + "node_modules/@electron/get/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@electron/get/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/@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/@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/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/node": { + "version": "20.19.41", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.41.tgz", + "integrity": "sha512-ECymXOukMnOoVkC2bb1Vc/w/836DXncOg5m8Xj1RH7xSHZJWNYY6Zh7EH477vcnD5egKNNfy2RpNOmuChhFPgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.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/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "1.20.5", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz", + "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "~1.2.0", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "on-finished": "~2.4.1", + "qs": "~6.15.1", + "raw-body": "~2.5.3", + "type-is": "~1.6.18", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dev": true, + "license": "MIT", + "optional": true + }, + "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/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cacheable-lookup": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", + "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", + "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", + "dev": true, + "license": "MIT", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "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", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/electron": { + "version": "33.4.11", + "resolved": "https://registry.npmjs.org/electron/-/electron-33.4.11.tgz", + "integrity": "sha512-xmdAs5QWRkInC7TpXGNvzo/7exojubk+72jn1oJL7keNeIlw7xNglf8TGtJtkR4rWC5FJq0oXiIXPS9BcK2Irg==", + "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/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", + "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "~1.20.5", + "content-disposition": "~0.5.4", + "content-type": "~1.0.4", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "~0.1.12", + "proxy-addr": "~2.0.7", + "qs": "~6.15.1", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "~0.19.0", + "serve-static": "~1.16.2", + "setprototypeof": "1.2.0", + "statuses": "~2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "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/extract-zip/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/extract-zip/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/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==", + "dev": true, + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/finalhandler": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", + "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "statuses": "~2.0.2", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "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", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + }, + "engines": { + "node": ">=10.0" + } + }, + "node_modules/global-agent/node_modules/semver": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.2.tgz", + "integrity": "sha512-c8jsqUZm3omBOI66G90z1Dyw5z622G8oLG+omfsHBJf3CWQTlOcwOjvOG6wtiNfW6anKm/eA39LMwMtMez2TiQ==", + "dev": true, + "license": "ISC", + "optional": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "11.8.6", + "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", + "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/http2-wrapper": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", + "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.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-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/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.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==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "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": ">=8" + } + }, + "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, + "license": "MIT", + "optional": true, + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "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==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "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==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "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": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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", + "optional": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/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": ">=8" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz", + "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", + "license": "MIT" + }, + "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==", + "dev": true, + "license": "MIT" + }, + "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", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.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==", + "dev": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/qs": { + "version": "6.15.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz", + "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", + "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.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==", + "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": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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.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==", + "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==", + "license": "MIT" + }, + "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/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/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/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==", + "license": "MIT" + }, + "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": { + "type-fest": "^0.13.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "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": "Apache-2.0", + "dependencies": { + "debug": "^4.1.0" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/sumchecker/node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/sumchecker/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/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "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 OR CC0-1.0)", + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "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": "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/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "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" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..ea90ea6 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "streamdeck-custom", + "version": "1.0.0", + "description": "Custom Stream Deck for HDMI touchscreen", + "main": "electron-main.js", + "scripts": { + "start": "electron .", + "electron": "electron .", + "server": "node server.js" + }, + "dependencies": { + "express": "^4.18.2", + "ws": "^8.16.0" + }, + "devDependencies": { + "electron": "^33.0.0" + } +} diff --git a/preload.js b/preload.js new file mode 100644 index 0000000..ef24a73 --- /dev/null +++ b/preload.js @@ -0,0 +1,34 @@ +/* ─── Preload Script ───────────────────────────────────────────────────────── + * Context bridge a renderer és main process között. + * Exponálja a natív API-kat a weboldalnak. + * ──────────────────────────────────────────────────────────────────────────── */ + +const { contextBridge, ipcRenderer } = require('electron'); + +contextBridge.exposeInMainWorld('electronAPI', { + // Config + getConfig: () => ipcRenderer.invoke('get-config'), + reloadConfig: () => ipcRenderer.invoke('reload-config'), + + // Action futtatás + executeAction: (action) => ipcRenderer.invoke('execute-action', action), + executeActions: (actions) => ipcRenderer.invoke('execute-actions', actions), + + // Clipboard + getClipboardText: () => ipcRenderer.invoke('get-clipboard-text'), + setClipboardText: (text) => ipcRenderer.invoke('set-clipboard-text', text), + + // System stats + getSystemStats: () => ipcRenderer.invoke('get-system-stats'), + + // Fullscreen + toggleFullscreen: () => ipcRenderer.invoke('toggle-fullscreen'), + + // Eredmény események (pl. shell output) + onShellResult: (callback) => { + ipcRenderer.on('shell-result', (event, data) => callback(data)); + }, + onClipboardResult: (callback) => { + ipcRenderer.on('clipboard-result', (event, data) => callback(data)); + }, +}); diff --git a/public/app.js b/public/app.js new file mode 100644 index 0000000..19165ae --- /dev/null +++ b/public/app.js @@ -0,0 +1,485 @@ +/* ─── State ────────────────────────────────────────────────────────────────── */ +const IS_ELECTRON = typeof window !== 'undefined' && window.electronAPI !== undefined; + +let config = { pages: [], gridCols: 5, gridRows: 3 }; +let currentPage = 0; +let ws = null; +let wsReconnectTimer = null; +let btnExecuting = {}; // { id: setTimeout } + +/* ─── DOM refs ────────────────────────────────────────────────────────────── */ +const gridEl = document.getElementById('grid'); +const navEl = document.getElementById('nav'); +const titleEl = document.getElementById('page-title'); +const wsStatusEl = document.getElementById('ws-status'); +const pageIndicatorEl = document.getElementById('page-indicator'); +const navPrevEl = document.getElementById('nav-prev'); +const navNextEl = document.getElementById('nav-next'); + +/* ─── Config + Monitor page ───────────────────────────────────────────────── */ +// A Monitor page index: mindig az utolsó oldal (config.pages.length után hozzáfűzve) +const MONITOR_PAGE_LABEL = '📊'; + +async function loadConfig() { + try { + if (IS_ELECTRON) { + config = await window.electronAPI.getConfig(); + } else { + const res = await fetch('/api/config'); + config = await res.json(); + } + if (!config.pages || config.pages.length === 0) { + config.pages = [{ title: 'Hello', buttons: [] }]; + } + // Virtuális Monitor oldal hozzáfűzése (nem mentjük config.json-ba) + config.pages.push({ + title: 'Monitor', + buttons: [], + _isMonitor: true, + }); + return true; + } catch (e) { + console.error('Failed to load config:', e); + return false; + } +} + +/* ─── WebSocket (böngésző módban) ────────────────────────────────────────── */ +function connectWS() { + if (IS_ELECTRON) { + // Electron: nincs szükség WS-re + document.body.classList.add('connected'); + wsStatusEl.title = 'Electron app – natív'; + wsStatusEl.className = 'ws-online'; + return; + } + + if (ws && ws.readyState === WebSocket.OPEN) return; + const proto = location.protocol === 'https:' ? 'wss:' : 'ws:'; + ws = new WebSocket(`${proto}//${location.host}`); + + ws.onopen = () => { + console.log('◉ WebSocket connected'); + if (wsReconnectTimer) { clearTimeout(wsReconnectTimer); wsReconnectTimer = null; } + document.body.classList.add('connected'); + wsStatusEl.className = 'ws-online'; + }; + + ws.onclose = () => { + console.log('◉ WebSocket disconnected'); + document.body.classList.remove('connected'); + wsStatusEl.className = 'ws-offline'; + ws = null; + wsReconnectTimer = setTimeout(connectWS, 2000); + }; + + ws.onmessage = (ev) => { + try { + const msg = JSON.parse(ev.data); + if (msg.type === 'connected') console.log(' ✓', msg.message); + } catch (e) { /* ignore */ } + }; + + ws.onerror = () => { /* onclose will fire next */ }; +} + +/* ─── Send press ──────────────────────────────────────────────────────────── */ +function sendPress(button) { + const actions = button.actions || []; + if (actions.length === 0) return; + + if (IS_ELECTRON) { + // Elektron: natív IPC-n keresztül + window.electronAPI.executeActions(actions).catch(console.error); + } else if (ws && ws.readyState === WebSocket.OPEN) { + ws.send(JSON.stringify({ + type: 'press', + actions: actions, + id: button.id || button.label + })); + } + + // Visual feedback + const btnId = button.id || button.label; + if (btnExecuting[btnId]) clearTimeout(btnExecuting[btnId]); + delete btnExecuting[btnId]; +} + +/* ─── Render grid (or monitor dashboard) ─────────────────────────────────── */ +let monitorInterval = null; + +function renderPage(pageIdx) { + const page = config.pages[pageIdx]; + if (!page) return; + + currentPage = pageIdx; + titleEl.textContent = page.title || ''; + + // Ha Monitor oldal, rendereld a dashboard-ot + if (page._isMonitor) { + renderMonitorPage(); + renderNav(); + updateNavArrows(); + updatePageIndicator(); + return; + } + + // Biztonság: ha volt monitor poll, állítsd le + stopMonitorPoll(); + + // Build grid + gridEl.innerHTML = ''; + gridEl.style.gridTemplateColumns = `repeat(${config.gridCols || 5}, 1fr)`; + gridEl.style.gridTemplateRows = `repeat(${config.gridRows || 3}, 1fr)`; + gridEl.classList.remove('drag-scroll'); + + const buttons = page.buttons || []; + + buttons.forEach((btn, i) => { + const el = document.createElement('button'); + el.className = 'button'; + el.dataset.index = i; + + // Color + if (btn.color) el.classList.add(`color-${btn.color}`); + + // Icon + if (btn.icon) { + const iconSpan = document.createElement('span'); + iconSpan.className = 'icon'; + iconSpan.textContent = btn.icon; + el.appendChild(iconSpan); + } + + // Label + if (btn.label) { + const labelSpan = document.createElement('span'); + labelSpan.className = 'label'; + labelSpan.textContent = btn.label; + el.appendChild(labelSpan); + } + + // Background image + if (btn.image) { + el.style.backgroundImage = `url(${btn.image})`; + el.style.backgroundSize = 'cover'; + el.style.backgroundPosition = 'center'; + } + + // ── Event handlers (multiple redundancies for different touchscreen drivers) ── + function fireAction(e) { + // Log to debug overlay + if (window.debugLog) window.debugLog(e.type, btn.label || '(no label)'); + // Visual feedback + el.classList.add('pressed'); + setTimeout(() => el.classList.remove('pressed'), 150); + // Send action to server + sendPress(btn); + } + + el.addEventListener('pointerdown', fireAction); + el.addEventListener('mousedown', fireAction); + el.addEventListener('click', (e) => { e.preventDefault(); fireAction(e); }); + el.addEventListener('touchstart', (e) => { + // Some touchscreens ONLY send touchstart + fireAction(e); + }, { passive: true }); + + // Colspan / rowspan (via CSS grid) + if (btn.colspan) el.style.gridColumn = `span ${btn.colspan}`; + if (btn.rowspan) el.style.gridRow = `span ${btn.rowspan}`; + + // Size classes for easier styling + if (btn.width) el.style.width = btn.width; + if (btn.height) el.style.height = btn.height; + + // Empty button (spacer) + if (btn.empty) { + el.style.visibility = 'hidden'; + el.style.pointerEvents = 'none'; + } + + gridEl.appendChild(el); + }); + + // Navigation dots, arrows, page indicator + renderNav(); + updateNavArrows(); + updatePageIndicator(); +} + +/* ─── Monitor dashboard ───────────────────────────────────────────────────── + * Realtime CPU és memória grafikonok. Csak Electron módban működik. + * ──────────────────────────────────────────────────────────────────────────── */ +function renderMonitorPage() { + gridEl.innerHTML = ''; + gridEl.style.gridTemplateColumns = '1fr'; + gridEl.style.gridTemplateRows = '1fr'; + gridEl.classList.remove('drag-scroll'); + + // Container + const dash = document.createElement('div'); + dash.id = 'monitor-dashboard'; + dash.innerHTML = ` +
+
CPU
+
+
+
+
+
+
MEMORY
+
+
+
+
+
SYSTEM
+
Uptime: —
+
Load: —
+
Host: —
+
+ `; + gridEl.appendChild(dash); + + // Start polling + startMonitorPoll(); +} + +function stopMonitorPoll() { + if (monitorInterval) { + clearInterval(monitorInterval); + monitorInterval = null; + } +} + +function startMonitorPoll() { + stopMonitorPoll(); + + if (!IS_ELECTRON) { + document.getElementById('monitor-cpu') && + (document.getElementById('monitor-cpu').innerHTML = '
CPU
Only available in Electron mode
'); + return; + } + + async function update() { + try { + const stats = await window.electronAPI.getSystemStats(); + if (!stats) return; + + // CPU + const cpuEl = document.getElementById('cpu-bar'); + const cpuVal = document.getElementById('cpu-value'); + const cpuCores = document.getElementById('cpu-cores'); + if (cpuEl) cpuEl.style.width = Math.min(stats.cpu.usage, 100) + '%'; + if (cpuVal) cpuVal.textContent = stats.cpu.usage.toFixed(1) + '%'; + + if (cpuCores && stats.cpu.perCore) { + let html = ''; + stats.cpu.perCore.forEach((core, i) => { + const pct = Math.min(core.usage || 0, 100); + html += `
C${i}
${pct}%
`; + }); + cpuCores.innerHTML = html; + } + + // Memory + const memEl = document.getElementById('mem-bar'); + const memVal = document.getElementById('mem-value'); + if (memEl) memEl.style.width = Math.min(stats.memory.usagePercent, 100) + '%'; + if (memVal) { + const usedGB = (stats.memory.used / 1024 / 1024 / 1024).toFixed(1); + const totalGB = (stats.memory.total / 1024 / 1024 / 1024).toFixed(1); + const color = stats.memory.usagePercent > 85 ? '#f87171' : stats.memory.usagePercent > 65 ? '#fbbf24' : '#4ade80'; + memVal.innerHTML = `${usedGB} GB / ${totalGB} GB (${stats.memory.usagePercent}%)`; + } + + // System info + const uptimeEl = document.getElementById('monitor-uptime'); + const loadEl = document.getElementById('monitor-load'); + const hostEl = document.getElementById('monitor-host'); + if (uptimeEl) { + const days = Math.floor(stats.uptime / 86400); + const hrs = Math.floor((stats.uptime % 86400) / 3600); + const mins = Math.floor((stats.uptime % 3600) / 60); + uptimeEl.textContent = `Uptime: ${days}d ${hrs}h ${mins}m`; + } + if (loadEl) { + loadEl.textContent = `Load: ${stats.loadavg.map(v => v.toFixed(2)).join(', ')}`; + } + if (hostEl) { + hostEl.textContent = `Host: ${stats.hostname}`; + } + } catch (e) { + console.error('Monitor update error:', e); + } + } + + update(); + monitorInterval = setInterval(update, 2000); +} + +function renderNav() { + navEl.innerHTML = ''; + config.pages.forEach((page, i) => { + const dot = document.createElement('button'); + dot.className = 'nav-dot'; + dot.dataset.index = i; + if (i === currentPage) dot.classList.add('active'); + + function gotoPage(e) { + e.preventDefault(); + renderPage(i); + } + dot.addEventListener('click', gotoPage); + dot.addEventListener('touchstart', (e) => { + // For touchscreen drivers that only send touchstart, not click + gotoPage(e); + }, { passive: true }); + + navEl.appendChild(dot); + }); +} + +/* ─── Fullscreen toggle ──────────────────────────────────────────────────── */ +document.getElementById('fullscreen-btn').addEventListener('click', async (e) => { + e.preventDefault(); + if (IS_ELECTRON) { + await window.electronAPI.toggleFullscreen(); + } else if (!document.fullscreenElement) { + await document.documentElement.requestFullscreen().catch(() => {}); + } else { + await document.exitFullscreen().catch(() => {}); + } +}); +// Auto-fullscreen Electron indításkor +if (IS_ELECTRON) { + window.electronAPI.toggleFullscreen(); +} else { + // Böngésző: első touch-ra fullscreen + document.addEventListener('touchstart', () => { + if (!document.fullscreenElement && document.documentElement.requestFullscreen) { + document.documentElement.requestFullscreen().catch(() => {}); + } + }, { once: true }); +} + +function updateNavArrows() { + navPrevEl.disabled = currentPage <= 0; + navNextEl.disabled = currentPage >= config.pages.length - 1; + navPrevEl.style.opacity = navPrevEl.disabled ? '0.15' : '0.3'; + navNextEl.style.opacity = navNextEl.disabled ? '0.15' : '0.3'; +} + +function updatePageIndicator() { + pageIndicatorEl.textContent = `${currentPage + 1} / ${config.pages.length}`; +} + +// ─── Navigation arrow handlers ────────────────────────────────────────────── +function goToPrevPage(e) { + if (currentPage > 0) renderPage(currentPage - 1); +} +function goToNextPage(e) { + if (currentPage < config.pages.length - 1) renderPage(currentPage + 1); +} +navPrevEl.addEventListener('click', goToPrevPage); +navPrevEl.addEventListener('touchstart', (e) => { goToPrevPage(e); }, { passive: true }); +navNextEl.addEventListener('click', goToNextPage); +navNextEl.addEventListener('touchstart', (e) => { goToNextPage(e); }, { passive: true }); + +/* ─── Swipe gesture for page navigation ──────────────────────────────────── + * Egyszerűsített verzió: NEM vár pointermove/touchmove eseményekre. + * Közvetlenül a felengedéskor méri a távolságot a lenyomás pontjától. + * Ez azért kell, mert egyes touchscreen-ek (pl. WCH USB touch) NEM + * küldenek mozgás eseményeket (pointermove/touchmove). + * ──────────────────────────────────────────────────────────────────────────── */ +let swipeStartX = 0; +let swipeStartY = 0; +let swipeDownTime = 0; +let swipeTarget = null; + +function handleSwipeEnd(endX, endY, target) { + const dx = endX - swipeStartX; + const dy = endY - swipeStartY; + const elapsed = Date.now() - swipeDownTime; + + // Nem swipe ha: túl kis távolság (>20px), vagy túl lassú (>500ms), + // vagy nem elég vízszintes, vagy gombról indult + if (Math.abs(dx) < 20 || elapsed > 500) return; + if (Math.abs(dx) < Math.abs(dy) * 1.5) return; // nem elég vízszintes + if (target && target.closest('.button')) return; // gombról indult + + if (dx > 0 && currentPage > 0) renderPage(currentPage - 1); + else if (dx < 0 && currentPage < config.pages.length - 1) renderPage(currentPage + 1); +} + +// Pointer events – minden touchscreen ezt küldi (UPDD driver is) +document.addEventListener('pointerdown', (e) => { + swipeStartX = e.screenX; + swipeStartY = e.screenY; + swipeDownTime = Date.now(); + swipeTarget = e.target; +}, { passive: true }); + +document.addEventListener('pointerup', (e) => { + handleSwipeEnd(e.screenX, e.screenY, swipeTarget); +}, { passive: true }); + +// Touch events – egyes eszközök ezt küldik pointer helyett +document.addEventListener('touchstart', (e) => { + swipeStartX = e.changedTouches[0].screenX; + swipeStartY = e.changedTouches[0].screenY; + swipeDownTime = Date.now(); + swipeTarget = e.target; +}, { passive: true }); + +document.addEventListener('touchend', (e) => { + handleSwipeEnd( + e.changedTouches[0].screenX, + e.changedTouches[0].screenY, + swipeTarget + ); +}, { passive: true }); + +// ← → keyboard nav +document.addEventListener('keydown', (e) => { + if (e.key === 'ArrowRight' && currentPage < config.pages.length - 1) renderPage(currentPage + 1); + if (e.key === 'ArrowLeft' && currentPage > 0) renderPage(currentPage - 1); +}); + +/* ─── Document-level event logger (for troubleshooting touch) ──────────── */ +function docLog(e) { + window.debugLog(`📄 ${e.type}`, `target:${e.target?.tagName} pt:${e.pointerType || '-'} btn:${e.which || e.button || 0}`); +} +document.addEventListener('pointerdown', docLog); +document.addEventListener('pointerup', docLog); +document.addEventListener('mousedown', docLog); +document.addEventListener('mouseup', docLog); +document.addEventListener('click', docLog); +document.addEventListener('touchstart', docLog); +document.addEventListener('touchend', docLog); + +/* ─── Debug overlay ──────────────────────────────────────────────────────── */ +const debugEl = document.getElementById('debug-overlay'); +let debugCount = 0; +window.debugLog = function(type, label) { + const now = new Date(); + const t = now.toLocaleTimeString(); + const entry = `[${t}] ${type.padEnd(15)} ${label || ''}`; + debugEl.innerHTML += `
${entry}
`; + debugEl.scrollTop = debugEl.scrollHeight; + if (++debugCount > 100) { debugEl.innerHTML = debugEl.innerHTML.split('').slice(-50).join(''); } +}; + +// Press F2 to toggle debug overlay +document.addEventListener('keydown', (e) => { + if (e.key === 'F2') { + debugEl.style.display = debugEl.style.display === 'none' ? 'block' : 'none'; + } +}); + +/* ─── Init ────────────────────────────────────────────────────────────────── */ +(async function init() { + await loadConfig(); + renderPage(0); + connectWS(); +})(); diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..4023bcc --- /dev/null +++ b/public/index.html @@ -0,0 +1,37 @@ + + + + + + + + StreamDeck + + + +
+ + + + +
+
+ + +
+ + + + + +
+
+ + + + + diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..63c6e05 --- /dev/null +++ b/public/style.css @@ -0,0 +1,359 @@ +/* ─── Reset ────────────────────────────────────────────────────────────────── */ +*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } +html, body { + width: 100%; height: 100%; + overflow: hidden; + background: #1a1a2e; + color: #fff; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + -webkit-tap-highlight-color: transparent; +} + +/* ─── Layout ──────────────────────────────────────────────────────────────── */ +#app { + display: flex; + flex-direction: column; + height: 100vh; + padding: 10px; + gap: 8px; +} + +#header { + text-align: center; + font-size: 13px; + color: #888; + padding: 2px 0; + flex-shrink: 0; + letter-spacing: 0.5px; + text-transform: uppercase; + opacity: 0.7; + display: flex; + align-items: center; + justify-content: center; + gap: 8px; +} + +#ws-status { + font-size: 10px; + transition: color 0.3s; +} +#ws-status.ws-online { color: #4ade80; } +#ws-status.ws-offline { color: #f87171; } + +#fullscreen-btn { + background: none; + border: 1px solid #555; + color: #888; + border-radius: 6px; + font-size: 14px; + cursor: pointer; + padding: 2px 8px; + line-height: 1.4; + -webkit-tap-highlight-color: transparent; + touch-action: manipulation; +} +#fullscreen-btn:active { background: rgba(255,255,255,0.1); } + +.button { + position: relative; + border: none; + border-radius: 16px; + background: #16213e; + color: #fff; + font-size: 18px; + font-weight: 600; + cursor: pointer; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 10px; + transition: all 0.1s ease; + box-shadow: 0 3px 12px rgba(0,0,0,0.4); + line-height: 1.2; + text-align: center; + word-break: break-word; + overflow: hidden; + font-family: inherit; +} + +.button .icon { + font-size: 48px; + margin-bottom: 6px; + line-height: 1; +} + +.button .label { + font-size: 16px; + opacity: 0.95; + max-width: 100%; +} + +/* Pressed state */ +.button:active, .button.pressed { + transform: scale(0.92); + filter: brightness(1.3); +} + +/* Color variants */ +.button.color-blue { background: #0f3460; } +.button.color-green { background: #1b4332; } +.button.color-red { background: #5c1a1a; } +.button.color-purple { background: #3b1f6e; } +.button.color-orange { background: #5c3a1a; } +.button.color-teal { background: #1a4a4a; } +.button.color-pink { background: #5c1a3a; } +.button.color-yellow { background: #5c4a1a; color: #ffe066; } +.button.color-white { background: #2a2a3e; } +.button.color-dark { background: #0d0d1a; } + +/* Transparent (image only) */ +.button.color-transparent { background: transparent; box-shadow: none; } +.button.color-transparent:active { filter: brightness(1.5); } + +/* ─── Grid wrapper with side arrows ──────────────────────────────────────── */ +#grid-wrapper { + position: relative; + flex: 1; + display: flex; + align-items: center; +} + +#grid { + flex: 1; + display: grid; + gap: 10px; + align-content: stretch; +} + +.nav-arrow { + position: absolute; + top: 0; bottom: 0; + width: 56px; + border: none; + background: rgba(255,255,255,0.05); + color: rgba(255,255,255,0.35); + font-size: 40px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + z-index: 10; + transition: all 0.2s; + -webkit-tap-highlight-color: transparent; + touch-action: manipulation; + padding: 0; +} +.nav-arrow:active { background: rgba(255,255,255,0.15); color: #fff; } +#nav-prev { left: 0; border-radius: 0 10px 10px 0; } +#nav-next { right: 0; border-radius: 10px 0 0 10px; } + +/* ─── Navigation dots ─────────────────────────────────────────────────────── */ +#nav { + display: flex; + justify-content: center; + gap: 12px; + padding: 8px 0; + flex-shrink: 0; +} + +.nav-dot { + width: 18px; + height: 18px; + border-radius: 50%; + background: #444; + border: 2px solid transparent; + cursor: pointer; + transition: all 0.2s; + padding: 0; + -webkit-tap-highlight-color: transparent; + touch-action: manipulation; +} + +.nav-dot:active { + background: #666; + transform: scale(0.9); +} + +.nav-dot.active { + background: #4a9eff; + border-color: #6bb4ff; + box-shadow: 0 0 10px #4a9eff; + transform: scale(1.15); +} + +/* ─── Page indicator text ────────────────────────────────────────────────── */ +#page-indicator { + text-align: center; + font-size: 12px; + color: #555; + padding: 2px 0; + flex-shrink: 0; +} + +/* ─── Responsive ──────────────────────────────────────────────────────────── */ +/* Ultrawide landscape (e.g. 1920×480) — the touchscreen */ +@media (min-aspect-ratio: 3/1) { + .button { padding: 10px 14px; } + .button .icon { font-size: 48px; } + .button .label { font-size: 16px; } + #app { padding: 8px 12px; } +} + +/* Small portrait (e.g. 1024×768) */ +@media (max-aspect-ratio: 4/3) { + .button { border-radius: 20px; } + .button .icon { font-size: 56px; } + .button .label { font-size: 20px; } +} + +/* ─── Animations ──────────────────────────────────────────────────────────── */ +@keyframes flash { + 0%, 100% { opacity: 1; } + 50% { opacity: 0.5; } +} + +.button.executing { + animation: flash 0.3s ease 2; +} + +/* ─── Drag scroll (for pages with many rows) ──────────────────────────────── */ +#grid.drag-scroll { + overflow-y: auto; + scroll-behavior: smooth; + flex: 1; +} + +#grid.drag-scroll::-webkit-scrollbar { + width: 3px; +} +#grid.drag-scroll::-webkit-scrollbar-track { + background: transparent; +} +#grid.drag-scroll::-webkit-scrollbar-thumb { + background: #555; + border-radius: 3px; +} + +/* ─── Monitor dashboard ───────────────────────────────────────────────────── */ +#monitor-dashboard { + display: grid; + grid-template-columns: 1fr 1fr; + grid-template-rows: 1fr 1fr; + gap: 8px; + height: 100%; + padding: 4px; +} + +.monitor-section { + background: #16213e; + border-radius: 12px; + padding: 10px 14px; + display: flex; + flex-direction: column; + box-shadow: 0 2px 8px rgba(0,0,0,0.3); +} + +.monitor-title { + font-size: 11px; + text-transform: uppercase; + letter-spacing: 1px; + color: #888; + margin-bottom: 6px; + flex-shrink: 0; +} + +.monitor-bar-bg { + height: 20px; + background: #0d1b2a; + border-radius: 10px; + overflow: hidden; + flex-shrink: 0; + margin-bottom: 4px; +} + +.monitor-bar { + height: 100%; + border-radius: 10px; + transition: width 0.6s ease; +} + +.monitor-bar-cpu { background: linear-gradient(90deg, #4a9eff, #6bb4ff); } +.monitor-bar-mem { background: linear-gradient(90deg, #4ade80, #6ee7a0); } + +.monitor-value { + font-size: 20px; + font-weight: 700; + margin-bottom: 4px; + flex-shrink: 0; +} + +/* Per-core bars */ +.monitor-cores { + display: flex; + flex-direction: column; + gap: 3px; + flex: 1; + justify-content: center; + margin-top: 4px; +} + +.core-bar-bg { + height: 14px; + background: #0d1b2a; + border-radius: 7px; + overflow: hidden; + display: flex; + align-items: center; + position: relative; +} + +.core-label { + position: absolute; + left: 6px; + font-size: 8px; + color: #aaa; + z-index: 1; + font-weight: 600; +} + +.core-bar-fill { + height: 100%; + border-radius: 7px; + background: linear-gradient(90deg, #4a9eff, #7bb8ff); + transition: width 0.6s ease; +} + +.core-pct { + position: absolute; + right: 6px; + font-size: 8px; + color: #ddd; + z-index: 1; +} + +/* System info section */ +#monitor-sys { + grid-column: 1 / 3; +} + +.monitor-line { + font-size: 13px; + color: #bbb; + padding: 3px 0; + flex-shrink: 0; +} + +/* Ultrawide tuning */ +@media (min-aspect-ratio: 3/1) { + #monitor-dashboard { gap: 6px; padding: 2px; } + .monitor-section { padding: 6px 10px; border-radius: 8px; } + .monitor-title { font-size: 10px; } + .monitor-value { font-size: 16px; } + .monitor-bar-bg { height: 16px; } + .core-bar-bg { height: 12px; } + .monitor-line { font-size: 11px; } +} diff --git a/server.js b/server.js new file mode 100644 index 0000000..fc2ab0e --- /dev/null +++ b/server.js @@ -0,0 +1,238 @@ +const express = require('express'); +const WebSocket = require('ws'); +const http = require('http'); +const path = require('path'); +const { exec, spawn } = require('child_process'); +const fs = require('fs'); + +// ─── Config ─────────────────────────────────────────────────────────────────── +const PORT = 8090; +const CONFIG_PATH = path.join(__dirname, 'config.json'); + +let config = { pages: [], gridCols: 5, gridRows: 3 }; +function loadConfig() { + try { + config = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); + console.log(` ✓ Config loaded: ${config.pages.length} page(s), ${config.gridCols}×${config.gridRows} grid`); + } catch (e) { + console.log(' ! No config.json found, using defaults'); + } +} +loadConfig(); + +// ─── Express server ──────────────────────────────────────────────────────────── +const app = express(); +app.use(express.static(path.join(__dirname, 'public'))); +app.use(express.json()); + +// API endpoint to get config +app.get('/api/config', (req, res) => res.json(config)); + +// API endpoint to reload config +app.post('/api/reload', (req, res) => { + loadConfig(); + res.json({ ok: true, pages: config.pages.length }); +}); + +// API endpoint to run AppleScript +app.post('/api/osascript', (req, res) => { + const { script } = req.body; + if (!script) return res.status(400).json({ error: 'missing script' }); + exec(`osascript -e '${script.replace(/'/g, "'\\''")}'`, (err, stdout, stderr) => { + if (err && stderr) console.error(' ✗ osascript error:', stderr.trim()); + res.json({ ok: !err, stdout: stdout?.trim(), stderr: stderr?.trim() }); + }); +}); + +// API endpoint to run shell commands +app.post('/api/exec', (req, res) => { + const { command } = req.body; + if (!command) return res.status(400).json({ error: 'missing command' }); + exec(command, { timeout: 5000 }, (err, stdout, stderr) => { + if (err && stderr) console.error(' ✗ exec error:', stderr.trim()); + res.json({ ok: !err, stdout: stdout?.trim(), stderr: stderr?.trim() }); + }); +}); + +// API endpoint to open an app +app.post('/api/open', (req, res) => { + const { app, url } = req.body; + if (url) { + exec(`open '${url.replace(/'/g, "'\\''")}'`, (err) => { + res.json({ ok: !err }); + }); + } else if (app) { + exec(`open -a '${app.replace(/'/g, "'\\''")}'`, (err) => { + res.json({ ok: !err }); + }); + } else { + res.status(400).json({ error: 'missing app or url' }); + } +}); + +// ─── WebSocket server ────────────────────────────────────────────────────────── +const server = http.createServer(app); +const wss = new WebSocket.Server({ server }); + +function runAction(action, ws) { + if (!action) return; + + const { type, value } = action; + console.log(` ▶ ${type}: ${value?.substring(0, 60)}`); + + switch (type) { + case 'keystroke': { + // Simulate keyboard shortcut via AppleScript + // value: "cmd+c", "cmd+shift+4", "cmd+space", etc. + const parts = value.split('+').map(s => s.trim().toLowerCase()); + const key = parts.pop(); + const specialKeys = { + 'cmd': 'command down', 'ctrl': 'control down', 'alt': 'option down', + 'shift': 'shift down', 'option': 'option down', 'command': 'command down', + 'control': 'control down', 'fn': 'fn down', + }; + // Map key names to AppleScript key codes or names + const keyMap = { + 'enter': 'return', 'return': 'return', 'tab': 'tab', 'space': 'space', + 'escape': 'escape', 'esc': 'escape', 'backspace': 'backspace', + 'delete': 'backspace', 'up': 'up', 'down': 'down', 'left': 'left', + 'right': 'right', 'home': 'home', 'end': 'end', 'pageup': 'page up', + 'pagedown': 'page down', + }; + + const appleKey = keyMap[key] || key; + const pressedKeys = parts.map(k => specialKeys[k] || k).join(', '); + const script = pressedKeys + ? `tell application "System Events" to keystroke "${appleKey}" using {${pressedKeys}}` + : `tell application "System Events" to keystroke "${appleKey}"`; + + exec(`osascript -e '${script.replace(/'/g, "'\\''")}'`, (err) => { + if (err) console.error(` ✗ keystroke error: ${err.message}`); + }); + break; + } + + case 'app': { + exec(`open -a '${(value || '').replace(/'/g, "'\\''")}'`, (err) => { + if (err) console.error(` ✗ open app error: ${err.message}`); + }); + break; + } + + case 'url': { + exec(`open '${(value || '').replace(/'/g, "'\\''")}'`, (err) => { + if (err) console.error(` ✗ open url error: ${err.message}`); + }); + break; + } + + case 'shell': { + exec(value, { timeout: 5000 }, (err, stdout, stderr) => { + if (err) console.error(` ✗ shell error: ${err.message}`); + else if (stdout?.trim()) console.log(` ↳ ${stdout.trim().substring(0, 80)}`); + }); + break; + } + + case 'osascript': { + exec(`osascript -e '${(value || '').replace(/'/g, "'\\''")}'`, (err, stdout, stderr) => { + if (err && stderr) console.error(` ✗ osascript error: ${stderr.trim()}`); + }); + break; + } + + case 'volume': { + const vol = parseInt(value); + if (!isNaN(vol)) { + exec(`osascript -e 'set volume output volume ${vol}'`, (err) => { + if (err) console.error(` ✗ volume error: ${err.message}`); + }); + } + break; + } + + case 'brightness': { + // Requires external tool or AppleScript + exec(`osascript -e 'tell application "System Events"' -e 'repeat 20 times' -e 'key code 107' -e 'end repeat' -e 'end tell'`, () => {}); + break; + } + + case 'sleep': { + exec('pmset displaysleepnow', (err) => { + if (err) console.error(` ✗ sleep error: ${err.message}`); + }); + break; + } + + case 'screenshot': { + const script = value === 'window' + ? 'tell application "System Events" to keystroke "3" using {command down, shift down}' // full screen + : value === 'area' + ? 'tell application "System Events" to keystroke "4" using {command down, shift down}' // area + : 'tell application "System Events" to keystroke "5" using {command down, shift down}'; // screen record + exec(`osascript -e '${script}'`, (err) => { + if (err) console.error(` ✗ screenshot error: ${err.message}`); + }); + break; + } + + default: { + if (ws) ws.send(JSON.stringify({ type: 'error', message: `Unknown action type: ${type}` })); + } + } +} + +wss.on('connection', (ws) => { + console.log(' ◉ Browser connected via WebSocket'); + ws.send(JSON.stringify({ type: 'connected', message: 'Stream Deck ready' })); + + ws.on('message', (raw) => { + try { + const msg = JSON.parse(raw.toString()); + console.log(` ◀ ${msg.type}${msg.id ? ` [${msg.id}]` : ''}`); + + switch (msg.type) { + case 'press': + if (msg.actions) { + // Execute multiple actions sequentially + const executeNext = (index) => { + if (index >= msg.actions.length) return; + const action = msg.actions[index]; + const delay = action.delay || 0; + if (delay > 0) { + setTimeout(() => { runAction(action, ws); executeNext(index + 1); }, delay); + } else { + runAction(action, ws); + executeNext(index + 1); + } + }; + executeNext(0); + } + break; + case 'ping': + ws.send(JSON.stringify({ type: 'pong' })); + break; + default: + ws.send(JSON.stringify({ type: 'error', message: `Unknown message type: ${msg.type}` })); + } + } catch (e) { + console.error(' ✗ Invalid message:', e.message); + } + }); + + ws.on('close', () => console.log(' ◉ Browser disconnected')); +}); + +// ─── Start ───────────────────────────────────────────────────────────────────── +server.listen(PORT, '0.0.0.0', () => { + console.log(''); + console.log('╔══════════════════════════════════════════════╗'); + console.log('║ 🎛 Custom Stream Deck Server ║'); + console.log('╠══════════════════════════════════════════════╣'); + console.log(`║ Local: http://localhost:${PORT} ║`); + console.log(`║ Network: http://192.168.1.231:${PORT} ║`); + console.log('╠══════════════════════════════════════════════╣'); + console.log(`║ Pages: ${config.pages.length} Grid: ${config.gridCols}×${config.gridRows} ║`); + console.log('╚══════════════════════════════════════════════╝'); + console.log(''); +}); diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..8c55d28 --- /dev/null +++ b/start.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# StreamDeck — Electron app (touchscreen) / Web server (böngésző) +DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$DIR" + +case "${1:-electron}" in + server|node) + pkill -f "node $DIR/server.js" 2>/dev/null + nohup node server.js > /tmp/streamdeck.log 2>&1 & + echo "StreamDeck server started (PID $!)" + echo " → http://localhost:8090" + echo " → Log: /tmp/streamdeck.log" + echo " → Stop: pkill -f \"node $DIR/server.js\"" + ;; + electron|app|--dev) + echo "Starting StreamDeck Electron app..." + if [ "$1" = "--dev" ]; then + npx electron . --dev + else + npx electron . + fi + ;; + *) + echo "Usage: $0 [electron|server|--dev]" + echo " electron (default) Start native macOS app on touchscreen" + echo " server Start web server (browser mode)" + echo " --dev Electron app with DevTools" + exit 1 + ;; +esac