Skip to content

Self-hosted, plugin-based server management.

Clean commit without large files

LukeGusd0b139e3887a
diff --git a/.env b/.env
new file mode 100644
index 000000000..3967bc094
--- /dev/null
+++ b/.env
@@ -0,0 +1 @@
+VERSION=1.1
\ No newline at end of file
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 000000000..14c1d8b7e
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+github: [LukeGus]
\ No newline at end of file
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
new file mode 100644
index 000000000..2d473e10d
--- /dev/null
+++ b/.github/workflows/docker-image.yml
@@ -0,0 +1,116 @@
+name: Build and Push Docker Image
+
+on:
+ push:
+ branches:
+ - development
+ paths-ignore:
+ - '**.md'
+ - '.gitignore'
+ workflow_dispatch:
+ inputs:
+ tag_name:
+ description: "Custom tag name for the Docker image"
+ required: false
+ default: ""
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v3
+ with:
+ platforms: arm64
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+ with:
+ platforms: linux/amd64,linux/arm64
+ driver-opts: |
+ image=moby/buildkit:master
+ network=host
+
+ - name: Cache npm dependencies
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.npm
+ node_modules
+ */*/node_modules
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+
+ - name: Cache Docker layers
+ uses: actions/cache@v3
+ with:
+ path: /tmp/.buildx-cache
+ key: ${{ runner.os }}-buildx-${{ github.ref_name }}-${{ hashFiles('docker/Dockerfile') }}
+ restore-keys: |
+ ${{ runner.os }}-buildx-${{ github.ref_name }}-
+ ${{ runner.os }}-buildx-
+
+ - name: Login to Docker Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Determine Docker image tag
+ run: |
+ echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
+ if [ "${{ github.event.inputs.tag_name }}" != "" ]; then
+ IMAGE_TAG="${{ github.event.inputs.tag_name }}"
+ elif [ "${{ github.ref }}" == "refs/heads/main" ]; then
+ IMAGE_TAG="latest"
+ elif [ "${{ github.ref }}" == "refs/heads/development" ]; then
+ IMAGE_TAG="development-latest"
+ else
+ IMAGE_TAG="${{ github.ref_name }}-development-latest"
+ fi
+ echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
+
+ - name: Build and Push Multi-Arch Docker Image
+ uses: docker/build-push-action@v5
+ with:
+ context: .
+ file: ./docker/Dockerfile
+ push: true
+ platforms: linux/amd64,linux/arm64
+ tags: ghcr.io/${{ env.REPO_OWNER }}/termix:${{ env.IMAGE_TAG }}
+ labels: |
+ org.opencontainers.image.source=https://github.com/${{ github.repository }}
+ org.opencontainers.image.revision=${{ github.sha }}
+ cache-from: type=local,src=/tmp/.buildx-cache
+ cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
+ build-args: |
+ BUILDKIT_INLINE_CACHE=1
+ BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
+ outputs: type=registry,compression=zstd,compression-level=19
+
+ - name: Move cache
+ run: |
+ rm -rf /tmp/.buildx-cache
+ mv /tmp/.buildx-cache-new /tmp/.buildx-cache
+
+ - name: Delete all untagged image versions
+ if: success()
+ uses: quartx-analytics/ghcr-cleaner@v1
+ with:
+ owner-type: user
+ token: ${{ secrets.GHCR_TOKEN }}
+ repository-owner: ${{ github.repository_owner }}
+ delete-untagged: true
+
+ - name: Cleanup Docker Images Locally
+ if: always()
+ run: |
+ docker image prune -af
+ docker system prune -af --volumes
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..d0adddb53
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,25 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+/db/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..d1191b80d
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright 2025 Luke Gustafson
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..2d6d13a3e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,87 @@
+# Repo Stats
+![GitHub Repo stars](https://img.shields.io/github/stars/LukeGus/Termix?style=flat&label=Stars)
+![GitHub forks](https://img.shields.io/github/forks/LukeGus/Termix?style=flat&label=Forks)
+![GitHub Release](https://img.shields.io/github/v/release/LukeGus/Termix?style=flat&label=Release)
+<a href="https://discord.gg/jVQGdvHDrf"><img alt="Discord" src="https://img.shields.io/discord/1347374268253470720"></a>
+#### Top Technologies
+[![React Badge](https://img.shields.io/badge/-React-61DBFB?style=flat-square&labelColor=black&logo=react&logoColor=61DBFB)](#)
+[![TypeScript Badge](https://img.shields.io/badge/-TypeScript-3178C6?style=flat-square&labelColor=black&logo=typescript&logoColor=3178C6)](#)
+[![Node.js Badge](https://img.shields.io/badge/-Node.js-3C873A?style=flat-square&labelColor=black&logo=node.js&logoColor=3C873A)](#)
+[![Vite Badge](https://img.shields.io/badge/-Vite-646CFF?style=flat-square&labelColor=black&logo=vite&logoColor=646CFF)](#)
+[![Tailwind CSS Badge](https://img.shields.io/badge/-TailwindCSS-38B2AC?style=flat-square&labelColor=black&logo=tailwindcss&logoColor=38B2AC)](#)
+[![Docker Badge](https://img.shields.io/badge/-Docker-2496ED?style=flat-square&labelColor=black&logo=docker&logoColor=2496ED)](#)
+[![SQLite Badge](https://img.shields.io/badge/-SQLite-003B57?style=flat-square&labelColor=black&logo=sqlite&logoColor=003B57)](#)
+[![Radix UI Badge](https://img.shields.io/badge/-Radix%20UI-161618?style=flat-square&labelColor=black&logo=radixui&logoColor=161618)](#)
+
+
+<br />
+<p align="center">
+ <a href="https://github.com/LukeGus/Termix">
+ <img alt="Termix Banner" src=./public/icon.svg style="width: 250px; height: auto;"> </a>
+</p>
+
+If you would like, you can support the project here!\
+[![GitHub Sponsor](https://img.shields.io/badge/Sponsor-LukeGus-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/sponsors/LukeGus)
+
+# Overview
+Termix is an open-source, forever-free, self-hosted all-in-one server management platform. It provides a web-based solution for managing your servers and infrastructure through a single, intuitive interface. Termix offers SSH terminal access, SSH tunneling capabilities, and remote file configuration editing, with many more tools to come.
+
+# Features
+- **SSH Terminal Access** - Full-featured terminal with split-screen support (up to 4 panels) and tab system
+- **SSH Tunnel Management** - Create and manage SSH tunnels with automatic reconnection and health monitoring
+- **Remote Config Editor** - Edit files directly on remote servers with syntax highlighting and file management
+- **SSH Host Manager** - Save, organize, and manage your SSH connections with tags and folders
+- **User Authentication** - Secure user management with admin controls
+- **Modern UI** - Clean interface built with React, Tailwind CSS, and the amazing Shadcn
+
+# Planned Features
+- **Improved Admin Control** - Ability to manage admins, and give more fine-grained control over their permissions, share hosts, reset passwords, delete accounts, etc
+- **More auth types** - Add 2FA, OCID support, etc
+- **Theming** - Modify themeing for all tools
+- **Improved SFTP Support** - Ability to manage files easier with the config editor by uploading, creating, and removing files
+- **Improved Terminal Support** - Add more terminal protocols such as VNC and RDP (anyone who has experience in integrating RDP into a web-application similar to Apache Guacamole, please contact me by creating an issue)
+
+# Installation
+Visit the Termix [Docs](https://docs.termix.site/docs) for more information on how to install Termix. Otherwise, view a sample docker-compose file here:
+```yaml
+services:
+ termix:
+ image: ghcr.io/lukegus/termix:latest
+ container_name: termix
+ restart: unless-stopped
+ ports:
+ - "8080:8080"
+ volumes:
+ - termix-data:/app/data
+ environment:
+ PORT: "8080"
+
+volumes:
+ termix-data:
+ driver: local
+```
+
+# Support
+If you need help with Termix, you can join the [Discord](https://discord.gg/jVQGdvHDrf) server and visit the support channel. You can also open an issue or open a pull request on the [GitHub](https://github.com/LukeGus/Termix/issues) repo.
+
+# Show-off
+
+<p align="center">
+ <img src="./repo-images/Image 1.png" width="400" alt="Termix Demo 1"/>
+ <img src="./repo-images/Image 2.png" width="400" alt="Termix Demo 2"/>
+</p>
+
+<p align="center">
+ <img src="./repo-images/Image 3.png" width="250" alt="Termix Demo 3"/>
+ <img src="./repo-images/Image 4.png" width="250" alt="Termix Demo 4"/>
+ <img src="./repo-images/Image 5.png" width="250" alt="Termix Demo 5"/>
+</p>
+
+<p align="center">
+ <video src="https://github.com/user-attachments/assets/0f95495d-c5db-48f5-b18b-9ab48bb10d31" width="800" controls>
+ Your browser does not support the video tag.
+ </video>
+</p>
+
+# License
+Distributed under the Apache License Version 2.0. See LICENSE for more information.
diff --git a/components.json b/components.json
new file mode 100644
index 000000000..2082f482a
--- /dev/null
+++ b/components.json
@@ -0,0 +1,21 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "new-york",
+ "rsc": false,
+ "tsx": true,
+ "tailwind": {
+ "config": "",
+ "css": "src/index.css",
+ "baseColor": "zinc",
+ "cssVariables": true,
+ "prefix": ""
+ },
+ "aliases": {
+ "components": "@/components",
+ "utils": "@/lib/utils",
+ "ui": "@/components/ui",
+ "lib": "@/lib",
+ "hooks": "@/hooks"
+ },
+ "iconLibrary": "lucide"
+}
\ No newline at end of file
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 000000000..be401b408
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,78 @@
+# Stage 1: Install dependencies and build frontend
+FROM node:18-alpine AS deps
+WORKDIR /app
+
+RUN apk add --no-cache python3 make g++
+
+COPY package*.json ./
+
+RUN npm ci --force && \
+ npm cache clean --force
+
+# Stage 2: Build frontend
+FROM deps AS frontend-builder
+WORKDIR /app
+
+COPY . .
+
+RUN npm run build
+
+# Stage 3: Build backend TypeScript
+FROM deps AS backend-builder
+WORKDIR /app
+
+COPY . .
+
+RUN npm run build:backend
+
+# Stage 4: Production dependencies
+FROM node:18-alpine AS production-deps
+WORKDIR /app
+
+COPY package*.json ./
+
+RUN npm ci --only=production --ignore-scripts --force && \
+ npm cache clean --force
+
+# Stage 5: Build native modules
+FROM node:18-alpine AS native-builder
+WORKDIR /app
+
+RUN apk add --no-cache python3 make g++
+
+COPY package*.json ./
+
+RUN npm ci --only=production bcryptjs better-sqlite3 --force && \
+ npm cache clean --force
+
+# Stage 6: Final image
+FROM node:18-alpine
+ENV DATA_DIR=/app/data \
+ PORT=8080 \
+ NODE_ENV=production
+
+RUN apk add --no-cache nginx gettext su-exec && \
+ mkdir -p /app/data && \
+ chown -R node:node /app/data
+
+COPY docker/nginx.conf /etc/nginx/nginx.conf
+COPY --from=frontend-builder /app/dist /usr/share/nginx/html
+RUN chown -R nginx:nginx /usr/share/nginx/html
+
+WORKDIR /app
+
+COPY --from=production-deps /app/node_modules /app/node_modules
+COPY --from=native-builder /app/node_modules/bcryptjs /app/node_modules/bcryptjs
+COPY --from=native-builder /app/node_modules/better-sqlite3 /app/node_modules/better-sqlite3
+COPY --from=backend-builder /app/dist/backend ./dist/backend
+
+COPY package.json ./
+RUN chown -R node:node /app
+
+VOLUME ["/app/data"]
+
+EXPOSE ${PORT} 8081 8082 8083 8084
+
+COPY docker/entrypoint.sh /entrypoint.sh
+RUN chmod +x /entrypoint.sh
+CMD ["/entrypoint.sh"]
\ No newline at end of file
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
new file mode 100644
index 000000000..a4c55fad8
--- /dev/null
+++ b/docker/docker-compose.yml
@@ -0,0 +1,15 @@
+services:
+ termix:
+ image: ghcr.io/lukegus/termix:latest
+ container_name: termix
+ restart: unless-stopped
+ ports:
+ - "8080:8080"
+ volumes:
+ - termix-data:/app/data
+ environment:
+ PORT: "8080"
+
+volumes:
+ termix-data:
+ driver: local
\ No newline at end of file
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
new file mode 100644
index 000000000..d6f5033a7
--- /dev/null
+++ b/docker/entrypoint.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+set -e
+
+export PORT=${PORT:-8080}
+echo "Configuring web UI to run on port: $PORT"
+
+envsubst '${PORT}' < /etc/nginx/nginx.conf > /etc/nginx/nginx.conf.tmp
+mv /etc/nginx/nginx.conf.tmp /etc/nginx/nginx.conf
+
+mkdir -p /app/data
+chown -R node:node /app/data
+chmod 755 /app/data
+
+echo "Starting nginx..."
+nginx
+
+echo "Starting backend services..."
+cd /app
+export NODE_ENV=production
+
+if command -v su-exec > /dev/null 2>&1; then
+ su-exec node node dist/backend/starter.js
+else
+ su -s /bin/sh node -c "node dist/backend/starter.js"
+fi
+
+echo "All services started"
+
+tail -f /dev/null
\ No newline at end of file
diff --git a/docker/nginx.conf b/docker/nginx.conf
new file mode 100644
index 000000000..57913a0d2
--- /dev/null
+++ b/docker/nginx.conf
@@ -0,0 +1,84 @@
+events {
+ worker_connections 1024;
+}
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+
+ sendfile on;
+ keepalive_timeout 65;
+
+ server {
+ listen ${PORT};
+ server_name localhost;
+
+ location / {
+ root /usr/share/nginx/html;
+ index index.html index.htm;
+ }
+
+ location /users/ {
+ proxy_pass http://127.0.0.1:8081;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location /ssh/db/ {
+ proxy_pass http://127.0.0.1:8081;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location /ssh/websocket/ {
+ proxy_pass http://127.0.0.1:8082/;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "Upgrade";
+ proxy_set_header Host $host;
+ proxy_cache_bypass $http_upgrade;
+
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location /ssh/tunnel/ {
+ proxy_pass http://127.0.0.1:8083;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location /ssh/config_editor/ {
+ proxy_pass http://127.0.0.1:8084;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ location ~ ^/ssh/config_editor/(recent|pinned|shortcuts) {
+ proxy_pass http://127.0.0.1:8081;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
+ error_page 500 502 503 504 /50x.html;
+ location = /50x.html {
+ root /usr/share/nginx/html;
+ }
+ }
+}
\ No newline at end of file
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 000000000..d94e7deb7
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,23 @@
+import js from '@eslint/js'
+import globals from 'globals'
+import reactHooks from 'eslint-plugin-react-hooks'
+import reactRefresh from 'eslint-plugin-react-refresh'
+import tseslint from 'typescript-eslint'
+import { globalIgnores } from 'eslint/config'
+
+export default tseslint.config([
+ globalIgnores(['dist']),
+ {
+ files: ['**/*.{ts,tsx}'],
+ extends: [
+ js.configs.recommended,
+ tseslint.configs.recommended,
+ reactHooks.configs['recommended-latest'],
+ reactRefresh.configs.vite,
+ ],
+ languageOptions: {
+ ecmaVersion: 2020,
+ globals: globals.browser,
+ },
+ },
+])
diff --git a/how --name-only 9d11bbb b/how --name-only 9d11bbb
new file mode 100644
index 000000000..367bd9e5f
--- /dev/null
+++ b/how --name-only 9d11bbb
@@ -0,0 +1,10 @@
+25148c3 (HEAD -> dev-1.1) Update fonts
+9d11bbb Hide ssh password, add rss like feed to homepage, support utf8 encoding and nerdfonts/ohmyzsh
+7dd28f8 (origin/dev-1.1) Move .env
+7b7b070 Start on update indicators
+8247369 Finalized OIDC for beta testing
+af53ef2 Update hard coded frontend url
+0ee1746 Update hard coded frontend url
+840a048 Update auth for ocid
+3abdf1d Update auth for ocid
+11a8791 Update auth for ocid
diff --git a/index.html b/index.html
new file mode 100644
index 000000000..5c9257582
--- /dev/null
+++ b/index.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Termix</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/main.tsx"></script>
+ </body>
+</html>
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 000000000..262b51660
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,8437 @@
+{
+ "name": "termix",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "termix",
+ "version": "0.0.0",
+ "dependencies": {
+ "@hookform/resolvers": "^5.1.1",
+ "@radix-ui/react-accordion": "^1.2.11",
+ "@radix-ui/react-avatar": "^1.1.10",
+ "@radix-ui/react-checkbox": "^1.3.2",
+ "@radix-ui/react-collapsible": "^1.1.11",
+ "@radix-ui/react-dialog": "^1.1.14",
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
+ "@radix-ui/react-label": "^2.1.7",
+ "@radix-ui/react-popover": "^1.1.14",
+ "@radix-ui/react-scroll-area": "^1.2.9",
+ "@radix-ui/react-select": "^2.2.5",
+ "@radix-ui/react-separator": "^1.1.7",
+ "@radix-ui/react-slider": "^1.3.5",
+ "@radix-ui/react-slot": "^1.2.3",
+ "@radix-ui/react-switch": "^1.2.5",
+ "@radix-ui/react-tabs": "^1.1.12",
+ "@radix-ui/react-tooltip": "^1.2.7",
+ "@tailwindcss/vite": "^4.1.11",
+ "@types/bcryptjs": "^2.4.6",
+ "@types/multer": "^2.0.0",
+ "@uiw/codemirror-extensions-hyper-link": "^4.24.1",
+ "@uiw/codemirror-extensions-langs": "^4.24.1",
+ "@uiw/codemirror-themes": "^4.24.1",
+ "@uiw/react-codemirror": "^4.24.1",
+ "@xterm/addon-attach": "^0.11.0",
+ "@xterm/addon-clipboard": "^0.1.0",
+ "@xterm/addon-fit": "^0.10.0",
+ "@xterm/addon-search": "^0.15.0",
+ "@xterm/addon-unicode11": "^0.8.0",
+ "@xterm/addon-web-links": "^0.11.0",
+ "@xterm/xterm": "^5.5.0",
+ "axios": "^1.10.0",
+ "bcryptjs": "^3.0.2",
+ "better-sqlite3": "^12.2.0",
+ "chalk": "^4.1.2",
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
+ "cookie-parser": "^1.4.7",
+ "cors": "^2.8.5",
+ "dotenv": "^17.2.0",
+ "drizzle-orm": "^0.44.3",
+ "express": "^5.1.0",
+ "jose": "^5.2.3",
+ "jsonwebtoken": "^9.0.2",
+ "lucide-react": "^0.525.0",
+ "multer": "^2.0.2",
+ "nanoid": "^5.1.5",
+ "node-fetch": "^3.3.2",
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
+ "react-hook-form": "^7.60.0",
+ "react-resizable-panels": "^3.0.3",
+ "react-xtermjs": "^1.0.10",
+ "ssh2": "^1.16.0",
+ "tailwind-merge": "^3.3.1",
+ "tailwindcss": "^4.1.11",
+ "validator": "^13.15.15",
+ "ws": "^8.18.3",
+ "zod": "^4.0.5"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.30.1",
+ "@types/better-sqlite3": "^7.6.13",
+ "@types/cors": "^2.8.19",
+ "@types/express": "^5.0.3",
+ "@types/jsonwebtoken": "^9.0.10",
+ "@types/node": "^24.0.13",
+ "@types/react": "^19.1.8",
+ "@types/react-dom": "^19.1.6",
+ "@types/ssh2": "^1.15.5",
+ "@types/ws": "^8.18.1",
+ "@vitejs/plugin-react-swc": "^3.10.2",
+ "autoprefixer": "^10.4.21",
+ "eslint": "^9.30.1",
+ "eslint-plugin-react-hooks": "^5.2.0",
+ "eslint-plugin-react-refresh": "^0.4.20",
+ "globals": "^16.3.0",
+ "ts-node": "^10.9.2",
+ "tw-animate-css": "^1.3.5",
+ "typescript": "~5.8.3",
+ "typescript-eslint": "^8.35.1",
+ "vite": "^7.0.4"
+ }
+ },
+ "node_modules/@ampproject/remapping": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",
+ "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.27.6",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz",
+ "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@codemirror/autocomplete": {
+ "version": "6.18.6",
+ "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.6.tgz",
+ "integrity": "sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.17.0",
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/commands": {
+ "version": "6.8.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.8.1.tgz",
+ "integrity": "sha512-KlGVYufHMQzxbdQONiLyGQDUW0itrLZwq3CcY7xpv9ZLRHqzkBSoteocBHtMCoY7/Ci4xhzSrToIeLg7FxHuaw==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.4.0",
+ "@codemirror/view": "^6.27.0",
+ "@lezer/common": "^1.1.0"
+ }
+ },
+ "node_modules/@codemirror/lang-angular": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-angular/-/lang-angular-0.1.4.tgz",
+ "integrity": "sha512-oap+gsltb/fzdlTQWD6BFF4bSLKcDnlxDsLdePiJpCVNKWXSTAbiiQeYI3UmES+BLAdkmIC1WjyztC1pi/bX4g==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-html": "^6.0.0",
+ "@codemirror/lang-javascript": "^6.1.2",
+ "@codemirror/language": "^6.0.0",
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.3.3"
+ }
+ },
+ "node_modules/@codemirror/lang-cpp": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-cpp/-/lang-cpp-6.0.3.tgz",
+ "integrity": "sha512-URM26M3vunFFn9/sm6rzqrBzDgfWuDixp85uTY49wKudToc2jTHUrKIGGKs+QWND+YLofNNZpxcNGRynFJfvgA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@lezer/cpp": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-css": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.3.1.tgz",
+ "integrity": "sha512-kr5fwBGiGtmz6l0LSJIbno9QrifNMUusivHbnA1H6Dmqy4HZFte3UAICix1VuKo0lMPKQr2rqB+0BkKi/S3Ejg==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.0.2",
+ "@lezer/css": "^1.1.7"
+ }
+ },
+ "node_modules/@codemirror/lang-go": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-go/-/lang-go-6.0.1.tgz",
+ "integrity": "sha512-7fNvbyNylvqCphW9HD6WFnRpcDjr+KXX/FgqXy5H5ZS0eC5edDljukm/yNgYkwTsgp2busdod50AOTIy6Jikfg==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.6.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/go": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-html": {
+ "version": "6.4.9",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-6.4.9.tgz",
+ "integrity": "sha512-aQv37pIMSlueybId/2PVSP6NPnmurFDVmZwzc7jszd2KAF8qd4VBbvNYPXWQq90WIARjsdVkPbw29pszmHws3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/lang-css": "^6.0.0",
+ "@codemirror/lang-javascript": "^6.0.0",
+ "@codemirror/language": "^6.4.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.17.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/css": "^1.1.0",
+ "@lezer/html": "^1.3.0"
+ }
+ },
+ "node_modules/@codemirror/lang-java": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-java/-/lang-java-6.0.2.tgz",
+ "integrity": "sha512-m5Nt1mQ/cznJY7tMfQTJchmrjdjQ71IDs+55d1GAa8DGaB8JXWsVCkVT284C3RTASaY43YknrK2X3hPO/J3MOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@lezer/java": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-javascript": {
+ "version": "6.2.4",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.4.tgz",
+ "integrity": "sha512-0WVmhp1QOqZ4Rt6GlVGwKJN3KW7Xh4H2q8ZZNGZaP6lRdxXJzmjm4FqvmOojVj6khWJHIb9sp7U/72W7xQgqAA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.6.0",
+ "@codemirror/lint": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.17.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/javascript": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-json": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-json/-/lang-json-6.0.2.tgz",
+ "integrity": "sha512-x2OtO+AvwEHrEwR0FyyPtfDUiloG3rnVTSZV1W8UteaLL8/MajQd8DpvUb2YVzC+/T18aSDv0H9mu+xw0EStoQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@lezer/json": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-less": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-less/-/lang-less-6.0.2.tgz",
+ "integrity": "sha512-EYdQTG22V+KUUk8Qq582g7FMnCZeEHsyuOJisHRft/mQ+ZSZ2w51NupvDUHiqtsOy7It5cHLPGfHQLpMh9bqpQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-css": "^6.2.0",
+ "@codemirror/language": "^6.0.0",
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-lezer": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-lezer/-/lang-lezer-6.0.2.tgz",
+ "integrity": "sha512-mcVAf8lw+sCfSlr2ivMqV8JtNmOQjSXdA1vHKRtoW0OZsz1k6qhF+DX0K2TbWlAThqiGgRkRSZyYzIoEtKB2uQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/lezer": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-liquid": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-liquid/-/lang-liquid-6.2.3.tgz",
+ "integrity": "sha512-yeN+nMSrf/lNii3FJxVVEGQwFG0/2eDyH6gNOj+TGCa0hlNO4bhQnoO5ISnd7JOG+7zTEcI/GOoyraisFVY7jQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/lang-html": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.3.1"
+ }
+ },
+ "node_modules/@codemirror/lang-markdown": {
+ "version": "6.3.3",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-markdown/-/lang-markdown-6.3.3.tgz",
+ "integrity": "sha512-1fn1hQAPWlSSMCvnF810AkhWpNLkJpl66CRfIy3vVl20Sl4NwChkorCHqpMtNbXr1EuMJsrDnhEpjZxKZ2UX3A==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.7.1",
+ "@codemirror/lang-html": "^6.0.0",
+ "@codemirror/language": "^6.3.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.2.1",
+ "@lezer/markdown": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-php": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-php/-/lang-php-6.0.2.tgz",
+ "integrity": "sha512-ZKy2v1n8Fc8oEXj0Th0PUMXzQJ0AIR6TaZU+PbDHExFwdu+guzOA4jmCHS1Nz4vbFezwD7LyBdDnddSJeScMCA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-html": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/php": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-python": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-python/-/lang-python-6.2.1.tgz",
+ "integrity": "sha512-IRjC8RUBhn9mGR9ywecNhB51yePWCGgvHfY1lWN/Mrp3cKuHr0isDKia+9HnvhiWNnMpbGhWrkhuWOc09exRyw==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.3.2",
+ "@codemirror/language": "^6.8.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.2.1",
+ "@lezer/python": "^1.1.4"
+ }
+ },
+ "node_modules/@codemirror/lang-rust": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-rust/-/lang-rust-6.0.2.tgz",
+ "integrity": "sha512-EZaGjCUegtiU7kSMvOfEZpaCReowEf3yNidYu7+vfuGTm9ow4mthAparY5hisJqOHmJowVH3Upu+eJlUji6qqA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@lezer/rust": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-sass": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-sass/-/lang-sass-6.0.2.tgz",
+ "integrity": "sha512-l/bdzIABvnTo1nzdY6U+kPAC51czYQcOErfzQ9zSm9D8GmNPD0WTW8st/CJwBTPLO8jlrbyvlSEcN20dc4iL0Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-css": "^6.2.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.0.2",
+ "@lezer/sass": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-sql": {
+ "version": "6.9.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-sql/-/lang-sql-6.9.0.tgz",
+ "integrity": "sha512-xmtpWqKSgum1B1J3Ro6rf7nuPqf2+kJQg5SjrofCAcyCThOe0ihSktSoXfXuhQBnwx1QbmreBbLJM5Jru6zitg==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-vue": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-vue/-/lang-vue-0.1.3.tgz",
+ "integrity": "sha512-QSKdtYTDRhEHCfo5zOShzxCmqKJvgGrZwDQSdbvCRJ5pRLWBS7pD/8e/tH44aVQT6FKm0t6RVNoSUWHOI5vNug==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-html": "^6.0.0",
+ "@codemirror/lang-javascript": "^6.1.2",
+ "@codemirror/language": "^6.0.0",
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.3.1"
+ }
+ },
+ "node_modules/@codemirror/lang-wast": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-wast/-/lang-wast-6.0.2.tgz",
+ "integrity": "sha512-Imi2KTpVGm7TKuUkqyJ5NRmeFWF7aMpNiwHnLQe0x9kmrxElndyH0K6H/gXtWwY6UshMRAhpENsgfpSwsgmC6Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-xml": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-xml/-/lang-xml-6.1.0.tgz",
+ "integrity": "sha512-3z0blhicHLfwi2UgkZYRPioSgVTo9PV5GP5ducFH6FaHy0IAJRg+ixj5gTR1gnT/glAIC8xv4w2VL1LoZfs+Jg==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.4.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/xml": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/lang-yaml": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-yaml/-/lang-yaml-6.1.2.tgz",
+ "integrity": "sha512-dxrfG8w5Ce/QbT7YID7mWZFKhdhsaTNOYjOkSIMt1qmC4VQnXSDSYVHHHn8k6kJUfIhtLo8t1JJgltlxWdsITw==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.2.0",
+ "@lezer/lr": "^1.0.0",
+ "@lezer/yaml": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/language": {
+ "version": "6.11.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.11.2.tgz",
+ "integrity": "sha512-p44TsNArL4IVXDTbapUmEkAlvWs2CFQbcfc0ymDsis1kH2wh0gcY96AS29c/vp2d0y2Tquk1EDSaawpzilUiAw==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.23.0",
+ "@lezer/common": "^1.1.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0",
+ "style-mod": "^4.0.0"
+ }
+ },
+ "node_modules/@codemirror/language-data": {
+ "version": "6.5.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/language-data/-/language-data-6.5.1.tgz",
+ "integrity": "sha512-0sWxeUSNlBr6OmkqybUTImADFUP0M3P0IiSde4nc24bz/6jIYzqYSgkOSLS+CBIoW1vU8Q9KUWXscBXeoMVC9w==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-angular": "^0.1.0",
+ "@codemirror/lang-cpp": "^6.0.0",
+ "@codemirror/lang-css": "^6.0.0",
+ "@codemirror/lang-go": "^6.0.0",
+ "@codemirror/lang-html": "^6.0.0",
+ "@codemirror/lang-java": "^6.0.0",
+ "@codemirror/lang-javascript": "^6.0.0",
+ "@codemirror/lang-json": "^6.0.0",
+ "@codemirror/lang-less": "^6.0.0",
+ "@codemirror/lang-liquid": "^6.0.0",
+ "@codemirror/lang-markdown": "^6.0.0",
+ "@codemirror/lang-php": "^6.0.0",
+ "@codemirror/lang-python": "^6.0.0",
+ "@codemirror/lang-rust": "^6.0.0",
+ "@codemirror/lang-sass": "^6.0.0",
+ "@codemirror/lang-sql": "^6.0.0",
+ "@codemirror/lang-vue": "^0.1.1",
+ "@codemirror/lang-wast": "^6.0.0",
+ "@codemirror/lang-xml": "^6.0.0",
+ "@codemirror/lang-yaml": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/legacy-modes": "^6.4.0"
+ }
+ },
+ "node_modules/@codemirror/legacy-modes": {
+ "version": "6.5.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/legacy-modes/-/legacy-modes-6.5.1.tgz",
+ "integrity": "sha512-DJYQQ00N1/KdESpZV7jg9hafof/iBNp9h7TYo1SLMk86TWl9uDsVdho2dzd81K+v4retmK6mdC7WpuOQDytQqw==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0"
+ }
+ },
+ "node_modules/@codemirror/lint": {
+ "version": "6.8.5",
+ "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.5.tgz",
+ "integrity": "sha512-s3n3KisH7dx3vsoeGMxsbRAgKe4O1vbrnKBClm99PU0fWxmxsx5rR2PfqQgIt+2MMJBHbiJ5rfIdLYfB9NNvsA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.35.0",
+ "crelt": "^1.0.5"
+ }
+ },
+ "node_modules/@codemirror/search": {
+ "version": "6.5.11",
+ "resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.5.11.tgz",
+ "integrity": "sha512-KmWepDE6jUdL6n8cAAqIpRmLPBZ5ZKnicE8oGU/s3QrAVID+0VhLFrzUucVKHG5035/BSykhExDL/Xm7dHthiA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "crelt": "^1.0.5"
+ }
+ },
+ "node_modules/@codemirror/state": {
+ "version": "6.5.2",
+ "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.5.2.tgz",
+ "integrity": "sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==",
+ "license": "MIT",
+ "dependencies": {
+ "@marijn/find-cluster-break": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/theme-one-dark": {
+ "version": "6.1.3",
+ "resolved": "https://registry.npmjs.org/@codemirror/theme-one-dark/-/theme-one-dark-6.1.3.tgz",
+ "integrity": "sha512-NzBdIvEJmx6fjeremiGp3t/okrLPYT0d9orIc7AFun8oZcRk58aejkqhv6spnz4MLAevrKNPMQYXEWMg4s+sKA==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/highlight": "^1.0.0"
+ }
+ },
+ "node_modules/@codemirror/view": {
+ "version": "6.38.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.38.1.tgz",
+ "integrity": "sha512-RmTOkE7hRU3OVREqFVITWHz6ocgBjv08GoePscAakgVQfciA3SGCEk7mb9IzwW61cKKmlTpHXG6DUE5Ubx+MGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/state": "^6.5.0",
+ "crelt": "^1.0.6",
+ "style-mod": "^4.1.0",
+ "w3c-keyname": "^2.2.4"
+ }
+ },
+ "node_modules/@cspotcode/source-map-support": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "0.3.9"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.9",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.0.3",
+ "@jridgewell/sourcemap-codec": "^1.4.10"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz",
+ "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz",
+ "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz",
+ "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz",
+ "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz",
+ "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz",
+ "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz",
+ "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz",
+ "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz",
+ "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz",
+ "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz",
+ "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz",
+ "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==",
+ "cpu": [
+ "loong64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz",
+ "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz",
+ "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz",
+ "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz",
+ "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz",
+ "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz",
+ "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz",
+ "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz",
+ "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz",
+ "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz",
+ "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz",
+ "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz",
+ "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz",
+ "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz",
+ "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz",
+ "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",
+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz",
+ "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.6",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.2"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz",
+ "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.15.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz",
+ "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
+ "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.31.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz",
+ "integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.6",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",
+ "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.3.3",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.3.tgz",
+ "integrity": "sha512-1+WqvgNMhmlAambTvT3KPtCl/Ibr68VldY2XY40SL1CE0ZXiakFR/cbTspaF5HsnpDMvcYYoJHfl4980NBjGag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.15.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@floating-ui/core": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.2.tgz",
+ "integrity": "sha512-wNB5ooIKHQc+Kui96jE/n69rHFWAVoxn5CAzL1Xdd8FG03cgY3MLO+GF9U3W737fYDSgPWA6MReKhBQBop6Pcw==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/utils": "^0.2.10"
+ }
+ },
+ "node_modules/@floating-ui/dom": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.2.tgz",
+ "integrity": "sha512-7cfaOQuCS27HD7DX+6ib2OrnW+b4ZBwDNnCcT0uTyidcmyWb03FnQqJybDBoCnpdxwBSfA94UAYlRCt7mV+TbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/core": "^1.7.2",
+ "@floating-ui/utils": "^0.2.10"
+ }
+ },
+ "node_modules/@floating-ui/react-dom": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.4.tgz",
+ "integrity": "sha512-JbbpPhp38UmXDDAu60RJmbeme37Jbgsm7NrHGgzYYFKmblzRUh6Pa641dII6LsjwF4XlScDrde2UAzDo/b9KPw==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/dom": "^1.7.2"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@floating-ui/utils": {
+ "version": "0.2.10",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz",
+ "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",
+ "license": "MIT"
+ },
+ "node_modules/@hookform/resolvers": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.1.1.tgz",
+ "integrity": "sha512-J/NVING3LMAEvexJkyTLjruSm7aOFx7QX21pzkiJfMoNG0wl5aFEjLTl7ay7IQb9EWY6AkrBy7tHL2Alijpdcg==",
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/utils": "^0.3.0"
+ },
+ "peerDependencies": {
+ "react-hook-form": "^7.55.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.1",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.6",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",
+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.1",
+ "@humanwhocodes/retry": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",
+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@isaacs/fs-minipass": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",
+ "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^7.0.4"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.12",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz",
+ "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.4",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz",
+ "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==",
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.29",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz",
+ "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@lezer/common": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.3.tgz",
+ "integrity": "sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==",
+ "license": "MIT"
+ },
+ "node_modules/@lezer/cpp": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/@lezer/cpp/-/cpp-1.1.3.tgz",
+ "integrity": "sha512-ykYvuFQKGsRi6IcE+/hCSGUhb/I4WPjd3ELhEblm2wS2cOznDFzO+ubK2c+ioysOnlZ3EduV+MVQFCPzAIoY3w==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/css": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.3.0.tgz",
+ "integrity": "sha512-pBL7hup88KbI7hXnZV3PQsn43DHy6TWyzuyk2AO9UyoXcDltvIdqWKE1dLL/45JVZ+YZkHe1WVHqO6wugZZWcw==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.3.0"
+ }
+ },
+ "node_modules/@lezer/go": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@lezer/go/-/go-1.0.1.tgz",
+ "integrity": "sha512-xToRsYxwsgJNHTgNdStpcvmbVuKxTapV0dM0wey1geMMRc9aggoVyKgzYp41D2/vVOx+Ii4hmE206kvxIXBVXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.3.0"
+ }
+ },
+ "node_modules/@lezer/highlight": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz",
+ "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/html": {
+ "version": "1.3.10",
+ "resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.10.tgz",
+ "integrity": "sha512-dqpT8nISx/p9Do3AchvYGV3qYc4/rKr3IBZxlHmpIKam56P47RSHkSF5f13Vu9hebS1jM0HmtJIwLbWz1VIY6w==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/java": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/@lezer/java/-/java-1.1.3.tgz",
+ "integrity": "sha512-yHquUfujwg6Yu4Fd1GNHCvidIvJwi/1Xu2DaKl/pfWIA2c1oXkVvawH3NyXhCaFx4OdlYBVX5wvz2f7Aoa/4Xw==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/javascript": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.5.1.tgz",
+ "integrity": "sha512-ATOImjeVJuvgm3JQ/bpo2Tmv55HSScE2MTPnKRMRIPx2cLhHGyX2VnqpHhtIV1tVzIjZDbcWQm+NCTF40ggZVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.1.3",
+ "@lezer/lr": "^1.3.0"
+ }
+ },
+ "node_modules/@lezer/json": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@lezer/json/-/json-1.0.3.tgz",
+ "integrity": "sha512-BP9KzdF9Y35PDpv04r0VeSTKDeox5vVr3efE7eBbx3r4s3oNLfunchejZhjArmeieBH+nVOpgIiBJpEAv8ilqQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/lezer": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@lezer/lezer/-/lezer-1.1.2.tgz",
+ "integrity": "sha512-O8yw3CxPhzYHB1hvwbdozjnAslhhR8A5BH7vfEMof0xk3p+/DFDfZkA9Tde6J+88WgtwaHy4Sy6ThZSkaI0Evw==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/lr": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz",
+ "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/markdown": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/@lezer/markdown/-/markdown-1.4.3.tgz",
+ "integrity": "sha512-kfw+2uMrQ/wy/+ONfrH83OkdFNM0ye5Xq96cLlaCy7h5UT9FO54DU4oRoIc0CSBh5NWmWuiIJA7NGLMJbQ+Oxg==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.0.0",
+ "@lezer/highlight": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/php": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@lezer/php/-/php-1.0.3.tgz",
+ "integrity": "sha512-NDwgktd5qh/EfEn7Dogf2N6eNnC5WPJ5NslB8nKhgXSuH2uSJamCEom1g4VGo+ibfoADK8D69NMCMhuuYbVskg==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.1.0"
+ }
+ },
+ "node_modules/@lezer/python": {
+ "version": "1.1.18",
+ "resolved": "https://registry.npmjs.org/@lezer/python/-/python-1.1.18.tgz",
+ "integrity": "sha512-31FiUrU7z9+d/ElGQLJFXl+dKOdx0jALlP3KEOsGTex8mvj+SoE1FgItcHWK/axkxCHGUSpqIHt6JAWfWu9Rhg==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/rust": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@lezer/rust/-/rust-1.0.2.tgz",
+ "integrity": "sha512-Lz5sIPBdF2FUXcWeCu1//ojFAZqzTQNRga0aYv6dYXqJqPfMdCAI0NzajWUd4Xijj1IKJLtjoXRPMvTKWBcqKg==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/sass": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@lezer/sass/-/sass-1.1.0.tgz",
+ "integrity": "sha512-3mMGdCTUZ/84ArHOuXWQr37pnf7f+Nw9ycPUeKX+wu19b7pSMcZGLbaXwvD2APMBDOGxPmpK/O6S1v1EvLoqgQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/xml": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/@lezer/xml/-/xml-1.0.6.tgz",
+ "integrity": "sha512-CdDwirL0OEaStFue/66ZmFSeppuL6Dwjlk8qk153mSQwiSH/Dlri4GNymrNWnUmPl2Um7QfV1FO9KFUyX3Twww==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@lezer/yaml": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@lezer/yaml/-/yaml-1.0.3.tgz",
+ "integrity": "sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/common": "^1.2.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.4.0"
+ }
+ },
+ "node_modules/@marijn/find-cluster-break": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz",
+ "integrity": "sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==",
+ "license": "MIT"
+ },
+ "node_modules/@nextjournal/lang-clojure": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@nextjournal/lang-clojure/-/lang-clojure-1.0.0.tgz",
+ "integrity": "sha512-gOCV71XrYD0DhwGoPMWZmZ0r92/lIHsqQu9QWdpZYYBwiChNwMO4sbVMP7eTuAqffFB2BTtCSC+1skSH9d3bNg==",
+ "license": "ISC",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@nextjournal/lezer-clojure": "1.0.0"
+ }
+ },
+ "node_modules/@nextjournal/lezer-clojure": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@nextjournal/lezer-clojure/-/lezer-clojure-1.0.0.tgz",
+ "integrity": "sha512-VZyuGu4zw5mkTOwQBTaGVNWmsOZAPw5ZRxu1/Knk/Xfs7EDBIogwIs5UXTYkuECX5ZQB8eOB+wKA2pc7VyqaZQ==",
+ "license": "ISC",
+ "dependencies": {
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@radix-ui/number": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.1.tgz",
+ "integrity": "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/primitive": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",
+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/react-accordion": {
+ "version": "1.2.11",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.11.tgz",
+ "integrity": "sha512-l3W5D54emV2ues7jjeG1xcyN7S3jnK3zE2zHqgn0CmMsy9lNJwmgcrmaxS+7ipw15FAivzKNzH3d5EcGoFKw0A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collapsible": "1.1.11",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-arrow": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz",
+ "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-avatar": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.10.tgz",
+ "integrity": "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-is-hydrated": "0.1.0",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-checkbox": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.2.tgz",
+ "integrity": "sha512-yd+dI56KZqawxKZrJ31eENUwqc1QSqg4OZ15rybGjF2ZNwMO+wCyHzAVLRp9qoYJf7kYy0YpZ2b0JCzJ42HZpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-collapsible": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.11.tgz",
+ "integrity": "sha512-2qrRsVGSCYasSz1RFOorXwl0H7g7J1frQtgpQgYrt+MOidtPAINHn9CPovQXb83r8ahapdx3Tu0fa/pdFFSdPg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-collection": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",
+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-compose-refs": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",
+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-context": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",
+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-dialog": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.14.tgz",
+ "integrity": "sha512-+CpweKjqpzTmwRwcYECQcNYbI8V9VSQt0SNFKeEBLgfucbsLssU6Ppq7wUdNXEGb573bMjFhVjKVll8rmV6zMw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-direction": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",
+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-dismissable-layer": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.10.tgz",
+ "integrity": "sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-escape-keydown": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-dropdown-menu": {
+ "version": "2.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.15.tgz",
+ "integrity": "sha512-mIBnOjgwo9AH3FyKaSWoSu/dYj6VdhJ7frEPiGTeXCdUFHjl9h3mFh2wwhEtINOmYXWhdpf1rY2minFsmaNgVQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-menu": "2.1.15",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-focus-guards": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.2.tgz",
+ "integrity": "sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-focus-scope": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",
+ "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-id": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",
+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-label": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.7.tgz",
+ "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-menu": {
+ "version": "2.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.15.tgz",
+ "integrity": "sha512-tVlmA3Vb9n8SZSd+YSbuFR66l87Wiy4du+YE+0hzKQEANA+7cWKH1WgqcEX4pXqxUFQKrWQGHdvEfw00TjFiew==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-popover": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.14.tgz",
+ "integrity": "sha512-ODz16+1iIbGUfFEfKx2HTPKizg2MN39uIOV8MXeHnmdd3i/N9Wt7vU46wbHsqA0xoaQyXVcs0KIlBdOA2Y95bw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-popper": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.7.tgz",
+ "integrity": "sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/react-dom": "^2.0.0",
+ "@radix-ui/react-arrow": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-rect": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1",
+ "@radix-ui/rect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-portal": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",
+ "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-presence": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.4.tgz",
+ "integrity": "sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-roving-focus": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.10.tgz",
+ "integrity": "sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-scroll-area": {
+ "version": "1.2.9",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.9.tgz",
+ "integrity": "sha512-YSjEfBXnhUELsO2VzjdtYYD4CfQjvao+lhhrX5XsHD7/cyUNzljF1FHEbgTPN7LH2MClfwRMIsYlqTYpKTTe2A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.1",
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-select": {
+ "version": "2.2.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.5.tgz",
+ "integrity": "sha512-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.1",
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-visually-hidden": "1.2.3",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-separator": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.7.tgz",
+ "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-slider": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.3.5.tgz",
+ "integrity": "sha512-rkfe2pU2NBAYfGaxa3Mqosi7VZEWX5CxKaanRv0vZd4Zhl9fvQrg0VM93dv3xGLGfrHuoTRF3JXH8nb9g+B3fw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.1",
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-slot": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",
+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-switch": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.5.tgz",
+ "integrity": "sha512-5ijLkak6ZMylXsaImpZ8u4Rlf5grRmoc0p0QeX9VJtlrM4f5m3nCTX8tWga/zOA8PZYIR/t0p2Mnvd7InrJ6yQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-tabs": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.12.tgz",
+ "integrity": "sha512-GTVAlRVrQrSw3cEARM0nAx73ixrWDPNZAruETn3oHCNP6SbZ/hNxdxp+u7VkIEv3/sFoLq1PfcHrl7Pnp0CDpw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-tooltip": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.7.tgz",
+ "integrity": "sha512-Ap+fNYwKTYJ9pzqW+Xe2HtMRbQ/EeWkj2qykZ6SuEV4iS/o1bZI5ssJbk4D2r8XuDuOBVz/tIx2JObtuqU+5Zw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-visually-hidden": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-callback-ref": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",
+ "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-controllable-state": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",
+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-effect-event": "0.0.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-effect-event": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",
+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-escape-keydown": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",
+ "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-callback-ref": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-is-hydrated": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.0.tgz",
+ "integrity": "sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.5.0"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-layout-effect": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",
+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-previous": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",
+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-rect": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz",
+ "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/rect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-size": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",
+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-visually-hidden": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz",
+ "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/rect": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz",
+ "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==",
+ "license": "MIT"
+ },
+ "node_modules/@replit/codemirror-lang-csharp": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/@replit/codemirror-lang-csharp/-/codemirror-lang-csharp-6.2.0.tgz",
+ "integrity": "sha512-6utbaWkoymhoAXj051mkRp+VIJlpwUgCX9Toevz3YatiZsz512fw3OVCedXQx+WcR0wb6zVHjChnuxqfCLtFVQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@replit/codemirror-lang-nix": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/@replit/codemirror-lang-nix/-/codemirror-lang-nix-6.0.1.tgz",
+ "integrity": "sha512-lvzjoYn9nfJzBD5qdm3Ut6G3+Or2wEacYIDJ49h9+19WSChVnxv4ojf+rNmQ78ncuxIt/bfbMvDLMeMP0xze6g==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@replit/codemirror-lang-solidity": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/@replit/codemirror-lang-solidity/-/codemirror-lang-solidity-6.0.2.tgz",
+ "integrity": "sha512-/dpTVH338KFV6SaDYYSadkB4bI/0B0QRF/bkt1XS3t3QtyR49mn6+2k0OUQhvt2ZSO7kt10J+OPilRAtgbmX0w==",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/highlight": "^1.2.0"
+ },
+ "peerDependencies": {
+ "@codemirror/language": "^6.0.0"
+ }
+ },
+ "node_modules/@replit/codemirror-lang-svelte": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@replit/codemirror-lang-svelte/-/codemirror-lang-svelte-6.0.0.tgz",
+ "integrity": "sha512-U2OqqgMM6jKelL0GNWbAmqlu1S078zZNoBqlJBW+retTc5M4Mha6/Y2cf4SVg6ddgloJvmcSpt4hHrVoM4ePRA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/lang-css": "^6.0.1",
+ "@codemirror/lang-html": "^6.2.0",
+ "@codemirror/lang-javascript": "^6.1.1",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/javascript": "^1.2.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.11",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.11.tgz",
+ "integrity": "sha512-L/gAA/hyCSuzTF1ftlzUSI/IKr2POHsv1Dd78GfqkR83KMNuswWD61JxGV2L7nRwBBBSDr6R1gCkdTmoN7W4ag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.45.0.tgz",
+ "integrity": "sha512-2o/FgACbji4tW1dzXOqAV15Eu7DdgbKsF2QKcxfG4xbh5iwU7yr5RRP5/U+0asQliSYv5M4o7BevlGIoSL0LXg==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.45.0.tgz",
+ "integrity": "sha512-PSZ0SvMOjEAxwZeTx32eI/j5xSYtDCRxGu5k9zvzoY77xUNssZM+WV6HYBLROpY5CkXsbQjvz40fBb7WPwDqtQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.45.0.tgz",
+ "integrity": "sha512-BA4yPIPssPB2aRAWzmqzQ3y2/KotkLyZukVB7j3psK/U3nVJdceo6qr9pLM2xN6iRP/wKfxEbOb1yrlZH6sYZg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.45.0.tgz",
+ "integrity": "sha512-Pr2o0lvTwsiG4HCr43Zy9xXrHspyMvsvEw4FwKYqhli4FuLE5FjcZzuQ4cfPe0iUFCvSQG6lACI0xj74FDZKRA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.45.0.tgz",
+ "integrity": "sha512-lYE8LkE5h4a/+6VnnLiL14zWMPnx6wNbDG23GcYFpRW1V9hYWHAw9lBZ6ZUIrOaoK7NliF1sdwYGiVmziUF4vA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.45.0.tgz",
+ "integrity": "sha512-PVQWZK9sbzpvqC9Q0GlehNNSVHR+4m7+wET+7FgSnKG3ci5nAMgGmr9mGBXzAuE5SvguCKJ6mHL6vq1JaJ/gvw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.45.0.tgz",
+ "integrity": "sha512-hLrmRl53prCcD+YXTfNvXd776HTxNh8wPAMllusQ+amcQmtgo3V5i/nkhPN6FakW+QVLoUUr2AsbtIRPFU3xIA==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.45.0.tgz",
+ "integrity": "sha512-XBKGSYcrkdiRRjl+8XvrUR3AosXU0NvF7VuqMsm7s5nRy+nt58ZMB19Jdp1RdqewLcaYnpk8zeVs/4MlLZEJxw==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.45.0.tgz",
+ "integrity": "sha512-fRvZZPUiBz7NztBE/2QnCS5AtqLVhXmUOPj9IHlfGEXkapgImf4W9+FSkL8cWqoAjozyUzqFmSc4zh2ooaeF6g==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.45.0.tgz",
+ "integrity": "sha512-Btv2WRZOcUGi8XU80XwIvzTg4U6+l6D0V6sZTrZx214nrwxw5nAi8hysaXj/mctyClWgesyuxbeLylCBNauimg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loongarch64-gnu": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.45.0.tgz",
+ "integrity": "sha512-Li0emNnwtUZdLwHjQPBxn4VWztcrw/h7mgLyHiEI5Z0MhpeFGlzaiBHpSNVOMB/xucjXTTcO+dhv469Djr16KA==",
+ "cpu": [
+ "loong64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.45.0.tgz",
+ "integrity": "sha512-sB8+pfkYx2kvpDCfd63d5ScYT0Fz1LO6jIb2zLZvmK9ob2D8DeVqrmBDE0iDK8KlBVmsTNzrjr3G1xV4eUZhSw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.45.0.tgz",
+ "integrity": "sha512-5GQ6PFhh7E6jQm70p1aW05G2cap5zMOvO0se5JMecHeAdj5ZhWEHbJ4hiKpfi1nnnEdTauDXxPgXae/mqjow9w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.45.0.tgz",
+ "integrity": "sha512-N/euLsBd1rekWcuduakTo/dJw6U6sBP3eUq+RXM9RNfPuWTvG2w/WObDkIvJ2KChy6oxZmOSC08Ak2OJA0UiAA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.45.0.tgz",
+ "integrity": "sha512-2l9sA7d7QdikL0xQwNMO3xURBUNEWyHVHfAsHsUdq+E/pgLTUcCE+gih5PCdmyHmfTDeXUWVhqL0WZzg0nua3g==",
+ "cpu": [
+ "s390x"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.45.0.tgz",
+ "integrity": "sha512-XZdD3fEEQcwG2KrJDdEQu7NrHonPxxaV0/w2HpvINBdcqebz1aL+0vM2WFJq4DeiAVT6F5SUQas65HY5JDqoPw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.45.0.tgz",
+ "integrity": "sha512-7ayfgvtmmWgKWBkCGg5+xTQ0r5V1owVm67zTrsEY1008L5ro7mCyGYORomARt/OquB9KY7LpxVBZes+oSniAAQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.45.0.tgz",
+ "integrity": "sha512-B+IJgcBnE2bm93jEW5kHisqvPITs4ddLOROAcOc/diBgrEiQJJ6Qcjby75rFSmH5eMGrqJryUgJDhrfj942apQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.45.0.tgz",
+ "integrity": "sha512-+CXwwG66g0/FpWOnP/v1HnrGVSOygK/osUbu3wPRy8ECXjoYKjRAyfxYpDQOfghC5qPJYLPH0oN4MCOjwgdMug==",
+ "cpu": [
+ "ia32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.45.0.tgz",
+ "integrity": "sha512-SRf1cytG7wqcHVLrBc9VtPK4pU5wxiB/lNIkNmW2ApKXIg+RpqwHfsaEK+e7eH4A1BpI6BX/aBWXxZCIrJg3uA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@standard-schema/utils": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz",
+ "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==",
+ "license": "MIT"
+ },
+ "node_modules/@swc/core": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.12.14.tgz",
+ "integrity": "sha512-CJSn2vstd17ddWIHBsjuD4OQnn9krQfaq6EO+w9YfId5DKznyPmzxAARlOXG99cC8/3Kli8ysKy6phL43bSr0w==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/counter": "^0.1.3",
+ "@swc/types": "^0.1.23"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/swc"
+ },
+ "optionalDependencies": {
+ "@swc/core-darwin-arm64": "1.12.14",
+ "@swc/core-darwin-x64": "1.12.14",
+ "@swc/core-linux-arm-gnueabihf": "1.12.14",
+ "@swc/core-linux-arm64-gnu": "1.12.14",
+ "@swc/core-linux-arm64-musl": "1.12.14",
+ "@swc/core-linux-x64-gnu": "1.12.14",
+ "@swc/core-linux-x64-musl": "1.12.14",
+ "@swc/core-win32-arm64-msvc": "1.12.14",
+ "@swc/core-win32-ia32-msvc": "1.12.14",
+ "@swc/core-win32-x64-msvc": "1.12.14"
+ },
+ "peerDependencies": {
+ "@swc/helpers": ">=0.5.17"
+ },
+ "peerDependenciesMeta": {
+ "@swc/helpers": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@swc/core-darwin-arm64": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.12.14.tgz",
+ "integrity": "sha512-HNukQoOKgMsHSETj8vgGGKK3SEcH7Cz6k4bpntCxBKNkO3sH7RcBTDulWGGHJfZaDNix7Rw2ExUVWtLZlzkzXg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-darwin-x64": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.12.14.tgz",
+ "integrity": "sha512-4Ttf3Obtk3MvFrR0e04qr6HfXh4L1Z+K3dRej63TAFuYpo+cPXeOZdPUddAW73lSUGkj+61IHnGPoXD3OQYy4Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm-gnueabihf": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.12.14.tgz",
+ "integrity": "sha512-zhJOH2KWjtQpzJ27Xjw/RKLVOa1aiEJC2b70xbCwEX6ZTVAl8tKbhkZ3GMphhfVmLJ9gf/2UQR58oxVnsXqX5Q==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-gnu": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.12.14.tgz",
+ "integrity": "sha512-akUAe1YrBqZf1EDdUxahQ8QZnJi8Ts6Ya0jf6GBIMvnXL4Y6QIuvKTRwfNxy7rJ+x9zpzP1Vlh14ZZkSKZ1EGA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-musl": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.12.14.tgz",
+ "integrity": "sha512-ZkOOIpSMXuPAjfOXEIAEQcrPOgLi6CaXvA5W+GYnpIpFG21Nd0qb0WbwFRv4K8BRtl993Q21v0gPpOaFHU+wdA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-gnu": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.12.14.tgz",
+ "integrity": "sha512-71EPPccwJiJUxd2aMwNlTfom2mqWEWYGdbeTju01tzSHsEuD7E6ePlgC3P3ngBqB3urj41qKs87z7zPOswT5Iw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-musl": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.12.14.tgz",
+ "integrity": "sha512-nImF1hZJqKTcl0WWjHqlelOhvuB9rU9kHIw/CmISBUZXogjLIvGyop1TtJNz0ULcz2Oxr3Q2YpwfrzsgvgbGkA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-arm64-msvc": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.12.14.tgz",
+ "integrity": "sha512-sABFQFxSuStFoxvEWZUHWYldtB1B4A9eDNFd4Ty50q7cemxp7uoscFoaCqfXSGNBwwBwpS5EiPB6YN4y6hqmLQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-ia32-msvc": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.12.14.tgz",
+ "integrity": "sha512-KBznRB02NASkpepRdWIK4f1AvmaJCDipKWdW1M1xV9QL2tE4aySJFojVuG1+t0tVDkjRfwcZjycQfRoJ4RjD7Q==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-x64-msvc": {
+ "version": "1.12.14",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.12.14.tgz",
+ "integrity": "sha512-SymoP2CJHzrYaFKjWvuQljcF7BkTpzaS1vpywv7K9EzdTb5N8qPDvNd+PhWUqBz9JHBhbJxpaeTDQBXF/WWPmw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/counter": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz",
+ "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/@swc/types": {
+ "version": "0.1.23",
+ "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.23.tgz",
+ "integrity": "sha512-u1iIVZV9Q0jxY+yM2vw/hZGDNudsN85bBpTqzAQ9rzkxW9D+e3aEM4Han+ow518gSewkXgjmEK0BD79ZcNVgPw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/counter": "^0.1.3"
+ }
+ },
+ "node_modules/@tailwindcss/node": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.11.tgz",
+ "integrity": "sha512-yzhzuGRmv5QyU9qLNg4GTlYI6STedBWRE7NjxP45CsFYYq9taI0zJXZBMqIC/c8fViNLhmrbpSFS57EoxUmD6Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@ampproject/remapping": "^2.3.0",
+ "enhanced-resolve": "^5.18.1",
+ "jiti": "^2.4.2",
+ "lightningcss": "1.30.1",
+ "magic-string": "^0.30.17",
+ "source-map-js": "^1.2.1",
+ "tailwindcss": "4.1.11"
+ }
+ },
+ "node_modules/@tailwindcss/oxide": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.11.tgz",
+ "integrity": "sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "detect-libc": "^2.0.4",
+ "tar": "^7.4.3"
+ },
+ "engines": {
+ "node": ">= 10"
+ },
+ "optionalDependencies": {
+ "@tailwindcss/oxide-android-arm64": "4.1.11",
+ "@tailwindcss/oxide-darwin-arm64": "4.1.11",
+ "@tailwindcss/oxide-darwin-x64": "4.1.11",
+ "@tailwindcss/oxide-freebsd-x64": "4.1.11",
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.11",
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.1.11",
+ "@tailwindcss/oxide-linux-arm64-musl": "4.1.11",
+ "@tailwindcss/oxide-linux-x64-gnu": "4.1.11",
+ "@tailwindcss/oxide-linux-x64-musl": "4.1.11",
+ "@tailwindcss/oxide-wasm32-wasi": "4.1.11",
+ "@tailwindcss/oxide-win32-arm64-msvc": "4.1.11",
+ "@tailwindcss/oxide-win32-x64-msvc": "4.1.11"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-android-arm64": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.11.tgz",
+ "integrity": "sha512-3IfFuATVRUMZZprEIx9OGDjG3Ou3jG4xQzNTvjDoKmU9JdmoCohQJ83MYd0GPnQIu89YoJqvMM0G3uqLRFtetg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-arm64": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.11.tgz",
+ "integrity": "sha512-ESgStEOEsyg8J5YcMb1xl8WFOXfeBmrhAwGsFxxB2CxY9evy63+AtpbDLAyRkJnxLy2WsD1qF13E97uQyP1lfQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-x64": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.11.tgz",
+ "integrity": "sha512-EgnK8kRchgmgzG6jE10UQNaH9Mwi2n+yw1jWmof9Vyg2lpKNX2ioe7CJdf9M5f8V9uaQxInenZkOxnTVL3fhAw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-freebsd-x64": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.11.tgz",
+ "integrity": "sha512-xdqKtbpHs7pQhIKmqVpxStnY1skuNh4CtbcyOHeX1YBE0hArj2romsFGb6yUmzkq/6M24nkxDqU8GYrKrz+UcA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.11.tgz",
+ "integrity": "sha512-ryHQK2eyDYYMwB5wZL46uoxz2zzDZsFBwfjssgB7pzytAeCCa6glsiJGjhTEddq/4OsIjsLNMAiMlHNYnkEEeg==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.11.tgz",
+ "integrity": "sha512-mYwqheq4BXF83j/w75ewkPJmPZIqqP1nhoghS9D57CLjsh3Nfq0m4ftTotRYtGnZd3eCztgbSPJ9QhfC91gDZQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.11.tgz",
+ "integrity": "sha512-m/NVRFNGlEHJrNVk3O6I9ggVuNjXHIPoD6bqay/pubtYC9QIdAMpS+cswZQPBLvVvEF6GtSNONbDkZrjWZXYNQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.11.tgz",
+ "integrity": "sha512-YW6sblI7xukSD2TdbbaeQVDysIm/UPJtObHJHKxDEcW2exAtY47j52f8jZXkqE1krdnkhCMGqP3dbniu1Te2Fg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.11.tgz",
+ "integrity": "sha512-e3C/RRhGunWYNC3aSF7exsQkdXzQ/M+aYuZHKnw4U7KQwTJotnWsGOIVih0s2qQzmEzOFIJ3+xt7iq67K/p56Q==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.11.tgz",
+ "integrity": "sha512-Xo1+/GU0JEN/C/dvcammKHzeM6NqKovG+6921MR6oadee5XPBaKOumrJCXvopJ/Qb5TH7LX/UAywbqrP4lax0g==",
+ "bundleDependencies": [
+ "@napi-rs/wasm-runtime",
+ "@emnapi/core",
+ "@emnapi/runtime",
+ "@tybys/wasm-util",
+ "@emnapi/wasi-threads",
+ "tslib"
+ ],
+ "cpu": [
+ "wasm32"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.4.3",
+ "@emnapi/runtime": "^1.4.3",
+ "@emnapi/wasi-threads": "^1.0.2",
+ "@napi-rs/wasm-runtime": "^0.2.11",
+ "@tybys/wasm-util": "^0.9.0",
+ "tslib": "^2.8.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.11.tgz",
+ "integrity": "sha512-UgKYx5PwEKrac3GPNPf6HVMNhUIGuUh4wlDFR2jYYdkX6pL/rn73zTq/4pzUm8fOjAn5L8zDeHp9iXmUGOXZ+w==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.11.tgz",
+ "integrity": "sha512-YfHoggn1j0LK7wR82TOucWc5LDCguHnoS879idHekmmiR7g9HUtMw9MI0NHatS28u/Xlkfi9w5RJWgz2Dl+5Qg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tailwindcss/vite": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.11.tgz",
+ "integrity": "sha512-RHYhrR3hku0MJFRV+fN2gNbDNEh3dwKvY8XJvTxCSXeMOsCRSr+uKvDWQcbizrHgjML6ZmTE5OwMrl5wKcujCw==",
+ "license": "MIT",
+ "dependencies": {
+ "@tailwindcss/node": "4.1.11",
+ "@tailwindcss/oxide": "4.1.11",
+ "tailwindcss": "4.1.11"
+ },
+ "peerDependencies": {
+ "vite": "^5.2.0 || ^6 || ^7"
+ }
+ },
+ "node_modules/@tsconfig/node10": {
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",
+ "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@tsconfig/node12": {
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
+ "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@tsconfig/node14": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
+ "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@tsconfig/node16": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
+ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/bcryptjs": {
+ "version": "2.4.6",
+ "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.6.tgz",
+ "integrity": "sha512-9xlo6R2qDs5uixm0bcIqCeMCE6HiQsIyel9KQySStiyqNl2tnj2mP3DX1Nf56MD6KMenNNlBBsy3LJ7gUEQPXQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/better-sqlite3": {
+ "version": "7.6.13",
+ "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.13.tgz",
+ "integrity": "sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/body-parser": {
+ "version": "1.19.6",
+ "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",
+ "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/connect": "*",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/connect": {
+ "version": "3.4.38",
+ "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
+ "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/cors": {
+ "version": "2.8.19",
+ "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz",
+ "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "license": "MIT"
+ },
+ "node_modules/@types/express": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.3.tgz",
+ "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/body-parser": "*",
+ "@types/express-serve-static-core": "^5.0.0",
+ "@types/serve-static": "*"
+ }
+ },
+ "node_modules/@types/express-serve-static-core": {
+ "version": "5.0.7",
+ "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.7.tgz",
+ "integrity": "sha512-R+33OsgWw7rOhD1emjU7dzCDHucJrgJXMA5PYCzJxVil0dsyx5iBEPHqpPfiKNJQb7lZ1vxwoLR4Z87bBUpeGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/qs": "*",
+ "@types/range-parser": "*",
+ "@types/send": "*"
+ }
+ },
+ "node_modules/@types/http-errors": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",
+ "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/jsonwebtoken": {
+ "version": "9.0.10",
+ "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz",
+ "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/mime": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",
+ "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==",
+ "license": "MIT"
+ },
+ "node_modules/@types/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/multer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/@types/multer/-/multer-2.0.0.tgz",
+ "integrity": "sha512-C3Z9v9Evij2yST3RSBktxP9STm6OdMc5uR1xF1SGr98uv8dUlAL2hqwrZ3GVB3uyMyiegnscEK6PGtYvNrjTjw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/express": "*"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "24.0.13",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.13.tgz",
+ "integrity": "sha512-Qm9OYVOFHFYg3wJoTSrz80hoec5Lia/dPp84do3X7dZvLikQvM1YpmvTBEdIr/e+U8HTkFjLHLnl78K/qjf+jQ==",
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~7.8.0"
+ }
+ },
+ "node_modules/@types/qs": {
+ "version": "6.14.0",
+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz",
+ "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/range-parser": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",
+ "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "19.1.8",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.8.tgz",
+ "integrity": "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.1.6",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.6.tgz",
+ "integrity": "sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==",
+ "devOptional": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.0.0"
+ }
+ },
+ "node_modules/@types/send": {
+ "version": "0.17.5",
+ "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.5.tgz",
+ "integrity": "sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mime": "^1",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/serve-static": {
+ "version": "1.15.8",
+ "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.8.tgz",
+ "integrity": "sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/http-errors": "*",
+ "@types/node": "*",
+ "@types/send": "*"
+ }
+ },
+ "node_modules/@types/ssh2": {
+ "version": "1.15.5",
+ "resolved": "https://registry.npmjs.org/@types/ssh2/-/ssh2-1.15.5.tgz",
+ "integrity": "sha512-N1ASjp/nXH3ovBHddRJpli4ozpk6UdDYIX4RJWFa9L1YKnzdhTlVmiGHm4DZnj/jLbqZpes4aeR30EFGQtvhQQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "^18.11.18"
+ }
+ },
+ "node_modules/@types/ssh2/node_modules/@types/node": {
+ "version": "18.19.119",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.119.tgz",
+ "integrity": "sha512-d0F6m9itIPaKnrvEMlzE48UjwZaAnFW7Jwibacw9MNdqadjKNpUm9tfJYDwmShJmgqcoqYUX3EMKO1+RWiuuNg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~5.26.4"
+ }
+ },
+ "node_modules/@types/ssh2/node_modules/undici-types": {
+ "version": "5.26.5",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/ws": {
+ "version": "8.18.1",
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
+ "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.37.0.tgz",
+ "integrity": "sha512-jsuVWeIkb6ggzB+wPCsR4e6loj+rM72ohW6IBn2C+5NCvfUVY8s33iFPySSVXqtm5Hu29Ne/9bnA0JmyLmgenA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.10.0",
+ "@typescript-eslint/scope-manager": "8.37.0",
+ "@typescript-eslint/type-utils": "8.37.0",
+ "@typescript-eslint/utils": "8.37.0",
+ "@typescript-eslint/visitor-keys": "8.37.0",
+ "graphemer": "^1.4.0",
+ "ignore": "^7.0.0",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.37.0",
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.5",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",
+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.37.0.tgz",
+ "integrity": "sha512-kVIaQE9vrN9RLCQMQ3iyRlVJpTiDUY6woHGb30JDkfJErqrQEmtdWH3gV0PBAfGZgQXoqzXOO0T3K6ioApbbAA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.37.0",
+ "@typescript-eslint/types": "8.37.0",
+ "@typescript-eslint/typescript-estree": "8.37.0",
+ "@typescript-eslint/visitor-keys": "8.37.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.37.0.tgz",
+ "integrity": "sha512-BIUXYsbkl5A1aJDdYJCBAo8rCEbAvdquQ8AnLb6z5Lp1u3x5PNgSSx9A/zqYc++Xnr/0DVpls8iQ2cJs/izTXA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.37.0",
+ "@typescript-eslint/types": "^8.37.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.37.0.tgz",
+ "integrity": "sha512-0vGq0yiU1gbjKob2q691ybTg9JX6ShiVXAAfm2jGf3q0hdP6/BruaFjL/ManAR/lj05AvYCH+5bbVo0VtzmjOA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.37.0",
+ "@typescript-eslint/visitor-keys": "8.37.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.37.0.tgz",
+ "integrity": "sha512-1/YHvAVTimMM9mmlPvTec9NP4bobA1RkDbMydxG8omqwJJLEW/Iy2C4adsAESIXU3WGLXFHSZUU+C9EoFWl4Zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.37.0.tgz",
+ "integrity": "sha512-SPkXWIkVZxhgwSwVq9rqj/4VFo7MnWwVaRNznfQDc/xPYHjXnPfLWn+4L6FF1cAz6e7dsqBeMawgl7QjUMj4Ow==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.37.0",
+ "@typescript-eslint/typescript-estree": "8.37.0",
+ "@typescript-eslint/utils": "8.37.0",
+ "debug": "^4.3.4",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.37.0.tgz",
+ "integrity": "sha512-ax0nv7PUF9NOVPs+lmQ7yIE7IQmAf8LGcXbMvHX5Gm+YJUYNAl340XkGnrimxZ0elXyoQJuN5sbg6C4evKA4SQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.37.0.tgz",
+ "integrity": "sha512-zuWDMDuzMRbQOM+bHyU4/slw27bAUEcKSKKs3hcv2aNnc/tvE/h7w60dwVw8vnal2Pub6RT1T7BI8tFZ1fE+yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.37.0",
+ "@typescript-eslint/tsconfig-utils": "8.37.0",
+ "@typescript-eslint/types": "8.37.0",
+ "@typescript-eslint/visitor-keys": "8.37.0",
+ "debug": "^4.3.4",
+ "fast-glob": "^3.3.2",
+ "is-glob": "^4.0.3",
+ "minimatch": "^9.0.4",
+ "semver": "^7.6.0",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.37.0.tgz",
+ "integrity": "sha512-TSFvkIW6gGjN2p6zbXo20FzCABbyUAuq6tBvNRGsKdsSQ6a7rnV6ADfZ7f4iI3lIiXc4F4WWvtUfDw9CJ9pO5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.7.0",
+ "@typescript-eslint/scope-manager": "8.37.0",
+ "@typescript-eslint/types": "8.37.0",
+ "@typescript-eslint/typescript-estree": "8.37.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.37.0.tgz",
+ "integrity": "sha512-YzfhzcTnZVPiLfP/oeKtDp2evwvHLMe0LOy7oe+hb9KKIumLNohYS9Hgp1ifwpu42YWxhZE8yieggz6JpqO/1w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.37.0",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@uiw/codemirror-extensions-basic-setup": {
+ "version": "4.24.1",
+ "resolved": "https://registry.npmjs.org/@uiw/codemirror-extensions-basic-setup/-/codemirror-extensions-basic-setup-4.24.1.tgz",
+ "integrity": "sha512-o1m1a8eUS3fWERMbDFvN8t8sZUFPgDKNemmlQ5Ot2vKm+Ax84lKP1dhEFgkiOaZ1bDHk4T5h6SjHuTghrJHKww==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/commands": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/lint": "^6.0.0",
+ "@codemirror/search": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@codemirror/autocomplete": ">=6.0.0",
+ "@codemirror/commands": ">=6.0.0",
+ "@codemirror/language": ">=6.0.0",
+ "@codemirror/lint": ">=6.0.0",
+ "@codemirror/search": ">=6.0.0",
+ "@codemirror/state": ">=6.0.0",
+ "@codemirror/view": ">=6.0.0"
+ }
+ },
+ "node_modules/@uiw/codemirror-extensions-hyper-link": {
+ "version": "4.24.1",
+ "resolved": "https://registry.npmjs.org/@uiw/codemirror-extensions-hyper-link/-/codemirror-extensions-hyper-link-4.24.1.tgz",
+ "integrity": "sha512-qf3docpmsHHM0OKLO5m2Fc8t4G+pr1+k9QwrhlM2iolku/INbz+B1JzbRcSU0ow1EcxKtHRtCFE4Lnu6DwP7CQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@codemirror/state": ">=6.0.0",
+ "@codemirror/view": ">=6.0.0"
+ }
+ },
+ "node_modules/@uiw/codemirror-extensions-langs": {
+ "version": "4.24.1",
+ "resolved": "https://registry.npmjs.org/@uiw/codemirror-extensions-langs/-/codemirror-extensions-langs-4.24.1.tgz",
+ "integrity": "sha512-8Q33k/UhNni2u5VvAHD+2mxe4hNIqZTNySSUcnJ7urV2lXXau+0fimsQlI+GQLF7gy5F1BUzIi+yvOMrEPK9Ig==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/lang-angular": "^0.1.0",
+ "@codemirror/lang-cpp": "^6.0.0",
+ "@codemirror/lang-css": "^6.2.0",
+ "@codemirror/lang-html": "^6.4.0",
+ "@codemirror/lang-java": "^6.0.0",
+ "@codemirror/lang-javascript": "^6.1.0",
+ "@codemirror/lang-json": "^6.0.0",
+ "@codemirror/lang-less": "^6.0.1",
+ "@codemirror/lang-lezer": "^6.0.0",
+ "@codemirror/lang-liquid": "^6.0.1",
+ "@codemirror/lang-markdown": "^6.1.0",
+ "@codemirror/lang-php": "^6.0.0",
+ "@codemirror/lang-python": "^6.1.0",
+ "@codemirror/lang-rust": "^6.0.0",
+ "@codemirror/lang-sass": "^6.0.1",
+ "@codemirror/lang-sql": "^6.4.0",
+ "@codemirror/lang-vue": "^0.1.1",
+ "@codemirror/lang-wast": "^6.0.0",
+ "@codemirror/lang-xml": "^6.0.0",
+ "@codemirror/language-data": ">=6.0.0",
+ "@codemirror/legacy-modes": ">=6.0.0",
+ "@nextjournal/lang-clojure": "^1.0.0",
+ "@replit/codemirror-lang-csharp": "^6.1.0",
+ "@replit/codemirror-lang-nix": "^6.0.1",
+ "@replit/codemirror-lang-solidity": "^6.0.1",
+ "@replit/codemirror-lang-svelte": "^6.0.0",
+ "codemirror-lang-mermaid": "^0.5.0"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@codemirror/language-data": ">=6.0.0",
+ "@codemirror/legacy-modes": ">=6.0.0"
+ }
+ },
+ "node_modules/@uiw/codemirror-themes": {
+ "version": "4.24.1",
+ "resolved": "https://registry.npmjs.org/@uiw/codemirror-themes/-/codemirror-themes-4.24.1.tgz",
+ "integrity": "sha512-hduBbFNiWNW6nYa2/giKQ9YpzhWNw87BGpCjC+cXYMZ7bCD6q5DC6Hw+7z7ZwSzEaOQvV91lmirOjJ8hn9+pkg==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@codemirror/language": ">=6.0.0",
+ "@codemirror/state": ">=6.0.0",
+ "@codemirror/view": ">=6.0.0"
+ }
+ },
+ "node_modules/@uiw/react-codemirror": {
+ "version": "4.24.1",
+ "resolved": "https://registry.npmjs.org/@uiw/react-codemirror/-/react-codemirror-4.24.1.tgz",
+ "integrity": "sha512-BivF4NLqbuBQK5gPVhSkOARi9nPXw8X5r25EnInPeY+I9l1dfEX8O9V6+0xHTlGHyUo0cNfGEF9t1KHEicUfJw==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.18.6",
+ "@codemirror/commands": "^6.1.0",
+ "@codemirror/state": "^6.1.1",
+ "@codemirror/theme-one-dark": "^6.0.0",
+ "@uiw/codemirror-extensions-basic-setup": "4.24.1",
+ "codemirror": "^6.0.0"
+ },
+ "funding": {
+ "url": "https://jaywcjlove.github.io/#/sponsor"
+ },
+ "peerDependencies": {
+ "@babel/runtime": ">=7.11.0",
+ "@codemirror/state": ">=6.0.0",
+ "@codemirror/theme-one-dark": ">=6.0.0",
+ "@codemirror/view": ">=6.0.0",
+ "codemirror": ">=6.0.0",
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@vitejs/plugin-react-swc": {
+ "version": "3.10.2",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.10.2.tgz",
+ "integrity": "sha512-xD3Rdvrt5LgANug7WekBn1KhcvLn1H3jNBfJRL3reeOIua/WnZOEV5qi5qIBq5T8R0jUDmRtxuvk4bPhzGHDWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rolldown/pluginutils": "1.0.0-beta.11",
+ "@swc/core": "^1.11.31"
+ },
+ "peerDependencies": {
+ "vite": "^4 || ^5 || ^6 || ^7.0.0-beta.0"
+ }
+ },
+ "node_modules/@xterm/addon-attach": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@xterm/addon-attach/-/addon-attach-0.11.0.tgz",
+ "integrity": "sha512-JboCN0QAY6ZLY/SSB/Zl2cQ5zW1Eh4X3fH7BnuR1NB7xGRhzbqU2Npmpiw/3zFlxDaU88vtKzok44JKi2L2V2Q==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@xterm/xterm": "^5.0.0"
+ }
+ },
+ "node_modules/@xterm/addon-clipboard": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@xterm/addon-clipboard/-/addon-clipboard-0.1.0.tgz",
+ "integrity": "sha512-zdoM7p53T5sv/HbRTyp4hY0kKmEQ3MZvAvEtiXqNIHc/JdpqwByCtsTaQF5DX2n4hYdXRPO4P/eOS0QEhX1nPw==",
+ "license": "MIT",
+ "dependencies": {
+ "js-base64": "^3.7.5"
+ },
+ "peerDependencies": {
+ "@xterm/xterm": "^5.4.0"
+ }
+ },
+ "node_modules/@xterm/addon-fit": {
+ "version": "0.10.0",
+ "resolved": "https://registry.npmjs.org/@xterm/addon-fit/-/addon-fit-0.10.0.tgz",
+ "integrity": "sha512-UFYkDm4HUahf2lnEyHvio51TNGiLK66mqP2JoATy7hRZeXaGMRDr00JiSF7m63vR5WKATF605yEggJKsw0JpMQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@xterm/xterm": "^5.0.0"
+ }
+ },
+ "node_modules/@xterm/addon-search": {
+ "version": "0.15.0",
+ "resolved": "https://registry.npmjs.org/@xterm/addon-search/-/addon-search-0.15.0.tgz",
+ "integrity": "sha512-ZBZKLQ+EuKE83CqCmSSz5y1tx+aNOCUaA7dm6emgOX+8J9H1FWXZyrKfzjwzV+V14TV3xToz1goIeRhXBS5qjg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@xterm/xterm": "^5.0.0"
+ }
+ },
+ "node_modules/@xterm/addon-unicode11": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/@xterm/addon-unicode11/-/addon-unicode11-0.8.0.tgz",
+ "integrity": "sha512-LxinXu8SC4OmVa6FhgwsVCBZbr8WoSGzBl2+vqe8WcQ6hb1r6Gj9P99qTNdPiFPh4Ceiu2pC8xukZ6+2nnh49Q==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@xterm/xterm": "^5.0.0"
+ }
+ },
+ "node_modules/@xterm/addon-web-links": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@xterm/addon-web-links/-/addon-web-links-0.11.0.tgz",
+ "integrity": "sha512-nIHQ38pQI+a5kXnRaTgwqSHnX7KE6+4SVoceompgHL26unAxdfP6IPqUTSYPQgSwM56hsElfoNrrW5V7BUED/Q==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@xterm/xterm": "^5.0.0"
+ }
+ },
+ "node_modules/@xterm/xterm": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-5.5.0.tgz",
+ "integrity": "sha512-hqJHYaQb5OptNunnyAnkHyM8aCjZ1MEIDTQu1iIbbTD/xops91NB5yq1ZK/dC2JDbVWtF23zUtl9JE2NqwT87A==",
+ "license": "MIT"
+ },
+ "node_modules/accepts": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "^3.0.0",
+ "negotiator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.15.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/acorn-walk": {
+ "version": "8.3.4",
+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",
+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "acorn": "^8.11.0"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/append-field": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz",
+ "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==",
+ "license": "MIT"
+ },
+ "node_modules/arg": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
+ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/aria-hidden": {
+ "version": "1.2.6",
+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",
+ "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/asn1": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",
+ "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "license": "MIT"
+ },
+ "node_modules/autoprefixer": {
+ "version": "10.4.21",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz",
+ "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.24.4",
+ "caniuse-lite": "^1.0.30001702",
+ "fraction.js": "^4.3.7",
+ "normalize-range": "^0.1.2",
+ "picocolors": "^1.1.1",
+ "postcss-value-parser": "^4.2.0"
+ },
+ "bin": {
+ "autoprefixer": "bin/autoprefixer"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/axios": {
+ "version": "1.10.0",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.10.0.tgz",
+ "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==",
+ "license": "MIT",
+ "dependencies": {
+ "follow-redirects": "^1.15.6",
+ "form-data": "^4.0.0",
+ "proxy-from-env": "^1.1.0"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "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/bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
+ "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "node_modules/bcryptjs": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-3.0.2.tgz",
+ "integrity": "sha512-k38b3XOZKv60C4E2hVsXTolJWfkGRMbILBIe2IBITXciy5bOsTKot5kDrf3ZfufQtQOUN5mXceUEpU1rTl9Uog==",
+ "license": "BSD-3-Clause",
+ "bin": {
+ "bcrypt": "bin/bcrypt"
+ }
+ },
+ "node_modules/better-sqlite3": {
+ "version": "12.2.0",
+ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-12.2.0.tgz",
+ "integrity": "sha512-eGbYq2CT+tos1fBwLQ/tkBt9J5M3JEHjku4hbvQUePCckkvVf14xWj+1m7dGoK81M/fOjFT7yM9UMeKT/+vFLQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "bindings": "^1.5.0",
+ "prebuild-install": "^7.1.1"
+ },
+ "engines": {
+ "node": "20.x || 22.x || 23.x || 24.x"
+ }
+ },
+ "node_modules/bindings": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "file-uri-to-path": "1.0.0"
+ }
+ },
+ "node_modules/bl": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/body-parser": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz",
+ "integrity": "sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "^3.1.2",
+ "content-type": "^1.0.5",
+ "debug": "^4.4.0",
+ "http-errors": "^2.0.0",
+ "iconv-lite": "^0.6.3",
+ "on-finished": "^2.4.1",
+ "qs": "^6.14.0",
+ "raw-body": "^3.0.0",
+ "type-is": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.25.1",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz",
+ "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "caniuse-lite": "^1.0.30001726",
+ "electron-to-chromium": "^1.5.173",
+ "node-releases": "^2.0.19",
+ "update-browserslist-db": "^1.1.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/buffer-equal-constant-time": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
+ "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/buffer-from": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
+ "license": "MIT"
+ },
+ "node_modules/buildcheck": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/buildcheck/-/buildcheck-0.0.6.tgz",
+ "integrity": "sha512-8f9ZJCUXyT1M35Jx7MkBgmBMo3oHTTBIPLiY9xyL0pl3T5RwcPEY8cUHr5LBNfu/fk6c2T4DJZuVM/8ZZT2D2A==",
+ "optional": true,
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/busboy": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
+ "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
+ "dependencies": {
+ "streamsearch": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=10.16.0"
+ }
+ },
+ "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/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/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001727",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz",
+ "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chownr": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",
+ "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/class-variance-authority": {
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",
+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "clsx": "^2.1.1"
+ },
+ "funding": {
+ "url": "https://polar.sh/cva"
+ }
+ },
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/codemirror": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.2.tgz",
+ "integrity": "sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/commands": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/lint": "^6.0.0",
+ "@codemirror/search": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0"
+ }
+ },
+ "node_modules/codemirror-lang-mermaid": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/codemirror-lang-mermaid/-/codemirror-lang-mermaid-0.5.0.tgz",
+ "integrity": "sha512-Taw/2gPCyNArQJCxIP/HSUif+3zrvD+6Ugt7KJZ2dUKou/8r3ZhcfG8krNTZfV2iu8AuGnymKuo7bLPFyqsh/A==",
+ "license": "MIT",
+ "dependencies": {
+ "@codemirror/language": "^6.9.0",
+ "@lezer/highlight": "^1.1.6",
+ "@lezer/lr": "^1.3.10"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "license": "MIT"
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/concat-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz",
+ "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
+ "engines": [
+ "node >= 6.0"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.0.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "node_modules/content-disposition": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz",
+ "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==",
+ "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-parser": {
+ "version": "1.4.7",
+ "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz",
+ "integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==",
+ "license": "MIT",
+ "dependencies": {
+ "cookie": "0.7.2",
+ "cookie-signature": "1.0.6"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/cookie-parser/node_modules/cookie-signature": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
+ "license": "MIT"
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.6.0"
+ }
+ },
+ "node_modules/cors": {
+ "version": "2.8.5",
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
+ "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
+ "license": "MIT",
+ "dependencies": {
+ "object-assign": "^4",
+ "vary": "^1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/cpu-features": {
+ "version": "0.0.10",
+ "resolved": "https://registry.npmjs.org/cpu-features/-/cpu-features-0.0.10.tgz",
+ "integrity": "sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA==",
+ "hasInstallScript": true,
+ "optional": true,
+ "dependencies": {
+ "buildcheck": "~0.0.6",
+ "nan": "^2.19.0"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/create-require": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
+ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/crelt": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz",
+ "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==",
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/data-uri-to-buffer": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
+ "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "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/detect-libc": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz",
+ "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/detect-node-es": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",
+ "license": "MIT"
+ },
+ "node_modules/diff": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
+ "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.3.1"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "17.2.0",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.0.tgz",
+ "integrity": "sha512-Q4sgBT60gzd0BB0lSyYD3xM4YxrXA9y4uBDof1JNYGzOXrQdQ6yX+7XIAqoFOGQFOTK1D3Hts5OllpxMDZFONQ==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/drizzle-orm": {
+ "version": "0.44.3",
+ "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.44.3.tgz",
+ "integrity": "sha512-8nIiYQxOpgUicEL04YFojJmvC4DNO4KoyXsEIqN44+g6gNBr6hmVpWk3uyAt4CaTiRGDwoU+alfqNNeonLAFOQ==",
+ "license": "Apache-2.0",
+ "peerDependencies": {
+ "@aws-sdk/client-rds-data": ">=3",
+ "@cloudflare/workers-types": ">=4",
+ "@electric-sql/pglite": ">=0.2.0",
+ "@libsql/client": ">=0.10.0",
+ "@libsql/client-wasm": ">=0.10.0",
+ "@neondatabase/serverless": ">=0.10.0",
+ "@op-engineering/op-sqlite": ">=2",
+ "@opentelemetry/api": "^1.4.1",
+ "@planetscale/database": ">=1.13",
+ "@prisma/client": "*",
+ "@tidbcloud/serverless": "*",
+ "@types/better-sqlite3": "*",
+ "@types/pg": "*",
+ "@types/sql.js": "*",
+ "@upstash/redis": ">=1.34.7",
+ "@vercel/postgres": ">=0.8.0",
+ "@xata.io/client": "*",
+ "better-sqlite3": ">=7",
+ "bun-types": "*",
+ "expo-sqlite": ">=14.0.0",
+ "gel": ">=2",
+ "knex": "*",
+ "kysely": "*",
+ "mysql2": ">=2",
+ "pg": ">=8",
+ "postgres": ">=3",
+ "sql.js": ">=1",
+ "sqlite3": ">=5"
+ },
+ "peerDependenciesMeta": {
+ "@aws-sdk/client-rds-data": {
+ "optional": true
+ },
+ "@cloudflare/workers-types": {
+ "optional": true
+ },
+ "@electric-sql/pglite": {
+ "optional": true
+ },
+ "@libsql/client": {
+ "optional": true
+ },
+ "@libsql/client-wasm": {
+ "optional": true
+ },
+ "@neondatabase/serverless": {
+ "optional": true
+ },
+ "@op-engineering/op-sqlite": {
+ "optional": true
+ },
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@planetscale/database": {
+ "optional": true
+ },
+ "@prisma/client": {
+ "optional": true
+ },
+ "@tidbcloud/serverless": {
+ "optional": true
+ },
+ "@types/better-sqlite3": {
+ "optional": true
+ },
+ "@types/pg": {
+ "optional": true
+ },
+ "@types/sql.js": {
+ "optional": true
+ },
+ "@upstash/redis": {
+ "optional": true
+ },
+ "@vercel/postgres": {
+ "optional": true
+ },
+ "@xata.io/client": {
+ "optional": true
+ },
+ "better-sqlite3": {
+ "optional": true
+ },
+ "bun-types": {
+ "optional": true
+ },
+ "expo-sqlite": {
+ "optional": true
+ },
+ "gel": {
+ "optional": true
+ },
+ "knex": {
+ "optional": true
+ },
+ "kysely": {
+ "optional": true
+ },
+ "mysql2": {
+ "optional": true
+ },
+ "pg": {
+ "optional": true
+ },
+ "postgres": {
+ "optional": true
+ },
+ "prisma": {
+ "optional": true
+ },
+ "sql.js": {
+ "optional": true
+ },
+ "sqlite3": {
+ "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/ecdsa-sig-formatter": {
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
+ "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "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-to-chromium": {
+ "version": "1.5.187",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.187.tgz",
+ "integrity": "sha512-cl5Jc9I0KGUoOoSbxvTywTa40uspGJt/BDBoDLoxJRSBpWh4FFXBsjNRHfQrONsV/OoEjDfHUmZQa2d6Ze4YgA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "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==",
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.18.2",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.2.tgz",
+ "integrity": "sha512-6Jw4sE1maoRJo3q8MsSIn2onJFbLTOjY9hlx4DZXmOKvLRd1Ok2kXmAGXaafL2+ijsJZ1ClYbl/pmqr9+k4iUQ==",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "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.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.25.6",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz",
+ "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.6",
+ "@esbuild/android-arm": "0.25.6",
+ "@esbuild/android-arm64": "0.25.6",
+ "@esbuild/android-x64": "0.25.6",
+ "@esbuild/darwin-arm64": "0.25.6",
+ "@esbuild/darwin-x64": "0.25.6",
+ "@esbuild/freebsd-arm64": "0.25.6",
+ "@esbuild/freebsd-x64": "0.25.6",
+ "@esbuild/linux-arm": "0.25.6",
+ "@esbuild/linux-arm64": "0.25.6",
+ "@esbuild/linux-ia32": "0.25.6",
+ "@esbuild/linux-loong64": "0.25.6",
+ "@esbuild/linux-mips64el": "0.25.6",
+ "@esbuild/linux-ppc64": "0.25.6",
+ "@esbuild/linux-riscv64": "0.25.6",
+ "@esbuild/linux-s390x": "0.25.6",
+ "@esbuild/linux-x64": "0.25.6",
+ "@esbuild/netbsd-arm64": "0.25.6",
+ "@esbuild/netbsd-x64": "0.25.6",
+ "@esbuild/openbsd-arm64": "0.25.6",
+ "@esbuild/openbsd-x64": "0.25.6",
+ "@esbuild/openharmony-arm64": "0.25.6",
+ "@esbuild/sunos-x64": "0.25.6",
+ "@esbuild/win32-arm64": "0.25.6",
+ "@esbuild/win32-ia32": "0.25.6",
+ "@esbuild/win32-x64": "0.25.6"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "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",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.31.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.31.0.tgz",
+ "integrity": "sha512-QldCVh/ztyKJJZLr4jXNUByx3gR+TDYZCRXEktiZoUR3PGy4qCmSbkxcIle8GEwGpb5JBZazlaJ/CxLidXdEbQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.0",
+ "@eslint/config-helpers": "^0.3.0",
+ "@eslint/core": "^0.15.0",
+ "@eslint/eslintrc": "^3.3.1",
+ "@eslint/js": "9.31.0",
+ "@eslint/plugin-kit": "^0.3.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "@types/json-schema": "^7.0.15",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz",
+ "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-react-refresh": {
+ "version": "0.4.20",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.20.tgz",
+ "integrity": "sha512-XpbHQ2q5gUF8BGOX4dHe+71qoirYMhApEPZ7sfhF/dNnOF1UXnCMGZf79SFTBO7Bz5YEIT4TMieSlJBWhP9WBA==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "eslint": ">=8.40"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",
+ "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/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/expand-template": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
+ "license": "(MIT OR WTFPL)",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/express": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz",
+ "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "^2.0.0",
+ "body-parser": "^2.2.0",
+ "content-disposition": "^1.0.0",
+ "content-type": "^1.0.5",
+ "cookie": "^0.7.1",
+ "cookie-signature": "^1.2.1",
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "finalhandler": "^2.1.0",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "merge-descriptors": "^2.0.0",
+ "mime-types": "^3.0.0",
+ "on-finished": "^2.4.1",
+ "once": "^1.4.0",
+ "parseurl": "^1.3.3",
+ "proxy-addr": "^2.0.7",
+ "qs": "^6.14.0",
+ "range-parser": "^1.2.1",
+ "router": "^2.2.0",
+ "send": "^1.1.0",
+ "serve-static": "^2.2.0",
+ "statuses": "^2.0.1",
+ "type-is": "^2.0.1",
+ "vary": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.19.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/fetch-blob": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
+ "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/jimmywarting"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/jimmywarting"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "node-domexception": "^1.0.0",
+ "web-streams-polyfill": "^3.0.3"
+ },
+ "engines": {
+ "node": "^12.20 || >= 14.13"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/file-uri-to-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+ "license": "MIT"
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz",
+ "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "on-finished": "^2.4.1",
+ "parseurl": "^1.3.3",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",
+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/follow-redirects": {
+ "version": "1.15.9",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
+ "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/RubenVerborgh"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ },
+ "peerDependenciesMeta": {
+ "debug": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/form-data": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
+ "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/form-data/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/form-data/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/formdata-polyfill": {
+ "version": "4.0.10",
+ "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
+ "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
+ "license": "MIT",
+ "dependencies": {
+ "fetch-blob": "^3.1.2"
+ },
+ "engines": {
+ "node": ">=12.20.0"
+ }
+ },
+ "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/fraction.js": {
+ "version": "4.3.7",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
+ "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "type": "patreon",
+ "url": "https://github.com/sponsors/rawify"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/fs-constants": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+ "license": "MIT"
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "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-nonce": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "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/github-from-package": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
+ "license": "MIT"
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "16.3.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.3.0.tgz",
+ "integrity": "sha512-bqWEnJ1Nt3neqx2q5SFfGS8r/ahumIakg3HcwtNlrVlwXIeNumWn/c7Pn/wKzGhf6SaW6H6uWXLqC30STCMchQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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/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==",
+ "license": "ISC"
+ },
+ "node_modules/graphemer": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "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/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "2.0.0",
+ "inherits": "2.0.4",
+ "setprototypeof": "1.2.0",
+ "statuses": "2.0.1",
+ "toidentifier": "1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/http-errors/node_modules/statuses": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "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": "BSD-3-Clause"
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/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/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+ "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/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-promise": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
+ "license": "MIT"
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/jiti": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",
+ "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/jose": {
+ "version": "5.10.0",
+ "resolved": "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz",
+ "integrity": "sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/panva"
+ }
+ },
+ "node_modules/js-base64": {
+ "version": "3.7.7",
+ "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.7.tgz",
+ "integrity": "sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsonwebtoken": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz",
+ "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==",
+ "license": "MIT",
+ "dependencies": {
+ "jws": "^3.2.2",
+ "lodash.includes": "^4.3.0",
+ "lodash.isboolean": "^3.0.3",
+ "lodash.isinteger": "^4.0.4",
+ "lodash.isnumber": "^3.0.3",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.isstring": "^4.0.1",
+ "lodash.once": "^4.0.0",
+ "ms": "^2.1.1",
+ "semver": "^7.5.4"
+ },
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ }
+ },
+ "node_modules/jwa": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz",
+ "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer-equal-constant-time": "^1.0.1",
+ "ecdsa-sig-formatter": "1.0.11",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/jws": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
+ "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
+ "license": "MIT",
+ "dependencies": {
+ "jwa": "^1.4.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz",
+ "integrity": "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-darwin-arm64": "1.30.1",
+ "lightningcss-darwin-x64": "1.30.1",
+ "lightningcss-freebsd-x64": "1.30.1",
+ "lightningcss-linux-arm-gnueabihf": "1.30.1",
+ "lightningcss-linux-arm64-gnu": "1.30.1",
+ "lightningcss-linux-arm64-musl": "1.30.1",
+ "lightningcss-linux-x64-gnu": "1.30.1",
+ "lightningcss-linux-x64-musl": "1.30.1",
+ "lightningcss-win32-arm64-msvc": "1.30.1",
+ "lightningcss-win32-x64-msvc": "1.30.1"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz",
+ "integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.1.tgz",
+ "integrity": "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.1.tgz",
+ "integrity": "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.1.tgz",
+ "integrity": "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.1.tgz",
+ "integrity": "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.1.tgz",
+ "integrity": "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.1.tgz",
+ "integrity": "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.1.tgz",
+ "integrity": "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.1.tgz",
+ "integrity": "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.30.1",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.1.tgz",
+ "integrity": "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash.includes": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
+ "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.isboolean": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",
+ "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.isinteger": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",
+ "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.isnumber": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",
+ "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.isplainobject": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.isstring": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",
+ "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.once": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
+ "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",
+ "license": "MIT"
+ },
+ "node_modules/lucide-react": {
+ "version": "0.525.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.525.0.tgz",
+ "integrity": "sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==",
+ "license": "ISC",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.17",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",
+ "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0"
+ }
+ },
+ "node_modules/make-error": {
+ "version": "1.3.6",
+ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "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": "1.1.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.54.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz",
+ "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "^1.54.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "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==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/minizlib": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz",
+ "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==",
+ "license": "MIT",
+ "dependencies": {
+ "minipass": "^7.1.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/mkdirp": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
+ "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",
+ "license": "MIT",
+ "bin": {
+ "mkdirp": "dist/cjs/src/bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/mkdirp-classic": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
+ "license": "MIT"
+ },
+ "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/multer": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/multer/-/multer-2.0.2.tgz",
+ "integrity": "sha512-u7f2xaZ/UG8oLXHvtF/oWTRvT44p9ecwBBqTwgJVq0+4BW1g8OW01TyMEGWBHbyMOYVHXslaut7qEQ1meATXgw==",
+ "license": "MIT",
+ "dependencies": {
+ "append-field": "^1.0.0",
+ "busboy": "^1.6.0",
+ "concat-stream": "^2.0.0",
+ "mkdirp": "^0.5.6",
+ "object-assign": "^4.1.1",
+ "type-is": "^1.6.18",
+ "xtend": "^4.0.2"
+ },
+ "engines": {
+ "node": ">= 10.16.0"
+ }
+ },
+ "node_modules/multer/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/multer/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/multer/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/multer/node_modules/mkdirp": {
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/multer/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/nan": {
+ "version": "2.23.0",
+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.23.0.tgz",
+ "integrity": "sha512-1UxuyYGdoQHcGg87Lkqm3FzefucTa0NAiOcuRsDmysep3c1LVCRK2krrUDafMWtjSG04htvAmvg96+SDknOmgQ==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/nanoid": {
+ "version": "5.1.5",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.5.tgz",
+ "integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.js"
+ },
+ "engines": {
+ "node": "^18 || >=20"
+ }
+ },
+ "node_modules/napi-build-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",
+ "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
+ "license": "MIT"
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/node-abi": {
+ "version": "3.75.0",
+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.75.0.tgz",
+ "integrity": "sha512-OhYaY5sDsIka7H7AtijtI9jwGYLyl29eQn/W623DiN/MIv5sUqc4g7BIDThX+gb7di9f6xK02nkp8sdfFWZLTg==",
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-domexception": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
+ "deprecated": "Use your platform's native DOMException instead",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/jimmywarting"
+ },
+ {
+ "type": "github",
+ "url": "https://paypal.me/jimmywarting"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.5.0"
+ }
+ },
+ "node_modules/node-fetch": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
+ "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
+ "license": "MIT",
+ "dependencies": {
+ "data-uri-to-buffer": "^4.0.0",
+ "fetch-blob": "^3.1.4",
+ "formdata-polyfill": "^4.0.10"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/node-fetch"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.19",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",
+ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/normalize-range": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
+ "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "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/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==",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/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-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz",
+ "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.6",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/postcss/node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/prebuild-install": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",
+ "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
+ "license": "MIT",
+ "dependencies": {
+ "detect-libc": "^2.0.0",
+ "expand-template": "^2.0.3",
+ "github-from-package": "0.0.0",
+ "minimist": "^1.2.3",
+ "mkdirp-classic": "^0.5.3",
+ "napi-build-utils": "^2.0.0",
+ "node-abi": "^3.3.0",
+ "pump": "^3.0.0",
+ "rc": "^1.2.7",
+ "simple-get": "^4.0.0",
+ "tar-fs": "^2.0.0",
+ "tunnel-agent": "^0.6.0"
+ },
+ "bin": {
+ "prebuild-install": "bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/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/proxy-from-env": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
+ "license": "MIT"
+ },
+ "node_modules/pump": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz",
+ "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.14.0",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
+ "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/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": "3.0.0",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz",
+ "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.6.3",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
+ "dependencies": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "bin": {
+ "rc": "cli.js"
+ }
+ },
+ "node_modules/rc/node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.1.0",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz",
+ "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.1.0",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz",
+ "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.26.0"
+ },
+ "peerDependencies": {
+ "react": "^19.1.0"
+ }
+ },
+ "node_modules/react-hook-form": {
+ "version": "7.60.0",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.60.0.tgz",
+ "integrity": "sha512-SBrYOvMbDB7cV8ZfNpaiLcgjH/a1c7aK0lK+aNigpf4xWLO8q+o4tcvVurv3c4EOyzn/3dCsYt4GKD42VvJ/+A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/react-hook-form"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17 || ^18 || ^19"
+ }
+ },
+ "node_modules/react-remove-scroll": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz",
+ "integrity": "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==",
+ "license": "MIT",
+ "dependencies": {
+ "react-remove-scroll-bar": "^2.3.7",
+ "react-style-singleton": "^2.2.3",
+ "tslib": "^2.1.0",
+ "use-callback-ref": "^1.3.3",
+ "use-sidecar": "^1.1.3"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-remove-scroll-bar": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",
+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",
+ "license": "MIT",
+ "dependencies": {
+ "react-style-singleton": "^2.2.2",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-resizable-panels": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.3.tgz",
+ "integrity": "sha512-7HA8THVBHTzhDK4ON0tvlGXyMAJN1zBeRpuyyremSikgYh2ku6ltD7tsGQOcXx4NKPrZtYCm/5CBr+dkruTGQw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
+ "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/react-style-singleton": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",
+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",
+ "license": "MIT",
+ "dependencies": {
+ "get-nonce": "^1.0.0",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-xtermjs": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/react-xtermjs/-/react-xtermjs-1.0.10.tgz",
+ "integrity": "sha512-+xpKEKbmsypWzRKE0FR1LNIGcI8gx+R6VMHe8IQW7iTbgeqp3Qg7SbiVNOzR+Ovb1QK4DPA3KqsIQV+XP0iRUA==",
+ "license": "ISC",
+ "peerDependencies": {
+ "@xterm/xterm": "^5.5.0"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.45.0",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.45.0.tgz",
+ "integrity": "sha512-WLjEcJRIo7i3WDDgOIJqVI2d+lAC3EwvOGy+Xfq6hs+GQuAA4Di/H72xmXkOhrIWFg2PFYSKZYfH0f4vfKXN4A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.8"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.45.0",
+ "@rollup/rollup-android-arm64": "4.45.0",
+ "@rollup/rollup-darwin-arm64": "4.45.0",
+ "@rollup/rollup-darwin-x64": "4.45.0",
+ "@rollup/rollup-freebsd-arm64": "4.45.0",
+ "@rollup/rollup-freebsd-x64": "4.45.0",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.45.0",
+ "@rollup/rollup-linux-arm-musleabihf": "4.45.0",
+ "@rollup/rollup-linux-arm64-gnu": "4.45.0",
+ "@rollup/rollup-linux-arm64-musl": "4.45.0",
+ "@rollup/rollup-linux-loongarch64-gnu": "4.45.0",
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.45.0",
+ "@rollup/rollup-linux-riscv64-gnu": "4.45.0",
+ "@rollup/rollup-linux-riscv64-musl": "4.45.0",
+ "@rollup/rollup-linux-s390x-gnu": "4.45.0",
+ "@rollup/rollup-linux-x64-gnu": "4.45.0",
+ "@rollup/rollup-linux-x64-musl": "4.45.0",
+ "@rollup/rollup-win32-arm64-msvc": "4.45.0",
+ "@rollup/rollup-win32-ia32-msvc": "4.45.0",
+ "@rollup/rollup-win32-x64-msvc": "4.45.0",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/router": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.4.0",
+ "depd": "^2.0.0",
+ "is-promise": "^4.0.0",
+ "parseurl": "^1.3.3",
+ "path-to-regexp": "^8.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.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/scheduler": {
+ "version": "0.26.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz",
+ "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "7.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/send": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz",
+ "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.5",
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "etag": "^1.8.1",
+ "fresh": "^2.0.0",
+ "http-errors": "^2.0.0",
+ "mime-types": "^3.0.1",
+ "ms": "^2.1.3",
+ "on-finished": "^2.4.1",
+ "range-parser": "^1.2.1",
+ "statuses": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/serve-static": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz",
+ "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "^2.0.0",
+ "escape-html": "^1.0.3",
+ "parseurl": "^1.3.3",
+ "send": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "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/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/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.0",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3"
+ },
+ "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/simple-concat": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
+ "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/simple-get": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decompress-response": "^6.0.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ssh2": {
+ "version": "1.16.0",
+ "resolved": "https://registry.npmjs.org/ssh2/-/ssh2-1.16.0.tgz",
+ "integrity": "sha512-r1X4KsBGedJqo7h8F5c4Ybpcr5RjyP+aWIG007uBPRjmdQWfEiVLzSK71Zji1B9sKxwaCvD8y8cwSkYrlLiRRg==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "asn1": "^0.2.6",
+ "bcrypt-pbkdf": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=10.16.0"
+ },
+ "optionalDependencies": {
+ "cpu-features": "~0.0.10",
+ "nan": "^2.20.0"
+ }
+ },
+ "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/streamsearch": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
+ "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/style-mod": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz",
+ "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==",
+ "license": "MIT"
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tailwind-merge": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.3.1.tgz",
+ "integrity": "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/dcastil"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.11.tgz",
+ "integrity": "sha512-2E9TBm6MDD/xKYe+dvJZAmg3yxIEDNRc0jwlNyDg/4Fil2QcSLjFKGVff0lAf1jjeaArlG/M75Ey/EYr/OJtBA==",
+ "license": "MIT"
+ },
+ "node_modules/tapable": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.2.tgz",
+ "integrity": "sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/tar": {
+ "version": "7.4.3",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz",
+ "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==",
+ "license": "ISC",
+ "dependencies": {
+ "@isaacs/fs-minipass": "^4.0.0",
+ "chownr": "^3.0.0",
+ "minipass": "^7.1.2",
+ "minizlib": "^3.0.1",
+ "mkdirp": "^3.0.1",
+ "yallist": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tar-fs": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.3.tgz",
+ "integrity": "sha512-090nwYJDmlhwFwEW3QQl+vaNnxsO2yVsd45eTKRBzSzu+hlb1w2K9inVq5b0ngXuLVqQ4ApvsUHHnu/zQNkWAg==",
+ "license": "MIT",
+ "dependencies": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.1.4"
+ }
+ },
+ "node_modules/tar-fs/node_modules/chownr": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
+ "license": "ISC"
+ },
+ "node_modules/tar-stream": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.14",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",
+ "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.4.4",
+ "picomatch": "^4.0.2"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyglobby/node_modules/fdir": {
+ "version": "6.4.6",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz",
+ "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tinyglobby/node_modules/picomatch": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
+ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/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/ts-api-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
+ "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/ts-node": {
+ "version": "10.9.2",
+ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
+ "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cspotcode/source-map-support": "^0.8.0",
+ "@tsconfig/node10": "^1.0.7",
+ "@tsconfig/node12": "^1.0.7",
+ "@tsconfig/node14": "^1.0.0",
+ "@tsconfig/node16": "^1.0.2",
+ "acorn": "^8.4.1",
+ "acorn-walk": "^8.1.1",
+ "arg": "^4.1.0",
+ "create-require": "^1.1.0",
+ "diff": "^4.0.1",
+ "make-error": "^1.1.1",
+ "v8-compile-cache-lib": "^3.0.1",
+ "yn": "3.1.1"
+ },
+ "bin": {
+ "ts-node": "dist/bin.js",
+ "ts-node-cwd": "dist/bin-cwd.js",
+ "ts-node-esm": "dist/bin-esm.js",
+ "ts-node-script": "dist/bin-script.js",
+ "ts-node-transpile-only": "dist/bin-transpile.js",
+ "ts-script": "dist/bin-script-deprecated.js"
+ },
+ "peerDependencies": {
+ "@swc/core": ">=1.2.50",
+ "@swc/wasm": ">=1.2.50",
+ "@types/node": "*",
+ "typescript": ">=2.7"
+ },
+ "peerDependenciesMeta": {
+ "@swc/core": {
+ "optional": true
+ },
+ "@swc/wasm": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/tw-animate-css": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.5.tgz",
+ "integrity": "sha512-t3u+0YNoloIhj1mMXs779P6MO9q3p3mvGn4k1n3nJPqJw/glZcuijG2qTSN4z4mgNRfW5ZC3aXJFLwDtiipZXA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/Wombosvideo"
+ }
+ },
+ "node_modules/tweetnacl": {
+ "version": "0.14.5",
+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
+ "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==",
+ "license": "Unlicense"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "content-type": "^1.0.5",
+ "media-typer": "^1.1.0",
+ "mime-types": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/typedarray": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
+ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
+ "license": "MIT"
+ },
+ "node_modules/typescript": {
+ "version": "5.8.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
+ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.37.0",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.37.0.tgz",
+ "integrity": "sha512-TnbEjzkE9EmcO0Q2zM+GE8NQLItNAJpMmED1BdgoBMYNdqMhzlbqfdSwiRlAzEK2pA9UzVW0gzaaIzXWg2BjfA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.37.0",
+ "@typescript-eslint/parser": "8.37.0",
+ "@typescript-eslint/typescript-estree": "8.37.0",
+ "@typescript-eslint/utils": "8.37.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "7.8.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz",
+ "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==",
+ "license": "MIT"
+ },
+ "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/update-browserslist-db": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
+ "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/use-callback-ref": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",
+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sidecar": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",
+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",
+ "license": "MIT",
+ "dependencies": {
+ "detect-node-es": "^1.1.0",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz",
+ "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "license": "MIT"
+ },
+ "node_modules/v8-compile-cache-lib": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
+ "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/validator": {
+ "version": "13.15.15",
+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.15.tgz",
+ "integrity": "sha512-BgWVbCI72aIQy937xbawcs+hrVaN/CZ2UwutgaJ36hGqRrLNM+f5LUT/YPRbo8IV/ASeFzXszezV+y2+rq3l8A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "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/vite": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.0.4.tgz",
+ "integrity": "sha512-SkaSguuS7nnmV7mfJ8l81JGBFV7Gvzp8IzgE8A8t23+AxuNX61Q5H1Tpz5efduSN7NHC8nQXD3sKQKZAu5mNEA==",
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.25.0",
+ "fdir": "^6.4.6",
+ "picomatch": "^4.0.2",
+ "postcss": "^8.5.6",
+ "rollup": "^4.40.0",
+ "tinyglobby": "^0.2.14"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^20.19.0 || >=22.12.0",
+ "jiti": ">=1.21.0",
+ "less": "^4.0.0",
+ "lightningcss": "^1.21.0",
+ "sass": "^1.70.0",
+ "sass-embedded": "^1.70.0",
+ "stylus": ">=0.54.8",
+ "sugarss": "^5.0.0",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite/node_modules/fdir": {
+ "version": "6.4.6",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz",
+ "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite/node_modules/picomatch": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",
+ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/w3c-keyname": {
+ "version": "2.2.8",
+ "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",
+ "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==",
+ "license": "MIT"
+ },
+ "node_modules/web-streams-polyfill": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
+ "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
+ },
+ "node_modules/ws": {
+ "version": "8.18.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
+ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
+ "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/xtend": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz",
+ "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/yn": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
+ "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zod": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.0.5.tgz",
+ "integrity": "sha512-/5UuuRPStvHXu7RS+gmvRf4NXrNxpSllGwDnCBcJZtQsKrviYXm54yDGV2KYNLT5kq0lHGcl7lqWJLgSaG+tgA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..16eabebe7
--- /dev/null
+++ b/package.json
@@ -0,0 +1,98 @@
+{
+ "name": "termix",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "vite build",
+ "build:backend": "tsc -p tsconfig.node.json",
+ "dev:backend": "tsc -p tsconfig.node.json && node ./dist/backend/starter.js",
+ "lint": "eslint .",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@hookform/resolvers": "^5.1.1",
+ "@radix-ui/react-accordion": "^1.2.11",
+ "@radix-ui/react-avatar": "^1.1.10",
+ "@radix-ui/react-checkbox": "^1.3.2",
+ "@radix-ui/react-collapsible": "^1.1.11",
+ "@radix-ui/react-dialog": "^1.1.14",
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
+ "@radix-ui/react-label": "^2.1.7",
+ "@radix-ui/react-popover": "^1.1.14",
+ "@radix-ui/react-scroll-area": "^1.2.9",
+ "@radix-ui/react-select": "^2.2.5",
+ "@radix-ui/react-separator": "^1.1.7",
+ "@radix-ui/react-slider": "^1.3.5",
+ "@radix-ui/react-slot": "^1.2.3",
+ "@radix-ui/react-switch": "^1.2.5",
+ "@radix-ui/react-tabs": "^1.1.12",
+ "@radix-ui/react-tooltip": "^1.2.7",
+ "@tailwindcss/vite": "^4.1.11",
+ "@types/bcryptjs": "^2.4.6",
+ "@types/multer": "^2.0.0",
+ "@uiw/codemirror-extensions-hyper-link": "^4.24.1",
+ "@uiw/codemirror-extensions-langs": "^4.24.1",
+ "@uiw/codemirror-themes": "^4.24.1",
+ "@uiw/react-codemirror": "^4.24.1",
+ "@xterm/addon-attach": "^0.11.0",
+ "@xterm/addon-clipboard": "^0.1.0",
+ "@xterm/addon-fit": "^0.10.0",
+ "@xterm/addon-search": "^0.15.0",
+ "@xterm/addon-unicode11": "^0.8.0",
+ "@xterm/addon-web-links": "^0.11.0",
+ "@xterm/xterm": "^5.5.0",
+ "axios": "^1.10.0",
+ "bcryptjs": "^3.0.2",
+ "better-sqlite3": "^12.2.0",
+ "chalk": "^4.1.2",
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
+ "cookie-parser": "^1.4.7",
+ "cors": "^2.8.5",
+ "dotenv": "^17.2.0",
+ "drizzle-orm": "^0.44.3",
+ "express": "^5.1.0",
+ "jose": "^5.2.3",
+ "jsonwebtoken": "^9.0.2",
+ "lucide-react": "^0.525.0",
+ "multer": "^2.0.2",
+ "nanoid": "^5.1.5",
+ "node-fetch": "^3.3.2",
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
+ "react-hook-form": "^7.60.0",
+ "react-resizable-panels": "^3.0.3",
+ "react-xtermjs": "^1.0.10",
+ "ssh2": "^1.16.0",
+ "tailwind-merge": "^3.3.1",
+ "tailwindcss": "^4.1.11",
+ "validator": "^13.15.15",
+ "ws": "^8.18.3",
+ "zod": "^4.0.5"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.30.1",
+ "@types/better-sqlite3": "^7.6.13",
+ "@types/cors": "^2.8.19",
+ "@types/express": "^5.0.3",
+ "@types/jsonwebtoken": "^9.0.10",
+ "@types/node": "^24.0.13",
+ "@types/react": "^19.1.8",
+ "@types/react-dom": "^19.1.6",
+ "@types/ssh2": "^1.15.5",
+ "@types/ws": "^8.18.1",
+ "@vitejs/plugin-react-swc": "^3.10.2",
+ "autoprefixer": "^10.4.21",
+ "eslint": "^9.30.1",
+ "eslint-plugin-react-hooks": "^5.2.0",
+ "eslint-plugin-react-refresh": "^0.4.20",
+ "globals": "^16.3.0",
+ "ts-node": "^10.9.2",
+ "tw-animate-css": "^1.3.5",
+ "typescript": "~5.8.3",
+ "typescript-eslint": "^8.35.1",
+ "vite": "^7.0.4"
+ }
+}
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 000000000..862e8505c
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-Bold.ttf b/public/fonts/JetBrainsMonoNLNerdFont-Bold.ttf
new file mode 100644
index 000000000..2bc4a9774
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-Bold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-BoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-BoldItalic.ttf
new file mode 100644
index 000000000..c55b451e6
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-BoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-ExtraBold.ttf b/public/fonts/JetBrainsMonoNLNerdFont-ExtraBold.ttf
new file mode 100644
index 000000000..7ed5f10c3
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-ExtraBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-ExtraBoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..9b12297a5
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-ExtraBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-ExtraLight.ttf b/public/fonts/JetBrainsMonoNLNerdFont-ExtraLight.ttf
new file mode 100644
index 000000000..4bab59932
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-ExtraLight.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-ExtraLightItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-ExtraLightItalic.ttf
new file mode 100644
index 000000000..fcc424ecf
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-ExtraLightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-Italic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-Italic.ttf
new file mode 100644
index 000000000..5af240c40
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-Italic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-Light.ttf b/public/fonts/JetBrainsMonoNLNerdFont-Light.ttf
new file mode 100644
index 000000000..c8d0bc0c5
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-Light.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-LightItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-LightItalic.ttf
new file mode 100644
index 000000000..a0ad2560a
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-LightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-Medium.ttf b/public/fonts/JetBrainsMonoNLNerdFont-Medium.ttf
new file mode 100644
index 000000000..619012709
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-Medium.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-MediumItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-MediumItalic.ttf
new file mode 100644
index 000000000..05bfc119e
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-MediumItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-Regular.ttf b/public/fonts/JetBrainsMonoNLNerdFont-Regular.ttf
new file mode 100644
index 000000000..5e7d395ec
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-Regular.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-SemiBold.ttf b/public/fonts/JetBrainsMonoNLNerdFont-SemiBold.ttf
new file mode 100644
index 000000000..7034d5dcf
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-SemiBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-SemiBoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-SemiBoldItalic.ttf
new file mode 100644
index 000000000..e2876a5e0
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-SemiBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-Thin.ttf b/public/fonts/JetBrainsMonoNLNerdFont-Thin.ttf
new file mode 100644
index 000000000..d84f9acbd
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-Thin.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFont-ThinItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFont-ThinItalic.ttf
new file mode 100644
index 000000000..e422ca6e4
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFont-ThinItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-Bold.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-Bold.ttf
new file mode 100644
index 000000000..61d25d73c
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-Bold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-BoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-BoldItalic.ttf
new file mode 100644
index 000000000..2885c6be0
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-BoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraBold.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraBold.ttf
new file mode 100644
index 000000000..8615f9fe9
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraBoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..e3634227d
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraLight.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraLight.ttf
new file mode 100644
index 000000000..607663c89
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraLight.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraLightItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraLightItalic.ttf
new file mode 100644
index 000000000..3d032d43a
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-ExtraLightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-Italic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-Italic.ttf
new file mode 100644
index 000000000..6ceae280c
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-Italic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-Light.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-Light.ttf
new file mode 100644
index 000000000..8f9c54a6c
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-Light.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-LightItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-LightItalic.ttf
new file mode 100644
index 000000000..205a508ca
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-LightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-Medium.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-Medium.ttf
new file mode 100644
index 000000000..10f9c843a
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-Medium.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-MediumItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-MediumItalic.ttf
new file mode 100644
index 000000000..0a5b4ed5d
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-MediumItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-Regular.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-Regular.ttf
new file mode 100644
index 000000000..5e77e110d
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-Regular.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-SemiBold.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-SemiBold.ttf
new file mode 100644
index 000000000..9d2a13e70
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-SemiBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-SemiBoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-SemiBoldItalic.ttf
new file mode 100644
index 000000000..61750cc09
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-SemiBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-Thin.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-Thin.ttf
new file mode 100644
index 000000000..2ab3abaa1
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-Thin.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontMono-ThinItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontMono-ThinItalic.ttf
new file mode 100644
index 000000000..4878d86bc
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontMono-ThinItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-Bold.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-Bold.ttf
new file mode 100644
index 000000000..be2de11c1
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-Bold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-BoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-BoldItalic.ttf
new file mode 100644
index 000000000..e37df50e1
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-BoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraBold.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraBold.ttf
new file mode 100644
index 000000000..46d20899f
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraBoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..394b69d07
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraLight.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraLight.ttf
new file mode 100644
index 000000000..09c63db83
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraLight.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraLightItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraLightItalic.ttf
new file mode 100644
index 000000000..841f3a85c
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-ExtraLightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-Italic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-Italic.ttf
new file mode 100644
index 000000000..98c29e51e
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-Italic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-Light.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-Light.ttf
new file mode 100644
index 000000000..6b010fa72
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-Light.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-LightItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-LightItalic.ttf
new file mode 100644
index 000000000..a4a3e05e8
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-LightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-Medium.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-Medium.ttf
new file mode 100644
index 000000000..b6f1deaba
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-Medium.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-MediumItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-MediumItalic.ttf
new file mode 100644
index 000000000..046cf6f7b
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-MediumItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-Regular.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-Regular.ttf
new file mode 100644
index 000000000..28ccb3db6
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-Regular.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-SemiBold.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-SemiBold.ttf
new file mode 100644
index 000000000..a416f4a94
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-SemiBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-SemiBoldItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-SemiBoldItalic.ttf
new file mode 100644
index 000000000..c325b2697
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-SemiBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-Thin.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-Thin.ttf
new file mode 100644
index 000000000..7e584a7c9
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-Thin.ttf differ
diff --git a/public/fonts/JetBrainsMonoNLNerdFontPropo-ThinItalic.ttf b/public/fonts/JetBrainsMonoNLNerdFontPropo-ThinItalic.ttf
new file mode 100644
index 000000000..9e61037e4
Binary files /dev/null and b/public/fonts/JetBrainsMonoNLNerdFontPropo-ThinItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-Bold.ttf b/public/fonts/JetBrainsMonoNerdFont-Bold.ttf
new file mode 100644
index 000000000..610c8c02b
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-Bold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-BoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-BoldItalic.ttf
new file mode 100644
index 000000000..440908b8e
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-BoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-ExtraBold.ttf b/public/fonts/JetBrainsMonoNerdFont-ExtraBold.ttf
new file mode 100644
index 000000000..7a3d52ef5
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-ExtraBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-ExtraBoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..7c10cdece
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-ExtraBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-ExtraLight.ttf b/public/fonts/JetBrainsMonoNerdFont-ExtraLight.ttf
new file mode 100644
index 000000000..92a246269
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-ExtraLight.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-ExtraLightItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-ExtraLightItalic.ttf
new file mode 100644
index 000000000..0dfeb0ea4
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-ExtraLightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-Italic.ttf b/public/fonts/JetBrainsMonoNerdFont-Italic.ttf
new file mode 100644
index 000000000..b9110760b
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-Italic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-Light.ttf b/public/fonts/JetBrainsMonoNerdFont-Light.ttf
new file mode 100644
index 000000000..8d39f62e0
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-Light.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-LightItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-LightItalic.ttf
new file mode 100644
index 000000000..b6c3736bf
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-LightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-Medium.ttf b/public/fonts/JetBrainsMonoNerdFont-Medium.ttf
new file mode 100644
index 000000000..f378f285f
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-Medium.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-MediumItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-MediumItalic.ttf
new file mode 100644
index 000000000..23cbd1fbf
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-MediumItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-Regular.ttf b/public/fonts/JetBrainsMonoNerdFont-Regular.ttf
new file mode 100644
index 000000000..2e02cab2d
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-Regular.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-SemiBold.ttf b/public/fonts/JetBrainsMonoNerdFont-SemiBold.ttf
new file mode 100644
index 000000000..e3726bfa9
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-SemiBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-SemiBoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-SemiBoldItalic.ttf
new file mode 100644
index 000000000..33925a2bf
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-SemiBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-Thin.ttf b/public/fonts/JetBrainsMonoNerdFont-Thin.ttf
new file mode 100644
index 000000000..a612c9aad
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-Thin.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFont-ThinItalic.ttf b/public/fonts/JetBrainsMonoNerdFont-ThinItalic.ttf
new file mode 100644
index 000000000..418a82b43
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFont-ThinItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-Bold.ttf b/public/fonts/JetBrainsMonoNerdFontMono-Bold.ttf
new file mode 100644
index 000000000..5381b98d5
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-Bold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf
new file mode 100644
index 000000000..6c365de20
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-ExtraBold.ttf b/public/fonts/JetBrainsMonoNerdFontMono-ExtraBold.ttf
new file mode 100644
index 000000000..b6bdc9c89
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-ExtraBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-ExtraBoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..aaa69b405
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-ExtraBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-ExtraLight.ttf b/public/fonts/JetBrainsMonoNerdFontMono-ExtraLight.ttf
new file mode 100644
index 000000000..5b227b309
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-ExtraLight.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-ExtraLightItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-ExtraLightItalic.ttf
new file mode 100644
index 000000000..ae1408642
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-ExtraLightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-Italic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-Italic.ttf
new file mode 100644
index 000000000..11801a708
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-Italic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-Light.ttf b/public/fonts/JetBrainsMonoNerdFontMono-Light.ttf
new file mode 100644
index 000000000..e89541f26
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-Light.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-LightItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-LightItalic.ttf
new file mode 100644
index 000000000..ffee37921
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-LightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-Medium.ttf b/public/fonts/JetBrainsMonoNerdFontMono-Medium.ttf
new file mode 100644
index 000000000..12415b7dd
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-Medium.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-MediumItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-MediumItalic.ttf
new file mode 100644
index 000000000..1f97931e5
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-MediumItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-Regular.ttf b/public/fonts/JetBrainsMonoNerdFontMono-Regular.ttf
new file mode 100644
index 000000000..31e03a217
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-Regular.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-SemiBold.ttf b/public/fonts/JetBrainsMonoNerdFontMono-SemiBold.ttf
new file mode 100644
index 000000000..6c87ea46b
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-SemiBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-SemiBoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-SemiBoldItalic.ttf
new file mode 100644
index 000000000..9d64da48a
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-SemiBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-Thin.ttf b/public/fonts/JetBrainsMonoNerdFontMono-Thin.ttf
new file mode 100644
index 000000000..e66845c4e
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-Thin.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontMono-ThinItalic.ttf b/public/fonts/JetBrainsMonoNerdFontMono-ThinItalic.ttf
new file mode 100644
index 000000000..d39de1a20
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontMono-ThinItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-Bold.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-Bold.ttf
new file mode 100644
index 000000000..2877b14e7
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-Bold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-BoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-BoldItalic.ttf
new file mode 100644
index 000000000..e2bdc28d2
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-BoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-ExtraBold.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraBold.ttf
new file mode 100644
index 000000000..9288f1c13
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-ExtraBoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraBoldItalic.ttf
new file mode 100644
index 000000000..59097c4ae
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-ExtraLight.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraLight.ttf
new file mode 100644
index 000000000..991334dbf
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraLight.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-ExtraLightItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraLightItalic.ttf
new file mode 100644
index 000000000..c57e01c9a
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-ExtraLightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-Italic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-Italic.ttf
new file mode 100644
index 000000000..620e90fb2
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-Italic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-Light.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-Light.ttf
new file mode 100644
index 000000000..460f73fca
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-Light.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-LightItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-LightItalic.ttf
new file mode 100644
index 000000000..fadfcb4d7
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-LightItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-Medium.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-Medium.ttf
new file mode 100644
index 000000000..3a3818d80
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-Medium.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-MediumItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-MediumItalic.ttf
new file mode 100644
index 000000000..1554311dd
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-MediumItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-Regular.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-Regular.ttf
new file mode 100644
index 000000000..8547bd48c
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-Regular.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-SemiBold.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-SemiBold.ttf
new file mode 100644
index 000000000..311a4122b
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-SemiBold.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-SemiBoldItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-SemiBoldItalic.ttf
new file mode 100644
index 000000000..25c5bd8f3
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-SemiBoldItalic.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-Thin.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-Thin.ttf
new file mode 100644
index 000000000..7a00eb3e5
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-Thin.ttf differ
diff --git a/public/fonts/JetBrainsMonoNerdFontPropo-ThinItalic.ttf b/public/fonts/JetBrainsMonoNerdFontPropo-ThinItalic.ttf
new file mode 100644
index 000000000..0831a7f28
Binary files /dev/null and b/public/fonts/JetBrainsMonoNerdFontPropo-ThinItalic.ttf differ
diff --git a/public/icon.svg b/public/icon.svg
new file mode 100644
index 000000000..4a51272d7
--- /dev/null
+++ b/public/icon.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="201.47884mm"
+ height="168.06284mm"
+ viewBox="0 0 201.47884 168.06284"
+ version="1.1"
+ id="svg5"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <defs
+ id="defs2" />
+ <g
+ id="layer1"
+ transform="translate(-99.862555,-88.982953)">
+ <g
+ id="g2"
+ transform="matrix(1.238566,0,0,1.238566,-497.97829,-269.39983)">
+ <path
+ id="path68"
+ style="fill:#3f3f45;fill-opacity:1;stroke:none;stroke-width:3.175;stroke-linecap:square;stroke-miterlimit:8;stroke-dasharray:none;stroke-opacity:1"
+ d="m 493.79462,290.70621 h 140.28116 c 5.3225,0 9.6074,4.28488 9.6074,9.60736 v 113.30061 c 0,5.32248 -4.2849,9.60737 -9.6074,9.60737 H 493.79462 c -5.3224,0 -9.6073,-4.28489 -9.6073,-9.60737 V 300.31357 c 0,-5.32248 4.2849,-9.60736 9.6073,-9.60736 z" />
+ <path
+ id="path69"
+ style="baseline-shift:baseline;display:inline;overflow:visible;vector-effect:none;fill:#090909;fill-opacity:1;stroke-linecap:square;stroke-miterlimit:8;enable-background:accumulate;stop-color:#000000"
+ d="m 493.88312,289.353 c -6.1745,0 -11.1952,5.02069 -11.1952,11.19518 v 113.30058 c 0,6.1745 5.0207,11.1957 11.1952,11.1957 h 140.28066 c 6.1745,0 11.1952,-5.0212 11.1952,-11.1957 V 300.54818 c 0,-6.1745 -5.0207,-11.19518 -11.1952,-11.19518 z m 0,3.17552 h 140.28066 c 4.4705,0 8.0197,3.5492 8.0197,8.01966 V 385.0717 H 485.86132 v -84.52352 c 0,-4.47046 3.5513,-8.01966 8.0218,-8.01966 z m -8.0218,95.71818 h 156.32216 v 25.60206 c 0,4.47047 -3.5492,8.01966 -8.0197,8.01966 H 493.88312 c -4.4705,0 -8.0218,-3.54919 -8.0218,-8.01966 z" />
+ <text
+ xml:space="preserve"
+ style="font-weight:800;font-size:25.1593px;line-height:1.25;font-family:'Argentum Sans';-inkscape-font-specification:'Argentum Sans, Ultra-Bold';letter-spacing:0px;word-spacing:0px;fill:#e4e4e4;fill-opacity:1;stroke-width:0.336953"
+ x="497.09778"
+ y="410.97794"
+ id="text69"><tspan
+ id="tspan69"
+ style="fill:#e4e4e4;fill-opacity:1;stroke-width:0.336953"
+ x="497.09778"
+ y="410.97794">&gt;_</tspan></text>
+ <path
+ style="fill:#00ff00;fill-opacity:1;stroke:none;stroke-width:6.11001;stroke-linecap:square;stroke-miterlimit:8;stroke-dasharray:none;stroke-opacity:1"
+ d="m 503.38876,299.01072 c -1.3765,0 -2.4846,1.10862 -2.4846,2.48512 v 14.07976 c 0,1.37651 1.1081,2.48461 2.4846,2.48461 h 115.66187 c 1.3765,0 2.4851,-1.1081 2.4851,-2.48461 v -14.07976 c 0,-1.3765 -1.1086,-2.48512 -2.4851,-2.48512 z"
+ id="rect31" />
+ <rect
+ style="fill:#00ff00;fill-opacity:1;stroke:none;stroke-width:0.170087;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4.4"
+ id="rect2"
+ width="87.026749"
+ height="16.21431"
+ x="500.90417"
+ y="321.50845"
+ ry="2.1688685" />
+ <rect
+ style="fill:#00ff00;fill-opacity:1;stroke:none;stroke-width:0.170086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4.4"
+ id="rect3"
+ width="113.76796"
+ height="10.175971"
+ x="500.90417"
+ y="341.17099"
+ ry="1.3611646" />
+ <rect
+ style="fill:#00ff00;fill-opacity:1;stroke:none;stroke-width:0.170086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4.4"
+ id="rect4"
+ width="101.98421"
+ height="10.175971"
+ x="500.90417"
+ y="354.79523"
+ ry="1.3611646" />
+ <rect
+ style="fill:#00ff00;fill-opacity:1;stroke:none;stroke-width:0.170086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4.4"
+ id="rect5"
+ width="52.736389"
+ height="10.175971"
+ x="500.90417"
+ y="368.41943"
+ ry="1.3611646" />
+ <path
+ d="m 519.16076,303.77439 h -5.40281 l -3.07739,12.02691 h -3.35346 l 3.07738,-12.02691 h -5.32 l 0.63032,-2.46336 h 14.07626 z m 11.15437,11.98551 h -7.05883 q -1.63534,0 -2.95578,-0.7452 -1.42877,-0.80732 -1.84795,-2.56685 -0.3985,-1.75954 0.14176,-3.87096 0.53497,-2.09077 1.79731,-3.78819 1.38223,-1.84233 3.21402,-2.69105 1.00665,-0.45541 1.86162,-0.6417 0.8757,-0.18631 1.93142,-0.18631 h 6.54132 l -0.65679,2.56684 h -6.04451 q -0.80731,0 -1.42449,0.22771 -0.59119,0.207 -1.2724,0.76592 -0.68123,0.5589 -1.02594,1.09712 -0.33942,0.51751 -0.5407,1.30411 h 9.52219 l -0.65679,2.56688 h -9.48078 q -0.1801,0.70379 -0.13152,1.24201 0.0539,0.51751 0.38701,1.07642 0.35379,0.55892 0.79715,0.84872 0.46405,0.28979 1.18856,0.28979 h 6.35503 z m 16.95364,0 h -4.07798 l -2.30077,-5.65121 h -3.89167 l -1.446,5.65121 h -3.47767 l 3.7077,-14.49027 h 10.5986 q 1.80093,0 2.62068,1.40764 0.82503,1.38692 0.33776,3.29136 -0.38668,1.51112 -1.67114,2.56684 -1.28444,1.05574 -2.90582,1.32482 z m -2.07376,-9.93617 q 0.25953,-1.01434 -0.36867,-1.55254 -0.6022,-0.55891 -1.88565,-0.55891 h -4.34706 l -1.03815,4.05729 h 4.45057 q 0.97291,0 1.85007,-0.43472 1.08995,-0.53821 1.33889,-1.51112 z m 20.97321,9.93617 h -3.12576 l 2.83373,-11.0747 -6.93241,11.0747 h -3.72607 l -1.32558,-11.32311 -2.89729,11.32311 h -3.02227 l 3.70769,-14.49027 h 4.84389 l 1.30922,11.46801 7.01234,-11.46801 h 5.0302 z m 5.98242,0 h -3.87097 l 3.70769,-14.49027 h 3.87098 z m 17.84375,0 h -4.22289 l -2.46594,-4.84389 -4.68629,4.8853 h -4.32637 l 7.49976,-7.22442 -3.65727,-7.30727 h 4.34708 l 2.07794,4.82318 4.77388,-4.82318 h 4.22289 l -7.42224,7.24515 z"
+ id="path45"
+ style="font-size:19.7556px;line-height:1.25;font-family:Denmark;-inkscape-font-specification:'Denmark, Normal';letter-spacing:0px;word-spacing:0px;fill:#26262b;fill-opacity:1;stroke-width:0.264583" />
+ </g>
+ </g>
+</svg>
diff --git a/repo-images/Image 1.png b/repo-images/Image 1.png
new file mode 100644
index 000000000..6e4432ee6
Binary files /dev/null and b/repo-images/Image 1.png differ
diff --git a/repo-images/Image 2.png b/repo-images/Image 2.png
new file mode 100644
index 000000000..029a952d2
Binary files /dev/null and b/repo-images/Image 2.png differ
diff --git a/repo-images/Image 3.png b/repo-images/Image 3.png
new file mode 100644
index 000000000..f48b9e901
Binary files /dev/null and b/repo-images/Image 3.png differ
diff --git a/repo-images/Image 4.png b/repo-images/Image 4.png
new file mode 100644
index 000000000..a06a6c2a0
Binary files /dev/null and b/repo-images/Image 4.png differ
diff --git a/repo-images/Image 5.png b/repo-images/Image 5.png
new file mode 100644
index 000000000..1a3290ae0
Binary files /dev/null and b/repo-images/Image 5.png differ
diff --git a/src/App.tsx b/src/App.tsx
new file mode 100644
index 000000000..46efa03ff
--- /dev/null
+++ b/src/App.tsx
@@ -0,0 +1,46 @@
+import React from "react"
+
+import {Homepage} from "@/apps/Homepage/Homepage.tsx"
+import {SSH} from "@/apps/SSH/Terminal/SSH.tsx"
+import {SSHTunnel} from "@/apps/SSH/Tunnel/SSHTunnel.tsx";
+import {ConfigEditor} from "@/apps/SSH/Config Editor/ConfigEditor.tsx";
+import {SSHManager} from "@/apps/SSH/Manager/SSHManager.tsx"
+
+function App() {
+ const [view, setView] = React.useState<string>("homepage")
+
+ const renderActiveView = () => {
+ switch (view) {
+ case "homepage":
+ return <Homepage
+ onSelectView={setView}
+ />
+ case "ssh_manager":
+ return <SSHManager
+ onSelectView={setView}
+ />
+ case "terminal":
+ return <SSH
+ onSelectView={setView}
+ />
+ case "tunnel":
+ return <SSHTunnel
+ onSelectView={setView}
+ />
+ case "config_editor":
+ return <ConfigEditor
+ onSelectView={setView}
+ />
+ }
+ }
+
+ return (
+ <div className="flex">
+ <main>
+ {renderActiveView()}
+ </main>
+ </div>
+ )
+}
+
+export default App
\ No newline at end of file
diff --git a/src/apps/Homepage/Homepage.tsx b/src/apps/Homepage/Homepage.tsx
new file mode 100644
index 000000000..60aa9464e
--- /dev/null
+++ b/src/apps/Homepage/Homepage.tsx
@@ -0,0 +1,99 @@
+import {HomepageSidebar} from "@/apps/Homepage/HomepageSidebar.tsx";
+import React, {useEffect, useState} from "react";
+import {HomepageAuth} from "@/apps/Homepage/HomepageAuth.tsx";
+import axios from "axios";
+import {HomepageUpdateLog} from "@/apps/Homepage/HompageUpdateLog.tsx";
+
+interface HomepageProps {
+ onSelectView: (view: string) => void;
+}
+
+function setCookie(name: string, value: string, days = 7) {
+ const expires = new Date(Date.now() + days * 864e5).toUTCString();
+ document.cookie = `${name}=${encodeURIComponent(value)}; expires=${expires}; path=/`;
+}
+
+function getCookie(name: string) {
+ return document.cookie.split('; ').reduce((r, v) => {
+ const parts = v.split('=');
+ return parts[0] === name ? decodeURIComponent(parts[1]) : r;
+ }, "");
+}
+
+const apiBase =
+ typeof window !== "undefined" && window.location.hostname === "localhost"
+ ? "http://localhost:8081/users"
+ : "/users";
+
+const API = axios.create({
+ baseURL: apiBase,
+});
+
+export function Homepage({onSelectView}: HomepageProps): React.ReactElement {
+ const [loggedIn, setLoggedIn] = useState(false);
+ const [isAdmin, setIsAdmin] = useState(false);
+ const [username, setUsername] = useState<string | null>(null);
+ const [authLoading, setAuthLoading] = useState(true);
+ const [dbError, setDbError] = useState<string | null>(null);
+
+ useEffect(() => {
+ const jwt = getCookie("jwt");
+ if (jwt) {
+ setAuthLoading(true);
+ Promise.all([
+ API.get("/me", {headers: {Authorization: `Bearer ${jwt}`}}),
+ API.get("/db-health")
+ ])
+ .then(([meRes]) => {
+ setLoggedIn(true);
+ setIsAdmin(!!meRes.data.is_admin);
+ setUsername(meRes.data.username || null);
+ setDbError(null);
+ })
+ .catch((err) => {
+ setLoggedIn(false);
+ setIsAdmin(false);
+ setUsername(null);
+ setCookie("jwt", "", -1);
+ if (err?.response?.data?.error?.includes("Database")) {
+ setDbError("Could not connect to the database. Please try again later.");
+ } else {
+ setDbError(null);
+ }
+ })
+ .finally(() => setAuthLoading(false));
+ } else {
+ setAuthLoading(false);
+ }
+ }, []);
+
+ return (
+ <div className="flex min-h-screen">
+ <HomepageSidebar
+ onSelectView={onSelectView}
+ disabled={!loggedIn || authLoading}
+ isAdmin={isAdmin}
+ username={loggedIn ? username : null}
+ />
+ <div className="flex-1 bg-background grid grid-cols-3 items-center">
+ <div className="col-span-1"></div>
+ <div className="col-span-1 flex justify-center">
+ <HomepageAuth
+ setLoggedIn={setLoggedIn}
+ setIsAdmin={setIsAdmin}
+ setUsername={setUsername}
+ loggedIn={loggedIn}
+ authLoading={authLoading}
+ dbError={dbError}
+ setDbError={setDbError}
+ />
+ </div>
+ <div className="col-span-1 flex justify-center">
+ <HomepageUpdateLog
+ loggedIn={loggedIn}
+ />
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/Homepage/HomepageAuth.tsx b/src/apps/Homepage/HomepageAuth.tsx
new file mode 100644
index 000000000..a078cfcf4
--- /dev/null
+++ b/src/apps/Homepage/HomepageAuth.tsx
@@ -0,0 +1,403 @@
+import React, {useState, useEffect} from "react";
+import {cn} from "@/lib/utils";
+import {Button} from "@/components/ui/button";
+import {Input} from "@/components/ui/input";
+import {Label} from "@/components/ui/label";
+import {Alert, AlertTitle, AlertDescription} from "@/components/ui/alert";
+import {Separator} from "@/components/ui/separator";
+import axios from "axios";
+
+function setCookie(name: string, value: string, days = 7) {
+ const expires = new Date(Date.now() + days * 864e5).toUTCString();
+ document.cookie = `${name}=${encodeURIComponent(value)}; expires=${expires}; path=/`;
+}
+
+function getCookie(name: string) {
+ return document.cookie.split('; ').reduce((r, v) => {
+ const parts = v.split('=');
+ return parts[0] === name ? decodeURIComponent(parts[1]) : r;
+ }, "");
+}
+
+const apiBase =
+ typeof window !== "undefined" && window.location.hostname === "localhost"
+ ? "http://localhost:8081/users"
+ : "/users";
+
+const API = axios.create({
+ baseURL: apiBase,
+});
+
+interface HomepageAuthProps extends React.ComponentProps<"div"> {
+ setLoggedIn: (loggedIn: boolean) => void;
+ setIsAdmin: (isAdmin: boolean) => void;
+ setUsername: (username: string | null) => void;
+ loggedIn: boolean;
+ authLoading: boolean;
+ dbError: string | null;
+ setDbError: (error: string | null) => void;
+}
+
+export function HomepageAuth({
+ className,
+ setLoggedIn,
+ setIsAdmin,
+ setUsername,
+ loggedIn,
+ authLoading,
+ dbError,
+ setDbError,
+ ...props
+ }: HomepageAuthProps) {
+ const [tab, setTab] = useState<"login" | "signup" | "external">("login");
+ const [localUsername, setLocalUsername] = useState("");
+ const [password, setPassword] = useState("");
+ const [loading, setLoading] = useState(false);
+ const [oidcLoading, setOidcLoading] = useState(false);
+ const [error, setError] = useState<string | null>(null);
+ const [internalLoggedIn, setInternalLoggedIn] = useState(false);
+ const [firstUser, setFirstUser] = useState(false);
+ const [registrationAllowed, setRegistrationAllowed] = useState(true);
+ const [oidcConfigured, setOidcConfigured] = useState(false);
+
+ useEffect(() => {
+ setInternalLoggedIn(loggedIn);
+ }, [loggedIn]);
+
+ useEffect(() => {
+ API.get("/registration-allowed").then(res => {
+ setRegistrationAllowed(res.data.allowed);
+ });
+ }, []);
+
+ useEffect(() => {
+ API.get("/oidc-config").then((response) => {
+ if (response.data) {
+ setOidcConfigured(true);
+ } else {
+ setOidcConfigured(false);
+ }
+ }).catch((error) => {
+ if (error.response?.status === 404) {
+ setOidcConfigured(false);
+ } else {
+ setOidcConfigured(false);
+ }
+ });
+ }, []);
+
+ useEffect(() => {
+ API.get("/count").then(res => {
+ if (res.data.count === 0) {
+ setFirstUser(true);
+ setTab("signup");
+ } else {
+ setFirstUser(false);
+ }
+ setDbError(null);
+ }).catch(() => {
+ setDbError("Could not connect to the database. Please try again later.");
+ });
+ }, [setDbError]);
+
+ async function handleSubmit(e: React.FormEvent) {
+ e.preventDefault();
+ setError(null);
+ setLoading(true);
+ try {
+ let res, meRes;
+ if (tab === "login") {
+ res = await API.post("/login", {username: localUsername, password});
+ } else {
+ await API.post("/create", {username: localUsername, password});
+ res = await API.post("/login", {username: localUsername, password});
+ }
+ setCookie("jwt", res.data.token);
+ [meRes] = await Promise.all([
+ API.get("/me", {headers: {Authorization: `Bearer ${res.data.token}`}}),
+ API.get("/db-health")
+ ]);
+ setInternalLoggedIn(true);
+ setLoggedIn(true);
+ setIsAdmin(!!meRes.data.is_admin);
+ setUsername(meRes.data.username || null);
+ setDbError(null);
+ } catch (err: any) {
+ setError(err?.response?.data?.error || "Unknown error");
+ setInternalLoggedIn(false);
+ setLoggedIn(false);
+ setIsAdmin(false);
+ setUsername(null);
+ setCookie("jwt", "", -1);
+ if (err?.response?.data?.error?.includes("Database")) {
+ setDbError("Could not connect to the database. Please try again later.");
+ } else {
+ setDbError(null);
+ }
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ async function handleOIDCLogin() {
+ setError(null);
+ setOidcLoading(true);
+ try {
+ const authResponse = await API.get("/oidc/authorize");
+ const {auth_url: authUrl} = authResponse.data;
+
+ if (!authUrl || authUrl === 'undefined') {
+ throw new Error('Invalid authorization URL received from backend');
+ }
+
+ window.location.replace(authUrl);
+ } catch (err: any) {
+ setError(err?.response?.data?.error || err?.message || "Failed to start OIDC login");
+ setOidcLoading(false);
+ }
+ }
+
+ useEffect(() => {
+ const urlParams = new URLSearchParams(window.location.search);
+ const success = urlParams.get('success');
+ const token = urlParams.get('token');
+ const error = urlParams.get('error');
+
+ if (error) {
+ setError(`OIDC authentication failed: ${error}`);
+ setOidcLoading(false);
+ window.history.replaceState({}, document.title, window.location.pathname);
+ return;
+ }
+
+ if (success && token) {
+ setOidcLoading(true);
+ setError(null);
+
+ setCookie("jwt", token);
+ API.get("/me", {headers: {Authorization: `Bearer ${token}`}})
+ .then(meRes => {
+ setInternalLoggedIn(true);
+ setLoggedIn(true);
+ setIsAdmin(!!meRes.data.is_admin);
+ setUsername(meRes.data.username || null);
+ setDbError(null);
+ window.history.replaceState({}, document.title, window.location.pathname);
+ })
+ .catch(err => {
+ setError("Failed to get user info after OIDC login");
+ setInternalLoggedIn(false);
+ setLoggedIn(false);
+ setIsAdmin(false);
+ setUsername(null);
+ setCookie("jwt", "", -1);
+ window.history.replaceState({}, document.title, window.location.pathname);
+ })
+ .finally(() => {
+ setOidcLoading(false);
+ });
+ }
+ }, []);
+
+ const Spinner = (
+ <svg className="animate-spin mr-2 h-4 w-4 text-white inline-block" viewBox="0 0 24 24">
+ <circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" fill="none"/>
+ <path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"/>
+ </svg>
+ );
+
+ return (
+ <div
+ className={cn(
+ className
+ )}
+ {...props}
+ >
+ <div
+ className={`w-[420px] max-w-full bg-background rounded-xl shadow-lg p-6 flex flex-col ${internalLoggedIn ? '' : 'border border-border'}`}>
+ {dbError && (
+ <Alert variant="destructive" className="mb-4">
+ <AlertTitle>Error</AlertTitle>
+ <AlertDescription>{dbError}</AlertDescription>
+ </Alert>
+ )}
+ {firstUser && !dbError && !internalLoggedIn && (
+ <Alert variant="default" className="mb-4">
+ <AlertTitle>First User</AlertTitle>
+ <AlertDescription className="inline">
+ You are the first user and will be made an admin. You can view admin settings in the sidebar
+ user dropdown. If you think this is a mistake, check the docker logs, or create a{" "}
+ <a
+ href="https://github.com/LukeGus/Termix/issues/new"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-blue-600 underline hover:text-blue-800 inline"
+ >
+ GitHub issue
+ </a>.
+ </AlertDescription>
+ </Alert>
+ )}
+ {!registrationAllowed && !internalLoggedIn && (
+ <Alert variant="destructive" className="mb-4">
+ <AlertTitle>Registration Disabled</AlertTitle>
+ <AlertDescription>
+ New account registration is currently disabled by an admin. Please log in or contact an
+ administrator.
+ </AlertDescription>
+ </Alert>
+ )}
+ {(internalLoggedIn || (authLoading && getCookie("jwt"))) && (
+ <div className="flex flex-col items-center gap-4">
+ <Alert className="my-2">
+ <AlertTitle>Logged in!</AlertTitle>
+ <AlertDescription>
+ You are logged in! Use the sidebar to access all available tools. To get started,
+ create an SSH Host in the SSH Manager tab. Once created, you can connect to that
+ host using the other apps in the sidebar.
+ </AlertDescription>
+ </Alert>
+
+ <div className="flex flex-row items-center gap-2">
+ <Button
+ variant="link"
+ className="text-sm"
+ onClick={() => window.open('https://github.com/LukeGus/Termix', '_blank')}
+ >
+ GitHub
+ </Button>
+ <div className="w-px h-4 bg-border"></div>
+ <Button
+ variant="link"
+ className="text-sm"
+ onClick={() => window.open('https://github.com/LukeGus/Termix/issues/new', '_blank')}
+ >
+ Feedback
+ </Button>
+ <div className="w-px h-4 bg-border"></div>
+ <Button
+ variant="link"
+ className="text-sm"
+ onClick={() => window.open('https://discord.com/invite/jVQGdvHDrf', '_blank')}
+ >
+ Discord
+ </Button>
+ <div className="w-px h-4 bg-border"></div>
+ <Button
+ variant="link"
+ className="text-sm"
+ onClick={() => window.open('https://github.com/sponsors/LukeGus', '_blank')}
+ >
+ Fund
+ </Button>
+ </div>
+ </div>
+ )}
+ {(!internalLoggedIn && (!authLoading || !getCookie("jwt"))) && (
+ <>
+ <div className="flex gap-2 mb-6">
+ <button
+ type="button"
+ className={cn(
+ "flex-1 py-2 text-base font-medium rounded-md transition-all",
+ tab === "login"
+ ? "bg-primary text-primary-foreground shadow"
+ : "bg-muted text-muted-foreground hover:bg-accent"
+ )}
+ onClick={() => setTab("login")}
+ aria-selected={tab === "login"}
+ disabled={loading || firstUser}
+ >
+ Login
+ </button>
+ <button
+ type="button"
+ className={cn(
+ "flex-1 py-2 text-base font-medium rounded-md transition-all",
+ tab === "signup"
+ ? "bg-primary text-primary-foreground shadow"
+ : "bg-muted text-muted-foreground hover:bg-accent"
+ )}
+ onClick={() => setTab("signup")}
+ aria-selected={tab === "signup"}
+ disabled={loading || !registrationAllowed}
+ >
+ Sign Up
+ </button>
+ {oidcConfigured && (
+ <button
+ type="button"
+ className={cn(
+ "flex-1 py-2 text-base font-medium rounded-md transition-all",
+ tab === "external"
+ ? "bg-primary text-primary-foreground shadow"
+ : "bg-muted text-muted-foreground hover:bg-accent"
+ )}
+ onClick={() => setTab("external")}
+ aria-selected={tab === "external"}
+ disabled={oidcLoading}
+ >
+ External
+ </button>
+ )}
+ </div>
+ <div className="mb-6 text-center">
+ <h2 className="text-xl font-bold mb-1">
+ {tab === "login" ? "Login to your account" :
+ tab === "signup" ? "Create a new account" :
+ "Login with external provider"}
+ </h2>
+ </div>
+
+ {tab === "external" ? (
+ <div className="flex flex-col gap-5">
+ <div className="text-center text-muted-foreground mb-4">
+ <p>Login using your configured external identity provider</p>
+ </div>
+ <Button
+ type="button"
+ className="w-full h-11 mt-2 text-base font-semibold"
+ disabled={oidcLoading}
+ onClick={handleOIDCLogin}
+ >
+ {oidcLoading ? Spinner : "Login with External Provider"}
+ </Button>
+ </div>
+ ) : (
+ <form className="flex flex-col gap-5" onSubmit={handleSubmit}>
+ <div className="flex flex-col gap-2">
+ <Label htmlFor="username">Username</Label>
+ <Input
+ id="username"
+ type="text"
+ required
+ className="h-11 text-base"
+ value={localUsername}
+ onChange={e => setLocalUsername(e.target.value)}
+ disabled={loading || internalLoggedIn}
+ />
+ </div>
+ <div className="flex flex-col gap-2">
+ <Label htmlFor="password">Password</Label>
+ <Input id="password" type="password" required className="h-11 text-base"
+ value={password} onChange={e => setPassword(e.target.value)}
+ disabled={loading || internalLoggedIn}/>
+ </div>
+ <Button type="submit" className="w-full h-11 mt-2 text-base font-semibold"
+ disabled={loading || internalLoggedIn}>
+ {loading ? Spinner : (tab === "login" ? "Login" : "Sign Up")}
+ </Button>
+ </form>
+ )}
+ </>
+ )}
+ {error && (
+ <Alert variant="destructive" className="mt-4">
+ <AlertTitle>Error</AlertTitle>
+ <AlertDescription>{error}</AlertDescription>
+ </Alert>
+ )}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/Homepage/HomepageSidebar.tsx b/src/apps/Homepage/HomepageSidebar.tsx
new file mode 100644
index 000000000..8608b8db8
--- /dev/null
+++ b/src/apps/Homepage/HomepageSidebar.tsx
@@ -0,0 +1,436 @@
+import React from 'react';
+import {
+ Computer,
+ Server,
+ File,
+ Hammer, ChevronUp, User2, HardDrive
+} from "lucide-react";
+
+import {
+ Sidebar,
+ SidebarContent, SidebarFooter,
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarMenu,
+ SidebarMenuButton,
+ SidebarMenuItem, SidebarProvider,
+} from "@/components/ui/sidebar.tsx"
+
+import {
+ Separator,
+} from "@/components/ui/separator.tsx"
+import {DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger} from "@radix-ui/react-dropdown-menu";
+import {
+ Sheet,
+ SheetContent,
+ SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
+ SheetTrigger,
+ SheetClose
+} from "@/components/ui/sheet";
+import {Checkbox} from "@/components/ui/checkbox.tsx";
+import {Input} from "@/components/ui/input.tsx";
+import {Label} from "@/components/ui/label.tsx";
+import {Button} from "@/components/ui/button.tsx";
+import {Alert, AlertTitle, AlertDescription} from "@/components/ui/alert.tsx";
+import axios from "axios";
+
+interface SidebarProps {
+ onSelectView: (view: string) => void;
+ getView?: () => string;
+ disabled?: boolean;
+ isAdmin?: boolean;
+ username?: string | null;
+}
+
+function handleLogout() {
+ document.cookie = 'jwt=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
+ window.location.reload();
+}
+
+function getCookie(name: string) {
+ return document.cookie.split('; ').reduce((r, v) => {
+ const parts = v.split('=');
+ return parts[0] === name ? decodeURIComponent(parts[1]) : r;
+ }, "");
+}
+
+const apiBase =
+ typeof window !== "undefined" && window.location.hostname === "localhost"
+ ? "http://localhost:8081/users"
+ : "/users";
+
+const API = axios.create({
+ baseURL: apiBase,
+});
+
+export function HomepageSidebar({
+ onSelectView,
+ getView,
+ disabled,
+ isAdmin,
+ username
+ }: SidebarProps): React.ReactElement {
+ const [adminSheetOpen, setAdminSheetOpen] = React.useState(false);
+ const [allowRegistration, setAllowRegistration] = React.useState(true);
+ const [regLoading, setRegLoading] = React.useState(false);
+ const [oidcConfig, setOidcConfig] = React.useState({
+ client_id: '',
+ client_secret: '',
+ issuer_url: '',
+ authorization_url: '',
+ token_url: '',
+ identifier_path: 'sub',
+ name_path: 'name',
+ scopes: 'openid email profile'
+ });
+ const [oidcLoading, setOidcLoading] = React.useState(false);
+ const [oidcError, setOidcError] = React.useState<string | null>(null);
+ const [oidcSuccess, setOidcSuccess] = React.useState<string | null>(null);
+
+ React.useEffect(() => {
+ if (adminSheetOpen) {
+ API.get("/registration-allowed").then(res => {
+ setAllowRegistration(res.data.allowed);
+ });
+
+ API.get("/oidc-config").then(res => {
+ if (res.data) {
+ setOidcConfig(res.data);
+ }
+ }).catch((error) => {
+ });
+ }
+ }, [adminSheetOpen]);
+
+ const handleToggle = async (checked: boolean) => {
+ setRegLoading(true);
+ const jwt = getCookie("jwt");
+ try {
+ await API.patch(
+ "/registration-allowed",
+ {allowed: checked},
+ {headers: {Authorization: `Bearer ${jwt}`}}
+ );
+ setAllowRegistration(checked);
+ } catch (e) {
+ } finally {
+ setRegLoading(false);
+ }
+ };
+
+ const handleOIDCConfigSubmit = async (e: React.FormEvent) => {
+ e.preventDefault();
+ setOidcLoading(true);
+ setOidcError(null);
+ setOidcSuccess(null);
+
+ const requiredFields = ['client_id', 'client_secret', 'issuer_url', 'authorization_url', 'token_url'];
+ const missingFields = requiredFields.filter(field => !oidcConfig[field as keyof typeof oidcConfig]);
+
+ if (missingFields.length > 0) {
+ setOidcError(`Missing required fields: ${missingFields.join(', ')}`);
+ setOidcLoading(false);
+ return;
+ }
+
+ const jwt = getCookie("jwt");
+ try {
+ await API.post(
+ "/oidc-config",
+ oidcConfig,
+ {headers: {Authorization: `Bearer ${jwt}`}}
+ );
+ setOidcSuccess("OIDC configuration updated successfully!");
+ } catch (err: any) {
+ setOidcError(err?.response?.data?.error || "Failed to update OIDC configuration");
+ } finally {
+ setOidcLoading(false);
+ }
+ };
+
+ const handleOIDCConfigChange = (field: string, value: string) => {
+ setOidcConfig(prev => ({
+ ...prev,
+ [field]: value
+ }));
+ };
+
+ return (
+ <div>
+ <SidebarProvider>
+ <Sidebar>
+ <SidebarContent>
+ <SidebarGroup>
+ <SidebarGroupLabel className="text-lg font-bold text-white flex items-center gap-2">
+ Termix
+ </SidebarGroupLabel>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarGroupContent>
+ <SidebarMenu>
+ <SidebarMenuItem key={"SSH Manager"}>
+ <SidebarMenuButton onClick={() => onSelectView("ssh_manager")}
+ disabled={disabled}>
+ <HardDrive/>
+ <span>SSH Manager</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+ <div className="ml-5">
+ <SidebarMenuItem key={"Terminal"}>
+ <SidebarMenuButton onClick={() => onSelectView("terminal")}
+ disabled={disabled}>
+ <Computer/>
+ <span>Terminal</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+ <SidebarMenuItem key={"Tunnel"}>
+ <SidebarMenuButton onClick={() => onSelectView("tunnel")}
+ disabled={disabled}>
+ <Server/>
+ <span>Tunnel</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+ <SidebarMenuItem key={"Config Editor"}>
+ <SidebarMenuButton onClick={() => onSelectView("config_editor")}
+ disabled={disabled}>
+ <File/>
+ <span>Config Editor</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+ </div>
+ <SidebarMenuItem key={"Tools"}>
+ <SidebarMenuButton onClick={() => window.open("https://dashix.dev", "_blank")} disabled={disabled}>
+ <Hammer/>
+ <span>Tools</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+ </SidebarMenu>
+ </SidebarGroupContent>
+ </SidebarGroup>
+ </SidebarContent>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarFooter>
+ <SidebarMenu>
+ <SidebarMenuItem>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <SidebarMenuButton
+ className="data-[state=open]:opacity-90 w-full"
+ style={{width: '100%'}}
+ disabled={disabled}
+ >
+ <User2/> {username ? username : 'Signed out'}
+ <ChevronUp className="ml-auto"/>
+ </SidebarMenuButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ side="top"
+ align="start"
+ sideOffset={6}
+ className="min-w-[var(--radix-popper-anchor-width)] bg-sidebar-accent text-sidebar-accent-foreground border border-border rounded-md shadow-2xl p-1"
+ >
+ {isAdmin && (
+ <DropdownMenuItem
+ className="rounded px-2 py-1.5 hover:bg-white/15 hover:text-accent-foreground focus:bg-white/20 focus:text-accent-foreground cursor-pointer focus:outline-none"
+ onSelect={() => setAdminSheetOpen(true)}>
+ <span>Admin Settings</span>
+ </DropdownMenuItem>
+ )}
+ <DropdownMenuItem
+ className="rounded px-2 py-1.5 hover:bg-white/15 hover:text-accent-foreground focus:bg-white/20 focus:text-accent-foreground cursor-pointer focus:outline-none"
+ onSelect={handleLogout}>
+ <span>Sign out</span>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </SidebarMenuItem>
+ </SidebarMenu>
+ </SidebarFooter>
+ {/* Admin Settings Sheet (always rendered, only openable if isAdmin) */}
+ {isAdmin && (
+ <Sheet open={adminSheetOpen} onOpenChange={setAdminSheetOpen}>
+ <SheetContent side="left" className="w-[400px] max-h-screen overflow-y-auto">
+ <SheetHeader>
+ <SheetTitle>Admin Settings</SheetTitle>
+ </SheetHeader>
+ <div className="pt-1 pb-4 px-4 flex flex-col gap-6">
+ {/* Registration Settings */}
+ <div className="space-y-4">
+ <h3 className="text-lg font-semibold">User Registration</h3>
+ <label className="flex items-center gap-2">
+ <Checkbox checked={allowRegistration} onCheckedChange={handleToggle}
+ disabled={regLoading}/>
+ Allow new account registration
+ </label>
+ </div>
+
+ <Separator className="p-0.25 mt-2 mb-2"/>
+
+ {/* OIDC Configuration */}
+ <div className="space-y-4">
+ <h3 className="text-lg font-semibold">External Authentication (OIDC)</h3>
+ <p className="text-sm text-muted-foreground">
+ Configure external identity provider for OIDC/OAuth2 authentication.
+ Users will see an "External" login option once configured.
+ </p>
+
+ {oidcError && (
+ <Alert variant="destructive">
+ <AlertTitle>Error</AlertTitle>
+ <AlertDescription>{oidcError}</AlertDescription>
+ </Alert>
+ )}
+
+ <form onSubmit={handleOIDCConfigSubmit} className="space-y-4">
+ <div className="space-y-2">
+ <Label htmlFor="client_id">Client ID</Label>
+ <Input
+ id="client_id"
+ value={oidcConfig.client_id}
+ onChange={(e) => handleOIDCConfigChange('client_id', e.target.value)}
+ placeholder="your-client-id"
+ required
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="client_secret">Client Secret</Label>
+ <Input
+ id="client_secret"
+ type="password"
+ value={oidcConfig.client_secret}
+ onChange={(e) => handleOIDCConfigChange('client_secret', e.target.value)}
+ placeholder="your-client-secret"
+ required
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="authorization_url">Authorization URL</Label>
+ <Input
+ id="authorization_url"
+ value={oidcConfig.authorization_url}
+ onChange={(e) => handleOIDCConfigChange('authorization_url', e.target.value)}
+ placeholder="https://your-provider.com/application/o/authorize/"
+ required
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="issuer_url">Issuer URL</Label>
+ <Input
+ id="issuer_url"
+ value={oidcConfig.issuer_url}
+ onChange={(e) => handleOIDCConfigChange('issuer_url', e.target.value)}
+ placeholder="https://your-provider.com/application/o/termix/"
+ required
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="token_url">Token URL</Label>
+ <Input
+ id="token_url"
+ value={oidcConfig.token_url}
+ onChange={(e) => handleOIDCConfigChange('token_url', e.target.value)}
+ placeholder="http://100.98.3.50:9000/application/o/token/"
+ required
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="identifier_path">User Identifier Path</Label>
+ <Input
+ id="identifier_path"
+ value={oidcConfig.identifier_path}
+ onChange={(e) => handleOIDCConfigChange('identifier_path', e.target.value)}
+ placeholder="sub"
+ required
+ />
+ <p className="text-xs text-muted-foreground">
+ JSON path to extract user ID from JWT (e.g., "sub", "email", "preferred_username")
+ </p>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="name_path">Display Name Path</Label>
+ <Input
+ id="name_path"
+ value={oidcConfig.name_path}
+ onChange={(e) => handleOIDCConfigChange('name_path', e.target.value)}
+ placeholder="name"
+ required
+ />
+ <p className="text-xs text-muted-foreground">
+ JSON path to extract display name from JWT (e.g., "name", "preferred_username")
+ </p>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="scopes">Scopes</Label>
+ <Input
+ id="scopes"
+ value={oidcConfig.scopes}
+ onChange={(e) => handleOIDCConfigChange('scopes', e.target.value)}
+ placeholder="openid email profile"
+ required
+ />
+ <p className="text-xs text-muted-foreground">
+ Space-separated list of OAuth2 scopes to request
+ </p>
+ </div>
+
+ <div className="flex gap-2">
+ <Button
+ type="submit"
+ className="flex-1"
+ disabled={oidcLoading}
+ >
+ {oidcLoading ? "Saving..." : "Save Configuration"}
+ </Button>
+ <Button
+ type="button"
+ variant="outline"
+ onClick={() => {
+ setOidcConfig({
+ client_id: '',
+ client_secret: '',
+ issuer_url: '',
+ authorization_url: '',
+ token_url: '',
+ identifier_path: 'sub',
+ name_path: 'name',
+ scopes: 'openid email profile'
+ });
+ }}
+ >
+ Reset
+ </Button>
+ </div>
+
+ {oidcSuccess && (
+ <Alert>
+ <AlertTitle>Success</AlertTitle>
+ <AlertDescription>{oidcSuccess}</AlertDescription>
+ </Alert>
+ )}
+ </form>
+ </div>
+ </div>
+ <SheetFooter className="px-4 pt-1 pb-4">
+ <Separator className="p-0.25 mt-2 mb-2"/>
+ <SheetClose asChild>
+ <Button variant="outline">Close</Button>
+ </SheetClose>
+ </SheetFooter>
+ </SheetContent>
+ </Sheet>
+ )}
+ </Sidebar>
+ </SidebarProvider>
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/src/apps/Homepage/HompageUpdateLog.tsx b/src/apps/Homepage/HompageUpdateLog.tsx
new file mode 100644
index 000000000..7453dd8cc
--- /dev/null
+++ b/src/apps/Homepage/HompageUpdateLog.tsx
@@ -0,0 +1,187 @@
+import React, {useEffect, useState} from "react";
+import {Alert, AlertDescription, AlertTitle} from "@/components/ui/alert.tsx";
+import {Button} from "@/components/ui/button.tsx";
+import {Separator} from "@/components/ui/separator.tsx";
+import axios from "axios";
+
+interface HomepageUpdateLogProps extends React.ComponentProps<"div"> {
+ loggedIn: boolean;
+}
+
+interface ReleaseItem {
+ id: number;
+ title: string;
+ description: string;
+ link: string;
+ pubDate: string;
+ version: string;
+ isPrerelease: boolean;
+ isDraft: boolean;
+ assets: Array<{
+ name: string;
+ size: number;
+ download_count: number;
+ download_url: string;
+ }>;
+}
+
+interface RSSResponse {
+ feed: {
+ title: string;
+ description: string;
+ link: string;
+ updated: string;
+ };
+ items: ReleaseItem[];
+ total_count: number;
+ cached: boolean;
+ cache_age?: number;
+}
+
+interface VersionResponse {
+ status: 'up_to_date' | 'requires_update';
+ version: string;
+ latest_release: {
+ name: string;
+ published_at: string;
+ html_url: string;
+ };
+ cached: boolean;
+ cache_age?: number;
+}
+
+const apiBase =
+ typeof window !== "undefined" && window.location.hostname === "localhost"
+ ? "http://localhost:8081"
+ : "";
+
+const API = axios.create({
+ baseURL: apiBase,
+});
+
+export function HomepageUpdateLog({loggedIn}: HomepageUpdateLogProps) {
+ const [releases, setReleases] = useState<RSSResponse | null>(null);
+ const [versionInfo, setVersionInfo] = useState<VersionResponse | null>(null);
+ const [loading, setLoading] = useState(false);
+ const [error, setError] = useState<string | null>(null);
+
+ useEffect(() => {
+ if (loggedIn) {
+ setLoading(true);
+ Promise.all([
+ API.get('/releases/rss?per_page=100'),
+ API.get('/version')
+ ])
+ .then(([releasesRes, versionRes]) => {
+ setReleases(releasesRes.data);
+ setVersionInfo(versionRes.data);
+ setError(null);
+ })
+ .catch(err => {
+ setError('Failed to fetch update information');
+ })
+ .finally(() => setLoading(false));
+ }
+ }, [loggedIn]);
+
+ if (!loggedIn) {
+ return null;
+ }
+
+ const formatDescription = (description: string) => {
+ const firstLine = description.split('\n')[0];
+ return firstLine
+ .replace(/[#*`]/g, '')
+ .replace(/\s+/g, ' ')
+ .trim()
+ .substring(0, 100) + (firstLine.length > 100 ? '...' : '');
+ };
+
+ return (
+ <div className="w-[400px] h-[600px] mr-8 flex flex-col border border-border rounded-lg bg-card p-4">
+ <div>
+ <h3 className="text-lg font-semibold mb-3">Updates & Releases</h3>
+
+ <Separator className="p-0.25 mt-3 mb-3"/>
+
+ {versionInfo && versionInfo.status === 'requires_update' && (
+ <Alert>
+ <AlertTitle>Update Available</AlertTitle>
+ <AlertDescription>
+ A new version ({versionInfo.version}) is available.
+ <Button
+ variant="link"
+ className="p-0 h-auto underline ml-1"
+ onClick={() => window.open("https://docs.termix.site/docs", '_blank')}
+ >
+ Update now
+ </Button>
+ </AlertDescription>
+ </Alert>
+ )}
+ </div>
+
+ {versionInfo && versionInfo.status === 'requires_update' && (
+ <Separator className="p-0.25 mt-3 mb-3"/>
+ )}
+
+ <div className="flex-1 overflow-y-auto space-y-3">
+ {loading && (
+ <div className="flex items-center justify-center h-32">
+ <div className="animate-spin rounded-full h-8 w-8 border-b-2 border-primary"></div>
+ </div>
+ )}
+
+ {error && (
+ <Alert variant="destructive">
+ <AlertTitle>Error</AlertTitle>
+ <AlertDescription>{error}</AlertDescription>
+ </Alert>
+ )}
+
+ {releases?.items.map((release) => (
+ <div
+ key={release.id}
+ className="border border-border rounded-lg p-3 hover:bg-accent transition-colors cursor-pointer"
+ onClick={() => window.open(release.link, '_blank')}
+ >
+ <div className="flex items-start justify-between mb-2">
+ <h4 className="font-medium text-sm leading-tight flex-1">
+ {release.title}
+ </h4>
+ {release.isPrerelease && (
+ <span
+ className="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded ml-2 flex-shrink-0">
+ Pre-release
+ </span>
+ )}
+ </div>
+
+ <p className="text-xs text-muted-foreground mb-2 leading-relaxed">
+ {formatDescription(release.description)}
+ </p>
+
+ <div className="flex items-center text-xs text-muted-foreground">
+ <span>{new Date(release.pubDate).toLocaleDateString()}</span>
+ {release.assets.length > 0 && (
+ <>
+ <span className="mx-2">•</span>
+ <span>{release.assets.length} asset{release.assets.length !== 1 ? 's' : ''}</span>
+ </>
+ )}
+ </div>
+ </div>
+ ))}
+
+ {releases && releases.items.length === 0 && !loading && (
+ <Alert>
+ <AlertTitle>No Releases</AlertTitle>
+ <AlertDescription>
+ No releases found.
+ </AlertDescription>
+ </Alert>
+ )}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigCodeEditor.tsx b/src/apps/SSH/Config Editor/ConfigCodeEditor.tsx
new file mode 100644
index 000000000..c216bf166
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigCodeEditor.tsx
@@ -0,0 +1,350 @@
+import React, {useState, useEffect} from "react";
+import CodeMirror from "@uiw/react-codemirror";
+import {loadLanguage} from '@uiw/codemirror-extensions-langs';
+import {hyperLink} from '@uiw/codemirror-extensions-hyper-link';
+import {oneDark} from '@codemirror/theme-one-dark';
+import {EditorView} from '@codemirror/view';
+
+interface ConfigCodeEditorProps {
+ content: string;
+ fileName: string;
+ onContentChange: (value: string) => void;
+}
+
+export function ConfigCodeEditor({content, fileName, onContentChange}: ConfigCodeEditorProps) {
+ function getLanguageName(filename: string): string {
+ if (!filename || typeof filename !== 'string') {
+ return 'text';
+ }
+ const lastDotIndex = filename.lastIndexOf('.');
+ if (lastDotIndex === -1) {
+ return 'text';
+ }
+ const ext = filename.slice(lastDotIndex + 1).toLowerCase();
+
+ switch (ext) {
+ case 'ng':
+ return 'angular';
+ case 'apl':
+ return 'apl';
+ case 'asc':
+ return 'asciiArmor';
+ case 'ast':
+ return 'asterisk';
+ case 'bf':
+ return 'brainfuck';
+ case 'c':
+ return 'c';
+ case 'ceylon':
+ return 'ceylon';
+ case 'clj':
+ return 'clojure';
+ case 'cmake':
+ return 'cmake';
+ case 'cob':
+ case 'cbl':
+ return 'cobol';
+ case 'coffee':
+ return 'coffeescript';
+ case 'lisp':
+ return 'commonLisp';
+ case 'cpp':
+ case 'cc':
+ case 'cxx':
+ return 'cpp';
+ case 'cr':
+ return 'crystal';
+ case 'cs':
+ return 'csharp';
+ case 'css':
+ return 'css';
+ case 'cypher':
+ return 'cypher';
+ case 'd':
+ return 'd';
+ case 'dart':
+ return 'dart';
+ case 'diff':
+ case 'patch':
+ return 'diff';
+ case 'dockerfile':
+ return 'dockerfile';
+ case 'dtd':
+ return 'dtd';
+ case 'dylan':
+ return 'dylan';
+ case 'ebnf':
+ return 'ebnf';
+ case 'ecl':
+ return 'ecl';
+ case 'eiffel':
+ return 'eiffel';
+ case 'elm':
+ return 'elm';
+ case 'erl':
+ return 'erlang';
+ case 'factor':
+ return 'factor';
+ case 'fcl':
+ return 'fcl';
+ case 'fs':
+ return 'forth';
+ case 'f90':
+ case 'for':
+ return 'fortran';
+ case 's':
+ return 'gas';
+ case 'feature':
+ return 'gherkin';
+ case 'go':
+ return 'go';
+ case 'groovy':
+ return 'groovy';
+ case 'hs':
+ return 'haskell';
+ case 'hx':
+ return 'haxe';
+ case 'html':
+ case 'htm':
+ return 'html';
+ case 'http':
+ return 'http';
+ case 'idl':
+ return 'idl';
+ case 'java':
+ return 'java';
+ case 'js':
+ case 'mjs':
+ case 'cjs':
+ return 'javascript';
+ case 'jinja2':
+ case 'j2':
+ return 'jinja2';
+ case 'json':
+ return 'json';
+ case 'jsx':
+ return 'jsx';
+ case 'jl':
+ return 'julia';
+ case 'kt':
+ case 'kts':
+ return 'kotlin';
+ case 'less':
+ return 'less';
+ case 'lezer':
+ return 'lezer';
+ case 'liquid':
+ return 'liquid';
+ case 'litcoffee':
+ return 'livescript';
+ case 'lua':
+ return 'lua';
+ case 'md':
+ return 'markdown';
+ case 'nb':
+ case 'mat':
+ return 'mathematica';
+ case 'mbox':
+ return 'mbox';
+ case 'mmd':
+ return 'mermaid';
+ case 'mrc':
+ return 'mirc';
+ case 'moo':
+ return 'modelica';
+ case 'mscgen':
+ return 'mscgen';
+ case 'm':
+ return 'mumps';
+ case 'sql':
+ return 'mysql';
+ case 'nc':
+ return 'nesC';
+ case 'nginx':
+ return 'nginx';
+ case 'nix':
+ return 'nix';
+ case 'nsi':
+ return 'nsis';
+ case 'nt':
+ return 'ntriples';
+ case 'mm':
+ return 'objectiveCpp';
+ case 'octave':
+ return 'octave';
+ case 'oz':
+ return 'oz';
+ case 'pas':
+ return 'pascal';
+ case 'pl':
+ case 'pm':
+ return 'perl';
+ case 'pgsql':
+ return 'pgsql';
+ case 'php':
+ return 'php';
+ case 'pig':
+ return 'pig';
+ case 'ps1':
+ return 'powershell';
+ case 'properties':
+ return 'properties';
+ case 'proto':
+ return 'protobuf';
+ case 'pp':
+ return 'puppet';
+ case 'py':
+ return 'python';
+ case 'q':
+ return 'q';
+ case 'r':
+ return 'r';
+ case 'rb':
+ return 'ruby';
+ case 'rs':
+ return 'rust';
+ case 'sas':
+ return 'sas';
+ case 'sass':
+ case 'scss':
+ return 'sass';
+ case 'scala':
+ return 'scala';
+ case 'scm':
+ return 'scheme';
+ case 'shader':
+ return 'shader';
+ case 'sh':
+ case 'bash':
+ return 'shell';
+ case 'siv':
+ return 'sieve';
+ case 'st':
+ return 'smalltalk';
+ case 'sol':
+ return 'solidity';
+ case 'solr':
+ return 'solr';
+ case 'rq':
+ return 'sparql';
+ case 'xlsx':
+ case 'ods':
+ case 'csv':
+ return 'spreadsheet';
+ case 'nut':
+ return 'squirrel';
+ case 'tex':
+ return 'stex';
+ case 'styl':
+ return 'stylus';
+ case 'svelte':
+ return 'svelte';
+ case 'swift':
+ return 'swift';
+ case 'tcl':
+ return 'tcl';
+ case 'textile':
+ return 'textile';
+ case 'tiddlywiki':
+ return 'tiddlyWiki';
+ case 'tiki':
+ return 'tiki';
+ case 'toml':
+ return 'toml';
+ case 'troff':
+ return 'troff';
+ case 'tsx':
+ return 'tsx';
+ case 'ttcn':
+ return 'ttcn';
+ case 'ttl':
+ case 'turtle':
+ return 'turtle';
+ case 'ts':
+ return 'typescript';
+ case 'vb':
+ return 'vb';
+ case 'vbs':
+ return 'vbscript';
+ case 'vm':
+ return 'velocity';
+ case 'v':
+ return 'verilog';
+ case 'vhd':
+ case 'vhdl':
+ return 'vhdl';
+ case 'vue':
+ return 'vue';
+ case 'wat':
+ return 'wast';
+ case 'webidl':
+ return 'webIDL';
+ case 'xq':
+ case 'xquery':
+ return 'xQuery';
+ case 'xml':
+ return 'xml';
+ case 'yacas':
+ return 'yacas';
+ case 'yaml':
+ case 'yml':
+ return 'yaml';
+ case 'z80':
+ return 'z80';
+ default:
+ return 'text';
+ }
+ }
+
+ useEffect(() => {
+ document.body.style.overflowX = 'hidden';
+ return () => {
+ document.body.style.overflowX = '';
+ };
+ }, []);
+
+ return (
+ <div style={{
+ width: '100%',
+ height: '100%',
+ position: 'relative',
+ overflow: 'hidden',
+ display: 'flex',
+ flexDirection: 'column'
+ }}>
+ <div
+ style={{
+ width: '100%',
+ height: '100%',
+ overflow: 'auto',
+ flex: 1,
+ display: 'flex',
+ flexDirection: 'column',
+ }}
+ className="config-codemirror-scroll-wrapper"
+ >
+ <CodeMirror
+ value={content}
+ extensions={[
+ loadLanguage(getLanguageName(fileName || 'untitled.txt') as any) || [],
+ hyperLink,
+ oneDark,
+ EditorView.theme({
+ '&': {
+ backgroundColor: '#09090b !important',
+ },
+ '.cm-gutters': {
+ backgroundColor: '#18181b !important',
+ },
+ })
+ ]}
+ onChange={(value: any) => onContentChange(value)}
+ theme={undefined}
+ height="100%"
+ basicSetup={{lineNumbers: true}}
+ style={{minHeight: '100%', minWidth: '100%', flex: 1}}
+ />
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigEditor.tsx b/src/apps/SSH/Config Editor/ConfigEditor.tsx
new file mode 100644
index 000000000..7251ba775
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigEditor.tsx
@@ -0,0 +1,608 @@
+import React, {useState, useEffect, useRef} from "react";
+import {ConfigEditorSidebar} from "@/apps/SSH/Config Editor/ConfigEditorSidebar.tsx";
+import {ConfigTabList} from "@/apps/SSH/Config Editor/ConfigTabList.tsx";
+import {ConfigHomeView} from "@/apps/SSH/Config Editor/ConfigHomeView.tsx";
+import {ConfigCodeEditor} from "@/apps/SSH/Config Editor/ConfigCodeEditor.tsx";
+import {Button} from '@/components/ui/button.tsx';
+import {ConfigTopbar} from "@/apps/SSH/Config Editor/ConfigTopbar.tsx";
+import {cn} from '@/lib/utils.ts';
+import {
+ getConfigEditorRecent,
+ getConfigEditorPinned,
+ getConfigEditorShortcuts,
+ addConfigEditorRecent,
+ removeConfigEditorRecent,
+ addConfigEditorPinned,
+ removeConfigEditorPinned,
+ addConfigEditorShortcut,
+ removeConfigEditorShortcut,
+ readSSHFile,
+ writeSSHFile,
+ getSSHStatus,
+ connectSSH
+} from '@/apps/SSH/ssh-axios.ts';
+
+interface Tab {
+ id: string | number;
+ title: string;
+ fileName: string;
+ content: string;
+ isSSH?: boolean;
+ sshSessionId?: string;
+ filePath?: string;
+ loading?: boolean;
+ error?: string;
+ success?: string;
+ dirty?: boolean;
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+export function ConfigEditor({onSelectView}: { onSelectView: (view: string) => void }): React.ReactElement {
+ const [tabs, setTabs] = useState<Tab[]>([]);
+ const [activeTab, setActiveTab] = useState<string | number>('home');
+ const [recent, setRecent] = useState<any[]>([]);
+ const [pinned, setPinned] = useState<any[]>([]);
+ const [shortcuts, setShortcuts] = useState<any[]>([]);
+
+ const [currentHost, setCurrentHost] = useState<SSHHost | null>(null);
+ const [isSaving, setIsSaving] = useState(false);
+
+ const sidebarRef = useRef<any>(null);
+
+ useEffect(() => {
+ if (currentHost) {
+ fetchHomeData();
+ } else {
+ setRecent([]);
+ setPinned([]);
+ setShortcuts([]);
+ }
+ }, [currentHost]);
+
+ useEffect(() => {
+ if (activeTab === 'home' && currentHost) {
+ fetchHomeData();
+ }
+ }, [activeTab, currentHost]);
+
+ useEffect(() => {
+ if (activeTab === 'home' && currentHost) {
+ const interval = setInterval(() => {
+ fetchHomeData();
+ }, 2000);
+
+ return () => clearInterval(interval);
+ }
+ }, [activeTab, currentHost]);
+
+ async function fetchHomeData() {
+ if (!currentHost) return;
+
+ try {
+ const homeDataPromise = Promise.all([
+ getConfigEditorRecent(currentHost.id),
+ getConfigEditorPinned(currentHost.id),
+ getConfigEditorShortcuts(currentHost.id),
+ ]);
+
+ const timeoutPromise = new Promise((_, reject) =>
+ setTimeout(() => reject(new Error('Fetch home data timed out')), 15000)
+ );
+
+ const [recentRes, pinnedRes, shortcutsRes] = await Promise.race([homeDataPromise, timeoutPromise]);
+
+ const recentWithPinnedStatus = (recentRes || []).map(file => ({
+ ...file,
+ type: 'file',
+ isPinned: (pinnedRes || []).some(pinnedFile =>
+ pinnedFile.path === file.path && pinnedFile.name === file.name
+ )
+ }));
+
+ const pinnedWithType = (pinnedRes || []).map(file => ({
+ ...file,
+ type: 'file'
+ }));
+
+ setRecent(recentWithPinnedStatus);
+ setPinned(pinnedWithType);
+ setShortcuts((shortcutsRes || []).map(shortcut => ({
+ ...shortcut,
+ type: 'directory'
+ })));
+ } catch (err: any) {
+ }
+ }
+
+ const formatErrorMessage = (err: any, defaultMessage: string): string => {
+ if (typeof err === 'object' && err !== null && 'response' in err) {
+ const axiosErr = err as any;
+ if (axiosErr.response?.status === 403) {
+ return `Permission denied. ${defaultMessage}. Check the Docker logs for detailed error information.`;
+ } else if (axiosErr.response?.status === 500) {
+ const backendError = axiosErr.response?.data?.error || 'Internal server error occurred';
+ return `Server Error (500): ${backendError}. Check the Docker logs for detailed error information.`;
+ } else if (axiosErr.response?.data?.error) {
+ const backendError = axiosErr.response.data.error;
+ return `${axiosErr.response?.status ? `Error ${axiosErr.response.status}: ` : ''}${backendError}. Check the Docker logs for detailed error information.`;
+ } else {
+ return `Request failed with status code ${axiosErr.response?.status || 'unknown'}. Check the Docker logs for detailed error information.`;
+ }
+ } else if (err instanceof Error) {
+ return `${err.message}. Check the Docker logs for detailed error information.`;
+ } else {
+ return `${defaultMessage}. Check the Docker logs for detailed error information.`;
+ }
+ };
+
+ const handleOpenFile = async (file: any) => {
+ const tabId = file.path;
+
+ if (!tabs.find(t => t.id === tabId)) {
+ const currentSshSessionId = currentHost?.id.toString();
+
+ setTabs([...tabs, {
+ id: tabId,
+ title: file.name,
+ fileName: file.name,
+ content: '',
+ filePath: file.path,
+ isSSH: true,
+ sshSessionId: currentSshSessionId,
+ loading: true
+ }]);
+ try {
+ const res = await readSSHFile(currentSshSessionId, file.path);
+ setTabs(tabs => tabs.map(t => t.id === tabId ? {
+ ...t,
+ content: res.content,
+ loading: false,
+ error: undefined
+ } : t));
+ await addConfigEditorRecent({
+ name: file.name,
+ path: file.path,
+ isSSH: true,
+ sshSessionId: currentSshSessionId,
+ hostId: currentHost?.id
+ });
+ fetchHomeData();
+ } catch (err: any) {
+ const errorMessage = formatErrorMessage(err, 'Cannot read file');
+ setTabs(tabs => tabs.map(t => t.id === tabId ? {...t, loading: false, error: errorMessage} : t));
+ }
+ }
+ setActiveTab(tabId);
+ };
+
+ const handleRemoveRecent = async (file: any) => {
+ try {
+ await removeConfigEditorRecent({
+ name: file.name,
+ path: file.path,
+ isSSH: true,
+ sshSessionId: file.sshSessionId,
+ hostId: currentHost?.id
+ });
+ fetchHomeData();
+ } catch (err) {
+ }
+ };
+
+ const handlePinFile = async (file: any) => {
+ try {
+ await addConfigEditorPinned({
+ name: file.name,
+ path: file.path,
+ isSSH: true,
+ sshSessionId: file.sshSessionId,
+ hostId: currentHost?.id
+ });
+ fetchHomeData();
+ if (sidebarRef.current && sidebarRef.current.fetchFiles) {
+ sidebarRef.current.fetchFiles();
+ }
+ } catch (err) {
+ }
+ };
+
+ const handleUnpinFile = async (file: any) => {
+ try {
+ await removeConfigEditorPinned({
+ name: file.name,
+ path: file.path,
+ isSSH: true,
+ sshSessionId: file.sshSessionId,
+ hostId: currentHost?.id
+ });
+ fetchHomeData();
+ if (sidebarRef.current && sidebarRef.current.fetchFiles) {
+ sidebarRef.current.fetchFiles();
+ }
+ } catch (err) {
+ }
+ };
+
+ const handleOpenShortcut = async (shortcut: any) => {
+ if (sidebarRef.current?.isOpeningShortcut) {
+ return;
+ }
+
+ if (sidebarRef.current && sidebarRef.current.openFolder) {
+ try {
+ sidebarRef.current.isOpeningShortcut = true;
+
+ const normalizedPath = shortcut.path.startsWith('/') ? shortcut.path : `/${shortcut.path}`;
+
+ await sidebarRef.current.openFolder(currentHost, normalizedPath);
+ } catch (err) {
+ } finally {
+ if (sidebarRef.current) {
+ sidebarRef.current.isOpeningShortcut = false;
+ }
+ }
+ } else {
+ }
+ };
+
+ const handleAddShortcut = async (folderPath: string) => {
+ try {
+ const name = folderPath.split('/').pop() || folderPath;
+ await addConfigEditorShortcut({
+ name,
+ path: folderPath,
+ isSSH: true,
+ sshSessionId: currentHost?.id.toString(),
+ hostId: currentHost?.id
+ });
+ fetchHomeData();
+ } catch (err) {
+ }
+ };
+
+ const handleRemoveShortcut = async (shortcut: any) => {
+ try {
+ await removeConfigEditorShortcut({
+ name: shortcut.name,
+ path: shortcut.path,
+ isSSH: true,
+ sshSessionId: currentHost?.id.toString(),
+ hostId: currentHost?.id
+ });
+ fetchHomeData();
+ } catch (err) {
+ }
+ };
+
+ const closeTab = (tabId: string | number) => {
+ const idx = tabs.findIndex(t => t.id === tabId);
+ const newTabs = tabs.filter(t => t.id !== tabId);
+ setTabs(newTabs);
+ if (activeTab === tabId) {
+ if (newTabs.length > 0) setActiveTab(newTabs[Math.max(0, idx - 1)].id);
+ else setActiveTab('home');
+ }
+ if (currentHost) {
+ fetchHomeData();
+ }
+ };
+
+ const setTabContent = (tabId: string | number, content: string) => {
+ setTabs(tabs => tabs.map(t => t.id === tabId ? {
+ ...t,
+ content,
+ dirty: true,
+ error: undefined,
+ success: undefined
+ } : t));
+ };
+
+ const handleSave = async (tab: Tab) => {
+ if (isSaving) {
+ return;
+ }
+
+ setIsSaving(true);
+
+ try {
+ if (!tab.sshSessionId) {
+ throw new Error('No SSH session ID available');
+ }
+
+ if (!tab.filePath) {
+ throw new Error('No file path available');
+ }
+
+ if (!currentHost?.id) {
+ throw new Error('No current host available');
+ }
+
+ try {
+ const statusPromise = getSSHStatus(tab.sshSessionId);
+ const statusTimeoutPromise = new Promise((_, reject) =>
+ setTimeout(() => reject(new Error('SSH status check timed out')), 10000)
+ );
+
+ const status = await Promise.race([statusPromise, statusTimeoutPromise]);
+
+ if (!status.connected) {
+ const connectPromise = connectSSH(tab.sshSessionId, {
+ ip: currentHost.ip,
+ port: currentHost.port,
+ username: currentHost.username,
+ password: currentHost.password,
+ sshKey: currentHost.key,
+ keyPassword: currentHost.keyPassword
+ });
+ const connectTimeoutPromise = new Promise((_, reject) =>
+ setTimeout(() => reject(new Error('SSH reconnection timed out')), 15000)
+ );
+
+ await Promise.race([connectPromise, connectTimeoutPromise]);
+ }
+ } catch (statusErr) {
+ }
+
+ const savePromise = writeSSHFile(tab.sshSessionId, tab.filePath, tab.content);
+ const timeoutPromise = new Promise((_, reject) =>
+ setTimeout(() => {
+ reject(new Error('Save operation timed out'));
+ }, 30000)
+ );
+
+ const result = await Promise.race([savePromise, timeoutPromise]);
+ setTabs(tabs => tabs.map(t => t.id === tab.id ? {
+ ...t,
+ dirty: false,
+ success: 'File saved successfully'
+ } : t));
+
+ setTimeout(() => {
+ setTabs(tabs => tabs.map(t => t.id === tab.id ? {...t, success: undefined} : t));
+ }, 3000);
+
+ Promise.allSettled([
+ (async () => {
+ try {
+ await addConfigEditorRecent({
+ name: tab.fileName,
+ path: tab.filePath,
+ isSSH: true,
+ sshSessionId: tab.sshSessionId,
+ hostId: currentHost.id
+ });
+ } catch (recentErr) {
+ }
+ })(),
+ (async () => {
+ try {
+ await fetchHomeData();
+ } catch (refreshErr) {
+ }
+ })()
+ ]).then(() => {
+ });
+
+ } catch (err) {
+ let errorMessage = formatErrorMessage(err, 'Cannot save file');
+
+ if (errorMessage.includes('timed out') || errorMessage.includes('timeout')) {
+ errorMessage = `Save operation timed out. The file may have been saved successfully, but the operation took too long to complete. Check the Docker logs for confirmation.`;
+ }
+
+ setTabs(tabs => {
+ const updatedTabs = tabs.map(t => t.id === tab.id ? {
+ ...t,
+ error: `Failed to save file: ${errorMessage}`
+ } : t);
+ return updatedTabs;
+ });
+
+ setTimeout(() => {
+ setTabs(currentTabs => [...currentTabs]);
+ }, 100);
+ } finally {
+ setIsSaving(false);
+ }
+ };
+
+ const handleHostChange = (host: SSHHost | null) => {
+ setCurrentHost(host);
+ setTabs([]);
+ setActiveTab('home');
+ };
+
+ if (!currentHost) {
+ return (
+ <div style={{position: 'relative', width: '100vw', height: '100vh', overflow: 'hidden'}}>
+ <div style={{position: 'absolute', top: 0, left: 0, width: 256, height: '100vh', zIndex: 20}}>
+ <ConfigEditorSidebar
+ onSelectView={onSelectView}
+ onOpenFile={handleOpenFile}
+ tabs={tabs}
+ ref={sidebarRef}
+ onHostChange={handleHostChange}
+ />
+ </div>
+ <div style={{
+ position: 'absolute',
+ top: 0,
+ left: 256,
+ right: 0,
+ bottom: 0,
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ background: '#09090b'
+ }}>
+ <div className="text-center">
+ <h2 className="text-xl font-semibold text-white mb-2">Connect to a Server</h2>
+ <p className="text-muted-foreground">Select a server from the sidebar to start editing files</p>
+ </div>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div style={{position: 'relative', width: '100vw', height: '100vh', overflow: 'hidden'}}>
+ <div style={{position: 'absolute', top: 0, left: 0, width: 256, height: '100vh', zIndex: 20}}>
+ <ConfigEditorSidebar
+ onSelectView={onSelectView}
+ onOpenFile={handleOpenFile}
+ tabs={tabs}
+ ref={sidebarRef}
+ onHostChange={handleHostChange}
+ />
+ </div>
+ <div style={{position: 'absolute', top: 0, left: 256, right: 0, height: 44, zIndex: 30}}>
+ <div className="flex items-center w-full bg-[#18181b] border-b border-[#222224] h-11 relative px-4"
+ style={{height: 44}}>
+ {/* Tab list scrollable area */}
+ <div className="flex-1 min-w-0 h-full flex items-center">
+ <div
+ className="h-9 w-full bg-[#09090b] border border-[#23232a] rounded-md flex items-center overflow-x-auto scrollbar-thin scrollbar-thumb-muted-foreground/30 scrollbar-track-transparent"
+ style={{minWidth: 0}}>
+ <ConfigTopbar
+ tabs={tabs.map(t => ({id: t.id, title: t.title}))}
+ activeTab={activeTab}
+ setActiveTab={setActiveTab}
+ closeTab={closeTab}
+ onHomeClick={() => {
+ setActiveTab('home');
+ if (currentHost) {
+ fetchHomeData();
+ }
+ }}
+ />
+ </div>
+ </div>
+ {/* Save button - always visible */}
+ <Button
+ className={cn(
+ 'ml-4 px-4 py-1.5 border rounded-md text-sm font-medium transition-colors',
+ 'border-[#2d2d30] text-white bg-transparent hover:bg-[#23232a] active:bg-[#23232a] focus:bg-[#23232a]',
+ activeTab === 'home' || !tabs.find(t => t.id === activeTab)?.dirty || isSaving ? 'opacity-60 cursor-not-allowed' : 'hover:border-[#2d2d30]'
+ )}
+ disabled={activeTab === 'home' || !tabs.find(t => t.id === activeTab)?.dirty || isSaving}
+ onClick={() => {
+ const tab = tabs.find(t => t.id === activeTab);
+ if (tab && !isSaving) handleSave(tab);
+ }}
+ type="button"
+ style={{height: 36, alignSelf: 'center'}}
+ >
+ {isSaving ? 'Saving...' : 'Save'}
+ </Button>
+ </div>
+ </div>
+ <div style={{
+ position: 'absolute',
+ top: 44,
+ left: 256,
+ right: 0,
+ bottom: 0,
+ overflow: 'hidden',
+ zIndex: 10,
+ background: '#101014',
+ display: 'flex',
+ flexDirection: 'column'
+ }}>
+ {activeTab === 'home' ? (
+ <ConfigHomeView
+ recent={recent}
+ pinned={pinned}
+ shortcuts={shortcuts}
+ onOpenFile={handleOpenFile}
+ onRemoveRecent={handleRemoveRecent}
+ onPinFile={handlePinFile}
+ onUnpinFile={handleUnpinFile}
+ onOpenShortcut={handleOpenShortcut}
+ onRemoveShortcut={handleRemoveShortcut}
+ onAddShortcut={handleAddShortcut}
+ />
+ ) : (
+ (() => {
+ const tab = tabs.find(t => t.id === activeTab);
+ if (!tab) return null;
+ return (
+ <div className="flex flex-col h-full" style={{flex: 1, minHeight: 0}}>
+ {/* Error display */}
+ {tab.error && (
+ <div
+ className="bg-red-900/20 border border-red-500/30 text-red-300 px-4 py-3 text-sm">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <span className="text-red-400">⚠️</span>
+ <span>{tab.error}</span>
+ </div>
+ <button
+ onClick={() => setTabs(tabs => tabs.map(t => t.id === tab.id ? {
+ ...t,
+ error: undefined
+ } : t))}
+ className="text-red-400 hover:text-red-300 transition-colors"
+ >
+ ✕
+ </button>
+ </div>
+ </div>
+ )}
+ {/* Success display */}
+ {tab.success && (
+ <div
+ className="bg-green-900/20 border border-green-500/30 text-green-300 px-4 py-3 text-sm">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <span className="text-green-400">✓</span>
+ <span>{tab.success}</span>
+ </div>
+ <button
+ onClick={() => setTabs(tabs => tabs.map(t => t.id === tab.id ? {
+ ...t,
+ success: undefined
+ } : t))}
+ className="text-green-400 hover:text-green-300 transition-colors"
+ >
+ ✕
+ </button>
+ </div>
+ </div>
+ )}
+ <div className="flex-1 min-h-0">
+ <ConfigCodeEditor
+ content={tab.content}
+ fileName={tab.fileName}
+ onContentChange={content => setTabContent(tab.id, content)}
+ />
+ </div>
+ </div>
+ );
+ })()
+ )}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigEditorSidebar.tsx b/src/apps/SSH/Config Editor/ConfigEditorSidebar.tsx
new file mode 100644
index 000000000..571182f31
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigEditorSidebar.tsx
@@ -0,0 +1,594 @@
+import React, {useEffect, useState, useRef, forwardRef, useImperativeHandle} from 'react';
+import {
+ Sidebar,
+ SidebarContent,
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel, SidebarMenu, SidebarMenuItem,
+ SidebarProvider
+} from '@/components/ui/sidebar.tsx';
+import {Separator} from '@/components/ui/separator.tsx';
+import {CornerDownLeft, Folder, File, Server, ArrowUp, Pin} from 'lucide-react';
+import {ScrollArea} from '@/components/ui/scroll-area.tsx';
+import {cn} from '@/lib/utils.ts';
+import {Input} from '@/components/ui/input.tsx';
+import {Button} from '@/components/ui/button.tsx';
+import {Accordion, AccordionContent, AccordionItem, AccordionTrigger} from '@/components/ui/accordion.tsx';
+import {
+ getSSHHosts,
+ listSSHFiles,
+ connectSSH,
+ getSSHStatus,
+ getConfigEditorPinned,
+ addConfigEditorPinned,
+ removeConfigEditorPinned
+} from '@/apps/SSH/ssh-axios.ts';
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+const ConfigEditorSidebar = forwardRef(function ConfigEditorSidebar(
+ {onSelectView, onOpenFile, tabs, onHostChange}: {
+ onSelectView: (view: string) => void;
+ onOpenFile: (file: any) => void;
+ tabs: any[];
+ onHostChange?: (host: SSHHost | null) => void;
+ },
+ ref
+) {
+ const [sshConnections, setSSHConnections] = useState<SSHHost[]>([]);
+ const [loadingSSH, setLoadingSSH] = useState(false);
+ const [errorSSH, setErrorSSH] = useState<string | undefined>(undefined);
+ const [view, setView] = useState<'servers' | 'files'>('servers');
+ const [activeServer, setActiveServer] = useState<SSHHost | null>(null);
+ const [currentPath, setCurrentPath] = useState('/');
+ const [files, setFiles] = useState<any[]>([]);
+ const pathInputRef = useRef<HTMLInputElement>(null);
+
+ const [search, setSearch] = useState('');
+ const [debouncedSearch, setDebouncedSearch] = useState('');
+ const [fileSearch, setFileSearch] = useState('');
+ const [debouncedFileSearch, setDebouncedFileSearch] = useState('');
+ useEffect(() => {
+ const handler = setTimeout(() => setDebouncedSearch(search), 200);
+ return () => clearTimeout(handler);
+ }, [search]);
+ useEffect(() => {
+ const handler = setTimeout(() => setDebouncedFileSearch(fileSearch), 200);
+ return () => clearTimeout(handler);
+ }, [fileSearch]);
+
+ const [sshSessionId, setSshSessionId] = useState<string | null>(null);
+ const [filesLoading, setFilesLoading] = useState(false);
+ const [filesError, setFilesError] = useState<string | null>(null);
+ const [connectingSSH, setConnectingSSH] = useState(false);
+ const [connectionCache, setConnectionCache] = useState<Record<string, {
+ sessionId: string;
+ timestamp: number
+ }>>({});
+ const [fetchingFiles, setFetchingFiles] = useState(false);
+
+ useEffect(() => {
+ fetchSSH();
+ }, []);
+
+ async function fetchSSH() {
+ setLoadingSSH(true);
+ setErrorSSH(undefined);
+ try {
+ const hosts = await getSSHHosts();
+ const configEditorHosts = hosts.filter(host => host.enableConfigEditor);
+
+ if (configEditorHosts.length > 0) {
+ const firstHost = configEditorHosts[0];
+ }
+
+ setSSHConnections(configEditorHosts);
+ } catch (err: any) {
+ setErrorSSH('Failed to load SSH connections');
+ } finally {
+ setLoadingSSH(false);
+ }
+ }
+
+ async function connectToSSH(server: SSHHost): Promise<string | null> {
+ const sessionId = server.id.toString();
+
+ const cached = connectionCache[sessionId];
+ if (cached && Date.now() - cached.timestamp < 30000) {
+ setSshSessionId(cached.sessionId);
+ return cached.sessionId;
+ }
+
+ if (connectingSSH) {
+ return null;
+ }
+
+ setConnectingSSH(true);
+
+ try {
+ if (!server.password && !server.key) {
+ setFilesError('No authentication credentials available for this SSH host');
+ return null;
+ }
+
+ const connectionConfig = {
+ ip: server.ip,
+ port: server.port,
+ username: server.username,
+ password: server.password,
+ sshKey: server.key,
+ keyPassword: server.keyPassword,
+ };
+
+ await connectSSH(sessionId, connectionConfig);
+
+ setSshSessionId(sessionId);
+
+ setConnectionCache(prev => ({
+ ...prev,
+ [sessionId]: {sessionId, timestamp: Date.now()}
+ }));
+
+ return sessionId;
+ } catch (err: any) {
+ setFilesError(err?.response?.data?.error || 'Failed to connect to SSH');
+ setSshSessionId(null);
+ return null;
+ } finally {
+ setConnectingSSH(false);
+ }
+ }
+
+ async function fetchFiles() {
+ if (fetchingFiles) {
+ return;
+ }
+
+ setFetchingFiles(true);
+ setFiles([]);
+ setFilesLoading(true);
+ setFilesError(null);
+
+ try {
+ let pinnedFiles: any[] = [];
+ try {
+ if (activeServer) {
+ pinnedFiles = await getConfigEditorPinned(activeServer.id);
+ }
+ } catch (err) {
+ }
+
+ if (activeServer && sshSessionId) {
+ let res: any[] = [];
+
+ try {
+ const status = await getSSHStatus(sshSessionId);
+ if (!status.connected) {
+ const newSessionId = await connectToSSH(activeServer);
+ if (newSessionId) {
+ setSshSessionId(newSessionId);
+ res = await listSSHFiles(newSessionId, currentPath);
+ } else {
+ throw new Error('Failed to reconnect SSH session');
+ }
+ } else {
+ res = await listSSHFiles(sshSessionId, currentPath);
+ }
+ } catch (sessionErr) {
+ const newSessionId = await connectToSSH(activeServer);
+ if (newSessionId) {
+ setSshSessionId(newSessionId);
+ res = await listSSHFiles(newSessionId, currentPath);
+ } else {
+ throw sessionErr;
+ }
+ }
+
+ const processedFiles = (res || []).map((f: any) => {
+ const filePath = currentPath + (currentPath.endsWith('/') ? '' : '/') + f.name;
+ const isPinned = pinnedFiles.some(pinned => pinned.path === filePath);
+ return {
+ ...f,
+ path: filePath,
+ isPinned,
+ isSSH: true,
+ sshSessionId: sshSessionId
+ };
+ });
+
+ setFiles(processedFiles);
+ }
+ } catch (err: any) {
+ setFiles([]);
+ setFilesError(err?.response?.data?.error || err?.message || 'Failed to list files');
+ } finally {
+ setFilesLoading(false);
+ setFetchingFiles(false);
+ }
+ }
+
+ useEffect(() => {
+ if (view === 'files' && activeServer && sshSessionId && !connectingSSH && !fetchingFiles) {
+ const timeoutId = setTimeout(() => {
+ fetchFiles();
+ }, 100);
+ return () => clearTimeout(timeoutId);
+ }
+ }, [currentPath, view, activeServer, sshSessionId]);
+
+ async function handleSelectServer(server: SSHHost) {
+ if (connectingSSH) {
+ return;
+ }
+
+ setFetchingFiles(false);
+ setFilesLoading(false);
+ setFilesError(null);
+ setFiles([]);
+
+ setActiveServer(server);
+ setCurrentPath(server.defaultPath || '/');
+ setView('files');
+
+ const sessionId = await connectToSSH(server);
+ if (sessionId) {
+ setSshSessionId(sessionId);
+ if (onHostChange) {
+ onHostChange(server);
+ }
+ } else {
+ w
+ setView('servers');
+ setActiveServer(null);
+ }
+ }
+
+ useImperativeHandle(ref, () => ({
+ openFolder: async (server: SSHHost, path: string) => {
+ if (connectingSSH || fetchingFiles) {
+ return;
+ }
+
+ if (activeServer?.id === server.id && currentPath === path) {
+ setTimeout(() => fetchFiles(), 100);
+ return;
+ }
+
+ setFetchingFiles(false);
+ setFilesLoading(false);
+ setFilesError(null);
+ setFiles([]);
+
+ setActiveServer(server);
+ setCurrentPath(path);
+ setView('files');
+
+ if (!sshSessionId || activeServer?.id !== server.id) {
+ const sessionId = await connectToSSH(server);
+ if (sessionId) {
+ setSshSessionId(sessionId);
+ if (onHostChange && activeServer?.id !== server.id) {
+ onHostChange(server);
+ }
+ } else {
+ setView('servers');
+ setActiveServer(null);
+ }
+ } else {
+ if (onHostChange && activeServer?.id !== server.id) {
+ onHostChange(server);
+ }
+ }
+ },
+ fetchFiles: () => {
+ if (activeServer && sshSessionId) {
+ fetchFiles();
+ }
+ }
+ }));
+
+ useEffect(() => {
+ if (pathInputRef.current) {
+ pathInputRef.current.scrollLeft = pathInputRef.current.scrollWidth;
+ }
+ }, [currentPath]);
+
+ const sshByFolder: Record<string, SSHHost[]> = {};
+ sshConnections.forEach(conn => {
+ const folder = conn.folder && conn.folder.trim() ? conn.folder : 'No Folder';
+ if (!sshByFolder[folder]) sshByFolder[folder] = [];
+ sshByFolder[folder].push(conn);
+ });
+
+ const sortedFolders = Object.keys(sshByFolder);
+ if (sortedFolders.includes('No Folder')) {
+ sortedFolders.splice(sortedFolders.indexOf('No Folder'), 1);
+ sortedFolders.unshift('No Folder');
+ }
+
+ const filteredSshByFolder: Record<string, SSHHost[]> = {};
+ Object.entries(sshByFolder).forEach(([folder, hosts]) => {
+ filteredSshByFolder[folder] = hosts.filter(conn => {
+ const q = debouncedSearch.trim().toLowerCase();
+ if (!q) return true;
+ return (conn.name || '').toLowerCase().includes(q) || (conn.ip || '').toLowerCase().includes(q) ||
+ (conn.username || '').toLowerCase().includes(q) || (conn.folder || '').toLowerCase().includes(q) ||
+ (conn.tags || []).join(' ').toLowerCase().includes(q);
+ });
+ });
+
+ const filteredFiles = files.filter(file => {
+ const q = debouncedFileSearch.trim().toLowerCase();
+ if (!q) return true;
+ return file.name.toLowerCase().includes(q);
+ });
+
+ return (
+ <SidebarProvider>
+ <Sidebar style={{height: '100vh', maxHeight: '100vh', overflow: 'hidden'}}>
+ <SidebarContent style={{height: '100vh', maxHeight: '100vh', overflow: 'hidden'}}>
+ <SidebarGroup className="flex flex-col flex-grow h-full overflow-hidden">
+ <SidebarGroupLabel className="text-lg font-bold text-white flex items-center gap-2">
+ Termix / Config
+ </SidebarGroupLabel>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarGroupContent className="flex flex-col flex-grow min-h-0">
+ <SidebarMenu>
+ <SidebarMenuItem key={"Homepage"}>
+ <Button className="w-full mt-2 mb-2 h-8" onClick={() => onSelectView("homepage")}
+ variant="outline">
+ <CornerDownLeft/>
+ Return
+ </Button>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ </SidebarMenuItem>
+ </SidebarMenu>
+ <div
+ className="flex-1 w-full flex flex-col rounded-md bg-[#09090b] border border-[#434345] overflow-hidden p-0 relative min-h-0 mt-1">
+ {view === 'servers' && (
+ <>
+ <div
+ className="w-full px-2 pt-2 pb-2 bg-[#09090b] z-10 border-b border-[#23232a]">
+ <Input
+ value={search}
+ onChange={e => setSearch(e.target.value)}
+ placeholder="Search hosts by name, username, IP, folder, tags..."
+ className="w-full h-8 text-sm bg-[#18181b] border border-[#23232a] text-white placeholder:text-muted-foreground rounded"
+ autoComplete="off"
+ />
+ </div>
+ <ScrollArea className="flex-1 w-full h-full"
+ style={{height: '100%', maxHeight: '100%'}}>
+ <div className="flex flex-col h-full">
+ <div
+ className="w-full flex-grow overflow-hidden p-0 m-0 relative flex flex-col min-h-0">
+ <div style={{display: 'flex', justifyContent: 'center'}}>
+ <Separator className="w-full h-px bg-[#434345] my-2"
+ style={{maxWidth: 213, margin: '0 auto'}}/>
+ </div>
+ <div className="mx-auto" style={{maxWidth: '213px', width: '100%'}}>
+ <div className="flex-1 min-h-0">
+ <Accordion type="multiple" className="w-full"
+ value={sortedFolders}>
+ {sortedFolders.map((folder, idx) => (
+ <React.Fragment key={folder}>
+ <AccordionItem value={folder}
+ className="mt-0 w-full !border-b-transparent">
+ <AccordionTrigger
+ className="text-base font-semibold rounded-t-none py-2 w-full">{folder}</AccordionTrigger>
+ <AccordionContent
+ className="flex flex-col gap-1 pb-2 pt-1 w-full">
+ {filteredSshByFolder[folder].map(conn => (
+ <Button
+ key={conn.id}
+ variant="outline"
+ className="w-full h-10 px-2 bg-[#18181b] border border-[#434345] hover:bg-[#2d2d30] transition-colors text-left justify-start"
+ onClick={() => handleSelectServer(conn)}
+ >
+ <div
+ className="flex items-center w-full">
+ {conn.pin && <Pin
+ className="w-0.5 h-0.5 text-yellow-400 mr-1 flex-shrink-0"/>}
+ <span
+ className="font-medium truncate">{conn.name || conn.ip}</span>
+ </div>
+ </Button>
+ ))}
+ </AccordionContent>
+ </AccordionItem>
+ {idx < sortedFolders.length - 1 && (
+ <div style={{
+ display: 'flex',
+ justifyContent: 'center'
+ }}>
+ <Separator
+ className="h-px bg-[#434345] my-1"
+ style={{width: 213}}/>
+ </div>
+ )}
+ </React.Fragment>
+ ))}
+ </Accordion>
+ </div>
+ </div>
+ </div>
+ </div>
+ </ScrollArea>
+ </>
+ )}
+ {view === 'files' && activeServer && (
+ <div className="flex flex-col h-full w-full" style={{maxWidth: 260}}>
+ <div
+ className="flex items-center gap-2 px-2 py-2 border-b border-[#23232a] bg-[#18181b] z-20"
+ style={{maxWidth: 260}}>
+ <Button
+ size="icon"
+ variant="outline"
+ className="h-8 w-8 bg-[#18181b] border border-[#23232a] rounded-md hover:bg-[#2d2d30] focus:outline-none focus:ring-2 focus:ring-ring"
+ onClick={() => {
+ let path = currentPath;
+ if (path && path !== '/' && path !== '') {
+ if (path.endsWith('/')) path = path.slice(0, -1);
+ const lastSlash = path.lastIndexOf('/');
+ if (lastSlash > 0) {
+ setCurrentPath(path.slice(0, lastSlash));
+ } else {
+ setCurrentPath('/');
+ }
+ } else {
+ setView('servers');
+ if (onHostChange) {
+ onHostChange(null);
+ }
+ }
+ }}
+ >
+ <ArrowUp className="w-4 h-4"/>
+ </Button>
+ <Input ref={pathInputRef} value={currentPath}
+ onChange={e => setCurrentPath(e.target.value)}
+ className="flex-1 bg-[#18181b] border border-[#434345] text-white truncate rounded-md px-2 py-1 focus:outline-none focus:ring-2 focus:ring-ring hover:border-[#5a5a5d]"
+ />
+ </div>
+ <div className="px-2 py-2 border-b border-[#23232a] bg-[#18181b]">
+ <Input
+ placeholder="Search files and folders..."
+ className="w-full h-7 text-sm bg-[#23232a] border border-[#434345] text-white placeholder:text-muted-foreground rounded"
+ autoComplete="off"
+ value={fileSearch}
+ onChange={e => setFileSearch(e.target.value)}
+ />
+ </div>
+ <div className="flex-1 w-full h-full bg-[#09090b] border-t border-[#23232a]">
+ <ScrollArea className="w-full h-full bg-[#09090b]" style={{
+ height: '100%',
+ maxHeight: '100%',
+ paddingRight: 8,
+ scrollbarGutter: 'stable',
+ background: '#09090b'
+ }}>
+ <div className="p-2 pr-2">
+ {connectingSSH || filesLoading ? (
+ <div className="text-xs text-muted-foreground">Loading...</div>
+ ) : filesError ? (
+ <div className="text-xs text-red-500">{filesError}</div>
+ ) : filteredFiles.length === 0 ? (
+ <div className="text-xs text-muted-foreground">No files or
+ folders found.</div>
+ ) : (
+ <div className="flex flex-col gap-1">
+ {filteredFiles.map((item: any) => {
+ const isOpen = (tabs || []).some((t: any) => t.id === item.path);
+ return (
+ <div
+ key={item.path}
+ className={cn(
+ "flex items-center gap-2 px-3 py-2 bg-[#18181b] border border-[#23232a] rounded group max-w-full",
+ isOpen && "opacity-60 cursor-not-allowed pointer-events-none"
+ )}
+ style={{maxWidth: 220, marginBottom: 8}}
+ >
+ <div
+ className="flex items-center gap-2 flex-1 cursor-pointer min-w-0"
+ onClick={() => !isOpen && (item.type === 'directory' ? setCurrentPath(item.path) : onOpenFile({
+ name: item.name,
+ path: item.path,
+ isSSH: item.isSSH,
+ sshSessionId: item.sshSessionId
+ }))}
+ >
+ {item.type === 'directory' ?
+ <Folder
+ className="w-4 h-4 text-blue-400"/> :
+ <File
+ className="w-4 h-4 text-muted-foreground"/>}
+ <span
+ className="text-sm text-white truncate max-w-[120px]">{item.name}</span>
+ </div>
+ <div className="flex items-center gap-1">
+ {item.type === 'file' && (
+ <Button size="icon" variant="ghost"
+ className="h-7 w-7"
+ disabled={isOpen}
+ onClick={async (e) => {
+ e.stopPropagation();
+ try {
+ if (item.isPinned) {
+ await removeConfigEditorPinned({
+ name: item.name,
+ path: item.path,
+ hostId: activeServer?.id,
+ isSSH: true,
+ sshSessionId: activeServer?.id.toString()
+ });
+ setFiles(files.map(f =>
+ f.path === item.path ? {
+ ...f,
+ isPinned: false
+ } : f
+ ));
+ } else {
+ await addConfigEditorPinned({
+ name: item.name,
+ path: item.path,
+ hostId: activeServer?.id,
+ isSSH: true,
+ sshSessionId: activeServer?.id.toString()
+ });
+ setFiles(files.map(f =>
+ f.path === item.path ? {
+ ...f,
+ isPinned: true
+ } : f
+ ));
+ }
+ } catch (err) {
+ console.error('Failed to pin/unpin file:', err);
+ }
+ }}
+ >
+ <Pin
+ className={`w-1 h-1 ${item.isPinned ? 'text-yellow-400 fill-current' : 'text-muted-foreground'}`}/>
+ </Button>
+ )}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ )}
+ </div>
+ </ScrollArea>
+ </div>
+ </div>
+ )}
+ </div>
+ </SidebarGroupContent>
+ </SidebarGroup>
+ </SidebarContent>
+ </Sidebar>
+ </SidebarProvider>
+ );
+});
+export {ConfigEditorSidebar};
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigFileSidebarViewer.tsx b/src/apps/SSH/Config Editor/ConfigFileSidebarViewer.tsx
new file mode 100644
index 000000000..99d3e7d84
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigFileSidebarViewer.tsx
@@ -0,0 +1,149 @@
+import React from 'react';
+import {Button} from '@/components/ui/button.tsx';
+import {Card} from '@/components/ui/card.tsx';
+import {Separator} from '@/components/ui/separator.tsx';
+import {Plus, Folder, File, Star, Trash2, Edit, Link2, Server, Pin} from 'lucide-react';
+
+interface SSHConnection {
+ id: string;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ isPinned?: boolean;
+}
+
+interface FileItem {
+ name: string;
+ type: 'file' | 'directory' | 'link';
+ path: string;
+ isStarred?: boolean;
+}
+
+interface ConfigFileSidebarViewerProps {
+ sshConnections: SSHConnection[];
+ onAddSSH: () => void;
+ onConnectSSH: (conn: SSHConnection) => void;
+ onEditSSH: (conn: SSHConnection) => void;
+ onDeleteSSH: (conn: SSHConnection) => void;
+ onPinSSH: (conn: SSHConnection) => void;
+ currentPath: string;
+ files: FileItem[];
+ onOpenFile: (file: FileItem) => void;
+ onOpenFolder: (folder: FileItem) => void;
+ onStarFile: (file: FileItem) => void;
+ onDeleteFile: (file: FileItem) => void;
+ isLoading?: boolean;
+ error?: string;
+ isSSHMode: boolean;
+ onSwitchToLocal: () => void;
+ onSwitchToSSH: (conn: SSHConnection) => void;
+ currentSSH?: SSHConnection;
+}
+
+export function ConfigFileSidebarViewer({
+ sshConnections,
+ onAddSSH,
+ onConnectSSH,
+ onEditSSH,
+ onDeleteSSH,
+ onPinSSH,
+ currentPath,
+ files,
+ onOpenFile,
+ onOpenFolder,
+ onStarFile,
+ onDeleteFile,
+ isLoading,
+ error,
+ isSSHMode,
+ onSwitchToLocal,
+ onSwitchToSSH,
+ currentSSH,
+ }: ConfigFileSidebarViewerProps) {
+ return (
+ <div className="flex flex-col h-full">
+ {/* SSH Connections */}
+ <div className="p-2 bg-[#18181b] border-b border-[#23232a]">
+ <div className="flex items-center justify-between mb-2">
+ <span className="text-xs text-muted-foreground font-semibold">SSH Connections</span>
+ <Button size="icon" variant="outline" onClick={onAddSSH} className="ml-2 h-7 w-7">
+ <Plus className="w-4 h-4"/>
+ </Button>
+ </div>
+ <div className="flex flex-col gap-1">
+ <Button
+ variant={!isSSHMode ? 'secondary' : 'ghost'}
+ className="w-full justify-start text-left px-2 py-1.5 rounded"
+ onClick={onSwitchToLocal}
+ >
+ <Server className="w-4 h-4 mr-2"/> Local Files
+ </Button>
+ {sshConnections.map((conn) => (
+ <div key={conn.id} className="flex items-center gap-1 group">
+ <Button
+ variant={isSSHMode && currentSSH?.id === conn.id ? 'secondary' : 'ghost'}
+ className="flex-1 justify-start text-left px-2 py-1.5 rounded"
+ onClick={() => onSwitchToSSH(conn)}
+ >
+ <Link2 className="w-4 h-4 mr-2"/>
+ {conn.name || conn.ip}
+ {conn.isPinned && <Pin className="w-3 h-3 ml-1 text-yellow-400"/>}
+ </Button>
+ <Button size="icon" variant="ghost" className="h-7 w-7" onClick={() => onPinSSH(conn)}>
+ <Pin
+ className={`w-4 h-4 ${conn.isPinned ? 'text-yellow-400' : 'text-muted-foreground'}`}/>
+ </Button>
+ <Button size="icon" variant="ghost" className="h-7 w-7" onClick={() => onEditSSH(conn)}>
+ <Edit className="w-4 h-4"/>
+ </Button>
+ <Button size="icon" variant="ghost" className="h-7 w-7" onClick={() => onDeleteSSH(conn)}>
+ <Trash2 className="w-4 h-4 text-red-500"/>
+ </Button>
+ </div>
+ ))}
+ </div>
+ </div>
+ {/* File/Folder Viewer */}
+ <div className="flex-1 bg-[#09090b] p-2 overflow-y-auto">
+ <div className="mb-2 flex items-center gap-2">
+ <span
+ className="text-xs text-muted-foreground font-semibold">{isSSHMode ? 'SSH Path' : 'Local Path'}</span>
+ <span className="text-xs text-white truncate">{currentPath}</span>
+ </div>
+ {isLoading ? (
+ <div className="text-xs text-muted-foreground">Loading...</div>
+ ) : error ? (
+ <div className="text-xs text-red-500">{error}</div>
+ ) : (
+ <div className="flex flex-col gap-1">
+ {files.map((item) => (
+ <Card key={item.path}
+ className="flex items-center gap-2 px-2 py-1 bg-[#18181b] border border-[#23232a] rounded">
+ <div className="flex items-center gap-2 flex-1 cursor-pointer"
+ onClick={() => item.type === 'directory' ? onOpenFolder(item) : onOpenFile(item)}>
+ {item.type === 'directory' ? <Folder className="w-4 h-4 text-blue-400"/> :
+ <File className="w-4 h-4 text-muted-foreground"/>}
+ <span className="text-sm text-white truncate">{item.name}</span>
+ </div>
+ <div className="flex items-center gap-1">
+ <Button size="icon" variant="ghost" className="h-7 w-7"
+ onClick={() => onStarFile(item)}>
+ <Pin
+ className={`w-4 h-4 ${item.isStarred ? 'text-yellow-400' : 'text-muted-foreground'}`}/>
+ </Button>
+ <Button size="icon" variant="ghost" className="h-7 w-7"
+ onClick={() => onDeleteFile(item)}>
+ <Trash2 className="w-4 h-4 text-red-500"/>
+ </Button>
+ </div>
+ </Card>
+ ))}
+ {files.length === 0 &&
+ <div className="text-xs text-muted-foreground">No files or folders found.</div>}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigHomeView.tsx b/src/apps/SSH/Config Editor/ConfigHomeView.tsx
new file mode 100644
index 000000000..74bf34291
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigHomeView.tsx
@@ -0,0 +1,206 @@
+import React from 'react';
+import {Button} from '@/components/ui/button.tsx';
+import {Trash2, Folder, File, Plus, Pin} from 'lucide-react';
+import {Tabs, TabsList, TabsTrigger, TabsContent} from '@/components/ui/tabs.tsx';
+import {Input} from '@/components/ui/input.tsx';
+import {useState} from 'react';
+
+interface FileItem {
+ name: string;
+ path: string;
+ isPinned?: boolean;
+ type: 'file' | 'directory';
+ sshSessionId?: string;
+}
+
+interface ShortcutItem {
+ name: string;
+ path: string;
+}
+
+interface ConfigHomeViewProps {
+ recent: FileItem[];
+ pinned: FileItem[];
+ shortcuts: ShortcutItem[];
+ onOpenFile: (file: FileItem) => void;
+ onRemoveRecent: (file: FileItem) => void;
+ onPinFile: (file: FileItem) => void;
+ onUnpinFile: (file: FileItem) => void;
+ onOpenShortcut: (shortcut: ShortcutItem) => void;
+ onRemoveShortcut: (shortcut: ShortcutItem) => void;
+ onAddShortcut: (path: string) => void;
+}
+
+export function ConfigHomeView({
+ recent,
+ pinned,
+ shortcuts,
+ onOpenFile,
+ onRemoveRecent,
+ onPinFile,
+ onUnpinFile,
+ onOpenShortcut,
+ onRemoveShortcut,
+ onAddShortcut
+ }: ConfigHomeViewProps) {
+ const [tab, setTab] = useState<'recent' | 'pinned' | 'shortcuts'>('recent');
+ const [newShortcut, setNewShortcut] = useState('');
+
+
+ const renderFileCard = (file: FileItem, onRemove: () => void, onPin?: () => void, isPinned = false) => (
+ <div key={file.path}
+ className="flex items-center gap-2 px-3 py-2 bg-[#18181b] border border-[#23232a] rounded hover:border-[#434345] transition-colors">
+ <div
+ className="flex items-center gap-2 flex-1 cursor-pointer min-w-0"
+ onClick={() => onOpenFile(file)}
+ >
+ {file.type === 'directory' ?
+ <Folder className="w-4 h-4 text-blue-400 flex-shrink-0"/> :
+ <File className="w-4 h-4 text-muted-foreground flex-shrink-0"/>
+ }
+ <div className="flex-1 min-w-0">
+ <div className="text-sm font-medium text-white break-words leading-tight">
+ {file.name}
+ </div>
+ </div>
+ </div>
+ <div className="flex items-center gap-1 flex-shrink-0">
+ {onPin && (
+ <Button
+ size="sm"
+ variant="ghost"
+ className="h-6 px-1.5 bg-[#23232a] hover:bg-[#2d2d30] rounded-md"
+ onClick={onPin}
+ >
+ <Pin
+ className={`w-3 h-3 ${isPinned ? 'text-yellow-400 fill-current' : 'text-muted-foreground'}`}/>
+ </Button>
+ )}
+ {onRemove && (
+ <Button
+ size="sm"
+ variant="ghost"
+ className="h-6 px-1.5 bg-[#23232a] hover:bg-[#2d2d30] rounded-md"
+ onClick={onRemove}
+ >
+ <Trash2 className="w-3 h-3 text-red-500"/>
+ </Button>
+ )}
+ </div>
+ </div>
+ );
+
+ const renderShortcutCard = (shortcut: ShortcutItem) => (
+ <div key={shortcut.path}
+ className="flex items-center gap-2 px-3 py-2 bg-[#18181b] border border-[#23232a] rounded hover:border-[#434345] transition-colors">
+ <div
+ className="flex items-center gap-2 flex-1 cursor-pointer min-w-0"
+ onClick={() => onOpenShortcut(shortcut)}
+ >
+ <Folder className="w-4 h-4 text-blue-400 flex-shrink-0"/>
+ <div className="flex-1 min-w-0">
+ <div className="text-sm font-medium text-white break-words leading-tight">
+ {shortcut.path}
+ </div>
+ </div>
+ </div>
+ <div className="flex items-center gap-1 flex-shrink-0">
+ <Button
+ size="sm"
+ variant="ghost"
+ className="h-6 px-1.5 bg-[#23232a] hover:bg-[#2d2d30] rounded-md"
+ onClick={() => onRemoveShortcut(shortcut)}
+ >
+ <Trash2 className="w-3 h-3 text-red-500"/>
+ </Button>
+ </div>
+ </div>
+ );
+
+ return (
+ <div className="p-4 flex flex-col gap-4 h-full bg-[#09090b]">
+ <Tabs value={tab} onValueChange={v => setTab(v as 'recent' | 'pinned' | 'shortcuts')} className="w-full">
+ <TabsList className="mb-4 bg-[#18181b] border border-[#23232a]">
+ <TabsTrigger value="recent" className="data-[state=active]:bg-[#23232a]">Recent</TabsTrigger>
+ <TabsTrigger value="pinned" className="data-[state=active]:bg-[#23232a]">Pinned</TabsTrigger>
+ <TabsTrigger value="shortcuts" className="data-[state=active]:bg-[#23232a]">Folder
+ Shortcuts</TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="recent" className="mt-0">
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3">
+ {recent.length === 0 ? (
+ <div className="flex items-center justify-center py-8 col-span-full">
+ <span className="text-sm text-muted-foreground">No recent files.</span>
+ </div>
+ ) : recent.map((file) =>
+ renderFileCard(
+ file,
+ () => onRemoveRecent(file),
+ () => file.isPinned ? onUnpinFile(file) : onPinFile(file),
+ file.isPinned
+ )
+ )}
+ </div>
+ </TabsContent>
+
+ <TabsContent value="pinned" className="mt-0">
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3">
+ {pinned.length === 0 ? (
+ <div className="flex items-center justify-center py-8 col-span-full">
+ <span className="text-sm text-muted-foreground">No pinned files.</span>
+ </div>
+ ) : pinned.map((file) =>
+ renderFileCard(
+ file,
+ undefined,
+ () => onUnpinFile(file),
+ true
+ )
+ )}
+ </div>
+ </TabsContent>
+
+ <TabsContent value="shortcuts" className="mt-0">
+ <div className="flex items-center gap-3 mb-4 p-3 bg-[#18181b] border border-[#23232a] rounded-lg">
+ <Input
+ placeholder="Enter folder path"
+ value={newShortcut}
+ onChange={e => setNewShortcut(e.target.value)}
+ className="flex-1 bg-[#23232a] border-[#434345] text-white placeholder:text-muted-foreground"
+ onKeyDown={(e) => {
+ if (e.key === 'Enter' && newShortcut.trim()) {
+ onAddShortcut(newShortcut.trim());
+ setNewShortcut('');
+ }
+ }}
+ />
+ <Button
+ size="sm"
+ variant="outline"
+ className="h-8 px-2 bg-[#23232a] border-[#434345] hover:bg-[#2d2d30] rounded-md"
+ onClick={() => {
+ if (newShortcut.trim()) {
+ onAddShortcut(newShortcut.trim());
+ setNewShortcut('');
+ }
+ }}
+ >
+ <Plus className="w-3.5 h-3.5 mr-1"/>
+ Add
+ </Button>
+ </div>
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3">
+ {shortcuts.length === 0 ? (
+ <div className="flex items-center justify-center py-4 col-span-full">
+ <span className="text-sm text-muted-foreground">No shortcuts.</span>
+ </div>
+ ) : shortcuts.map((shortcut) =>
+ renderShortcutCard(shortcut)
+ )}
+ </div>
+ </TabsContent>
+ </Tabs>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigTabList.tsx b/src/apps/SSH/Config Editor/ConfigTabList.tsx
new file mode 100644
index 000000000..37ae59627
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigTabList.tsx
@@ -0,0 +1,57 @@
+import React from 'react';
+import {Button} from '@/components/ui/button.tsx';
+import {X, Home} from 'lucide-react';
+
+interface ConfigTab {
+ id: string | number;
+ title: string;
+}
+
+interface ConfigTabListProps {
+ tabs: ConfigTab[];
+ activeTab: string | number;
+ setActiveTab: (tab: string | number) => void;
+ closeTab: (tab: string | number) => void;
+ onHomeClick: () => void;
+}
+
+export function ConfigTabList({tabs, activeTab, setActiveTab, closeTab, onHomeClick}: ConfigTabListProps) {
+ return (
+ <div className="inline-flex items-center h-full px-[0.5rem] overflow-x-auto">
+ <Button
+ onClick={onHomeClick}
+ variant="outline"
+ className={`h-7 mr-[0.5rem] rounded-md flex items-center ${activeTab === 'home' ? '!bg-[#1d1d1f] !text-white !border-[#2d2d30] !hover:bg-[#1d1d1f] !active:bg-[#1d1d1f] !focus:bg-[#1d1d1f] !hover:text-white !active:text-white !focus:text-white' : ''}`}
+ >
+ <Home className="w-4 h-4"/>
+ </Button>
+ {tabs.map((tab, index) => {
+ const isActive = tab.id === activeTab;
+ return (
+ <div
+ key={tab.id}
+ className={index < tabs.length - 1 ? "mr-[0.5rem]" : ""}
+ >
+ <div className="inline-flex rounded-md shadow-sm" role="group">
+ <Button
+ onClick={() => setActiveTab(tab.id)}
+ variant="outline"
+ className={`h-7 rounded-r-none ${isActive ? '!bg-[#1d1d1f] !text-white !border-[#2d2d30] !hover:bg-[#1d1d1f] !active:bg-[#1d1d1f] !focus:bg-[#1d1d1f] !hover:text-white !active:text-white !focus:text-white' : ''}`}
+ >
+ {tab.title}
+ </Button>
+
+ <Button
+ onClick={() => closeTab(tab.id)}
+ variant="outline"
+ className="h-7 rounded-l-none p-0 !w-9"
+ >
+ <X className="!w-5 !h-5" strokeWidth={2.5}/>
+ </Button>
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Config Editor/ConfigTopbar.tsx b/src/apps/SSH/Config Editor/ConfigTopbar.tsx
new file mode 100644
index 000000000..62637cde6
--- /dev/null
+++ b/src/apps/SSH/Config Editor/ConfigTopbar.tsx
@@ -0,0 +1,8 @@
+import React from "react";
+import { ConfigTabList } from "./ConfigTabList.tsx";
+
+export function ConfigTopbar(props: any): React.ReactElement {
+ return (
+ <ConfigTabList {...props} />
+ )
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Manager/SSHManager.tsx b/src/apps/SSH/Manager/SSHManager.tsx
new file mode 100644
index 000000000..90c117506
--- /dev/null
+++ b/src/apps/SSH/Manager/SSHManager.tsx
@@ -0,0 +1,93 @@
+import React, {useState} from "react";
+import {SSHManagerSidebar} from "@/apps/SSH/Manager/SSHManagerSidebar.tsx";
+import {SSHManagerHostViewer} from "@/apps/SSH/Manager/SSHManagerHostViewer.tsx"
+import {Tabs, TabsContent, TabsList, TabsTrigger} from "@/components/ui/tabs.tsx";
+import {Separator} from "@/components/ui/separator.tsx";
+import {SSHManagerHostEditor} from "@/apps/SSH/Manager/SSHManagerHostEditor.tsx";
+
+interface ConfigEditorProps {
+ onSelectView: (view: string) => void;
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+export function SSHManager({onSelectView}: ConfigEditorProps): React.ReactElement {
+ const [activeTab, setActiveTab] = useState("host_viewer");
+ const [editingHost, setEditingHost] = useState<SSHHost | null>(null);
+
+ const handleEditHost = (host: SSHHost) => {
+ setEditingHost(host);
+ setActiveTab("add_host");
+ };
+
+ const handleFormSubmit = () => {
+ setEditingHost(null);
+ setActiveTab("host_viewer");
+ };
+
+ const handleTabChange = (value: string) => {
+ setActiveTab(value);
+ if (value === "host_viewer") {
+ setEditingHost(null);
+ }
+ };
+
+ return (
+ <div>
+ <SSHManagerSidebar
+ onSelectView={onSelectView}
+ />
+
+ <div className="flex w-screen h-screen overflow-hidden">
+ <div className="w-[256px]"/>
+
+ <div
+ className="flex-1 bg-[#18181b] m-[35px] text-white p-4 rounded-md w-[1200px] border h-[calc(100vh-70px)] flex flex-col min-h-0">
+ <Tabs value={activeTab} onValueChange={handleTabChange}
+ className="flex-1 flex flex-col h-full min-h-0">
+ <TabsList>
+ <TabsTrigger value="host_viewer">Host Viewer</TabsTrigger>
+ <TabsTrigger value="add_host">
+ {editingHost ? "Edit Host" : "Add Host"}
+ </TabsTrigger>
+ </TabsList>
+ <TabsContent value="host_viewer" className="flex-1 flex flex-col h-full min-h-0">
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SSHManagerHostViewer onEditHost={handleEditHost}/>
+ </TabsContent>
+ <TabsContent value="add_host" className="flex-1 flex flex-col h-full min-h-0">
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <div className="flex flex-col h-full min-h-0">
+ <SSHManagerHostEditor
+ editingHost={editingHost}
+ onFormSubmit={handleFormSubmit}
+ />
+ </div>
+ </TabsContent>
+ </Tabs>
+ </div>
+ </div>
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Manager/SSHManagerHostEditor.tsx b/src/apps/SSH/Manager/SSHManagerHostEditor.tsx
new file mode 100644
index 000000000..71c82290c
--- /dev/null
+++ b/src/apps/SSH/Manager/SSHManagerHostEditor.tsx
@@ -0,0 +1,1036 @@
+import {zodResolver} from "@hookform/resolvers/zod"
+import {Controller, useForm} from "react-hook-form"
+import {z} from "zod"
+
+import {Button} from "@/components/ui/button.tsx"
+import {
+ Form,
+ FormControl,
+ FormDescription,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/components/ui/form.tsx";
+import {Input} from "@/components/ui/input.tsx";
+import {ScrollArea} from "@/components/ui/scroll-area"
+import {Separator} from "@/components/ui/separator.tsx";
+import {Tabs, TabsContent, TabsList, TabsTrigger} from "@/components/ui/tabs.tsx";
+import React, {useEffect, useRef, useState} from "react";
+import {Switch} from "@/components/ui/switch.tsx";
+import {Alert, AlertDescription} from "@/components/ui/alert.tsx";
+import {createSSHHost, updateSSHHost, getSSHHosts} from '@/apps/SSH/ssh-axios';
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface SSHManagerHostEditorProps {
+ editingHost?: SSHHost | null;
+ onFormSubmit?: () => void;
+}
+
+export function SSHManagerHostEditor({editingHost, onFormSubmit}: SSHManagerHostEditorProps) {
+ const [hosts, setHosts] = useState<SSHHost[]>([]);
+ const [folders, setFolders] = useState<string[]>([]);
+ const [sshConfigurations, setSshConfigurations] = useState<string[]>([]);
+ const [loading, setLoading] = useState(true);
+
+ const [authTab, setAuthTab] = useState<'password' | 'key'>('password');
+
+ useEffect(() => {
+ const fetchData = async () => {
+ try {
+ setLoading(true);
+ const hostsData = await getSSHHosts();
+ setHosts(hostsData);
+
+ const uniqueFolders = [...new Set(
+ hostsData
+ .filter(host => host.folder && host.folder.trim() !== '')
+ .map(host => host.folder)
+ )].sort();
+
+ const uniqueConfigurations = [...new Set(
+ hostsData
+ .filter(host => host.name && host.name.trim() !== '')
+ .map(host => host.name)
+ )].sort();
+
+ setFolders(uniqueFolders);
+ setSshConfigurations(uniqueConfigurations);
+ } catch (error) {
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ fetchData();
+ }, []);
+
+ const formSchema = z.object({
+ name: z.string().optional(),
+ ip: z.string().min(1),
+ port: z.coerce.number().min(1).max(65535),
+ username: z.string().min(1),
+ folder: z.string().optional(),
+ tags: z.array(z.string().min(1)).default([]),
+ pin: z.boolean().default(false),
+ authType: z.enum(['password', 'key']),
+ password: z.string().optional(),
+ key: z.instanceof(File).optional().nullable(),
+ keyPassword: z.string().optional(),
+ keyType: z.enum([
+ 'auto',
+ 'ssh-rsa',
+ 'ssh-ed25519',
+ 'ecdsa-sha2-nistp256',
+ 'ecdsa-sha2-nistp384',
+ 'ecdsa-sha2-nistp521',
+ 'ssh-dss',
+ 'ssh-rsa-sha2-256',
+ 'ssh-rsa-sha2-512',
+ ]).optional(),
+ enableTerminal: z.boolean().default(true),
+ enableTunnel: z.boolean().default(true),
+ tunnelConnections: z.array(z.object({
+ sourcePort: z.coerce.number().min(1).max(65535),
+ endpointPort: z.coerce.number().min(1).max(65535),
+ endpointHost: z.string().min(1),
+ maxRetries: z.coerce.number().min(0).max(100).default(3),
+ retryInterval: z.coerce.number().min(1).max(3600).default(10),
+ autoStart: z.boolean().default(false),
+ })).default([]),
+ enableConfigEditor: z.boolean().default(true),
+ defaultPath: z.string().optional(),
+ }).superRefine((data, ctx) => {
+ if (data.authType === 'password') {
+ if (!data.password || data.password.trim() === '') {
+ ctx.addIssue({
+ code: z.ZodIssueCode.custom,
+ message: "Password is required when using password authentication",
+ path: ['password']
+ });
+ }
+ } else if (data.authType === 'key') {
+ if (!data.key) {
+ ctx.addIssue({
+ code: z.ZodIssueCode.custom,
+ message: "SSH Private Key is required when using key authentication",
+ path: ['key']
+ });
+ }
+ if (!data.keyType) {
+ ctx.addIssue({
+ code: z.ZodIssueCode.custom,
+ message: "Key Type is required when using key authentication",
+ path: ['keyType']
+ });
+ }
+ }
+
+ data.tunnelConnections.forEach((connection, index) => {
+ if (connection.endpointHost && !sshConfigurations.includes(connection.endpointHost)) {
+ ctx.addIssue({
+ code: z.ZodIssueCode.custom,
+ message: "Must select a valid SSH configuration from the list",
+ path: ['tunnelConnections', index, 'endpointHost']
+ });
+ }
+ });
+ });
+
+ type FormData = z.infer<typeof formSchema>;
+
+ const form = useForm<FormData>({
+ resolver: zodResolver(formSchema) as any,
+ defaultValues: {
+ name: editingHost?.name || "",
+ ip: editingHost?.ip || "",
+ port: editingHost?.port || 22,
+ username: editingHost?.username || "",
+ folder: editingHost?.folder || "",
+ tags: editingHost?.tags || [],
+ pin: editingHost?.pin || false,
+ authType: (editingHost?.authType as 'password' | 'key') || "password",
+ password: "",
+ key: null,
+ keyPassword: "",
+ keyType: "auto",
+ enableTerminal: editingHost?.enableTerminal !== false,
+ enableTunnel: editingHost?.enableTunnel !== false,
+ enableConfigEditor: editingHost?.enableConfigEditor !== false,
+ defaultPath: editingHost?.defaultPath || "/",
+ tunnelConnections: editingHost?.tunnelConnections || [],
+ }
+ });
+
+ useEffect(() => {
+ if (editingHost) {
+ const defaultAuthType = editingHost.key ? 'key' : 'password';
+
+ setAuthTab(defaultAuthType);
+
+ form.reset({
+ name: editingHost.name || "",
+ ip: editingHost.ip || "",
+ port: editingHost.port || 22,
+ username: editingHost.username || "",
+ folder: editingHost.folder || "",
+ tags: editingHost.tags || [],
+ pin: editingHost.pin || false,
+ authType: defaultAuthType,
+ password: editingHost.password || "",
+ key: editingHost.key ? new File([editingHost.key], "key.pem") : null,
+ keyPassword: editingHost.keyPassword || "",
+ keyType: (editingHost.keyType as any) || "auto",
+ enableTerminal: editingHost.enableTerminal !== false,
+ enableTunnel: editingHost.enableTunnel !== false,
+ enableConfigEditor: editingHost.enableConfigEditor !== false,
+ defaultPath: editingHost.defaultPath || "/",
+ tunnelConnections: editingHost.tunnelConnections || [],
+ });
+ } else {
+ setAuthTab('password');
+
+ form.reset({
+ name: "",
+ ip: "",
+ port: 22,
+ username: "",
+ folder: "",
+ tags: [],
+ pin: false,
+ authType: "password",
+ password: "",
+ key: null,
+ keyPassword: "",
+ keyType: "auto",
+ enableTerminal: true,
+ enableTunnel: true,
+ enableConfigEditor: true,
+ defaultPath: "/",
+ tunnelConnections: [],
+ });
+ }
+ }, [editingHost, form]);
+
+ const onSubmit = async (data: any) => {
+ try {
+ const formData = data as FormData;
+
+ if (!formData.name || formData.name.trim() === '') {
+ formData.name = `${formData.username}@${formData.ip}`;
+ }
+
+ if (editingHost) {
+ await updateSSHHost(editingHost.id, formData);
+ } else {
+ await createSSHHost(formData);
+ }
+
+ if (onFormSubmit) {
+ onFormSubmit();
+ }
+ } catch (error) {
+ alert('Failed to save host. Please try again.');
+ }
+ };
+
+ const [tagInput, setTagInput] = useState("");
+
+ const [folderDropdownOpen, setFolderDropdownOpen] = useState(false);
+ const folderInputRef = useRef<HTMLInputElement>(null);
+ const folderDropdownRef = useRef<HTMLDivElement>(null);
+
+ const folderValue = form.watch('folder');
+ const filteredFolders = React.useMemo(() => {
+ if (!folderValue) return folders;
+ return folders.filter(f => f.toLowerCase().includes(folderValue.toLowerCase()));
+ }, [folderValue, folders]);
+
+ const handleFolderClick = (folder: string) => {
+ form.setValue('folder', folder);
+ setFolderDropdownOpen(false);
+ };
+
+ useEffect(() => {
+ function handleClickOutside(event: MouseEvent) {
+ if (
+ folderDropdownRef.current &&
+ !folderDropdownRef.current.contains(event.target as Node) &&
+ folderInputRef.current &&
+ !folderInputRef.current.contains(event.target as Node)
+ ) {
+ setFolderDropdownOpen(false);
+ }
+ }
+
+ if (folderDropdownOpen) {
+ document.addEventListener('mousedown', handleClickOutside);
+ } else {
+ document.removeEventListener('mousedown', handleClickOutside);
+ }
+
+ return () => {
+ document.removeEventListener('mousedown', handleClickOutside);
+ };
+ }, [folderDropdownOpen]);
+
+ const keyTypeOptions = [
+ {value: 'auto', label: 'Auto-detect'},
+ {value: 'ssh-rsa', label: 'RSA'},
+ {value: 'ssh-ed25519', label: 'ED25519'},
+ {value: 'ecdsa-sha2-nistp256', label: 'ECDSA NIST P-256'},
+ {value: 'ecdsa-sha2-nistp384', label: 'ECDSA NIST P-384'},
+ {value: 'ecdsa-sha2-nistp521', label: 'ECDSA NIST P-521'},
+ {value: 'ssh-dss', label: 'DSA'},
+ {value: 'ssh-rsa-sha2-256', label: 'RSA SHA2-256'},
+ {value: 'ssh-rsa-sha2-512', label: 'RSA SHA2-512'},
+ ];
+
+ const [keyTypeDropdownOpen, setKeyTypeDropdownOpen] = useState(false);
+ const keyTypeButtonRef = useRef<HTMLButtonElement>(null);
+ const keyTypeDropdownRef = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ function onClickOutside(event: MouseEvent) {
+ if (
+ keyTypeDropdownOpen &&
+ keyTypeDropdownRef.current &&
+ !keyTypeDropdownRef.current.contains(event.target as Node) &&
+ keyTypeButtonRef.current &&
+ !keyTypeButtonRef.current.contains(event.target as Node)
+ ) {
+ setKeyTypeDropdownOpen(false);
+ }
+ }
+
+ document.addEventListener("mousedown", onClickOutside);
+ return () => document.removeEventListener("mousedown", onClickOutside);
+ }, [keyTypeDropdownOpen]);
+
+ const [sshConfigDropdownOpen, setSshConfigDropdownOpen] = useState<{ [key: number]: boolean }>({});
+ const sshConfigInputRefs = useRef<{ [key: number]: HTMLInputElement | null }>({});
+ const sshConfigDropdownRefs = useRef<{ [key: number]: HTMLDivElement | null }>({});
+
+ const getFilteredSshConfigs = (index: number) => {
+ const value = form.watch(`tunnelConnections.${index}.endpointHost`);
+
+ const currentHostName = form.watch('name') || `${form.watch('username')}@${form.watch('ip')}`;
+
+ let filtered = sshConfigurations.filter(config => config !== currentHostName);
+
+ if (value) {
+ filtered = filtered.filter(config =>
+ config.toLowerCase().includes(value.toLowerCase())
+ );
+ }
+
+ return filtered;
+ };
+
+ const handleSshConfigClick = (config: string, index: number) => {
+ form.setValue(`tunnelConnections.${index}.endpointHost`, config);
+ setSshConfigDropdownOpen(prev => ({...prev, [index]: false}));
+ };
+
+ useEffect(() => {
+ function handleSshConfigClickOutside(event: MouseEvent) {
+ const openDropdowns = Object.keys(sshConfigDropdownOpen).filter(key => sshConfigDropdownOpen[parseInt(key)]);
+
+ openDropdowns.forEach((indexStr: string) => {
+ const index = parseInt(indexStr);
+ if (
+ sshConfigDropdownRefs.current[index] &&
+ !sshConfigDropdownRefs.current[index]?.contains(event.target as Node) &&
+ sshConfigInputRefs.current[index] &&
+ !sshConfigInputRefs.current[index]?.contains(event.target as Node)
+ ) {
+ setSshConfigDropdownOpen(prev => ({...prev, [index]: false}));
+ }
+ });
+ }
+
+ const hasOpenDropdowns = Object.values(sshConfigDropdownOpen).some(open => open);
+
+ if (hasOpenDropdowns) {
+ document.addEventListener('mousedown', handleSshConfigClickOutside);
+ } else {
+ document.removeEventListener('mousedown', handleSshConfigClickOutside);
+ }
+
+ return () => {
+ document.removeEventListener('mousedown', handleSshConfigClickOutside);
+ };
+ }, [sshConfigDropdownOpen]);
+
+ return (
+ <div className="flex-1 flex flex-col h-full min-h-0 w-full">
+ <Form {...form}>
+ <form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col flex-1 min-h-0 h-full">
+ <ScrollArea className="flex-1 min-h-0 w-full my-1">
+ <Tabs defaultValue="general" className="w-full">
+ <TabsList>
+ <TabsTrigger value="general">General</TabsTrigger>
+ <TabsTrigger value="terminal">Terminal</TabsTrigger>
+ <TabsTrigger value="tunnel">Tunnel</TabsTrigger>
+ <TabsTrigger value="config_editor">Config Editor</TabsTrigger>
+ </TabsList>
+ <TabsContent value="general">
+ <FormLabel className="mb-3 font-bold">Connection Details</FormLabel>
+ <div className="grid grid-cols-12 gap-4">
+ <FormField
+ control={form.control}
+ name="ip"
+ render={({field}) => (
+ <FormItem className="col-span-5">
+ <FormLabel>IP</FormLabel>
+ <FormControl>
+ <Input placeholder="127.0.0.1" {...field} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="port"
+ render={({field}) => (
+ <FormItem className="col-span-1">
+ <FormLabel>Port</FormLabel>
+ <FormControl>
+ <Input placeholder="22" {...field} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="username"
+ render={({field}) => (
+ <FormItem className="col-span-6">
+ <FormLabel>Username</FormLabel>
+ <FormControl>
+ <Input placeholder="username" {...field} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ </div>
+ <FormLabel className="mb-3 mt-3 font-bold">Organization</FormLabel>
+ <div className="grid grid-cols-26 gap-4">
+ <FormField
+ control={form.control}
+ name="name"
+ render={({field}) => (
+ <FormItem className="col-span-10">
+ <FormLabel>Name</FormLabel>
+ <FormControl>
+ <Input placeholder="host name" {...field} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="folder"
+ render={({field}) => (
+ <FormItem className="col-span-10 relative">
+ <FormLabel>Folder</FormLabel>
+ <FormControl>
+ <Input
+ ref={folderInputRef}
+ placeholder="folder"
+ className="min-h-[40px]"
+ autoComplete="off"
+ value={field.value}
+ onFocus={() => setFolderDropdownOpen(true)}
+ onChange={e => {
+ field.onChange(e);
+ setFolderDropdownOpen(true);
+ }}
+ />
+ </FormControl>
+ {folderDropdownOpen && filteredFolders.length > 0 && (
+ <div
+ ref={folderDropdownRef}
+ className="absolute top-full left-0 z-50 mt-1 w-full bg-[#18181b] border border-input rounded-md shadow-lg max-h-40 overflow-y-auto p-1"
+ >
+ <div className="grid grid-cols-1 gap-1 p-0">
+ {filteredFolders.map((folder) => (
+ <Button
+ key={folder}
+ type="button"
+ variant="ghost"
+ size="sm"
+ className="w-full justify-start text-left rounded px-2 py-1.5 hover:bg-white/15 focus:bg-white/20 focus:outline-none"
+ onClick={() => handleFolderClick(folder)}
+ >
+ {folder}
+ </Button>
+ ))}
+ </div>
+ </div>
+ )}
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="tags"
+ render={({field}) => (
+ <FormItem className="col-span-10 overflow-visible">
+ <FormLabel>Tags</FormLabel>
+ <FormControl>
+ <div
+ className="flex flex-wrap items-center gap-1 border border-input rounded-md px-3 py-2 bg-[#222225] focus-within:ring-2 ring-ring min-h-[40px]">
+ {field.value.map((tag: string, idx: number) => (
+ <span key={tag + idx}
+ className="flex items-center bg-gray-200 text-gray-800 rounded-full px-2 py-0.5 text-xs">
+ {tag}
+ <button
+ type="button"
+ className="ml-1 text-gray-500 hover:text-red-500 focus:outline-none"
+ onClick={() => {
+ const newTags = field.value.filter((_: string, i: number) => i !== idx);
+ field.onChange(newTags);
+ }}
+ >
+ ×
+ </button>
+ </span>
+ ))}
+ <input
+ type="text"
+ className="flex-1 min-w-[60px] border-none outline-none bg-transparent p-0 h-6"
+ value={tagInput}
+ onChange={e => setTagInput(e.target.value)}
+ onKeyDown={e => {
+ if (e.key === " " && tagInput.trim() !== "") {
+ e.preventDefault();
+ if (!field.value.includes(tagInput.trim())) {
+ field.onChange([...field.value, tagInput.trim()]);
+ }
+ setTagInput("");
+ } else if (e.key === "Backspace" && tagInput === "" && field.value.length > 0) {
+ field.onChange(field.value.slice(0, -1));
+ }
+ }}
+ placeholder="add tags (space to add)"
+ />
+ </div>
+ </FormControl>
+ </FormItem>
+ )}
+ />
+
+ <FormField
+ control={form.control}
+ name="pin"
+ render={({field}) => (
+ <FormItem className="col-span-6">
+ <FormLabel>Pin Connection</FormLabel>
+ <FormControl>
+ <Switch
+ checked={field.value}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ </div>
+ <FormLabel className="mb-3 mt-3 font-bold">Authentication</FormLabel>
+ <Tabs
+ value={authTab}
+ onValueChange={(value) => {
+ setAuthTab(value as 'password' | 'key');
+ form.setValue('authType', value as 'password' | 'key');
+ }}
+ className="flex-1 flex flex-col h-full min-h-0"
+ >
+ <TabsList>
+ <TabsTrigger value="password">Password</TabsTrigger>
+ <TabsTrigger value="key">Key</TabsTrigger>
+ </TabsList>
+ <TabsContent value="password">
+ <FormField
+ control={form.control}
+ name="password"
+ render={({field}) => (
+ <FormItem>
+ <FormLabel>Password</FormLabel>
+ <FormControl>
+ <Input placeholder="password" {...field} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ </TabsContent>
+ <TabsContent value="key">
+ <div className="grid grid-cols-15 gap-4">
+ <Controller
+ control={form.control}
+ name="key"
+ render={({field}) => (
+ <FormItem className="col-span-4 overflow-hidden min-w-0">
+ <FormLabel>SSH Private Key</FormLabel>
+ <FormControl>
+ <div className="relative min-w-0">
+ <input
+ id="key-upload"
+ type="file"
+ accept=".pem,.key,.txt,.ppk"
+ onChange={(e) => {
+ const file = e.target.files?.[0];
+ field.onChange(file || null);
+ }}
+ className="absolute inset-0 w-full h-full opacity-0 cursor-pointer"
+ />
+ <Button
+ type="button"
+ variant="outline"
+ className="w-full min-w-0 overflow-hidden px-3 py-2 text-left"
+ >
+ <span className="block w-full truncate"
+ title={field.value?.name || 'Upload'}>
+ {field.value ? (editingHost ? 'Update Key' : field.value.name) : 'Upload'}
+ </span>
+ </Button>
+ </div>
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name="keyPassword"
+ render={({field}) => (
+ <FormItem className="col-span-8">
+ <FormLabel>Key Password</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="key password"
+ type="password"
+ {...field}
+ />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name="keyType"
+ render={({field}) => (
+ <FormItem className="relative col-span-3">
+ <FormLabel>Key Type</FormLabel>
+ <FormControl>
+ <div className="relative">
+ <Button
+ ref={keyTypeButtonRef}
+ type="button"
+ variant="outline"
+ className="w-full justify-start text-left rounded-md px-2 py-2 bg-[#18181b] border border-input text-foreground"
+ onClick={() => setKeyTypeDropdownOpen((open) => !open)}
+ >
+ {keyTypeOptions.find((opt) => opt.value === field.value)?.label || "Auto-detect"}
+ </Button>
+ {keyTypeDropdownOpen && (
+ <div
+ ref={keyTypeDropdownRef}
+ className="absolute bottom-full left-0 z-50 mb-1 w-full bg-[#18181b] border border-input rounded-md shadow-lg max-h-40 overflow-y-auto p-1"
+ >
+ <div className="grid grid-cols-1 gap-1 p-0">
+ {keyTypeOptions.map((opt) => (
+ <Button
+ key={opt.value}
+ type="button"
+ variant="ghost"
+ size="sm"
+ className="w-full justify-start text-left rounded-md px-2 py-1.5 bg-[#18181b] text-foreground hover:bg-white/15 focus:bg-white/20 focus:outline-none"
+ onClick={() => {
+ field.onChange(opt.value);
+ setKeyTypeDropdownOpen(false);
+ }}
+ >
+ {opt.label}
+ </Button>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ </div>
+ </TabsContent>
+ </Tabs>
+ </TabsContent>
+ <TabsContent value="terminal">
+ <FormField
+ control={form.control}
+ name="enableTerminal"
+ render={({field}) => (
+ <FormItem>
+ <FormLabel>Enable Terminal</FormLabel>
+ <FormControl>
+ <Switch
+ checked={field.value}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ <FormDescription>
+ Enable/disable host visibility in Terminal tab.
+ </FormDescription>
+ </FormItem>
+ )}
+ />
+ </TabsContent>
+ <TabsContent value="tunnel">
+ <FormField
+ control={form.control}
+ name="enableTunnel"
+ render={({field}) => (
+ <FormItem>
+ <FormLabel>Enable Tunnel</FormLabel>
+ <FormControl>
+ <Switch
+ checked={field.value}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ <FormDescription>
+ Enable/disable host visibility in Tunnel tab.
+ </FormDescription>
+ </FormItem>
+ )}
+ />
+
+ {form.watch('enableTunnel') && (
+ <>
+ <Alert className="mt-4">
+ <AlertDescription>
+ <strong>Sshpass Required For Password Authentication</strong>
+ <div>
+ For password-based SSH authentication, sshpass must be installed on
+ both the local and remote servers. Install with: <code
+ className="bg-muted px-1 rounded inline">sudo apt install
+ sshpass</code> (Debian/Ubuntu) or the equivalent for your OS.
+ </div>
+ <div className="mt-2">
+ <strong>Other installation methods:</strong>
+ <div>• CentOS/RHEL/Fedora: <code
+ className="bg-muted px-1 rounded inline">sudo yum install
+ sshpass</code> or <code
+ className="bg-muted px-1 rounded inline">sudo dnf install
+ sshpass</code></div>
+ <div>• macOS: <code className="bg-muted px-1 rounded inline">brew
+ install hudochenkov/sshpass/sshpass</code></div>
+ <div>• Windows: Use WSL or consider SSH key authentication</div>
+ </div>
+ </AlertDescription>
+ </Alert>
+
+ <Alert className="mt-4">
+ <AlertDescription>
+ <strong>SSH Server Configuration Required</strong>
+ <div>For reverse SSH tunnels, the endpoint SSH server must allow:</div>
+ <div>• <code className="bg-muted px-1 rounded inline">GatewayPorts
+ yes</code> (bind remote ports)
+ </div>
+ <div>• <code className="bg-muted px-1 rounded inline">AllowTcpForwarding
+ yes</code> (port forwarding)
+ </div>
+ <div>• <code className="bg-muted px-1 rounded inline">PermitRootLogin
+ yes</code> (if using root)
+ </div>
+ <div className="mt-2">Edit <code
+ className="bg-muted px-1 rounded inline">/etc/ssh/sshd_config</code> and
+ restart SSH: <code className="bg-muted px-1 rounded inline">sudo
+ systemctl restart sshd</code></div>
+ </AlertDescription>
+ </Alert>
+
+ <FormField
+ control={form.control}
+ name="tunnelConnections"
+ render={({field}) => (
+ <FormItem className="mt-4">
+ <FormLabel>Tunnel Connections</FormLabel>
+ <FormControl>
+ <div className="space-y-4">
+ {field.value.map((connection, index) => (
+ <div key={index}
+ className="p-4 border rounded-lg bg-muted/50">
+ <div
+ className="flex items-center justify-between mb-3">
+ <h4 className="text-sm font-bold">Connection {index + 1}</h4>
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ onClick={() => {
+ const newConnections = field.value.filter((_, i) => i !== index);
+ field.onChange(newConnections);
+ }}
+ >
+ Remove
+ </Button>
+ </div>
+ <div className="grid grid-cols-12 gap-4">
+ <FormField
+ control={form.control}
+ name={`tunnelConnections.${index}.sourcePort`}
+ render={({field: sourcePortField}) => (
+ <FormItem className="col-span-4">
+ <FormLabel>Source Port
+ (Local)</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="22" {...sourcePortField} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name={`tunnelConnections.${index}.endpointPort`}
+ render={({field: endpointPortField}) => (
+ <FormItem className="col-span-4">
+ <FormLabel>Endpoint Port
+ (Remote)</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="224" {...endpointPortField} />
+ </FormControl>
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name={`tunnelConnections.${index}.endpointHost`}
+ render={({field: endpointHostField}) => (
+ <FormItem
+ className="col-span-4 relative">
+ <FormLabel>Endpoint SSH
+ Configuration</FormLabel>
+ <FormControl>
+ <Input
+ ref={(el) => {
+ sshConfigInputRefs.current[index] = el;
+ }}
+ placeholder="endpoint ssh configuration"
+ className="min-h-[40px]"
+ autoComplete="off"
+ value={endpointHostField.value}
+ onFocus={() => setSshConfigDropdownOpen(prev => ({
+ ...prev,
+ [index]: true
+ }))}
+ onChange={e => {
+ endpointHostField.onChange(e);
+ setSshConfigDropdownOpen(prev => ({
+ ...prev,
+ [index]: true
+ }));
+ }}
+ />
+ </FormControl>
+ {sshConfigDropdownOpen[index] && getFilteredSshConfigs(index).length > 0 && (
+ <div
+ ref={(el) => {
+ sshConfigDropdownRefs.current[index] = el;
+ }}
+ className="absolute top-full left-0 z-50 mt-1 w-full bg-[#18181b] border border-input rounded-md shadow-lg max-h-40 overflow-y-auto p-1"
+ >
+ <div
+ className="grid grid-cols-1 gap-1 p-0">
+ {getFilteredSshConfigs(index).map((config) => (
+ <Button
+ key={config}
+ type="button"
+ variant="ghost"
+ size="sm"
+ className="w-full justify-start text-left rounded px-2 py-1.5 hover:bg-white/15 focus:bg-white/20 focus:outline-none"
+ onClick={() => handleSshConfigClick(config, index)}
+ >
+ {config}
+ </Button>
+ ))}
+ </div>
+ </div>
+ )}
+ </FormItem>
+ )}
+ />
+ </div>
+
+ <p className="text-sm text-muted-foreground mt-2">
+ This tunnel will forward traffic from
+ port {form.watch(`tunnelConnections.${index}.sourcePort`) || '22'} on
+ the source machine (current connection details
+ in general tab) to
+ port {form.watch(`tunnelConnections.${index}.endpointPort`) || '224'} on
+ the endpoint machine.
+ </p>
+
+ <div className="grid grid-cols-12 gap-4 mt-4">
+ <FormField
+ control={form.control}
+ name={`tunnelConnections.${index}.maxRetries`}
+ render={({field: maxRetriesField}) => (
+ <FormItem className="col-span-4">
+ <FormLabel>Max Retries</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="3" {...maxRetriesField} />
+ </FormControl>
+ <FormDescription>
+ Maximum number of retry attempts
+ for tunnel connection.
+ </FormDescription>
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name={`tunnelConnections.${index}.retryInterval`}
+ render={({field: retryIntervalField}) => (
+ <FormItem className="col-span-4">
+ <FormLabel>Retry Interval
+ (seconds)</FormLabel>
+ <FormControl>
+ <Input
+ placeholder="10" {...retryIntervalField} />
+ </FormControl>
+ <FormDescription>
+ Time to wait between retry
+ attempts.
+ </FormDescription>
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name={`tunnelConnections.${index}.autoStart`}
+ render={({field}) => (
+ <FormItem className="col-span-4">
+ <FormLabel>Auto Start on Container
+ Launch</FormLabel>
+ <FormControl>
+ <Switch
+ checked={field.value}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ <FormDescription>
+ Automatically start this tunnel
+ when the container launches.
+ </FormDescription>
+ </FormItem>
+ )}
+ />
+ </div>
+ </div>
+ ))}
+ <Button
+ type="button"
+ variant="outline"
+ onClick={() => {
+ field.onChange([...field.value, {
+ sourcePort: 22,
+ endpointPort: 224,
+ endpointHost: "",
+ maxRetries: 3,
+ retryInterval: 10,
+ autoStart: false,
+ }]);
+ }}
+ >
+ Add Tunnel Connection
+ </Button>
+ </div>
+ </FormControl>
+ </FormItem>
+ )}
+ />
+
+
+ </>
+ )}
+ </TabsContent>
+ <TabsContent value="config_editor">
+ <FormField
+ control={form.control}
+ name="enableConfigEditor"
+ render={({field}) => (
+ <FormItem>
+ <FormLabel>Enable Config Editor</FormLabel>
+ <FormControl>
+ <Switch
+ checked={field.value}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ <FormDescription>
+ Enable/disable host visibility in Config Editor tab.
+ </FormDescription>
+ </FormItem>
+ )}
+ />
+
+ {form.watch('enableConfigEditor') && (
+ <div className="mt-4">
+ <FormField
+ control={form.control}
+ name="defaultPath"
+ render={({field}) => (
+ <FormItem>
+ <FormLabel>Default Path</FormLabel>
+ <FormControl>
+ <Input placeholder="/home" {...field} />
+ </FormControl>
+ <FormDescription>Set default directory shown when connected via
+ Config Editor</FormDescription>
+ </FormItem>
+ )}
+ />
+ </div>
+ )}
+ </TabsContent>
+ </Tabs>
+ </ScrollArea>
+ <footer className="shrink-0 w-full">
+ <Separator className="p-0.25 mt-1 mb-3"/>
+ <Button type="submit" variant="outline">{editingHost ? "Update Host" : "Add Host"}</Button>
+ </footer>
+ </form>
+ </Form>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Manager/SSHManagerHostViewer.tsx b/src/apps/SSH/Manager/SSHManagerHostViewer.tsx
new file mode 100644
index 000000000..7fa5e714c
--- /dev/null
+++ b/src/apps/SSH/Manager/SSHManagerHostViewer.tsx
@@ -0,0 +1,312 @@
+import React, {useState, useEffect, useMemo} from "react";
+import {Card, CardContent} from "@/components/ui/card";
+import {Button} from "@/components/ui/button";
+import {Badge} from "@/components/ui/badge";
+import {ScrollArea} from "@/components/ui/scroll-area";
+import {Input} from "@/components/ui/input";
+import {Accordion, AccordionContent, AccordionItem, AccordionTrigger} from "@/components/ui/accordion";
+import {getSSHHosts, deleteSSHHost} from "@/apps/SSH/ssh-axios";
+import {Edit, Trash2, Server, Folder, Tag, Pin, Terminal, Network, FileEdit, Search} from "lucide-react";
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface SSHManagerHostViewerProps {
+ onEditHost?: (host: SSHHost) => void;
+}
+
+export function SSHManagerHostViewer({onEditHost}: SSHManagerHostViewerProps) {
+ const [hosts, setHosts] = useState<SSHHost[]>([]);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState<string | null>(null);
+ const [searchQuery, setSearchQuery] = useState("");
+
+ useEffect(() => {
+ fetchHosts();
+ }, []);
+
+ const fetchHosts = async () => {
+ try {
+ setLoading(true);
+ const data = await getSSHHosts();
+ setHosts(data);
+ setError(null);
+ } catch (err) {
+ setError('Failed to load hosts');
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleDelete = async (hostId: number, hostName: string) => {
+ if (window.confirm(`Are you sure you want to delete "${hostName}"?`)) {
+ try {
+ await deleteSSHHost(hostId);
+ await fetchHosts();
+ } catch (err) {
+ alert('Failed to delete host');
+ }
+ }
+ };
+
+ const handleEdit = (host: SSHHost) => {
+ if (onEditHost) {
+ onEditHost(host);
+ }
+ };
+
+ const filteredAndSortedHosts = useMemo(() => {
+ let filtered = hosts;
+
+ if (searchQuery.trim()) {
+ const query = searchQuery.toLowerCase();
+ filtered = hosts.filter(host => {
+ const searchableText = [
+ host.name || '',
+ host.username,
+ host.ip,
+ host.folder || '',
+ ...(host.tags || []),
+ host.authType,
+ host.defaultPath || ''
+ ].join(' ').toLowerCase();
+ return searchableText.includes(query);
+ });
+ }
+
+ return filtered.sort((a, b) => {
+ if (a.pin && !b.pin) return -1;
+ if (!a.pin && b.pin) return 1;
+
+ const aName = a.name || a.username;
+ const bName = b.name || b.username;
+ return aName.localeCompare(bName);
+ });
+ }, [hosts, searchQuery]);
+
+ const hostsByFolder = useMemo(() => {
+ const grouped: { [key: string]: SSHHost[] } = {};
+
+ filteredAndSortedHosts.forEach(host => {
+ const folder = host.folder || 'Uncategorized';
+ if (!grouped[folder]) {
+ grouped[folder] = [];
+ }
+ grouped[folder].push(host);
+ });
+
+ const sortedFolders = Object.keys(grouped).sort((a, b) => {
+ if (a === 'Uncategorized') return -1;
+ if (b === 'Uncategorized') return 1;
+ return a.localeCompare(b);
+ });
+
+ const sortedGrouped: { [key: string]: SSHHost[] } = {};
+ sortedFolders.forEach(folder => {
+ sortedGrouped[folder] = grouped[folder];
+ });
+
+ return sortedGrouped;
+ }, [filteredAndSortedHosts]);
+
+ if (loading) {
+ return (
+ <div className="flex items-center justify-center h-full">
+ <div className="text-center">
+ <div className="animate-spin rounded-full h-8 w-8 border-b-2 border-white mx-auto mb-2"></div>
+ <p className="text-muted-foreground">Loading hosts...</p>
+ </div>
+ </div>
+ );
+ }
+
+ if (error) {
+ return (
+ <div className="flex items-center justify-center h-full">
+ <div className="text-center">
+ <p className="text-red-500 mb-4">{error}</p>
+ <Button onClick={fetchHosts} variant="outline">
+ Retry
+ </Button>
+ </div>
+ </div>
+ );
+ }
+
+ if (hosts.length === 0) {
+ return (
+ <div className="flex items-center justify-center h-full">
+ <div className="text-center">
+ <Server className="h-12 w-12 text-muted-foreground mx-auto mb-4"/>
+ <h3 className="text-lg font-semibold mb-2">No SSH Hosts</h3>
+ <p className="text-muted-foreground mb-4">
+ You haven't added any SSH hosts yet. Click "Add Host" to get started.
+ </p>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div className="flex flex-col h-full min-h-0">
+ <div className="flex items-center justify-between mb-2">
+ <div>
+ <h2 className="text-xl font-semibold">SSH Hosts</h2>
+ <p className="text-muted-foreground">
+ {filteredAndSortedHosts.length} hosts
+ </p>
+ </div>
+ <Button onClick={fetchHosts} variant="outline" size="sm">
+ Refresh
+ </Button>
+ </div>
+
+ <div className="relative mb-3">
+ <Search className="absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"/>
+ <Input
+ placeholder="Search hosts by name, username, IP, folder, tags..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ className="pl-10"
+ />
+ </div>
+
+ <ScrollArea className="flex-1 min-h-0">
+ <div className="space-y-2 pb-20">
+ {Object.entries(hostsByFolder).map(([folder, folderHosts]) => (
+ <div key={folder} className="border rounded-md">
+ <Accordion type="multiple" defaultValue={Object.keys(hostsByFolder)}>
+ <AccordionItem value={folder} className="border-none">
+ <AccordionTrigger
+ className="px-2 py-1 bg-muted/20 border-b hover:no-underline rounded-t-md">
+ <div className="flex items-center gap-2">
+ <Folder className="h-4 w-4"/>
+ <span className="font-medium">{folder}</span>
+ <Badge variant="secondary" className="text-xs">
+ {folderHosts.length}
+ </Badge>
+ </div>
+ </AccordionTrigger>
+ <AccordionContent className="p-2">
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2">
+ {folderHosts.map((host) => (
+ <div
+ key={host.id}
+ className="bg-[#222225] border border-input rounded cursor-pointer hover:shadow-md transition-shadow p-2"
+ onClick={() => handleEdit(host)}
+ >
+ <div className="flex items-start justify-between">
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center gap-1">
+ {host.pin && <Pin
+ className="h-3 w-3 text-yellow-500 flex-shrink-0"/>}
+ <h3 className="font-medium truncate text-sm">
+ {host.name || `${host.username}@${host.ip}`}
+ </h3>
+ </div>
+ <p className="text-xs text-muted-foreground truncate">
+ {host.ip}:{host.port}
+ </p>
+ <p className="text-xs text-muted-foreground truncate">
+ {host.username}
+ </p>
+ </div>
+ <div className="flex gap-1 flex-shrink-0 ml-1">
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={(e) => {
+ e.stopPropagation();
+ handleEdit(host);
+ }}
+ className="h-5 w-5 p-0"
+ >
+ <Edit className="h-3 w-3"/>
+ </Button>
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={(e) => {
+ e.stopPropagation();
+ handleDelete(host.id, host.name || `${host.username}@${host.ip}`);
+ }}
+ className="h-5 w-5 p-0 text-red-500 hover:text-red-700"
+ >
+ <Trash2 className="h-3 w-3"/>
+ </Button>
+ </div>
+ </div>
+
+ <div className="mt-2 space-y-1">
+ {host.tags && host.tags.length > 0 && (
+ <div className="flex flex-wrap gap-1">
+ {host.tags.slice(0, 6).map((tag, index) => (
+ <Badge key={index} variant="secondary"
+ className="text-xs px-1 py-0">
+ <Tag className="h-2 w-2 mr-0.5"/>
+ {tag}
+ </Badge>
+ ))}
+ {host.tags.length > 6 && (
+ <Badge variant="outline"
+ className="text-xs px-1 py-0">
+ +{host.tags.length - 6}
+ </Badge>
+ )}
+ </div>
+ )}
+
+ <div className="flex flex-wrap gap-1">
+ {host.enableTerminal && (
+ <Badge variant="outline" className="text-xs px-1 py-0">
+ <Terminal className="h-2 w-2 mr-0.5"/>
+ Terminal
+ </Badge>
+ )}
+ {host.enableTunnel && (
+ <Badge variant="outline" className="text-xs px-1 py-0">
+ <Network className="h-2 w-2 mr-0.5"/>
+ Tunnel
+ {host.tunnelConnections && host.tunnelConnections.length > 0 && (
+ <span
+ className="ml-0.5">({host.tunnelConnections.length})</span>
+ )}
+ </Badge>
+ )}
+ {host.enableConfigEditor && (
+ <Badge variant="outline" className="text-xs px-1 py-0">
+ <FileEdit className="h-2 w-2 mr-0.5"/>
+ Config
+ </Badge>
+ )}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </AccordionContent>
+ </AccordionItem>
+ </Accordion>
+ </div>
+ ))}
+ </div>
+ </ScrollArea>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Manager/SSHManagerSidebar.tsx b/src/apps/SSH/Manager/SSHManagerSidebar.tsx
new file mode 100644
index 000000000..819830f36
--- /dev/null
+++ b/src/apps/SSH/Manager/SSHManagerSidebar.tsx
@@ -0,0 +1,59 @@
+import React from 'react';
+
+import {
+ CornerDownLeft
+} from "lucide-react"
+
+import {
+ Button
+} from "@/components/ui/button.tsx"
+
+import {
+ Sidebar,
+ SidebarContent,
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarMenu,
+ SidebarMenuItem, SidebarProvider,
+} from "@/components/ui/sidebar.tsx"
+
+import {
+ Separator,
+} from "@/components/ui/separator.tsx"
+
+interface SidebarProps {
+ onSelectView: (view: string) => void;
+}
+
+export function SSHManagerSidebar({onSelectView}: SidebarProps): React.ReactElement {
+ return (
+ <SidebarProvider>
+ <Sidebar>
+ <SidebarContent>
+ <SidebarGroup>
+ <SidebarGroupLabel className="text-lg font-bold text-white flex items-center gap-2">
+ Termix / SSH Manager
+ </SidebarGroupLabel>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarGroupContent className="flex flex-col flex-grow">
+ <SidebarMenu>
+
+ {/* Sidebar Items */}
+ <SidebarMenuItem key={"Homepage"}>
+ <Button className="w-full mt-2 mb-2 h-8" onClick={() => onSelectView("homepage")}
+ variant="outline">
+ <CornerDownLeft/>
+ Return
+ </Button>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ </SidebarMenuItem>
+
+ </SidebarMenu>
+ </SidebarGroupContent>
+ </SidebarGroup>
+ </SidebarContent>
+ </Sidebar>
+ </SidebarProvider>
+ )
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Terminal/SSH.tsx b/src/apps/SSH/Terminal/SSH.tsx
new file mode 100644
index 000000000..46f429614
--- /dev/null
+++ b/src/apps/SSH/Terminal/SSH.tsx
@@ -0,0 +1,704 @@
+import React, {useState, useRef, useEffect} from "react";
+import {SSHSidebar} from "@/apps/SSH/Terminal/SSHSidebar.tsx";
+import {SSHTerminal} from "./SSHTerminal.tsx";
+import {SSHTopbar} from "@/apps/SSH/Terminal/SSHTopbar.tsx";
+import {ResizablePanelGroup, ResizablePanel, ResizableHandle} from '@/components/ui/resizable.tsx';
+import * as ResizablePrimitive from "react-resizable-panels";
+
+interface ConfigEditorProps {
+ onSelectView: (view: string) => void;
+}
+
+type Tab = {
+ id: number;
+ title: string;
+ hostConfig: any;
+ terminalRef: React.RefObject<any>;
+};
+
+export function SSH({onSelectView}: ConfigEditorProps): React.ReactElement {
+ const [allTabs, setAllTabs] = useState<Tab[]>([]);
+ const [currentTab, setCurrentTab] = useState<number | null>(null);
+ const [allSplitScreenTab, setAllSplitScreenTab] = useState<number[]>([]);
+ const nextTabId = useRef(1);
+
+ const [panelRects, setPanelRects] = useState<Record<string, DOMRect | null>>({});
+ const panelRefs = useRef<Record<string, HTMLDivElement | null>>({});
+ const panelGroupRefs = useRef<{ [key: string]: any }>({});
+
+ const setActiveTab = (tabId: number) => {
+ setCurrentTab(tabId);
+ };
+
+ const fitVisibleTerminals = () => {
+ allTabs.forEach((terminal) => {
+ const isVisible =
+ (allSplitScreenTab.length === 0 && terminal.id === currentTab) ||
+ (allSplitScreenTab.length > 0 && (terminal.id === currentTab || allSplitScreenTab.includes(terminal.id)));
+ if (isVisible && terminal.terminalRef && terminal.terminalRef.current && typeof terminal.terminalRef.current.fit === 'function') {
+ terminal.terminalRef.current.fit();
+ }
+ });
+ };
+
+ const setSplitScreenTab = (tabId: number) => {
+ fitVisibleTerminals();
+ setAllSplitScreenTab((prev) => {
+ let next;
+ if (prev.includes(tabId)) {
+ next = prev.filter((id) => id !== tabId);
+ } else if (prev.length < 3) {
+ next = [...prev, tabId];
+ } else {
+ next = prev;
+ }
+ setTimeout(() => fitVisibleTerminals(), 0);
+ return next;
+ });
+ };
+
+ const setCloseTab = (tabId: number) => {
+ const tab = allTabs.find((t) => t.id === tabId);
+ if (tab && tab.terminalRef && tab.terminalRef.current && typeof tab.terminalRef.current.disconnect === "function") {
+ tab.terminalRef.current.disconnect();
+ }
+ setAllTabs((prev) => prev.filter((tab) => tab.id !== tabId));
+ setAllSplitScreenTab((prev) => prev.filter((id) => id !== tabId));
+ if (currentTab === tabId) {
+ const remainingTabs = allTabs.filter((tab) => tab.id !== tabId);
+ setCurrentTab(remainingTabs.length > 0 ? remainingTabs[0].id : null);
+ }
+ };
+
+ const updatePanelRects = () => {
+ setPanelRects((prev) => {
+ const next: Record<string, DOMRect | null> = {...prev};
+ Object.entries(panelRefs.current).forEach(([id, ref]) => {
+ if (ref) {
+ next[id] = ref.getBoundingClientRect();
+ }
+ });
+ return next;
+ });
+ };
+
+ useEffect(() => {
+ const observers: ResizeObserver[] = [];
+ Object.entries(panelRefs.current).forEach(([id, ref]) => {
+ if (ref) {
+ const observer = new ResizeObserver(() => updatePanelRects());
+ observer.observe(ref);
+ observers.push(observer);
+ }
+ });
+ updatePanelRects();
+ return () => {
+ observers.forEach((observer) => observer.disconnect());
+ };
+ }, [allSplitScreenTab, currentTab, allTabs.length]);
+
+ const renderAllTerminals = () => {
+ const layoutStyles: Record<number, React.CSSProperties> = {};
+ const splitTabs = allTabs.filter((tab) => allSplitScreenTab.includes(tab.id));
+ const mainTab = allTabs.find((tab) => tab.id === currentTab);
+ const layoutTabs = [mainTab, ...splitTabs.filter((t) => t && t.id !== (mainTab && mainTab.id))].filter((t): t is Tab => !!t);
+ if (allSplitScreenTab.length === 0 && mainTab) {
+ layoutStyles[mainTab.id] = {
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ zIndex: 20,
+ display: 'block',
+ pointerEvents: 'auto',
+ };
+ } else {
+ layoutTabs.forEach((tab) => {
+ const rect = panelRects[String(tab.id)];
+ if (rect) {
+ const parentRect = panelRefs.current['parent']?.getBoundingClientRect();
+ let top = rect.top, left = rect.left, width = rect.width, height = rect.height;
+ if (parentRect) {
+ top = rect.top - parentRect.top;
+ left = rect.left - parentRect.left;
+ }
+ layoutStyles[tab.id] = {
+ position: 'absolute',
+ top: top + 28,
+ left,
+ width,
+ height: height - 28,
+ zIndex: 20,
+ display: 'block',
+ pointerEvents: 'auto',
+ };
+ }
+ });
+ }
+ return (
+ <div ref={el => {
+ panelRefs.current['parent'] = el;
+ }} style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ zIndex: 1,
+ overflow: 'hidden'
+ }}>
+ {allTabs.map((tab) => {
+ const style = layoutStyles[tab.id]
+ ? {...layoutStyles[tab.id], overflow: 'hidden'}
+ : {display: 'none', overflow: 'hidden'};
+ const isVisible = !!layoutStyles[tab.id];
+ return (
+ <div key={tab.id} style={style} data-terminal-id={tab.id}>
+ <SSHTerminal
+ key={tab.id}
+ ref={tab.terminalRef}
+ hostConfig={tab.hostConfig}
+ isVisible={isVisible}
+ title={tab.title}
+ showTitle={false}
+ splitScreen={allSplitScreenTab.length > 0}
+ />
+ </div>
+ );
+ })}
+ </div>
+ );
+ };
+
+ const renderSplitOverlays = () => {
+ const splitTabs = allTabs.filter((tab) => allSplitScreenTab.includes(tab.id));
+ const mainTab = allTabs.find((tab) => tab.id === currentTab);
+ const layoutTabs = [mainTab, ...splitTabs.filter((t) => t && t.id !== (mainTab && mainTab.id))].filter((t): t is Tab => !!t);
+ if (allSplitScreenTab.length === 0) return null;
+
+ if (layoutTabs.length === 2) {
+ const [tab1, tab2] = layoutTabs;
+ return (
+ <div style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ zIndex: 10,
+ pointerEvents: 'none'
+ }}>
+ <ResizablePrimitive.PanelGroup
+ ref={el => {
+ panelGroupRefs.current['main'] = el;
+ }}
+ direction="horizontal"
+ className="h-full w-full"
+ id="main-horizontal"
+ >
+ <ResizablePanel key={tab1.id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full" id={`panel-${tab1.id}`} order={1}>
+ <div ref={el => {
+ panelRefs.current[String(tab1.id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{tab1.title}</div>
+ </div>
+ </ResizablePanel>
+ <ResizableHandle style={{pointerEvents: 'auto', zIndex: 12}}/>
+ <ResizablePanel key={tab2.id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full" id={`panel-${tab2.id}`} order={2}>
+ <div ref={el => {
+ panelRefs.current[String(tab2.id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{tab2.title}</div>
+ </div>
+ </ResizablePanel>
+ </ResizablePrimitive.PanelGroup>
+ </div>
+ );
+ }
+ if (layoutTabs.length === 3) {
+ return (
+ <div style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ zIndex: 10,
+ pointerEvents: 'none'
+ }}>
+ <ResizablePrimitive.PanelGroup
+ ref={el => {
+ panelGroupRefs.current['main'] = el;
+ }}
+ direction="vertical"
+ className="h-full w-full"
+ id="main-vertical"
+ >
+ <ResizablePanel defaultSize={50} minSize={20} className="!overflow-hidden h-full w-full"
+ id="top-panel" order={1}>
+ <ResizablePanelGroup ref={el => {
+ panelGroupRefs.current['top'] = el;
+ }} direction="horizontal" className="h-full w-full" id="top-horizontal">
+ <ResizablePanel key={layoutTabs[0].id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full"
+ id={`panel-${layoutTabs[0].id}`} order={1}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[0].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[0].title}</div>
+ </div>
+ </ResizablePanel>
+ <ResizableHandle style={{pointerEvents: 'auto', zIndex: 12}}/>
+ <ResizablePanel key={layoutTabs[1].id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full"
+ id={`panel-${layoutTabs[1].id}`} order={2}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[1].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[1].title}</div>
+ </div>
+ </ResizablePanel>
+ </ResizablePanelGroup>
+ </ResizablePanel>
+ <ResizableHandle style={{pointerEvents: 'auto', zIndex: 12}}/>
+ <ResizablePanel defaultSize={50} minSize={20} className="!overflow-hidden h-full w-full"
+ id="bottom-panel" order={2}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[2].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[2].title}</div>
+ </div>
+ </ResizablePanel>
+ </ResizablePrimitive.PanelGroup>
+ </div>
+ );
+ }
+ if (layoutTabs.length === 4) {
+ return (
+ <div style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ width: '100%',
+ height: '100%',
+ zIndex: 10,
+ pointerEvents: 'none'
+ }}>
+ <ResizablePrimitive.PanelGroup
+ ref={el => {
+ panelGroupRefs.current['main'] = el;
+ }}
+ direction="vertical"
+ className="h-full w-full"
+ id="main-vertical"
+ >
+ <ResizablePanel defaultSize={50} minSize={20} className="!overflow-hidden h-full w-full"
+ id="top-panel" order={1}>
+ <ResizablePanelGroup ref={el => {
+ panelGroupRefs.current['top'] = el;
+ }} direction="horizontal" className="h-full w-full" id="top-horizontal">
+ <ResizablePanel key={layoutTabs[0].id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full"
+ id={`panel-${layoutTabs[0].id}`} order={1}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[0].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[0].title}</div>
+ </div>
+ </ResizablePanel>
+ <ResizableHandle style={{pointerEvents: 'auto', zIndex: 12}}/>
+ <ResizablePanel key={layoutTabs[1].id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full"
+ id={`panel-${layoutTabs[1].id}`} order={2}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[1].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[1].title}</div>
+ </div>
+ </ResizablePanel>
+ </ResizablePanelGroup>
+ </ResizablePanel>
+ <ResizableHandle style={{pointerEvents: 'auto', zIndex: 12}}/>
+ <ResizablePanel defaultSize={50} minSize={20} className="!overflow-hidden h-full w-full"
+ id="bottom-panel" order={2}>
+ <ResizablePanelGroup ref={el => {
+ panelGroupRefs.current['bottom'] = el;
+ }} direction="horizontal" className="h-full w-full" id="bottom-horizontal">
+ <ResizablePanel key={layoutTabs[2].id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full"
+ id={`panel-${layoutTabs[2].id}`} order={1}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[2].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[2].title}</div>
+ </div>
+ </ResizablePanel>
+ <ResizableHandle style={{pointerEvents: 'auto', zIndex: 12}}/>
+ <ResizablePanel key={layoutTabs[3].id} defaultSize={50} minSize={20}
+ className="!overflow-hidden h-full w-full"
+ id={`panel-${layoutTabs[3].id}`} order={2}>
+ <div ref={el => {
+ panelRefs.current[String(layoutTabs[3].id)] = el;
+ }} style={{
+ height: '100%',
+ width: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ background: 'transparent',
+ margin: 0,
+ padding: 0,
+ position: 'relative'
+ }}>
+ <div style={{
+ background: '#18181b',
+ color: '#fff',
+ fontSize: 13,
+ height: 28,
+ lineHeight: '28px',
+ padding: '0 10px',
+ borderBottom: '1px solid #222224',
+ letterSpacing: 1,
+ margin: 0,
+ pointerEvents: 'auto',
+ zIndex: 11,
+ }}>{layoutTabs[3].title}</div>
+ </div>
+ </ResizablePanel>
+ </ResizablePanelGroup>
+ </ResizablePanel>
+ </ResizablePrimitive.PanelGroup>
+ </div>
+ );
+ }
+ return null;
+ };
+
+ const onAddHostSubmit = (data: any) => {
+ const id = nextTabId.current++;
+ const title = `${data.ip || "Host"}:${data.port || 22}`;
+ const terminalRef = React.createRef<any>();
+ const newTab: Tab = {
+ id,
+ title,
+ hostConfig: data,
+ terminalRef,
+ };
+ setAllTabs((prev) => [...prev, newTab]);
+ setCurrentTab(id);
+ setAllSplitScreenTab((prev) => prev.filter((tid) => tid !== id));
+ };
+
+ const getUniqueTabTitle = (baseTitle: string) => {
+ let title = baseTitle;
+ let count = 1;
+ const existingTitles = allTabs.map(t => t.title);
+ while (existingTitles.includes(title)) {
+ title = `${baseTitle} (${count})`;
+ count++;
+ }
+ return title;
+ };
+
+ const onHostConnect = (hostConfig: any) => {
+ const baseTitle = hostConfig.name?.trim() ? hostConfig.name : `${hostConfig.ip || "Host"}:${hostConfig.port || 22}`;
+ const title = getUniqueTabTitle(baseTitle);
+ const terminalRef = React.createRef<any>();
+ const id = nextTabId.current++;
+ const newTab: Tab = {
+ id,
+ title,
+ hostConfig,
+ terminalRef,
+ };
+ setAllTabs((prev) => [...prev, newTab]);
+ setCurrentTab(id);
+ setAllSplitScreenTab((prev) => prev.filter((tid) => tid !== id));
+ };
+
+ return (
+ <div style={{display: 'flex', width: '100vw', height: '100vh', overflow: 'hidden'}}>
+ <div style={{
+ width: 256,
+ flexShrink: 0,
+ height: '100vh',
+ position: 'relative',
+ zIndex: 2,
+ margin: 0,
+ padding: 0,
+ border: 'none'
+ }}>
+ <SSHSidebar
+ onSelectView={onSelectView}
+ onAddHostSubmit={onAddHostSubmit}
+ onHostConnect={onHostConnect}
+ allTabs={allTabs}
+ runCommandOnTabs={(tabIds: number[], command: string) => {
+ allTabs.forEach(tab => {
+ if (tabIds.includes(tab.id) && tab.terminalRef?.current?.sendInput) {
+ tab.terminalRef.current.sendInput(command);
+ }
+ });
+ }}
+ />
+ </div>
+ <div
+ className="terminal-container"
+ style={{
+ flex: 1,
+ height: '100vh',
+ position: 'relative',
+ overflow: 'hidden',
+ margin: 0,
+ padding: 0,
+ border: 'none',
+ }}
+ >
+ <div style={{position: 'absolute', top: 0, left: 0, width: '100%', zIndex: 10}}>
+ <SSHTopbar
+ allTabs={allTabs}
+ currentTab={currentTab ?? -1}
+ setActiveTab={setActiveTab}
+ allSplitScreenTab={allSplitScreenTab}
+ setSplitScreenTab={setSplitScreenTab}
+ setCloseTab={setCloseTab}
+ />
+ </div>
+ <div style={{height: 'calc(100% - 46px)', marginTop: 46, position: 'relative'}}>
+ {allTabs.length === 0 && (
+ <div style={{
+ position: 'absolute',
+ top: '50%',
+ left: '50%',
+ transform: 'translate(-50%, -50%)',
+ background: '#18181b',
+ border: '1px solid #434345',
+ borderRadius: '8px',
+ padding: '24px',
+ textAlign: 'center',
+ color: '#f7f7f7',
+ maxWidth: '400px',
+ zIndex: 30
+ }}>
+ <div style={{fontSize: '18px', fontWeight: 'bold', marginBottom: '12px'}}>
+ Welcome to Termix SSH
+ </div>
+ <div style={{fontSize: '14px', color: '#a1a1aa', lineHeight: '1.5'}}>
+ Click on any host title in the sidebar to open a terminal connection, or use the "Add
+ Host" button to create a new connection.
+ </div>
+ </div>
+ )}
+ {allSplitScreenTab.length > 0 && (
+ <div style={{position: 'absolute', top: 0, right: 0, zIndex: 20, height: 28}}>
+ <button
+ style={{
+ background: '#18181b',
+ color: '#fff',
+ borderLeft: '1px solid #222224',
+ borderRight: '1px solid #222224',
+ borderTop: 'none',
+ borderBottom: '1px solid #222224',
+ borderRadius: 0,
+ padding: '2px 10px',
+ cursor: 'pointer',
+ fontSize: 13,
+ margin: 0,
+ height: 28,
+ display: 'flex',
+ alignItems: 'center',
+ }}
+ onClick={() => {
+ if (allSplitScreenTab.length === 1) {
+ panelGroupRefs.current['main']?.setLayout([50, 50]);
+ } else if (allSplitScreenTab.length === 2) {
+ panelGroupRefs.current['main']?.setLayout([50, 50]);
+ panelGroupRefs.current['top']?.setLayout([50, 50]);
+ } else if (allSplitScreenTab.length === 3) {
+ panelGroupRefs.current['main']?.setLayout([50, 50]);
+ panelGroupRefs.current['top']?.setLayout([50, 50]);
+ panelGroupRefs.current['bottom']?.setLayout([50, 50]);
+ }
+ }}
+ >
+ Reset Split Sizes
+ </button>
+ </div>
+ )}
+ {renderAllTerminals()}
+ {renderSplitOverlays()}
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Terminal/SSHSidebar.tsx b/src/apps/SSH/Terminal/SSHSidebar.tsx
new file mode 100644
index 000000000..634db0d26
--- /dev/null
+++ b/src/apps/SSH/Terminal/SSHSidebar.tsx
@@ -0,0 +1,383 @@
+import React, {useState} from 'react';
+
+import {
+ CornerDownLeft,
+ Hammer, Pin
+} from "lucide-react"
+
+import {
+ Button
+} from "@/components/ui/button.tsx"
+
+import {
+ Sidebar,
+ SidebarContent,
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarMenu,
+ SidebarMenuItem, SidebarProvider,
+} from "@/components/ui/sidebar.tsx"
+
+import {
+ Separator,
+} from "@/components/ui/separator.tsx"
+import {
+ Sheet,
+ SheetContent,
+ SheetHeader,
+ SheetTitle,
+ SheetTrigger
+} from "@/components/ui/sheet.tsx";
+import {
+ Accordion,
+ AccordionContent,
+ AccordionItem,
+ AccordionTrigger,
+} from "@/components/ui/accordion.tsx";
+import {ScrollArea} from "@/components/ui/scroll-area.tsx";
+import {Input} from "@/components/ui/input.tsx";
+import {getSSHHosts} from "@/apps/SSH/ssh-axios";
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface SidebarProps {
+ onSelectView: (view: string) => void;
+ onHostConnect: (hostConfig: any) => void;
+ allTabs: { id: number; title: string; terminalRef: React.RefObject<any> }[];
+ runCommandOnTabs: (tabIds: number[], command: string) => void;
+}
+
+export function SSHSidebar({onSelectView, onHostConnect, allTabs, runCommandOnTabs}: SidebarProps): React.ReactElement {
+ const [hosts, setHosts] = useState<SSHHost[]>([]);
+ const [hostsLoading, setHostsLoading] = useState(false);
+ const [hostsError, setHostsError] = useState<string | null>(null);
+ const prevHostsRef = React.useRef<SSHHost[]>([]);
+
+ const fetchHosts = React.useCallback(async () => {
+ setHostsLoading(true);
+ setHostsError(null);
+ try {
+ const newHosts = await getSSHHosts();
+ const terminalHosts = newHosts.filter(host => host.enableTerminal);
+
+ const prevHosts = prevHostsRef.current;
+ const isSame =
+ terminalHosts.length === prevHosts.length &&
+ terminalHosts.every((h: SSHHost, i: number) => {
+ const prev = prevHosts[i];
+ if (!prev) return false;
+ return (
+ h.id === prev.id &&
+ h.name === prev.name &&
+ h.folder === prev.folder &&
+ h.ip === prev.ip &&
+ h.port === prev.port &&
+ h.username === prev.username &&
+ h.password === prev.password &&
+ h.authType === prev.authType &&
+ h.key === prev.key &&
+ h.pin === prev.pin &&
+ JSON.stringify(h.tags) === JSON.stringify(prev.tags)
+ );
+ });
+ if (!isSame) {
+ setHosts(terminalHosts);
+ prevHostsRef.current = terminalHosts;
+ }
+ } catch (err: any) {
+ setHostsError('Failed to load hosts');
+ } finally {
+ setHostsLoading(false);
+ }
+ }, []);
+
+ React.useEffect(() => {
+ fetchHosts();
+ const interval = setInterval(fetchHosts, 10000);
+ return () => clearInterval(interval);
+ }, [fetchHosts]);
+
+ const [search, setSearch] = useState("");
+ const [debouncedSearch, setDebouncedSearch] = useState("");
+ React.useEffect(() => {
+ const handler = setTimeout(() => setDebouncedSearch(search), 200);
+ return () => clearTimeout(handler);
+ }, [search]);
+
+ const filteredHosts = React.useMemo(() => {
+ if (!debouncedSearch.trim()) return hosts;
+ const q = debouncedSearch.trim().toLowerCase();
+ return hosts.filter(h => {
+ const searchableText = [
+ h.name || '',
+ h.username,
+ h.ip,
+ h.folder || '',
+ ...(h.tags || []),
+ h.authType,
+ h.defaultPath || ''
+ ].join(' ').toLowerCase();
+ return searchableText.includes(q);
+ });
+ }, [hosts, debouncedSearch]);
+
+ const hostsByFolder = React.useMemo(() => {
+ const map: Record<string, SSHHost[]> = {};
+ filteredHosts.forEach(h => {
+ const folder = h.folder && h.folder.trim() ? h.folder : 'No Folder';
+ if (!map[folder]) map[folder] = [];
+ map[folder].push(h);
+ });
+ return map;
+ }, [filteredHosts]);
+
+ const sortedFolders = React.useMemo(() => {
+ const folders = Object.keys(hostsByFolder);
+ folders.sort((a, b) => {
+ if (a === 'No Folder') return -1;
+ if (b === 'No Folder') return 1;
+ return a.localeCompare(b);
+ });
+ return folders;
+ }, [hostsByFolder]);
+
+ const getSortedHosts = (arr: SSHHost[]) => {
+ const pinned = arr.filter(h => h.pin).sort((a, b) => (a.name || '').localeCompare(b.name || ''));
+ const rest = arr.filter(h => !h.pin).sort((a, b) => (a.name || '').localeCompare(b.name || ''));
+ return [...pinned, ...rest];
+ };
+
+ const [toolsSheetOpen, setToolsSheetOpen] = useState(false);
+ const [toolsCommand, setToolsCommand] = useState("");
+ const [selectedTabIds, setSelectedTabIds] = useState<number[]>([]);
+
+ const handleTabToggle = (tabId: number) => {
+ setSelectedTabIds(prev => prev.includes(tabId) ? prev.filter(id => id !== tabId) : [...prev, tabId]);
+ };
+
+ const handleRunCommand = () => {
+ if (selectedTabIds.length && toolsCommand.trim()) {
+ let cmd = toolsCommand;
+ if (!cmd.endsWith("\n")) cmd += "\n";
+ runCommandOnTabs(selectedTabIds, cmd);
+ setToolsCommand("");
+ }
+ };
+
+ return (
+ <SidebarProvider>
+ <Sidebar className="h-full flex flex-col overflow-hidden">
+ <SidebarContent className="flex flex-col flex-grow h-full overflow-hidden">
+ <SidebarGroup className="flex flex-col flex-grow h-full overflow-hidden">
+ <SidebarGroupLabel className="text-lg font-bold text-white flex items-center gap-2">
+ Termix / Terminal
+ </SidebarGroupLabel>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarGroupContent className="flex flex-col flex-grow h-full overflow-hidden">
+ <SidebarMenu className="flex flex-col flex-grow h-full overflow-hidden">
+
+ <SidebarMenuItem key="Homepage">
+ <Button
+ className="w-full mt-2 mb-2 h-8"
+ onClick={() => onSelectView("homepage")}
+ variant="outline"
+ >
+ <CornerDownLeft/>
+ Return
+ </Button>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ </SidebarMenuItem>
+
+ <SidebarMenuItem key="Main" className="flex flex-col flex-grow overflow-hidden">
+ <div
+ className="w-full flex-grow rounded-md bg-[#09090b] border border-[#434345] overflow-hidden p-0 m-0 relative flex flex-col min-h-0">
+ <div className="w-full px-2 pt-2 pb-2 bg-[#09090b] z-10">
+ <Input
+ value={search}
+ onChange={e => setSearch(e.target.value)}
+ placeholder="Search hosts by name, username, IP, folder, tags..."
+ className="w-full h-8 text-sm bg-background border border-border rounded"
+ autoComplete="off"
+ />
+ </div>
+ <div style={{display: 'flex', justifyContent: 'center'}}>
+ <Separator className="w-full h-px bg-[#434345] my-2"
+ style={{maxWidth: 213, margin: '0 auto'}}/>
+ </div>
+ {hostsError && (
+ <div className="px-2 py-1 mt-2">
+ <div
+ className="text-xs text-red-500 bg-red-500/10 rounded px-2 py-1 border border-red-500/20">{hostsError}</div>
+ </div>
+ )}
+ <div className="flex-1 min-h-0">
+ <ScrollArea className="w-full h-full">
+ <Accordion key={`host-accordion-${sortedFolders.length}`}
+ type="multiple" className="w-full"
+ defaultValue={sortedFolders.length > 0 ? sortedFolders : undefined}>
+ {sortedFolders.map((folder, idx) => (
+ <React.Fragment key={folder}>
+ <AccordionItem value={folder}
+ className={idx === 0 ? "mt-0 !border-b-transparent" : "mt-2 !border-b-transparent"}>
+ <AccordionTrigger
+ className="text-base font-semibold rounded-t-none px-3 py-2"
+ style={{marginTop: idx === 0 ? 0 : undefined}}>{folder}</AccordionTrigger>
+ <AccordionContent
+ className="flex flex-col gap-1 px-3 pb-2 pt-1">
+ {getSortedHosts(hostsByFolder[folder]).map(host => (
+ <div key={host.id}
+ className="w-full overflow-hidden">
+ <HostMenuItem
+ host={host}
+ onHostConnect={onHostConnect}
+ />
+ </div>
+ ))}
+ </AccordionContent>
+ </AccordionItem>
+ {idx < sortedFolders.length - 1 && (
+ <div
+ style={{display: 'flex', justifyContent: 'center'}}>
+ <Separator className="h-px bg-[#434345] my-1"
+ style={{width: 213}}/>
+ </div>
+ )}
+ </React.Fragment>
+ ))}
+ </Accordion>
+ </ScrollArea>
+ </div>
+ </div>
+ </SidebarMenuItem>
+ </SidebarMenu>
+ </SidebarGroupContent>
+ <div className="bg-sidebar">
+ <Sheet open={toolsSheetOpen} onOpenChange={setToolsSheetOpen}>
+ <SheetTrigger asChild>
+ <Button
+ className="w-full h-8 mt-2"
+ variant="outline"
+ onClick={() => setToolsSheetOpen(true)}
+ >
+ <Hammer className="mr-2 h-4 w-4"/>
+ Tools
+ </Button>
+ </SheetTrigger>
+ <SheetContent side="left"
+ className="w-[256px] fixed top-0 left-0 h-full z-[100] flex flex-col">
+ <SheetHeader className="pb-0.5">
+ <SheetTitle>Tools</SheetTitle>
+ </SheetHeader>
+ <div className="flex-1 overflow-y-auto px-2 pt-2">
+ <Accordion type="single" collapsible defaultValue="multiwindow">
+ <AccordionItem value="multiwindow">
+ <AccordionTrigger className="text-base font-semibold">Run multiwindow
+ commands</AccordionTrigger>
+ <AccordionContent>
+ <textarea
+ className="w-full min-h-[120px] max-h-48 rounded-md border border-input text-foreground p-2 text-sm font-mono resize-vertical focus:outline-none focus:ring-0"
+ placeholder="Enter command(s) to run on selected tabs..."
+ value={toolsCommand}
+ onChange={e => setToolsCommand(e.target.value)}
+ style={{
+ fontFamily: 'monospace',
+ marginBottom: 8,
+ background: '#141416'
+ }}
+ />
+ <div className="flex flex-wrap gap-2 mb-2">
+ {allTabs.map(tab => (
+ <Button
+ key={tab.id}
+ type="button"
+ variant={selectedTabIds.includes(tab.id) ? "secondary" : "outline"}
+ size="sm"
+ className="rounded-full px-3 py-1 text-xs flex items-center gap-1"
+ onClick={() => handleTabToggle(tab.id)}
+ >
+ {tab.title}
+ </Button>
+ ))}
+ </div>
+ <Button
+ className="w-full"
+ variant="outline"
+ onClick={handleRunCommand}
+ disabled={!toolsCommand.trim() || !selectedTabIds.length}
+ >
+ Run Command
+ </Button>
+ </AccordionContent>
+ </AccordionItem>
+ </Accordion>
+ </div>
+ </SheetContent>
+ </Sheet>
+ </div>
+ </SidebarGroup>
+ </SidebarContent>
+ </Sidebar>
+ </SidebarProvider>
+ );
+}
+
+const HostMenuItem = React.memo(function HostMenuItem({host, onHostConnect}: {
+ host: SSHHost;
+ onHostConnect: (hostConfig: any) => void
+}) {
+ const tags = Array.isArray(host.tags) ? host.tags : [];
+ const hasTags = tags.length > 0;
+ return (
+ <div className="relative group flex flex-col mb-1 w-full overflow-hidden">
+ <div className={`flex flex-col w-full rounded overflow-hidden border border-[#434345] bg-[#18181b] h-full`}>
+ <div className="flex w-full h-10">
+ <div
+ className="flex items-center h-full px-2 w-full hover:bg-muted transition-colors cursor-pointer"
+ onClick={() => onHostConnect(host)}
+ >
+ <div className="flex items-center w-full">
+ {host.pin &&
+ <Pin className="h-4.5 mr-1 w-4.5 mt-0.5 text-yellow-500 flex-shrink-0"/>
+ }
+ <span className="font-medium truncate">{host.name || host.ip}</span>
+ </div>
+ </div>
+ </div>
+ {hasTags && (
+ <div
+ className="border-t border-border bg-[#18181b] flex items-center gap-1 px-2 py-2 overflow-x-auto overflow-y-hidden scrollbar-thin scrollbar-thumb-muted-foreground/30 scrollbar-track-transparent"
+ style={{height: 30}}>
+ {tags.map((tag: string) => (
+ <span key={tag}
+ className="bg-muted-foreground/10 text-xs rounded-full px-2 py-0.5 text-muted-foreground whitespace-nowrap border border-border flex-shrink-0 hover:bg-muted transition-colors">
+ {tag}
+ </span>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+});
\ No newline at end of file
diff --git a/src/apps/SSH/Terminal/SSHTabList.tsx b/src/apps/SSH/Terminal/SSHTabList.tsx
new file mode 100644
index 000000000..b60bfbb57
--- /dev/null
+++ b/src/apps/SSH/Terminal/SSHTabList.tsx
@@ -0,0 +1,76 @@
+import React from "react";
+import {Button} from "@/components/ui/button.tsx";
+import {X, SeparatorVertical} from "lucide-react"
+
+interface TerminalTab {
+ id: number;
+ title: string;
+}
+
+interface SSHTabListProps {
+ allTabs: TerminalTab[];
+ currentTab: number;
+ setActiveTab: (tab: number) => void;
+ allSplitScreenTab: number[];
+ setSplitScreenTab: (tab: number) => void;
+ setCloseTab: (tab: number) => void;
+}
+
+export function SSHTabList({
+ allTabs,
+ currentTab,
+ setActiveTab,
+ allSplitScreenTab = [],
+ setSplitScreenTab,
+ setCloseTab,
+ }: SSHTabListProps): React.ReactElement {
+ const isSplitScreenActive = allSplitScreenTab.length > 0;
+
+ return (
+ <div className="inline-flex items-center h-full px-[0.5rem] overflow-x-auto">
+ {allTabs.map((terminal, index) => {
+ const isActive = terminal.id === currentTab;
+ const isSplit = allSplitScreenTab.includes(terminal.id);
+ const isSplitButtonDisabled =
+ (isActive && !isSplitScreenActive) ||
+ (allSplitScreenTab.length >= 3 && !isSplit);
+
+ return (
+ <div
+ key={terminal.id}
+ className={index < allTabs.length - 1 ? "mr-[0.5rem]" : ""}
+ >
+ <div className="inline-flex rounded-md shadow-sm" role="group">
+ <Button
+ onClick={() => setActiveTab(terminal.id)}
+ disabled={isSplit}
+ variant="outline"
+ className={`rounded-r-none ${isActive ? '!bg-[#1d1d1f] !text-white !border-[#2d2d30] !hover:bg-[#1d1d1f] !active:bg-[#1d1d1f] !focus:bg-[#1d1d1f] !hover:text-white !active:text-white !focus:text-white' : ''}`}
+ >
+ {terminal.title}
+ </Button>
+
+ <Button
+ onClick={() => setSplitScreenTab(terminal.id)}
+ disabled={isSplitButtonDisabled || isActive}
+ variant="outline"
+ className="rounded-none p-0 !w-9 !h-9"
+ >
+ <SeparatorVertical className="!w-5 !h-5" strokeWidth={2.5}/>
+ </Button>
+
+ <Button
+ onClick={() => setCloseTab(terminal.id)}
+ disabled={(isSplitScreenActive && isActive) || isSplit}
+ variant="outline"
+ className="rounded-l-none p-0 !w-9 !h-9"
+ >
+ <X className="!w-5 !h-5" strokeWidth={2.5}/>
+ </Button>
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Terminal/SSHTerminal.tsx b/src/apps/SSH/Terminal/SSHTerminal.tsx
new file mode 100644
index 000000000..c198469c7
--- /dev/null
+++ b/src/apps/SSH/Terminal/SSHTerminal.tsx
@@ -0,0 +1,258 @@
+import {useEffect, useRef, useState, useImperativeHandle, forwardRef} from 'react';
+import {useXTerm} from 'react-xtermjs';
+import {FitAddon} from '@xterm/addon-fit';
+import {ClipboardAddon} from '@xterm/addon-clipboard';
+import {Unicode11Addon} from '@xterm/addon-unicode11';
+import {WebLinksAddon} from '@xterm/addon-web-links';
+
+interface SSHTerminalProps {
+ hostConfig: any;
+ isVisible: boolean;
+ title?: string;
+ showTitle?: boolean;
+ splitScreen?: boolean;
+}
+
+export const SSHTerminal = forwardRef<any, SSHTerminalProps>(function SSHTerminal(
+ {hostConfig, isVisible, splitScreen = false},
+ ref
+) {
+ const {instance: terminal, ref: xtermRef} = useXTerm();
+ const fitAddonRef = useRef<FitAddon | null>(null);
+ const webSocketRef = useRef<WebSocket | null>(null);
+ const resizeTimeout = useRef<NodeJS.Timeout | null>(null);
+ const wasDisconnectedBySSH = useRef(false);
+ const pingIntervalRef = useRef<NodeJS.Timeout | null>(null);
+ const [visible, setVisible] = useState(false);
+
+ useImperativeHandle(ref, () => ({
+ disconnect: () => {
+ if (pingIntervalRef.current) {
+ clearInterval(pingIntervalRef.current);
+ pingIntervalRef.current = null;
+ }
+ webSocketRef.current?.close();
+ },
+ fit: () => {
+ fitAddonRef.current?.fit();
+ },
+ sendInput: (data: string) => {
+ if (webSocketRef.current?.readyState === 1) {
+ webSocketRef.current.send(JSON.stringify({type: 'input', data}));
+ }
+ }
+ }), []);
+
+ useEffect(() => {
+ window.addEventListener('resize', handleWindowResize);
+ return () => window.removeEventListener('resize', handleWindowResize);
+ }, []);
+
+ function handleWindowResize() {
+ fitAddonRef.current?.fit();
+ }
+
+ useEffect(() => {
+ if (!terminal || !xtermRef.current || !hostConfig) return;
+
+ terminal.options = {
+ cursorBlink: true,
+ cursorStyle: 'bar',
+ scrollback: 10000,
+ fontSize: 15,
+ fontFamily: '"JetBrains Mono Nerd Font", "MesloLGS NF", "FiraCode Nerd Font", "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace',
+ theme: {
+ background: '#09090b',
+ foreground: '#f7f7f7',
+ },
+ allowTransparency: true,
+ convertEol: true,
+ windowsMode: false,
+ macOptionIsMeta: false,
+ macOptionClickForcesSelection: false,
+ rightClickSelectsWord: false,
+ fastScrollModifier: 'alt',
+ fastScrollSensitivity: 5,
+ allowProposedApi: true,
+ };
+
+ const fitAddon = new FitAddon();
+ const clipboardAddon = new ClipboardAddon();
+ const unicode11Addon = new Unicode11Addon();
+ const webLinksAddon = new WebLinksAddon();
+
+ fitAddonRef.current = fitAddon;
+ terminal.loadAddon(fitAddon);
+ terminal.loadAddon(clipboardAddon);
+ terminal.loadAddon(unicode11Addon);
+ terminal.loadAddon(webLinksAddon);
+ terminal.open(xtermRef.current);
+
+ const resizeObserver = new ResizeObserver(() => {
+ if (resizeTimeout.current) clearTimeout(resizeTimeout.current);
+ resizeTimeout.current = setTimeout(() => {
+ fitAddonRef.current?.fit();
+ const cols = terminal.cols;
+ const rows = terminal.rows;
+ if (webSocketRef.current?.readyState === WebSocket.OPEN) {
+ webSocketRef.current.send(JSON.stringify({type: 'resize', data: {cols, rows}}));
+ }
+ }, 100);
+ });
+
+ resizeObserver.observe(xtermRef.current);
+ setTimeout(() => {
+ fitAddon.fit();
+ setVisible(true);
+
+ const cols = terminal.cols + 1;
+ const rows = terminal.rows;
+ const wsUrl = window.location.hostname === 'localhost'
+ ? 'ws://localhost:8082'
+ : `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://${window.location.host}/ssh/websocket/`;
+
+ const ws = new WebSocket(wsUrl);
+ webSocketRef.current = ws;
+ wasDisconnectedBySSH.current = false;
+
+ ws.addEventListener('open', () => {
+ ws.send(JSON.stringify({type: 'connectToHost', data: {cols, rows, hostConfig}}));
+ terminal.onData((data) => {
+ ws.send(JSON.stringify({type: 'input', data}));
+ });
+
+ pingIntervalRef.current = setInterval(() => {
+ if (ws.readyState === WebSocket.OPEN) {
+ ws.send(JSON.stringify({type: 'ping'}));
+ }
+ }, 30000);
+ });
+
+ ws.addEventListener('message', (event) => {
+ try {
+ const msg = JSON.parse(event.data);
+ if (msg.type === 'data') {
+ terminal.write(msg.data);
+ } else if (msg.type === 'error') {
+ terminal.writeln(`\r\n[ERROR] ${msg.message}`);
+ } else if (msg.type === 'connected') {
+ } else if (msg.type === 'disconnected') {
+ wasDisconnectedBySSH.current = true;
+ terminal.writeln(`\r\n[${msg.message || 'Disconnected'}]`);
+ }
+ } catch (error) {
+ console.error('Error parsing WebSocket message:', error);
+ }
+ });
+
+ ws.addEventListener('close', () => {
+ if (!wasDisconnectedBySSH.current) {
+ terminal.writeln('\r\n[Connection closed]');
+ }
+ });
+
+ ws.addEventListener('error', () => {
+ terminal.writeln('\r\n[Connection error]');
+ });
+ }, 300);
+
+ return () => {
+ resizeObserver.disconnect();
+ if (resizeTimeout.current) clearTimeout(resizeTimeout.current);
+ if (pingIntervalRef.current) {
+ clearInterval(pingIntervalRef.current);
+ pingIntervalRef.current = null;
+ }
+ webSocketRef.current?.close();
+ };
+ }, [xtermRef, terminal, hostConfig]);
+
+ useEffect(() => {
+ if (isVisible && fitAddonRef.current) {
+ fitAddonRef.current.fit();
+ }
+ }, [isVisible]);
+
+ return (
+ <div
+ ref={xtermRef}
+ style={{
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ right: 0,
+ bottom: 0,
+ marginLeft: 2,
+ opacity: visible && isVisible ? 1 : 0,
+ overflow: 'hidden',
+ }}
+ />
+ );
+});
+
+const style = document.createElement('style');
+style.innerHTML = `
+@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
+
+/* Load NerdFonts locally */
+@font-face {
+ font-family: 'JetBrains Mono Nerd Font';
+ src: url('/fonts/JetBrainsMonoNerdFont-Regular.ttf') format('truetype');
+ font-weight: normal;
+ font-style: normal;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: 'JetBrains Mono Nerd Font';
+ src: url('/fonts/JetBrainsMonoNerdFont-Bold.ttf') format('truetype');
+ font-weight: bold;
+ font-style: normal;
+ font-display: swap;
+}
+
+@font-face {
+ font-family: 'JetBrains Mono Nerd Font';
+ src: url('/fonts/JetBrainsMonoNerdFont-Italic.ttf') format('truetype');
+ font-weight: normal;
+ font-style: italic;
+ font-display: swap;
+}
+
+.xterm .xterm-viewport::-webkit-scrollbar {
+ width: 8px;
+ background: transparent;
+}
+.xterm .xterm-viewport::-webkit-scrollbar-thumb {
+ background: rgba(180,180,180,0.7);
+ border-radius: 4px;
+}
+.xterm .xterm-viewport::-webkit-scrollbar-thumb:hover {
+ background: rgba(120,120,120,0.9);
+}
+.xterm .xterm-viewport {
+ scrollbar-width: thin;
+ scrollbar-color: rgba(180,180,180,0.7) transparent;
+}
+
+.xterm {
+ font-feature-settings: "liga" 1, "calt" 1;
+ text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.xterm .xterm-screen {
+ font-family: 'JetBrains Mono Nerd Font', 'MesloLGS NF', 'FiraCode Nerd Font', 'Cascadia Code', 'JetBrains Mono', Consolas, "Courier New", monospace !important;
+ font-variant-ligatures: contextual;
+}
+
+.xterm .xterm-screen .xterm-char {
+ font-feature-settings: "liga" 1, "calt" 1;
+}
+
+.xterm .xterm-screen .xterm-char[data-char-code^="\\uE"] {
+ font-family: 'JetBrains Mono Nerd Font', 'MesloLGS NF', 'FiraCode Nerd Font' !important;
+}
+`;
+document.head.appendChild(style);
diff --git a/src/apps/SSH/Terminal/SSHTopbar.tsx b/src/apps/SSH/Terminal/SSHTopbar.tsx
new file mode 100644
index 000000000..0bfa8ace5
--- /dev/null
+++ b/src/apps/SSH/Terminal/SSHTopbar.tsx
@@ -0,0 +1,44 @@
+import {SSHTabList} from "@/apps/SSH/Terminal/SSHTabList.tsx";
+import React from "react";
+
+interface TerminalTab {
+ id: number;
+ title: string;
+}
+
+interface SSHTopbarProps {
+ allTabs: TerminalTab[];
+ currentTab: number;
+ setActiveTab: (tab: number) => void;
+ allSplitScreenTab: number[];
+ setSplitScreenTab: (tab: number) => void;
+ setCloseTab: (tab: number) => void;
+}
+
+export function SSHTopbar({
+ allTabs,
+ currentTab,
+ setActiveTab,
+ allSplitScreenTab,
+ setSplitScreenTab,
+ setCloseTab
+ }: SSHTopbarProps): React.ReactElement {
+ return (
+ <div className="flex h-11.5 z-100" style={{
+ position: 'absolute',
+ left: 0,
+ width: '100%',
+ backgroundColor: '#18181b',
+ borderBottom: '1px solid #222224',
+ }}>
+ <SSHTabList
+ allTabs={allTabs}
+ currentTab={currentTab}
+ setActiveTab={setActiveTab}
+ allSplitScreenTab={allSplitScreenTab}
+ setSplitScreenTab={setSplitScreenTab}
+ setCloseTab={setCloseTab}
+ />
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Tunnel/SSHTunnel.tsx b/src/apps/SSH/Tunnel/SSHTunnel.tsx
new file mode 100644
index 000000000..83221fa26
--- /dev/null
+++ b/src/apps/SSH/Tunnel/SSHTunnel.tsx
@@ -0,0 +1,160 @@
+import React, {useState, useEffect, useCallback} from "react";
+import {SSHTunnelSidebar} from "@/apps/SSH/Tunnel/SSHTunnelSidebar.tsx";
+import {SSHTunnelViewer} from "@/apps/SSH/Tunnel/SSHTunnelViewer.tsx";
+import {getSSHHosts, getTunnelStatuses, connectTunnel, disconnectTunnel, cancelTunnel} from "@/apps/SSH/ssh-axios";
+
+interface ConfigEditorProps {
+ onSelectView: (view: string) => void;
+}
+
+interface TunnelConnection {
+ sourcePort: number;
+ endpointPort: number;
+ endpointHost: string;
+ maxRetries: number;
+ retryInterval: number;
+ autoStart: boolean;
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: TunnelConnection[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface TunnelStatus {
+ status: string;
+ reason?: string;
+ errorType?: string;
+ retryCount?: number;
+ maxRetries?: number;
+ nextRetryIn?: number;
+ retryExhausted?: boolean;
+}
+
+export function SSHTunnel({onSelectView}: ConfigEditorProps): React.ReactElement {
+ const [hosts, setHosts] = useState<SSHHost[]>([]);
+ const [tunnelStatuses, setTunnelStatuses] = useState<Record<string, TunnelStatus>>({});
+ const [tunnelActions, setTunnelActions] = useState<Record<string, boolean>>({});
+
+ const fetchHosts = useCallback(async () => {
+ try {
+ const hostsData = await getSSHHosts();
+ setHosts(hostsData);
+ } catch (err) {
+ }
+ }, []);
+
+ const fetchTunnelStatuses = useCallback(async () => {
+ try {
+ const statusData = await getTunnelStatuses();
+ setTunnelStatuses(statusData);
+ } catch (err) {
+ }
+ }, []);
+
+ useEffect(() => {
+ fetchHosts();
+ const interval = setInterval(fetchHosts, 10000);
+ return () => clearInterval(interval);
+ }, [fetchHosts]);
+
+ useEffect(() => {
+ fetchTunnelStatuses();
+ const interval = setInterval(fetchTunnelStatuses, 500);
+ return () => clearInterval(interval);
+ }, [fetchTunnelStatuses]);
+
+ const handleTunnelAction = async (action: 'connect' | 'disconnect' | 'cancel', host: SSHHost, tunnelIndex: number) => {
+ const tunnel = host.tunnelConnections[tunnelIndex];
+ const tunnelName = `${host.name || `${host.username}@${host.ip}`}_${tunnel.sourcePort}_${tunnel.endpointPort}`;
+
+ setTunnelActions(prev => ({...prev, [tunnelName]: true}));
+
+ try {
+ if (action === 'connect') {
+ const endpointHost = hosts.find(h =>
+ h.name === tunnel.endpointHost ||
+ `${h.username}@${h.ip}` === tunnel.endpointHost
+ );
+
+ if (!endpointHost) {
+ throw new Error('Endpoint host not found');
+ }
+
+ const tunnelConfig = {
+ name: tunnelName,
+ hostName: host.name || `${host.username}@${host.ip}`,
+ sourceIP: host.ip,
+ sourceSSHPort: host.port,
+ sourceUsername: host.username,
+ sourcePassword: host.authType === 'password' ? host.password : undefined,
+ sourceAuthMethod: host.authType,
+ sourceSSHKey: host.authType === 'key' ? host.key : undefined,
+ sourceKeyPassword: host.authType === 'key' ? host.keyPassword : undefined,
+ sourceKeyType: host.authType === 'key' ? host.keyType : undefined,
+ endpointIP: endpointHost.ip,
+ endpointSSHPort: endpointHost.port,
+ endpointUsername: endpointHost.username,
+ endpointPassword: endpointHost.authType === 'password' ? endpointHost.password : undefined,
+ endpointAuthMethod: endpointHost.authType,
+ endpointSSHKey: endpointHost.authType === 'key' ? endpointHost.key : undefined,
+ endpointKeyPassword: endpointHost.authType === 'key' ? endpointHost.keyPassword : undefined,
+ endpointKeyType: endpointHost.authType === 'key' ? endpointHost.keyType : undefined,
+ sourcePort: tunnel.sourcePort,
+ endpointPort: tunnel.endpointPort,
+ maxRetries: tunnel.maxRetries,
+ retryInterval: tunnel.retryInterval * 1000,
+ autoStart: tunnel.autoStart,
+ isPinned: host.pin
+ };
+
+ await connectTunnel(tunnelConfig);
+ } else if (action === 'disconnect') {
+ await disconnectTunnel(tunnelName);
+ } else if (action === 'cancel') {
+ await cancelTunnel(tunnelName);
+ }
+
+ await fetchTunnelStatuses();
+ } catch (err) {
+ } finally {
+ setTunnelActions(prev => ({...prev, [tunnelName]: false}));
+ }
+ };
+
+ return (
+ <div className="flex h-screen w-full">
+ <div className="w-64 flex-shrink-0">
+ <SSHTunnelSidebar
+ onSelectView={onSelectView}
+ />
+ </div>
+ <div className="flex-1 overflow-auto">
+ <SSHTunnelViewer
+ hosts={hosts}
+ tunnelStatuses={tunnelStatuses}
+ tunnelActions={tunnelActions}
+ onTunnelAction={handleTunnelAction}
+ />
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Tunnel/SSHTunnelObject.tsx b/src/apps/SSH/Tunnel/SSHTunnelObject.tsx
new file mode 100644
index 000000000..298bb4189
--- /dev/null
+++ b/src/apps/SSH/Tunnel/SSHTunnelObject.tsx
@@ -0,0 +1,353 @@
+import React from "react";
+import {Button} from "@/components/ui/button.tsx";
+import {Card, CardContent, CardHeader, CardTitle} from "@/components/ui/card.tsx";
+import {Separator} from "@/components/ui/separator.tsx";
+import {
+ Loader2,
+ Pin,
+ Terminal,
+ Network,
+ FileEdit,
+ Tag,
+ Play,
+ Square,
+ AlertCircle,
+ Clock,
+ Wifi,
+ WifiOff,
+ Zap,
+ X
+} from "lucide-react";
+import {Badge} from "@/components/ui/badge.tsx";
+
+const CONNECTION_STATES = {
+ DISCONNECTED: "disconnected",
+ CONNECTING: "connecting",
+ CONNECTED: "connected",
+ VERIFYING: "verifying",
+ FAILED: "failed",
+ UNSTABLE: "unstable",
+ RETRYING: "retrying",
+ WAITING: "waiting",
+ DISCONNECTING: "disconnecting"
+};
+
+interface TunnelConnection {
+ sourcePort: number;
+ endpointPort: number;
+ endpointHost: string;
+ maxRetries: number;
+ retryInterval: number;
+ autoStart: boolean;
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: TunnelConnection[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface TunnelStatus {
+ status: string;
+ reason?: string;
+ errorType?: string;
+ retryCount?: number;
+ maxRetries?: number;
+ nextRetryIn?: number;
+ retryExhausted?: boolean;
+}
+
+interface SSHTunnelObjectProps {
+ host: SSHHost;
+ tunnelStatuses: Record<string, TunnelStatus>;
+ tunnelActions: Record<string, boolean>;
+ onTunnelAction: (action: 'connect' | 'disconnect' | 'cancel', host: SSHHost, tunnelIndex: number) => Promise<any>;
+}
+
+export function SSHTunnelObject({
+ host,
+ tunnelStatuses,
+ tunnelActions,
+ onTunnelAction
+ }: SSHTunnelObjectProps): React.ReactElement {
+
+ const getTunnelStatus = (tunnelIndex: number): TunnelStatus | undefined => {
+ const tunnel = host.tunnelConnections[tunnelIndex];
+ const tunnelName = `${host.name || `${host.username}@${host.ip}`}_${tunnel.sourcePort}_${tunnel.endpointPort}`;
+ return tunnelStatuses[tunnelName];
+ };
+
+ const getTunnelStatusDisplay = (status: TunnelStatus | undefined) => {
+ if (!status) return {
+ icon: <WifiOff className="h-4 w-4"/>,
+ text: 'Unknown',
+ color: 'text-muted-foreground',
+ bgColor: 'bg-muted/50',
+ borderColor: 'border-border'
+ };
+
+ const statusValue = status.status || 'DISCONNECTED';
+
+ switch (statusValue.toUpperCase()) {
+ case 'CONNECTED':
+ return {
+ icon: <Wifi className="h-4 w-4"/>,
+ text: 'Connected',
+ color: 'text-green-600 dark:text-green-400',
+ bgColor: 'bg-green-500/10 dark:bg-green-400/10',
+ borderColor: 'border-green-500/20 dark:border-green-400/20'
+ };
+ case 'CONNECTING':
+ return {
+ icon: <Loader2 className="h-4 w-4 animate-spin"/>,
+ text: 'Connecting...',
+ color: 'text-blue-600 dark:text-blue-400',
+ bgColor: 'bg-blue-500/10 dark:bg-blue-400/10',
+ borderColor: 'border-blue-500/20 dark:border-blue-400/20'
+ };
+ case 'DISCONNECTING':
+ return {
+ icon: <Loader2 className="h-4 w-4 animate-spin"/>,
+ text: 'Disconnecting...',
+ color: 'text-orange-600 dark:text-orange-400',
+ bgColor: 'bg-orange-500/10 dark:bg-orange-400/10',
+ borderColor: 'border-orange-500/20 dark:border-orange-400/20'
+ };
+ case 'DISCONNECTED':
+ return {
+ icon: <WifiOff className="h-4 w-4"/>,
+ text: 'Disconnected',
+ color: 'text-muted-foreground',
+ bgColor: 'bg-muted/30',
+ borderColor: 'border-border'
+ };
+ case 'WAITING':
+ return {
+ icon: <Clock className="h-4 w-4"/>,
+ color: 'text-blue-600 dark:text-blue-400',
+ bgColor: 'bg-blue-500/10 dark:bg-blue-400/10',
+ borderColor: 'border-blue-500/20 dark:border-blue-400/20'
+ };
+ case 'ERROR':
+ case 'FAILED':
+ return {
+ icon: <AlertCircle className="h-4 w-4"/>,
+ text: status.reason || 'Error',
+ color: 'text-red-600 dark:text-red-400',
+ bgColor: 'bg-red-500/10 dark:bg-red-400/10',
+ borderColor: 'border-red-500/20 dark:border-red-400/20'
+ };
+ default:
+ return {
+ icon: <WifiOff className="h-4 w-4"/>,
+ text: statusValue,
+ color: 'text-muted-foreground',
+ bgColor: 'bg-muted/30',
+ borderColor: 'border-border'
+ };
+ }
+ };
+
+ return (
+ <Card className="w-full bg-card border-border shadow-sm hover:shadow-md transition-shadow relative group p-0">
+ <div className="p-4">
+ {/* Host Header */}
+ <div className="flex items-center justify-between gap-2 mb-3">
+ <div className="flex items-center gap-2 flex-1 min-w-0">
+ {host.pin && <Pin className="h-4 w-4 text-yellow-500 flex-shrink-0"/>}
+ <div className="flex-1 min-w-0">
+ <h3 className="font-semibold text-card-foreground truncate">
+ {host.name || `${host.username}@${host.ip}`}
+ </h3>
+ <p className="text-xs text-muted-foreground truncate">
+ {host.ip}:{host.port} • {host.username}
+ </p>
+ </div>
+ </div>
+ </div>
+
+ {/* Tags */}
+ {host.tags && host.tags.length > 0 && (
+ <div className="flex flex-wrap gap-1 mb-3">
+ {host.tags.slice(0, 3).map((tag, index) => (
+ <Badge key={index} variant="secondary" className="text-xs px-1 py-0">
+ <Tag className="h-2 w-2 mr-0.5"/>
+ {tag}
+ </Badge>
+ ))}
+ {host.tags.length > 3 && (
+ <Badge variant="outline" className="text-xs px-1 py-0">
+ +{host.tags.length - 3}
+ </Badge>
+ )}
+ </div>
+ )}
+
+ <Separator className="mb-3"/>
+
+ {/* Tunnel Connections */}
+ <div className="space-y-3">
+ <h4 className="text-sm font-medium text-card-foreground flex items-center gap-2">
+ <Network className="h-4 w-4"/>
+ Tunnel Connections ({host.tunnelConnections.length})
+ </h4>
+ {host.tunnelConnections && host.tunnelConnections.length > 0 ? (
+ <div className="space-y-3">
+ {host.tunnelConnections.map((tunnel, tunnelIndex) => {
+ const status = getTunnelStatus(tunnelIndex);
+ const statusDisplay = getTunnelStatusDisplay(status);
+ const tunnelName = `${host.name || `${host.username}@${host.ip}`}_${tunnel.sourcePort}_${tunnel.endpointPort}`;
+ const isActionLoading = tunnelActions[tunnelName];
+ const statusValue = status?.status?.toUpperCase() || 'DISCONNECTED';
+ const isConnected = statusValue === 'CONNECTED';
+ const isConnecting = statusValue === 'CONNECTING';
+ const isDisconnecting = statusValue === 'DISCONNECTING';
+ const isRetrying = statusValue === 'RETRYING';
+ const isWaiting = statusValue === 'WAITING';
+
+ return (
+ <div key={tunnelIndex}
+ className={`border rounded-lg p-3 ${statusDisplay.bgColor} ${statusDisplay.borderColor}`}>
+ {/* Tunnel Header */}
+ <div className="flex items-start justify-between gap-2">
+ <div className="flex items-start gap-2 flex-1 min-w-0">
+ <span className={`${statusDisplay.color} mt-0.5 flex-shrink-0`}>
+ {statusDisplay.icon}
+ </span>
+ <div className="flex-1 min-w-0">
+ <div className="text-sm font-medium break-words">
+ Port {tunnel.sourcePort} → {tunnel.endpointHost}:{tunnel.endpointPort}
+ </div>
+ <div className={`text-xs ${statusDisplay.color} font-medium`}>
+ {statusDisplay.text}
+ </div>
+ </div>
+ </div>
+ <div className="flex items-center gap-1 flex-shrink-0">
+ {tunnel.autoStart && (
+ <Badge variant="outline" className="text-xs px-2 py-1">
+ <Zap className="h-3 w-3 mr-1"/>
+ Auto
+ </Badge>
+ )}
+ {/* Action Buttons */}
+ {!isActionLoading && (
+ <div className="flex flex-col gap-1">
+ {isConnected ? (
+ <>
+ <Button
+ size="sm"
+ variant="outline"
+ onClick={() => onTunnelAction('disconnect', host, tunnelIndex)}
+ className="h-7 px-2 text-red-600 dark:text-red-400 border-red-500/30 dark:border-red-400/30 hover:bg-red-500/10 dark:hover:bg-red-400/10 hover:border-red-500/50 dark:hover:border-red-400/50 text-xs"
+ >
+ <Square className="h-3 w-3 mr-1"/>
+ Disconnect
+ </Button>
+ </>
+ ) : isRetrying || isWaiting ? (
+ <Button
+ size="sm"
+ variant="outline"
+ onClick={() => onTunnelAction('cancel', host, tunnelIndex)}
+ className="h-7 px-2 text-orange-600 dark:text-orange-400 border-orange-500/30 dark:border-orange-400/30 hover:bg-orange-500/10 dark:hover:bg-orange-400/10 hover:border-orange-500/50 dark:hover:border-orange-400/50 text-xs"
+ >
+ <X className="h-3 w-3 mr-1"/>
+ Cancel
+ </Button>
+ ) : (
+ <Button
+ size="sm"
+ variant="outline"
+ onClick={() => onTunnelAction('connect', host, tunnelIndex)}
+ disabled={isConnecting || isDisconnecting}
+ className="h-7 px-2 text-green-600 dark:text-green-400 border-green-500/30 dark:border-green-400/30 hover:bg-green-500/10 dark:hover:bg-green-400/10 hover:border-green-500/50 dark:hover:border-green-400/50 text-xs"
+ >
+ <Play className="h-3 w-3 mr-1"/>
+ Connect
+ </Button>
+ )}
+ </div>
+ )}
+ {isActionLoading && (
+ <Button
+ size="sm"
+ variant="outline"
+ disabled
+ className="h-7 px-2 text-muted-foreground border-border text-xs"
+ >
+ <Loader2 className="h-3 w-3 mr-1 animate-spin"/>
+ {isConnected ? 'Disconnecting...' : isRetrying || isWaiting ? 'Canceling...' : 'Connecting...'}
+ </Button>
+ )}
+ </div>
+ </div>
+
+ {/* Error/Status Reason */}
+ {(statusValue === 'ERROR' || statusValue === 'FAILED') && status?.reason && (
+ <div
+ className="mt-2 text-xs text-red-600 dark:text-red-400 bg-red-500/10 dark:bg-red-400/10 rounded px-3 py-2 border border-red-500/20 dark:border-red-400/20">
+ <div className="font-medium mb-1">Error:</div>
+ {status.reason}
+ {status.reason && status.reason.includes('Max retries exhausted') && (
+ <>
+ <div
+ className="mt-2 pt-2 border-t border-red-500/20 dark:border-red-400/20">
+ Check your Docker logs for the error reason, join the <a
+ href="https://discord.com/invite/jVQGdvHDrf" target="_blank"
+ rel="noopener noreferrer"
+ className="underline text-blue-600 dark:text-blue-400">Discord</a> or
+ create a <a
+ href="https://github.com/LukeGus/Termix/issues/new"
+ target="_blank" rel="noopener noreferrer"
+ className="underline text-blue-600 dark:text-blue-400">GitHub
+ issue</a> for help.
+ </div>
+ </>
+ )}
+ </div>
+ )}
+
+ {/* Retry Info */}
+ {(statusValue === 'RETRYING' || statusValue === 'WAITING') && status?.retryCount && status?.maxRetries && (
+ <div
+ className="mt-2 text-xs text-yellow-700 dark:text-yellow-300 bg-yellow-500/10 dark:bg-yellow-400/10 rounded px-3 py-2 border border-yellow-500/20 dark:border-yellow-400/20">
+ <div className="font-medium mb-1">
+ {statusValue === 'WAITING' ? 'Waiting for retry' : 'Retrying connection'}
+ </div>
+ <div>
+ Attempt {status.retryCount} of {status.maxRetries}
+ {status.nextRetryIn && (
+ <span> • Next retry in {status.nextRetryIn} seconds</span>
+ )}
+ </div>
+ </div>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ ) : (
+ <div className="text-center py-4 text-muted-foreground">
+ <Network className="h-8 w-8 mx-auto mb-2 opacity-50"/>
+ <p className="text-sm">No tunnel connections configured</p>
+ </div>
+ )}
+ </div>
+ </div>
+ </Card>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Tunnel/SSHTunnelSidebar.tsx b/src/apps/SSH/Tunnel/SSHTunnelSidebar.tsx
new file mode 100644
index 000000000..342935e98
--- /dev/null
+++ b/src/apps/SSH/Tunnel/SSHTunnelSidebar.tsx
@@ -0,0 +1,59 @@
+import React from 'react';
+
+import {
+ CornerDownLeft,
+ Settings
+} from "lucide-react"
+
+import {
+ Button
+} from "@/components/ui/button.tsx"
+
+import {
+ Sidebar,
+ SidebarContent,
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarMenu,
+ SidebarMenuItem, SidebarProvider,
+} from "@/components/ui/sidebar.tsx"
+
+import {
+ Separator,
+} from "@/components/ui/separator.tsx"
+
+interface SidebarProps {
+ onSelectView: (view: string) => void;
+}
+
+export function SSHTunnelSidebar({onSelectView}: SidebarProps): React.ReactElement {
+ return (
+ <SidebarProvider>
+ <Sidebar>
+ <SidebarContent>
+ <SidebarGroup>
+ <SidebarGroupLabel className="text-lg font-bold text-white flex items-center gap-2">
+ Termix / Tunnel
+ </SidebarGroupLabel>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarGroupContent className="flex flex-col flex-grow">
+ <SidebarMenu>
+
+ <SidebarMenuItem key={"Homepage"}>
+ <Button className="w-full mt-2 mb-2 h-8" onClick={() => onSelectView("homepage")}
+ variant="outline">
+ <CornerDownLeft className="h-4 w-4 mr-2"/>
+ Return
+ </Button>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ </SidebarMenuItem>
+
+ </SidebarMenu>
+ </SidebarGroupContent>
+ </SidebarGroup>
+ </SidebarContent>
+ </Sidebar>
+ </SidebarProvider>
+ )
+}
\ No newline at end of file
diff --git a/src/apps/SSH/Tunnel/SSHTunnelViewer.tsx b/src/apps/SSH/Tunnel/SSHTunnelViewer.tsx
new file mode 100644
index 000000000..0b6a18ed8
--- /dev/null
+++ b/src/apps/SSH/Tunnel/SSHTunnelViewer.tsx
@@ -0,0 +1,184 @@
+import React from "react";
+import {SSHTunnelObject} from "./SSHTunnelObject.tsx";
+import {Accordion, AccordionContent, AccordionItem, AccordionTrigger} from "@/components/ui/accordion.tsx";
+import {Separator} from "@/components/ui/separator.tsx";
+import {Input} from "@/components/ui/input.tsx";
+import {Search} from "lucide-react";
+
+interface TunnelConnection {
+ sourcePort: number;
+ endpointPort: number;
+ endpointHost: string;
+ maxRetries: number;
+ retryInterval: number;
+ autoStart: boolean;
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: TunnelConnection[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface TunnelStatus {
+ status: string;
+ reason?: string;
+ errorType?: string;
+ retryCount?: number;
+ maxRetries?: number;
+ nextRetryIn?: number;
+ retryExhausted?: boolean;
+}
+
+interface SSHTunnelViewerProps {
+ hosts: SSHHost[];
+ tunnelStatuses: Record<string, TunnelStatus>;
+ tunnelActions: Record<string, boolean>;
+ onTunnelAction: (action: 'connect' | 'disconnect' | 'cancel', host: SSHHost, tunnelIndex: number) => Promise<any>;
+}
+
+export function SSHTunnelViewer({
+ hosts = [],
+ tunnelStatuses = {},
+ tunnelActions = {},
+ onTunnelAction
+ }: SSHTunnelViewerProps): React.ReactElement {
+ const [searchQuery, setSearchQuery] = React.useState("");
+ const [debouncedSearch, setDebouncedSearch] = React.useState("");
+
+ React.useEffect(() => {
+ const handler = setTimeout(() => setDebouncedSearch(searchQuery), 200);
+ return () => clearTimeout(handler);
+ }, [searchQuery]);
+
+ const filteredHosts = React.useMemo(() => {
+ if (!debouncedSearch.trim()) return hosts;
+
+ const query = debouncedSearch.trim().toLowerCase();
+ return hosts.filter(host => {
+ const searchableText = [
+ host.name || '',
+ host.username,
+ host.ip,
+ host.folder || '',
+ ...(host.tags || []),
+ host.authType,
+ host.defaultPath || ''
+ ].join(' ').toLowerCase();
+ return searchableText.includes(query);
+ });
+ }, [hosts, debouncedSearch]);
+
+ const tunnelHosts = React.useMemo(() => {
+ return filteredHosts.filter(host =>
+ host.enableTunnel &&
+ host.tunnelConnections &&
+ host.tunnelConnections.length > 0
+ );
+ }, [filteredHosts]);
+
+ const hostsByFolder = React.useMemo(() => {
+ const map: Record<string, SSHHost[]> = {};
+ tunnelHosts.forEach(host => {
+ const folder = host.folder && host.folder.trim() ? host.folder : 'Uncategorized';
+ if (!map[folder]) map[folder] = [];
+ map[folder].push(host);
+ });
+ return map;
+ }, [tunnelHosts]);
+
+ const sortedFolders = React.useMemo(() => {
+ const folders = Object.keys(hostsByFolder);
+ folders.sort((a, b) => {
+ if (a === 'Uncategorized') return -1;
+ if (b === 'Uncategorized') return 1;
+ return a.localeCompare(b);
+ });
+ return folders;
+ }, [hostsByFolder]);
+
+ const getSortedHosts = (arr: SSHHost[]) => {
+ const pinned = arr.filter(h => h.pin).sort((a, b) => (a.name || '').localeCompare(b.name || ''));
+ const rest = arr.filter(h => !h.pin).sort((a, b) => (a.name || '').localeCompare(b.name || ''));
+ return [...pinned, ...rest];
+ };
+
+ return (
+ <div className="w-full p-6" style={{width: 'calc(100vw - 256px)', maxWidth: 'none'}}>
+ <div className="w-full min-w-0" style={{width: '100%', maxWidth: 'none'}}>
+ <div className="mb-6">
+ <h1 className="text-2xl font-bold text-foreground mb-2">
+ SSH Tunnels
+ </h1>
+ <p className="text-muted-foreground">
+ Manage your SSH tunnel connections
+ </p>
+ </div>
+
+ <div className="relative mb-3">
+ <Search
+ className="absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"/>
+ <Input
+ placeholder="Search hosts by name, username, IP, folder, tags..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ className="pl-10"
+ />
+ </div>
+
+ {tunnelHosts.length === 0 ? (
+ <div className="flex flex-col items-center justify-center py-12 text-center">
+ <h3 className="text-lg font-semibold text-foreground mb-2">
+ No SSH Tunnels
+ </h3>
+ <p className="text-muted-foreground max-w-md">
+ {searchQuery.trim() ?
+ "No hosts match your search criteria." :
+ "Create your first SSH tunnel to get started. Use the SSH Manager to add hosts with tunnel connections."
+ }
+ </p>
+ </div>
+ ) : (
+ <Accordion type="multiple" className="w-full" defaultValue={sortedFolders}>
+ {sortedFolders.map((folder, idx) => (
+ <AccordionItem value={folder} key={`folder-${folder}`}
+ className={idx === 0 ? "mt-0" : "mt-2"}>
+ <AccordionTrigger className="text-base font-semibold rounded-t-none px-3 py-2"
+ style={{marginTop: idx === 0 ? 0 : undefined}}>
+ {folder}
+ </AccordionTrigger>
+ <AccordionContent className="flex flex-col gap-1 px-3 pb-2 pt-1">
+ <div className="grid grid-cols-4 gap-6 w-full">
+ {getSortedHosts(hostsByFolder[folder]).map((host, hostIndex) => (
+ <div key={host.id} className="w-full">
+ <SSHTunnelObject
+ host={host}
+ tunnelStatuses={tunnelStatuses}
+ tunnelActions={tunnelActions}
+ onTunnelAction={onTunnelAction}
+ />
+ </div>
+ ))}
+ </div>
+ </AccordionContent>
+ </AccordionItem>
+ ))}
+ </Accordion>
+ )}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/src/apps/SSH/ssh-axios.ts b/src/apps/SSH/ssh-axios.ts
new file mode 100644
index 000000000..2d6abb574
--- /dev/null
+++ b/src/apps/SSH/ssh-axios.ts
@@ -0,0 +1,520 @@
+import axios from 'axios';
+
+interface SSHHostData {
+ name?: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder?: string;
+ tags?: string[];
+ pin?: boolean;
+ authType: 'password' | 'key';
+ password?: string;
+ key?: File | null;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal?: boolean;
+ enableTunnel?: boolean;
+ enableConfigEditor?: boolean;
+ defaultPath?: string;
+ tunnelConnections?: any[];
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: any[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface TunnelConfig {
+ name: string;
+ hostName: string;
+ sourceIP: string;
+ sourceSSHPort: number;
+ sourceUsername: string;
+ sourcePassword?: string;
+ sourceAuthMethod: string;
+ sourceSSHKey?: string;
+ sourceKeyPassword?: string;
+ sourceKeyType?: string;
+ endpointIP: string;
+ endpointSSHPort: number;
+ endpointUsername: string;
+ endpointPassword?: string;
+ endpointAuthMethod: string;
+ endpointSSHKey?: string;
+ endpointKeyPassword?: string;
+ endpointKeyType?: string;
+ sourcePort: number;
+ endpointPort: number;
+ maxRetries: number;
+ retryInterval: number;
+ autoStart: boolean;
+ isPinned: boolean;
+}
+
+interface TunnelStatus {
+ status: string;
+ reason?: string;
+ errorType?: string;
+ retryCount?: number;
+ maxRetries?: number;
+ nextRetryIn?: number;
+ retryExhausted?: boolean;
+}
+
+interface ConfigEditorFile {
+ name: string;
+ path: string;
+ type?: 'file' | 'directory';
+ isSSH?: boolean;
+ sshSessionId?: string;
+}
+
+interface ConfigEditorShortcut {
+ name: string;
+ path: string;
+}
+
+const isLocalhost = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
+
+const sshHostApi = axios.create({
+ baseURL: isLocalhost ? 'http://localhost:8081' : window.location.origin,
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+});
+
+const tunnelApi = axios.create({
+ baseURL: isLocalhost ? 'http://localhost:8083' : window.location.origin,
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+});
+
+const configEditorApi = axios.create({
+ baseURL: isLocalhost ? 'http://localhost:8084' : window.location.origin,
+ headers: {
+ 'Content-Type': 'application/json',
+ }
+})
+
+function getCookie(name: string): string | undefined {
+ const value = `; ${document.cookie}`;
+ const parts = value.split(`; ${name}=`);
+ if (parts.length === 2) return parts.pop()?.split(';').shift();
+}
+
+sshHostApi.interceptors.request.use((config) => {
+ const token = getCookie('jwt');
+ if (token) {
+ config.headers.Authorization = `Bearer ${token}`;
+ }
+ return config;
+});
+
+tunnelApi.interceptors.request.use((config) => {
+ const token = getCookie('jwt');
+ if (token) {
+ config.headers.Authorization = `Bearer ${token}`;
+ }
+ return config;
+});
+
+configEditorApi.interceptors.request.use((config) => {
+ const token = getCookie('jwt');
+ if (token) {
+ config.headers.Authorization = `Bearer ${token}`;
+ }
+ return config;
+});
+
+export async function getSSHHosts(): Promise<SSHHost[]> {
+ try {
+ const response = await sshHostApi.get('/ssh/db/host');
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function createSSHHost(hostData: SSHHostData): Promise<SSHHost> {
+ try {
+ const submitData = {
+ name: hostData.name || '',
+ ip: hostData.ip,
+ port: parseInt(hostData.port.toString()) || 22,
+ username: hostData.username,
+ folder: hostData.folder || '',
+ tags: hostData.tags || [],
+ pin: hostData.pin || false,
+ authMethod: hostData.authType,
+ password: hostData.authType === 'password' ? hostData.password : '',
+ key: hostData.authType === 'key' ? hostData.key : null,
+ keyPassword: hostData.authType === 'key' ? hostData.keyPassword : '',
+ keyType: hostData.authType === 'key' ? hostData.keyType : '',
+ enableTerminal: hostData.enableTerminal !== false,
+ enableTunnel: hostData.enableTunnel !== false,
+ enableConfigEditor: hostData.enableConfigEditor !== false,
+ defaultPath: hostData.defaultPath || '/',
+ tunnelConnections: hostData.tunnelConnections || [],
+ };
+
+ if (!submitData.enableTunnel) {
+ submitData.tunnelConnections = [];
+ }
+
+ if (!submitData.enableConfigEditor) {
+ submitData.defaultPath = '';
+ }
+
+ if (hostData.authType === 'key' && hostData.key instanceof File) {
+ const formData = new FormData();
+ formData.append('key', hostData.key);
+
+ const dataWithoutFile = {...submitData};
+ delete dataWithoutFile.key;
+ formData.append('data', JSON.stringify(dataWithoutFile));
+
+ const response = await sshHostApi.post('/ssh/db/host', formData, {
+ headers: {
+ 'Content-Type': 'multipart/form-data',
+ },
+ });
+
+ return response.data;
+ } else {
+ const response = await sshHostApi.post('/ssh/db/host', submitData);
+ return response.data;
+ }
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function updateSSHHost(hostId: number, hostData: SSHHostData): Promise<SSHHost> {
+ try {
+ const submitData = {
+ name: hostData.name || '',
+ ip: hostData.ip,
+ port: parseInt(hostData.port.toString()) || 22,
+ username: hostData.username,
+ folder: hostData.folder || '',
+ tags: hostData.tags || [],
+ pin: hostData.pin || false,
+ authMethod: hostData.authType,
+ password: hostData.authType === 'password' ? hostData.password : '',
+ key: hostData.authType === 'key' ? hostData.key : null,
+ keyPassword: hostData.authType === 'key' ? hostData.keyPassword : '',
+ keyType: hostData.authType === 'key' ? hostData.keyType : '',
+ enableTerminal: hostData.enableTerminal !== false,
+ enableTunnel: hostData.enableTunnel !== false,
+ enableConfigEditor: hostData.enableConfigEditor !== false,
+ defaultPath: hostData.defaultPath || '/',
+ tunnelConnections: hostData.tunnelConnections || [],
+ };
+
+ if (!submitData.enableTunnel) {
+ submitData.tunnelConnections = [];
+ }
+ if (!submitData.enableConfigEditor) {
+ submitData.defaultPath = '';
+ }
+
+ if (hostData.authType === 'key' && hostData.key instanceof File) {
+ const formData = new FormData();
+ formData.append('key', hostData.key);
+
+ const dataWithoutFile = {...submitData};
+ delete dataWithoutFile.key;
+ formData.append('data', JSON.stringify(dataWithoutFile));
+
+ const response = await sshHostApi.put(`/ssh/db/host/${hostId}`, formData, {
+ headers: {
+ 'Content-Type': 'multipart/form-data',
+ },
+ });
+
+ return response.data;
+ } else {
+ const response = await sshHostApi.put(`/ssh/db/host/${hostId}`, submitData);
+ return response.data;
+ }
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function deleteSSHHost(hostId: number): Promise<any> {
+ try {
+ const response = await sshHostApi.delete(`/ssh/db/host/${hostId}`);
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getSSHHostById(hostId: number): Promise<SSHHost> {
+ try {
+ const response = await sshHostApi.get(`/ssh/db/host/${hostId}`);
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getTunnelStatuses(): Promise<Record<string, TunnelStatus>> {
+ try {
+ const response = await tunnelApi.get('/ssh/tunnel/status');
+ return response.data || {};
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getTunnelStatusByName(tunnelName: string): Promise<TunnelStatus | undefined> {
+ const statuses = await getTunnelStatuses();
+ return statuses[tunnelName];
+}
+
+export async function connectTunnel(tunnelConfig: TunnelConfig): Promise<any> {
+ try {
+ const response = await tunnelApi.post('/ssh/tunnel/connect', tunnelConfig);
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function disconnectTunnel(tunnelName: string): Promise<any> {
+ try {
+ const response = await tunnelApi.post('/ssh/tunnel/disconnect', {tunnelName});
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function cancelTunnel(tunnelName: string): Promise<any> {
+ try {
+ const response = await tunnelApi.post('/ssh/tunnel/cancel', {tunnelName});
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getConfigEditorRecent(hostId: number): Promise<ConfigEditorFile[]> {
+ try {
+ const response = await sshHostApi.get(`/ssh/config_editor/recent?hostId=${hostId}`);
+ return response.data || [];
+ } catch (error) {
+ return [];
+ }
+}
+
+export async function addConfigEditorRecent(file: {
+ name: string;
+ path: string;
+ isSSH: boolean;
+ sshSessionId?: string;
+ hostId: number
+}): Promise<any> {
+ try {
+ const response = await sshHostApi.post('/ssh/config_editor/recent', file);
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function removeConfigEditorRecent(file: {
+ name: string;
+ path: string;
+ isSSH: boolean;
+ sshSessionId?: string;
+ hostId: number
+}): Promise<any> {
+ try {
+ const response = await sshHostApi.delete('/ssh/config_editor/recent', {data: file});
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getConfigEditorPinned(hostId: number): Promise<ConfigEditorFile[]> {
+ try {
+ const response = await sshHostApi.get(`/ssh/config_editor/pinned?hostId=${hostId}`);
+ return response.data || [];
+ } catch (error) {
+ return [];
+ }
+}
+
+export async function addConfigEditorPinned(file: {
+ name: string;
+ path: string;
+ isSSH: boolean;
+ sshSessionId?: string;
+ hostId: number
+}): Promise<any> {
+ try {
+ const response = await sshHostApi.post('/ssh/config_editor/pinned', file);
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function removeConfigEditorPinned(file: {
+ name: string;
+ path: string;
+ isSSH: boolean;
+ sshSessionId?: string;
+ hostId: number
+}): Promise<any> {
+ try {
+ const response = await sshHostApi.delete('/ssh/config_editor/pinned', {data: file});
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getConfigEditorShortcuts(hostId: number): Promise<ConfigEditorShortcut[]> {
+ try {
+ const response = await sshHostApi.get(`/ssh/config_editor/shortcuts?hostId=${hostId}`);
+ return response.data || [];
+ } catch (error) {
+ return [];
+ }
+}
+
+export async function addConfigEditorShortcut(shortcut: {
+ name: string;
+ path: string;
+ isSSH: boolean;
+ sshSessionId?: string;
+ hostId: number
+}): Promise<any> {
+ try {
+ const response = await sshHostApi.post('/ssh/config_editor/shortcuts', shortcut);
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function removeConfigEditorShortcut(shortcut: {
+ name: string;
+ path: string;
+ isSSH: boolean;
+ sshSessionId?: string;
+ hostId: number
+}): Promise<any> {
+ try {
+ const response = await sshHostApi.delete('/ssh/config_editor/shortcuts', {data: shortcut});
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function connectSSH(sessionId: string, config: {
+ ip: string;
+ port: number;
+ username: string;
+ password?: string;
+ sshKey?: string;
+ keyPassword?: string;
+}): Promise<any> {
+ try {
+ const response = await configEditorApi.post('/ssh/config_editor/ssh/connect', {
+ sessionId,
+ ...config
+ });
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function disconnectSSH(sessionId: string): Promise<any> {
+ try {
+ const response = await configEditorApi.post('/ssh/config_editor/ssh/disconnect', {sessionId});
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function getSSHStatus(sessionId: string): Promise<{ connected: boolean }> {
+ try {
+ const response = await configEditorApi.get('/ssh/config_editor/ssh/status', {
+ params: {sessionId}
+ });
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function listSSHFiles(sessionId: string, path: string): Promise<any[]> {
+ try {
+ const response = await configEditorApi.get('/ssh/config_editor/ssh/listFiles', {
+ params: {sessionId, path}
+ });
+ return response.data || [];
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function readSSHFile(sessionId: string, path: string): Promise<{ content: string; path: string }> {
+ try {
+ const response = await configEditorApi.get('/ssh/config_editor/ssh/readFile', {
+ params: {sessionId, path}
+ });
+ return response.data;
+ } catch (error) {
+ throw error;
+ }
+}
+
+export async function writeSSHFile(sessionId: string, path: string, content: string): Promise<any> {
+ try {
+ const response = await configEditorApi.post('/ssh/config_editor/ssh/writeFile', {
+ sessionId,
+ path,
+ content
+ });
+
+ if (response.data && (response.data.message === 'File written successfully' || response.status === 200)) {
+ return response.data;
+ } else {
+ throw new Error('File write operation did not return success status');
+ }
+ } catch (error) {
+ throw error;
+ }
+}
+
+export {sshHostApi, tunnelApi, configEditorApi};
\ No newline at end of file
diff --git a/src/apps/Template/Template.tsx b/src/apps/Template/Template.tsx
new file mode 100644
index 000000000..09c02a2ec
--- /dev/null
+++ b/src/apps/Template/Template.tsx
@@ -0,0 +1,18 @@
+import React from "react";
+import {TemplateSidebar} from "@/apps/Template/TemplateSidebar.tsx";
+
+interface ConfigEditorProps {
+ onSelectView: (view: string) => void;
+}
+
+export function Template({onSelectView}: ConfigEditorProps): React.ReactElement {
+ return (
+ <div>
+ <TemplateSidebar
+ onSelectView={onSelectView}
+ />
+
+ Template
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/src/apps/Template/TemplateSidebar.tsx b/src/apps/Template/TemplateSidebar.tsx
new file mode 100644
index 000000000..eb4f903b8
--- /dev/null
+++ b/src/apps/Template/TemplateSidebar.tsx
@@ -0,0 +1,58 @@
+import React from 'react';
+
+import {
+ CornerDownLeft
+} from "lucide-react"
+
+import {
+ Button
+} from "@/components/ui/button.tsx"
+
+import {
+ Sidebar,
+ SidebarContent,
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarMenu,
+ SidebarMenuItem, SidebarProvider,
+} from "@/components/ui/sidebar.tsx"
+
+import {
+ Separator,
+} from "@/components/ui/separator.tsx"
+
+interface SidebarProps {
+ onSelectView: (view: string) => void;
+}
+
+export function TemplateSidebar({onSelectView}: SidebarProps): React.ReactElement {
+ return (
+ <SidebarProvider>
+ <Sidebar>
+ <SidebarContent>
+ <SidebarGroup>
+ <SidebarGroupLabel className="text-lg font-bold text-white flex items-center gap-2">
+ Termix / Template
+ </SidebarGroupLabel>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ <SidebarGroupContent className="flex flex-col flex-grow">
+ <SidebarMenu>
+
+ <SidebarMenuItem key={"Homepage"}>
+ <Button className="w-full mt-2 mb-2 h-8" onClick={() => onSelectView("homepage")}
+ variant="outline">
+ <CornerDownLeft/>
+ Return
+ </Button>
+ <Separator className="p-0.25 mt-1 mb-1"/>
+ </SidebarMenuItem>
+
+ </SidebarMenu>
+ </SidebarGroupContent>
+ </SidebarGroup>
+ </SidebarContent>
+ </Sidebar>
+ </SidebarProvider>
+ )
+}
\ No newline at end of file
diff --git a/src/backend/config_editor/config_editor.ts b/src/backend/config_editor/config_editor.ts
new file mode 100644
index 000000000..7c4126bc1
--- /dev/null
+++ b/src/backend/config_editor/config_editor.ts
@@ -0,0 +1,439 @@
+import express from 'express';
+import cors from 'cors';
+import {Client as SSHClient} from 'ssh2';
+import chalk from "chalk";
+
+const app = express();
+
+app.use(cors({
+ origin: '*',
+ methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
+ allowedHeaders: ['Content-Type', 'Authorization']
+}));
+app.use(express.json());
+
+const sshIconSymbol = '📁';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${sshIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+interface SSHSession {
+ client: SSHClient;
+ isConnected: boolean;
+ lastActive: number;
+ timeout?: NodeJS.Timeout;
+}
+
+const sshSessions: Record<string, SSHSession> = {};
+const SESSION_TIMEOUT_MS = 10 * 60 * 1000;
+
+function cleanupSession(sessionId: string) {
+ const session = sshSessions[sessionId];
+ if (session) {
+ try {
+ session.client.end();
+ } catch {
+ }
+ clearTimeout(session.timeout);
+ delete sshSessions[sessionId];
+ }
+}
+
+function scheduleSessionCleanup(sessionId: string) {
+ const session = sshSessions[sessionId];
+ if (session) {
+ if (session.timeout) clearTimeout(session.timeout);
+ session.timeout = setTimeout(() => cleanupSession(sessionId), SESSION_TIMEOUT_MS);
+ }
+}
+
+app.post('/ssh/config_editor/ssh/connect', (req, res) => {
+ const {sessionId, ip, port, username, password, sshKey, keyPassword} = req.body;
+ if (!sessionId || !ip || !username || !port) {
+ return res.status(400).json({error: 'Missing SSH connection parameters'});
+ }
+
+ if (sshSessions[sessionId]?.isConnected) cleanupSession(sessionId);
+ const client = new SSHClient();
+ const config: any = {
+ host: ip,
+ port: port || 22,
+ username,
+ readyTimeout: 20000,
+ keepaliveInterval: 10000,
+ keepaliveCountMax: 3,
+ algorithms: {
+ kex: [
+ 'diffie-hellman-group14-sha256',
+ 'diffie-hellman-group14-sha1',
+ 'diffie-hellman-group1-sha1',
+ 'diffie-hellman-group-exchange-sha256',
+ 'diffie-hellman-group-exchange-sha1',
+ 'ecdh-sha2-nistp256',
+ 'ecdh-sha2-nistp384',
+ 'ecdh-sha2-nistp521'
+ ],
+ cipher: [
+ 'aes128-ctr',
+ 'aes192-ctr',
+ 'aes256-ctr',
+ 'aes128-cbc',
+ 'aes192-cbc',
+ 'aes256-cbc',
+ '3des-cbc'
+ ],
+ hmac: [
+ 'hmac-sha2-256',
+ 'hmac-sha2-512',
+ 'hmac-sha1',
+ 'hmac-md5'
+ ],
+ compress: [
+ 'none',
+ 'zlib'
+ ]
+ }
+ };
+
+ if (sshKey && sshKey.trim()) {
+ config.privateKey = sshKey;
+ if (keyPassword) config.passphrase = keyPassword;
+ } else if (password && password.trim()) {
+ config.password = password;
+ } else {
+ return res.status(400).json({error: 'Either password or SSH key must be provided'});
+ }
+
+ let responseSent = false;
+
+ client.on('ready', () => {
+ if (responseSent) return;
+ responseSent = true;
+ sshSessions[sessionId] = {client, isConnected: true, lastActive: Date.now()};
+ scheduleSessionCleanup(sessionId);
+ res.json({status: 'success', message: 'SSH connection established'});
+ });
+
+ client.on('error', (err) => {
+ if (responseSent) return;
+ responseSent = true;
+ logger.error(`SSH connection error for session ${sessionId}:`, err.message);
+ res.status(500).json({status: 'error', message: err.message});
+ });
+
+ client.on('close', () => {
+ if (sshSessions[sessionId]) sshSessions[sessionId].isConnected = false;
+ cleanupSession(sessionId);
+ });
+
+ client.connect(config);
+});
+
+app.post('/ssh/config_editor/ssh/disconnect', (req, res) => {
+ const {sessionId} = req.body;
+ cleanupSession(sessionId);
+ res.json({status: 'success', message: 'SSH connection disconnected'});
+});
+
+app.get('/ssh/config_editor/ssh/status', (req, res) => {
+ const sessionId = req.query.sessionId as string;
+ const isConnected = !!sshSessions[sessionId]?.isConnected;
+ res.json({status: 'success', connected: isConnected});
+});
+
+app.get('/ssh/config_editor/ssh/listFiles', (req, res) => {
+ const sessionId = req.query.sessionId as string;
+ const sshConn = sshSessions[sessionId];
+ const sshPath = decodeURIComponent((req.query.path as string) || '/');
+
+ if (!sessionId) {
+ return res.status(400).json({error: 'Session ID is required'});
+ }
+
+ if (!sshConn?.isConnected) {
+ return res.status(400).json({error: 'SSH connection not established'});
+ }
+
+ sshConn.lastActive = Date.now();
+ scheduleSessionCleanup(sessionId);
+
+ const escapedPath = sshPath.replace(/'/g, "'\"'\"'");
+ sshConn.client.exec(`ls -la '${escapedPath}'`, (err, stream) => {
+ if (err) {
+ logger.error('SSH listFiles error:', err);
+ return res.status(500).json({error: err.message});
+ }
+
+ let data = '';
+ let errorData = '';
+
+ stream.on('data', (chunk: Buffer) => {
+ data += chunk.toString();
+ });
+
+ stream.stderr.on('data', (chunk: Buffer) => {
+ errorData += chunk.toString();
+ });
+
+ stream.on('close', (code) => {
+ if (code !== 0) {
+ logger.error(`SSH listFiles command failed with code ${code}: ${errorData.replace(/\n/g, ' ').trim()}`);
+ return res.status(500).json({error: `Command failed: ${errorData}`});
+ }
+
+ const lines = data.split('\n').filter(line => line.trim());
+ const files = [];
+
+ for (let i = 1; i < lines.length; i++) {
+ const line = lines[i];
+ const parts = line.split(/\s+/);
+ if (parts.length >= 9) {
+ const permissions = parts[0];
+ const name = parts.slice(8).join(' ');
+ const isDirectory = permissions.startsWith('d');
+ const isLink = permissions.startsWith('l');
+
+ if (name === '.' || name === '..') continue;
+
+ files.push({
+ name,
+ type: isDirectory ? 'directory' : (isLink ? 'link' : 'file')
+ });
+ }
+ }
+
+ res.json(files);
+ });
+ });
+});
+
+app.get('/ssh/config_editor/ssh/readFile', (req, res) => {
+ const sessionId = req.query.sessionId as string;
+ const sshConn = sshSessions[sessionId];
+ const filePath = decodeURIComponent(req.query.path as string);
+
+ if (!sessionId) {
+ return res.status(400).json({error: 'Session ID is required'});
+ }
+
+ if (!sshConn?.isConnected) {
+ return res.status(400).json({error: 'SSH connection not established'});
+ }
+
+ if (!filePath) {
+ return res.status(400).json({error: 'File path is required'});
+ }
+
+ sshConn.lastActive = Date.now();
+ scheduleSessionCleanup(sessionId);
+
+ const escapedPath = filePath.replace(/'/g, "'\"'\"'");
+ sshConn.client.exec(`cat '${escapedPath}'`, (err, stream) => {
+ if (err) {
+ logger.error('SSH readFile error:', err);
+ return res.status(500).json({error: err.message});
+ }
+
+ let data = '';
+ let errorData = '';
+
+ stream.on('data', (chunk: Buffer) => {
+ data += chunk.toString();
+ });
+
+ stream.stderr.on('data', (chunk: Buffer) => {
+ errorData += chunk.toString();
+ });
+
+ stream.on('close', (code) => {
+ if (code !== 0) {
+ logger.error(`SSH readFile command failed with code ${code}: ${errorData.replace(/\n/g, ' ').trim()}`);
+ return res.status(500).json({error: `Command failed: ${errorData}`});
+ }
+
+ res.json({content: data, path: filePath});
+ });
+ });
+});
+
+app.post('/ssh/config_editor/ssh/writeFile', (req, res) => {
+ const {sessionId, path: filePath, content} = req.body;
+ const sshConn = sshSessions[sessionId];
+
+ if (!sessionId) {
+ return res.status(400).json({error: 'Session ID is required'});
+ }
+
+ if (!sshConn?.isConnected) {
+ return res.status(400).json({error: 'SSH connection not established'});
+ }
+
+ if (!filePath) {
+ return res.status(400).json({error: 'File path is required'});
+ }
+
+ if (content === undefined) {
+ return res.status(400).json({error: 'File content is required'});
+ }
+
+ sshConn.lastActive = Date.now();
+ scheduleSessionCleanup(sessionId);
+
+ const tempFile = `/tmp/temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
+ const escapedTempFile = tempFile.replace(/'/g, "'\"'\"'");
+ const escapedFilePath = filePath.replace(/'/g, "'\"'\"'");
+
+ const base64Content = Buffer.from(content, 'utf8').toString('base64');
+
+ const commandTimeout = setTimeout(() => {
+ logger.error(`SSH writeFile command timed out for session: ${sessionId}`);
+ if (!res.headersSent) {
+ res.status(500).json({error: 'SSH command timed out'});
+ }
+ }, 15000);
+
+ const checkCommand = `ls -la '${escapedFilePath}' 2>/dev/null || echo "File does not exist"`;
+
+ sshConn.client.exec(checkCommand, (checkErr, checkStream) => {
+ if (checkErr) {
+ return res.status(500).json({error: `File check failed: ${checkErr.message}`});
+ }
+
+ let checkResult = '';
+ checkStream.on('data', (chunk: Buffer) => {
+ checkResult += chunk.toString();
+ });
+
+ checkStream.on('close', (checkCode) => {
+ const writeCommand = `echo '${base64Content}' > '${escapedTempFile}' && base64 -d '${escapedTempFile}' > '${escapedFilePath}' && rm -f '${escapedTempFile}' && echo "SUCCESS" && exit 0`;
+
+ sshConn.client.exec(writeCommand, (err, stream) => {
+ if (err) {
+ clearTimeout(commandTimeout);
+ logger.error('SSH writeFile error:', err);
+ if (!res.headersSent) {
+ return res.status(500).json({error: err.message});
+ }
+ return;
+ }
+
+ let outputData = '';
+ let errorData = '';
+
+ stream.on('data', (chunk: Buffer) => {
+ outputData += chunk.toString();
+ });
+
+ stream.stderr.on('data', (chunk: Buffer) => {
+ errorData += chunk.toString();
+
+ if (chunk.toString().includes('Permission denied')) {
+ clearTimeout(commandTimeout);
+ logger.error(`Permission denied writing to file: ${filePath}`);
+ if (!res.headersSent) {
+ return res.status(403).json({
+ error: `Permission denied: Cannot write to ${filePath}. Check file ownership and permissions. Use 'ls -la ${filePath}' to verify.`
+ });
+ }
+ return;
+ }
+ });
+
+ stream.on('close', (code) => {
+ clearTimeout(commandTimeout);
+
+ if (outputData.includes('SUCCESS')) {
+ const verifyCommand = `ls -la '${escapedFilePath}' 2>/dev/null | awk '{print $5}'`;
+
+ sshConn.client.exec(verifyCommand, (verifyErr, verifyStream) => {
+ if (verifyErr) {
+ if (!res.headersSent) {
+ res.json({message: 'File written successfully', path: filePath});
+ }
+ return;
+ }
+
+ let verifyResult = '';
+ verifyStream.on('data', (chunk: Buffer) => {
+ verifyResult += chunk.toString();
+ });
+
+ verifyStream.on('close', (verifyCode) => {
+ const fileSize = Number(verifyResult.trim());
+
+ if (fileSize > 0) {
+ if (!res.headersSent) {
+ res.json({message: 'File written successfully', path: filePath});
+ }
+ } else {
+ if (!res.headersSent) {
+ res.status(500).json({error: 'File write operation may have failed - file appears empty'});
+ }
+ }
+ });
+ });
+ return;
+ }
+
+ if (code !== 0) {
+ logger.error(`SSH writeFile command failed with code ${code}: ${errorData.replace(/\n/g, ' ').trim()}`);
+ if (!res.headersSent) {
+ return res.status(500).json({error: `Command failed: ${errorData}`});
+ }
+ return;
+ }
+
+ if (!res.headersSent) {
+ res.json({message: 'File written successfully', path: filePath});
+ }
+ });
+
+ stream.on('error', (streamErr) => {
+ clearTimeout(commandTimeout);
+ logger.error('SSH writeFile stream error:', streamErr);
+ if (!res.headersSent) {
+ res.status(500).json({error: `Stream error: ${streamErr.message}`});
+ }
+ });
+ });
+ });
+ });
+});
+
+process.on('SIGINT', () => {
+ Object.keys(sshSessions).forEach(cleanupSession);
+ process.exit(0);
+});
+
+process.on('SIGTERM', () => {
+ Object.keys(sshSessions).forEach(cleanupSession);
+ process.exit(0);
+});
+
+const PORT = 8084;
+app.listen(PORT, () => {
+});
\ No newline at end of file
diff --git a/src/backend/database/database.ts b/src/backend/database/database.ts
new file mode 100644
index 000000000..40d029830
--- /dev/null
+++ b/src/backend/database/database.ts
@@ -0,0 +1,243 @@
+import express from 'express';
+import bodyParser from 'body-parser';
+import userRoutes from './routes/users.js';
+import sshRoutes from './routes/ssh.js';
+import chalk from 'chalk';
+import cors from 'cors';
+import fetch from 'node-fetch';
+import 'dotenv/config';
+
+const app = express();
+app.use(cors({
+ origin: '*',
+ methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
+ allowedHeaders: ['Content-Type', 'Authorization']
+}));
+
+const dbIconSymbol = '🗄️';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${dbIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+interface CacheEntry {
+ data: any;
+ timestamp: number;
+ expiresAt: number;
+}
+
+class GitHubCache {
+ private cache: Map<string, CacheEntry> = new Map();
+ private readonly CACHE_DURATION = 30 * 60 * 1000;
+
+ set(key: string, data: any): void {
+ const now = Date.now();
+ this.cache.set(key, {
+ data,
+ timestamp: now,
+ expiresAt: now + this.CACHE_DURATION
+ });
+ }
+
+ get(key: string): any | null {
+ const entry = this.cache.get(key);
+ if (!entry) {
+ return null;
+ }
+
+ if (Date.now() > entry.expiresAt) {
+ this.cache.delete(key);
+ return null;
+ }
+
+ return entry.data;
+ }
+}
+
+const githubCache = new GitHubCache();
+
+const GITHUB_API_BASE = 'https://api.github.com';
+const REPO_OWNER = 'LukeGus';
+const REPO_NAME = 'Termix';
+
+interface GitHubRelease {
+ id: number;
+ tag_name: string;
+ name: string;
+ body: string;
+ published_at: string;
+ html_url: string;
+ assets: Array<{
+ id: number;
+ name: string;
+ size: number;
+ download_count: number;
+ browser_download_url: string;
+ }>;
+ prerelease: boolean;
+ draft: boolean;
+}
+
+async function fetchGitHubAPI(endpoint: string, cacheKey: string): Promise<any> {
+ const cachedData = githubCache.get(cacheKey);
+ if (cachedData) {
+ return {
+ data: cachedData,
+ cached: true,
+ cache_age: Date.now() - cachedData.timestamp
+ };
+ }
+
+ try {
+ const response = await fetch(`${GITHUB_API_BASE}${endpoint}`, {
+ headers: {
+ 'Accept': 'application/vnd.github+json',
+ 'User-Agent': 'TermixUpdateChecker/1.0',
+ 'X-GitHub-Api-Version': '2022-11-28'
+ }
+ });
+
+ if (!response.ok) {
+ throw new Error(`GitHub API error: ${response.status} ${response.statusText}`);
+ }
+
+ const data = await response.json();
+
+ githubCache.set(cacheKey, data);
+
+ return {
+ data: data,
+ cached: false
+ };
+ } catch (error) {
+ logger.error(`Failed to fetch from GitHub API: ${endpoint}`, error);
+ throw error;
+ }
+}
+
+app.use(bodyParser.json());
+
+app.get('/health', (req, res) => {
+ res.json({status: 'ok'});
+});
+
+app.get('/version', async (req, res) => {
+ const localVersion = process.env.VERSION;
+
+ if (!localVersion) {
+ return res.status(401).send('Local Version Not Set');
+ }
+
+ try {
+ const cacheKey = 'latest_release';
+ const releaseData = await fetchGitHubAPI(
+ `/repos/${REPO_OWNER}/${REPO_NAME}/releases/latest`,
+ cacheKey
+ );
+
+ const rawTag = releaseData.data.tag_name || releaseData.data.name || '';
+ const remoteVersionMatch = rawTag.match(/(\d+\.\d+(\.\d+)?)/);
+ const remoteVersion = remoteVersionMatch ? remoteVersionMatch[1] : null;
+
+ if (!remoteVersion) {
+ return res.status(401).send('Remote Version Not Found');
+ }
+
+ const response = {
+ status: localVersion === remoteVersion ? 'up_to_date' : 'requires_update',
+ version: remoteVersion,
+ latest_release: {
+ tag_name: releaseData.data.tag_name,
+ name: releaseData.data.name,
+ published_at: releaseData.data.published_at,
+ html_url: releaseData.data.html_url
+ },
+ cached: releaseData.cached,
+ cache_age: releaseData.cache_age
+ };
+
+ res.json(response);
+ } catch (err) {
+ logger.error('Version check failed', err);
+ res.status(500).send('Fetch Error');
+ }
+});
+
+app.get('/releases/rss', async (req, res) => {
+ try {
+ const page = parseInt(req.query.page as string) || 1;
+ const per_page = Math.min(parseInt(req.query.per_page as string) || 20, 100);
+ const cacheKey = `releases_rss_${page}_${per_page}`;
+
+ const releasesData = await fetchGitHubAPI(
+ `/repos/${REPO_OWNER}/${REPO_NAME}/releases?page=${page}&per_page=${per_page}`,
+ cacheKey
+ );
+
+ const rssItems = releasesData.data.map((release: GitHubRelease) => ({
+ id: release.id,
+ title: release.name || release.tag_name,
+ description: release.body,
+ link: release.html_url,
+ pubDate: release.published_at,
+ version: release.tag_name,
+ isPrerelease: release.prerelease,
+ isDraft: release.draft,
+ assets: release.assets.map(asset => ({
+ name: asset.name,
+ size: asset.size,
+ download_count: asset.download_count,
+ download_url: asset.browser_download_url
+ }))
+ }));
+
+ const response = {
+ feed: {
+ title: `${REPO_NAME} Releases`,
+ description: `Latest releases from ${REPO_NAME} repository`,
+ link: `https://github.com/${REPO_OWNER}/${REPO_NAME}/releases`,
+ updated: new Date().toISOString()
+ },
+ items: rssItems,
+ total_count: rssItems.length,
+ cached: releasesData.cached,
+ cache_age: releasesData.cache_age
+ };
+
+ res.json(response);
+ } catch (error) {
+ logger.error('Failed to generate RSS format', error)
+ res.status(500).json({ error: 'Failed to generate RSS format', details: error instanceof Error ? error.message : 'Unknown error' });
+ }
+});
+
+app.use('/users', userRoutes);
+app.use('/ssh', sshRoutes);
+
+app.use((err: unknown, req: express.Request, res: express.Response, next: express.NextFunction) => {
+ logger.error('Unhandled error:', err);
+ res.status(500).json({error: 'Internal Server Error'});
+});
+
+const PORT = 8081;
+app.listen(PORT, () => {});
\ No newline at end of file
diff --git a/src/backend/database/db/index.ts b/src/backend/database/db/index.ts
new file mode 100644
index 000000000..ae87ab6df
--- /dev/null
+++ b/src/backend/database/db/index.ts
@@ -0,0 +1,197 @@
+import {drizzle} from 'drizzle-orm/better-sqlite3';
+import Database from 'better-sqlite3';
+import * as schema from './schema.js';
+import chalk from 'chalk';
+import fs from 'fs';
+import path from 'path';
+
+const dbIconSymbol = '🗄️';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${dbIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+const dataDir = process.env.DATA_DIR || './db/data';
+const dbDir = path.resolve(dataDir);
+if (!fs.existsSync(dbDir)) {
+ fs.mkdirSync(dbDir, {recursive: true});
+}
+
+const dbPath = path.join(dataDir, 'db.sqlite');
+const sqlite = new Database(dbPath);
+
+sqlite.exec(`
+ CREATE TABLE IF NOT EXISTS users (
+ id TEXT PRIMARY KEY,
+ username TEXT NOT NULL,
+ password_hash TEXT NOT NULL,
+ is_admin INTEGER NOT NULL DEFAULT 0,
+
+ is_oidc INTEGER NOT NULL DEFAULT 0,
+ client_id TEXT NOT NULL,
+ client_secret TEXT NOT NULL,
+ issuer_url TEXT NOT NULL,
+ authorization_url TEXT NOT NULL,
+ token_url TEXT NOT NULL,
+ redirect_uri TEXT,
+ identifier_path TEXT NOT NULL,
+ name_path TEXT NOT NULL,
+ scopes TEXT NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS settings (
+ key TEXT PRIMARY KEY,
+ value TEXT NOT NULL
+ );
+
+ CREATE TABLE IF NOT EXISTS ssh_data (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ user_id TEXT NOT NULL,
+ name TEXT,
+ ip TEXT NOT NULL,
+ port INTEGER NOT NULL,
+ username TEXT NOT NULL,
+ folder TEXT,
+ tags TEXT,
+ pin INTEGER NOT NULL DEFAULT 0,
+ auth_type TEXT NOT NULL,
+ password TEXT,
+ key TEXT,
+ key_password TEXT,
+ key_type TEXT,
+ enable_terminal INTEGER NOT NULL DEFAULT 1,
+ enable_tunnel INTEGER NOT NULL DEFAULT 1,
+ tunnel_connections TEXT,
+ enable_config_editor INTEGER NOT NULL DEFAULT 1,
+ default_path TEXT,
+ created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ FOREIGN KEY (user_id) REFERENCES users(id)
+ );
+
+ CREATE TABLE IF NOT EXISTS config_editor_recent (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ user_id TEXT NOT NULL,
+ host_id INTEGER NOT NULL,
+ name TEXT NOT NULL,
+ path TEXT NOT NULL,
+ last_opened TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ FOREIGN KEY (user_id) REFERENCES users(id),
+ FOREIGN KEY (host_id) REFERENCES ssh_data(id)
+ );
+
+ CREATE TABLE IF NOT EXISTS config_editor_pinned (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ user_id TEXT NOT NULL,
+ host_id INTEGER NOT NULL,
+ name TEXT NOT NULL,
+ path TEXT NOT NULL,
+ pinned_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ FOREIGN KEY (user_id) REFERENCES users(id),
+ FOREIGN KEY (host_id) REFERENCES ssh_data(id)
+ );
+
+ CREATE TABLE IF NOT EXISTS config_editor_shortcuts (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ user_id TEXT NOT NULL,
+ host_id INTEGER NOT NULL,
+ name TEXT NOT NULL,
+ path TEXT NOT NULL,
+ created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ FOREIGN KEY (user_id) REFERENCES users(id),
+ FOREIGN KEY (host_id) REFERENCES ssh_data(id)
+ );
+`);
+
+const addColumnIfNotExists = (table: string, column: string, definition: string) => {
+ try {
+ sqlite.prepare(`SELECT ${column}
+ FROM ${table} LIMIT 1`).get();
+ } catch (e) {
+ try {
+ sqlite.exec(`ALTER TABLE ${table}
+ ADD COLUMN ${column} ${definition};`);
+ } catch (alterError) {
+ logger.warn(`Failed to add column ${column} to ${table}: ${alterError}`);
+ }
+ }
+};
+
+const migrateSchema = () => {
+ logger.info('Checking for schema updates...');
+
+ addColumnIfNotExists('users', 'is_admin', 'INTEGER NOT NULL DEFAULT 0');
+
+ addColumnIfNotExists('users', 'is_oidc', 'INTEGER NOT NULL DEFAULT 0');
+ addColumnIfNotExists('users', 'oidc_identifier', 'TEXT');
+ addColumnIfNotExists('users', 'client_id', 'TEXT');
+ addColumnIfNotExists('users', 'client_secret', 'TEXT');
+ addColumnIfNotExists('users', 'issuer_url', 'TEXT');
+ addColumnIfNotExists('users', 'authorization_url', 'TEXT');
+ addColumnIfNotExists('users', 'token_url', 'TEXT');
+ try {
+ sqlite.prepare(`ALTER TABLE users DROP COLUMN redirect_uri`).run();
+ logger.info('Removed redirect_uri column from users table');
+ } catch (e) {
+ }
+
+ addColumnIfNotExists('users', 'identifier_path', 'TEXT');
+ addColumnIfNotExists('users', 'name_path', 'TEXT');
+ addColumnIfNotExists('users', 'scopes', 'TEXT');
+
+ addColumnIfNotExists('ssh_data', 'name', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'folder', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'tags', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'pin', 'INTEGER NOT NULL DEFAULT 0');
+ addColumnIfNotExists('ssh_data', 'auth_type', 'TEXT NOT NULL DEFAULT "password"');
+ addColumnIfNotExists('ssh_data', 'password', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'key', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'key_password', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'key_type', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'enable_terminal', 'INTEGER NOT NULL DEFAULT 1');
+ addColumnIfNotExists('ssh_data', 'enable_tunnel', 'INTEGER NOT NULL DEFAULT 1');
+ addColumnIfNotExists('ssh_data', 'tunnel_connections', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'enable_config_editor', 'INTEGER NOT NULL DEFAULT 1');
+ addColumnIfNotExists('ssh_data', 'default_path', 'TEXT');
+ addColumnIfNotExists('ssh_data', 'created_at', 'TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP');
+ addColumnIfNotExists('ssh_data', 'updated_at', 'TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP');
+
+ addColumnIfNotExists('config_editor_recent', 'host_id', 'INTEGER NOT NULL');
+ addColumnIfNotExists('config_editor_pinned', 'host_id', 'INTEGER NOT NULL');
+ addColumnIfNotExists('config_editor_shortcuts', 'host_id', 'INTEGER NOT NULL');
+
+ logger.success('Schema migration completed');
+};
+
+migrateSchema();
+
+try {
+ const row = sqlite.prepare("SELECT value FROM settings WHERE key = 'allow_registration'").get();
+ if (!row) {
+ sqlite.prepare("INSERT INTO settings (key, value) VALUES ('allow_registration', 'true')").run();
+ }
+} catch (e) {
+ logger.warn('Could not initialize default settings');
+}
+
+export const db = drizzle(sqlite, {schema});
\ No newline at end of file
diff --git a/src/backend/database/db/schema.ts b/src/backend/database/db/schema.ts
new file mode 100644
index 000000000..652a56866
--- /dev/null
+++ b/src/backend/database/db/schema.ts
@@ -0,0 +1,76 @@
+import {sqliteTable, text, integer} from 'drizzle-orm/sqlite-core';
+import {sql} from 'drizzle-orm';
+
+export const users = sqliteTable('users', {
+ id: text('id').primaryKey(),
+ username: text('username').notNull(),
+ password_hash: text('password_hash').notNull(),
+ is_admin: integer('is_admin', {mode: 'boolean'}).notNull().default(false),
+
+ is_oidc: integer('is_oidc', {mode: 'boolean'}).notNull().default(false),
+ oidc_identifier: text('oidc_identifier'),
+ client_id: text('client_id'),
+ client_secret: text('client_secret'),
+ issuer_url: text('issuer_url'),
+ authorization_url: text('authorization_url'),
+ token_url: text('token_url'),
+ identifier_path: text('identifier_path'),
+ name_path: text('name_path'),
+ scopes: text().default("openid email profile"),
+});
+
+export const settings = sqliteTable('settings', {
+ key: text('key').primaryKey(),
+ value: text('value').notNull(),
+});
+
+export const sshData = sqliteTable('ssh_data', {
+ id: integer('id').primaryKey({autoIncrement: true}),
+ userId: text('user_id').notNull().references(() => users.id),
+ name: text('name'),
+ ip: text('ip').notNull(),
+ port: integer('port').notNull(),
+ username: text('username').notNull(),
+ folder: text('folder'),
+ tags: text('tags'),
+ pin: integer('pin', {mode: 'boolean'}).notNull().default(false),
+ authType: text('auth_type').notNull(),
+ password: text('password'),
+ key: text('key', {length: 8192}),
+ keyPassword: text('key_password'),
+ keyType: text('key_type'),
+ enableTerminal: integer('enable_terminal', {mode: 'boolean'}).notNull().default(true),
+ enableTunnel: integer('enable_tunnel', {mode: 'boolean'}).notNull().default(true),
+ tunnelConnections: text('tunnel_connections'),
+ enableConfigEditor: integer('enable_config_editor', {mode: 'boolean'}).notNull().default(true),
+ defaultPath: text('default_path'),
+ createdAt: text('created_at').notNull().default(sql`CURRENT_TIMESTAMP`),
+ updatedAt: text('updated_at').notNull().default(sql`CURRENT_TIMESTAMP`),
+});
+
+export const configEditorRecent = sqliteTable('config_editor_recent', {
+ id: integer('id').primaryKey({autoIncrement: true}),
+ userId: text('user_id').notNull().references(() => users.id),
+ hostId: integer('host_id').notNull().references(() => sshData.id),
+ name: text('name').notNull(),
+ path: text('path').notNull(),
+ lastOpened: text('last_opened').notNull().default(sql`CURRENT_TIMESTAMP`),
+});
+
+export const configEditorPinned = sqliteTable('config_editor_pinned', {
+ id: integer('id').primaryKey({autoIncrement: true}),
+ userId: text('user_id').notNull().references(() => users.id),
+ hostId: integer('host_id').notNull().references(() => sshData.id),
+ name: text('name').notNull(),
+ path: text('path').notNull(),
+ pinnedAt: text('pinned_at').notNull().default(sql`CURRENT_TIMESTAMP`),
+});
+
+export const configEditorShortcuts = sqliteTable('config_editor_shortcuts', {
+ id: integer('id').primaryKey({autoIncrement: true}),
+ userId: text('user_id').notNull().references(() => users.id),
+ hostId: integer('host_id').notNull().references(() => sshData.id),
+ name: text('name').notNull(),
+ path: text('path').notNull(),
+ createdAt: text('created_at').notNull().default(sql`CURRENT_TIMESTAMP`),
+});
\ No newline at end of file
diff --git a/src/backend/database/routes/ssh.ts b/src/backend/database/routes/ssh.ts
new file mode 100644
index 000000000..841b3799a
--- /dev/null
+++ b/src/backend/database/routes/ssh.ts
@@ -0,0 +1,700 @@
+import express from 'express';
+import {db} from '../db/index.js';
+import {sshData, configEditorRecent, configEditorPinned, configEditorShortcuts} from '../db/schema.js';
+import {eq, and, desc} from 'drizzle-orm';
+import chalk from 'chalk';
+import jwt from 'jsonwebtoken';
+import multer from 'multer';
+import type {Request, Response, NextFunction} from 'express';
+
+const dbIconSymbol = '🗄️';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${dbIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+const router = express.Router();
+
+function isNonEmptyString(val: any): val is string {
+ return typeof val === 'string' && val.trim().length > 0;
+}
+
+function isValidPort(val: any): val is number {
+ return typeof val === 'number' && val > 0 && val < 65536;
+}
+
+interface JWTPayload {
+ userId: string;
+ iat?: number;
+ exp?: number;
+}
+
+const upload = multer({
+ storage: multer.memoryStorage(),
+ limits: {
+ fileSize: 10 * 1024 * 1024,
+ },
+ fileFilter: (req, file, cb) => {
+ if (file.fieldname === 'key') {
+ cb(null, true);
+ } else {
+ cb(new Error('Invalid file type'));
+ }
+ }
+});
+
+function authenticateJWT(req: Request, res: Response, next: NextFunction) {
+ const authHeader = req.headers['authorization'];
+ if (!authHeader || !authHeader.startsWith('Bearer ')) {
+ logger.warn('Missing or invalid Authorization header');
+ return res.status(401).json({error: 'Missing or invalid Authorization header'});
+ }
+ const token = authHeader.split(' ')[1];
+ const jwtSecret = process.env.JWT_SECRET || 'secret';
+ try {
+ const payload = jwt.verify(token, jwtSecret) as JWTPayload;
+ (req as any).userId = payload.userId;
+ next();
+ } catch (err) {
+ logger.warn('Invalid or expired token');
+ return res.status(401).json({error: 'Invalid or expired token'});
+ }
+}
+
+function isLocalhost(req: Request) {
+ const ip = req.ip || req.connection?.remoteAddress;
+ return ip === '127.0.0.1' || ip === '::1' || ip === '::ffff:127.0.0.1';
+}
+
+// Internal-only endpoint for autostart (no JWT)
+router.get('/db/host/internal', async (req: Request, res: Response) => {
+ if (!isLocalhost(req) && req.headers['x-internal-request'] !== '1') {
+ logger.warn('Unauthorized attempt to access internal SSH host endpoint');
+ return res.status(403).json({error: 'Forbidden'});
+ }
+ try {
+ const data = await db.select().from(sshData);
+ // Convert tags to array, booleans to bool, tunnelConnections to array
+ const result = data.map((row: any) => ({
+ ...row,
+ tags: typeof row.tags === 'string' ? (row.tags ? row.tags.split(',').filter(Boolean) : []) : [],
+ pin: !!row.pin,
+ enableTerminal: !!row.enableTerminal,
+ enableTunnel: !!row.enableTunnel,
+ tunnelConnections: row.tunnelConnections ? JSON.parse(row.tunnelConnections) : [],
+ enableConfigEditor: !!row.enableConfigEditor,
+ }));
+ res.json(result);
+ } catch (err) {
+ logger.error('Failed to fetch SSH data (internal)', err);
+ res.status(500).json({error: 'Failed to fetch SSH data'});
+ }
+});
+
+// Route: Create SSH data (requires JWT)
+// POST /ssh/host
+router.post('/db/host', authenticateJWT, upload.single('key'), async (req: Request, res: Response) => {
+ let hostData: any;
+
+ // Check if this is a multipart form data request (file upload)
+ if (req.headers['content-type']?.includes('multipart/form-data')) {
+ // Parse the JSON data from the 'data' field
+ if (req.body.data) {
+ try {
+ hostData = JSON.parse(req.body.data);
+ } catch (err) {
+ logger.warn('Invalid JSON data in multipart request');
+ return res.status(400).json({error: 'Invalid JSON data'});
+ }
+ } else {
+ logger.warn('Missing data field in multipart request');
+ return res.status(400).json({error: 'Missing data field'});
+ }
+
+ // Add the file data if present
+ if (req.file) {
+ hostData.key = req.file.buffer.toString('utf8');
+ }
+ } else {
+ // Regular JSON request
+ hostData = req.body;
+ }
+
+ const {
+ name,
+ folder,
+ tags,
+ ip,
+ port,
+ username,
+ password,
+ authMethod,
+ key,
+ keyPassword,
+ keyType,
+ pin,
+ enableTerminal,
+ enableTunnel,
+ enableConfigEditor,
+ defaultPath,
+ tunnelConnections
+ } = hostData;
+ const userId = (req as any).userId;
+ if (!isNonEmptyString(userId) || !isNonEmptyString(ip) || !isValidPort(port)) {
+ logger.warn('Invalid SSH data input');
+ return res.status(400).json({error: 'Invalid SSH data'});
+ }
+
+ const sshDataObj: any = {
+ userId: userId,
+ name,
+ folder,
+ tags: Array.isArray(tags) ? tags.join(',') : (tags || ''),
+ ip,
+ port,
+ username,
+ authType: authMethod,
+ pin: !!pin ? 1 : 0,
+ enableTerminal: !!enableTerminal ? 1 : 0,
+ enableTunnel: !!enableTunnel ? 1 : 0,
+ tunnelConnections: Array.isArray(tunnelConnections) ? JSON.stringify(tunnelConnections) : null,
+ enableConfigEditor: !!enableConfigEditor ? 1 : 0,
+ defaultPath: defaultPath || null,
+ };
+
+ if (authMethod === 'password') {
+ sshDataObj.password = password;
+ sshDataObj.key = null;
+ sshDataObj.keyPassword = null;
+ sshDataObj.keyType = null;
+ } else if (authMethod === 'key') {
+ sshDataObj.key = key;
+ sshDataObj.keyPassword = keyPassword;
+ sshDataObj.keyType = keyType;
+ sshDataObj.password = null;
+ }
+
+ try {
+ await db.insert(sshData).values(sshDataObj);
+ res.json({message: 'SSH data created'});
+ } catch (err) {
+ logger.error('Failed to save SSH data', err);
+ res.status(500).json({error: 'Failed to save SSH data'});
+ }
+});
+
+// Route: Update SSH data (requires JWT)
+// PUT /ssh/host/:id
+router.put('/db/host/:id', authenticateJWT, upload.single('key'), async (req: Request, res: Response) => {
+ let hostData: any;
+
+ if (req.headers['content-type']?.includes('multipart/form-data')) {
+ if (req.body.data) {
+ try {
+ hostData = JSON.parse(req.body.data);
+ } catch (err) {
+ logger.warn('Invalid JSON data in multipart request');
+ return res.status(400).json({error: 'Invalid JSON data'});
+ }
+ } else {
+ logger.warn('Missing data field in multipart request');
+ return res.status(400).json({error: 'Missing data field'});
+ }
+
+ if (req.file) {
+ hostData.key = req.file.buffer.toString('utf8');
+ }
+ } else {
+ hostData = req.body;
+ }
+
+ const {
+ name,
+ folder,
+ tags,
+ ip,
+ port,
+ username,
+ password,
+ authMethod,
+ key,
+ keyPassword,
+ keyType,
+ pin,
+ enableTerminal,
+ enableTunnel,
+ enableConfigEditor,
+ defaultPath,
+ tunnelConnections
+ } = hostData;
+ const {id} = req.params;
+ const userId = (req as any).userId;
+ if (!isNonEmptyString(userId) || !isNonEmptyString(ip) || !isValidPort(port) || !id) {
+ logger.warn('Invalid SSH data input for update');
+ return res.status(400).json({error: 'Invalid SSH data'});
+ }
+
+ const sshDataObj: any = {
+ name,
+ folder,
+ tags: Array.isArray(tags) ? tags.join(',') : (tags || ''),
+ ip,
+ port,
+ username,
+ authType: authMethod,
+ pin: !!pin ? 1 : 0,
+ enableTerminal: !!enableTerminal ? 1 : 0,
+ enableTunnel: !!enableTunnel ? 1 : 0,
+ tunnelConnections: Array.isArray(tunnelConnections) ? JSON.stringify(tunnelConnections) : null,
+ enableConfigEditor: !!enableConfigEditor ? 1 : 0,
+ defaultPath: defaultPath || null,
+ };
+
+ if (authMethod === 'password') {
+ sshDataObj.password = password;
+ sshDataObj.key = null;
+ sshDataObj.keyPassword = null;
+ sshDataObj.keyType = null;
+ } else if (authMethod === 'key') {
+ sshDataObj.key = key;
+ sshDataObj.keyPassword = keyPassword;
+ sshDataObj.keyType = keyType;
+ sshDataObj.password = null;
+ }
+
+ try {
+ await db.update(sshData)
+ .set(sshDataObj)
+ .where(and(eq(sshData.id, Number(id)), eq(sshData.userId, userId)));
+ res.json({message: 'SSH data updated'});
+ } catch (err) {
+ logger.error('Failed to update SSH data', err);
+ res.status(500).json({error: 'Failed to update SSH data'});
+ }
+});
+
+// Route: Get SSH data for the authenticated user (requires JWT)
+// GET /ssh/host
+router.get('/db/host', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ if (!isNonEmptyString(userId)) {
+ logger.warn('Invalid userId for SSH data fetch');
+ return res.status(400).json({error: 'Invalid userId'});
+ }
+ try {
+ const data = await db
+ .select()
+ .from(sshData)
+ .where(eq(sshData.userId, userId));
+ const result = data.map((row: any) => ({
+ ...row,
+ tags: typeof row.tags === 'string' ? (row.tags ? row.tags.split(',').filter(Boolean) : []) : [],
+ pin: !!row.pin,
+ enableTerminal: !!row.enableTerminal,
+ enableTunnel: !!row.enableTunnel,
+ tunnelConnections: row.tunnelConnections ? JSON.parse(row.tunnelConnections) : [],
+ enableConfigEditor: !!row.enableConfigEditor,
+ }));
+ res.json(result);
+ } catch (err) {
+ logger.error('Failed to fetch SSH data', err);
+ res.status(500).json({error: 'Failed to fetch SSH data'});
+ }
+});
+
+// Route: Get SSH host by ID (requires JWT)
+// GET /ssh/host/:id
+router.get('/db/host/:id', authenticateJWT, async (req: Request, res: Response) => {
+ const {id} = req.params;
+ const userId = (req as any).userId;
+
+ if (!isNonEmptyString(userId) || !id) {
+ logger.warn('Invalid request for SSH host fetch');
+ return res.status(400).json({error: 'Invalid request'});
+ }
+
+ try {
+ const data = await db
+ .select()
+ .from(sshData)
+ .where(and(eq(sshData.id, Number(id)), eq(sshData.userId, userId)));
+
+ if (data.length === 0) {
+ return res.status(404).json({error: 'SSH host not found'});
+ }
+
+ const host = data[0];
+ const result = {
+ ...host,
+ tags: typeof host.tags === 'string' ? (host.tags ? host.tags.split(',').filter(Boolean) : []) : [],
+ pin: !!host.pin,
+ enableTerminal: !!host.enableTerminal,
+ enableTunnel: !!host.enableTunnel,
+ tunnelConnections: host.tunnelConnections ? JSON.parse(host.tunnelConnections) : [],
+ enableConfigEditor: !!host.enableConfigEditor,
+ };
+
+ res.json(result);
+ } catch (err) {
+ logger.error('Failed to fetch SSH host', err);
+ res.status(500).json({error: 'Failed to fetch SSH host'});
+ }
+});
+
+// Route: Get all unique folders for the authenticated user (requires JWT)
+// GET /ssh/folders
+router.get('/db/folders', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ if (!isNonEmptyString(userId)) {
+ logger.warn('Invalid userId for SSH folder fetch');
+ return res.status(400).json({error: 'Invalid userId'});
+ }
+ try {
+ const data = await db
+ .select({folder: sshData.folder})
+ .from(sshData)
+ .where(eq(sshData.userId, userId));
+
+ const folderCounts: Record<string, number> = {};
+ data.forEach(d => {
+ if (d.folder && d.folder.trim() !== '') {
+ folderCounts[d.folder] = (folderCounts[d.folder] || 0) + 1;
+ }
+ });
+
+ const folders = Object.keys(folderCounts).filter(folder => folderCounts[folder] > 0);
+
+ res.json(folders);
+ } catch (err) {
+ logger.error('Failed to fetch SSH folders', err);
+ res.status(500).json({error: 'Failed to fetch SSH folders'});
+ }
+});
+
+// Route: Delete SSH host by id (requires JWT)
+// DELETE /ssh/host/:id
+router.delete('/db/host/:id', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {id} = req.params;
+ if (!isNonEmptyString(userId) || !id) {
+ logger.warn('Invalid userId or id for SSH host delete');
+ return res.status(400).json({error: 'Invalid userId or id'});
+ }
+ try {
+ const result = await db.delete(sshData)
+ .where(and(eq(sshData.id, Number(id)), eq(sshData.userId, userId)));
+ res.json({message: 'SSH host deleted'});
+ } catch (err) {
+ logger.error('Failed to delete SSH host', err);
+ res.status(500).json({error: 'Failed to delete SSH host'});
+ }
+});
+
+// Route: Get recent files (requires JWT)
+// GET /ssh/config_editor/recent
+router.get('/config_editor/recent', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const hostId = req.query.hostId ? parseInt(req.query.hostId as string) : null;
+
+ if (!isNonEmptyString(userId)) {
+ logger.warn('Invalid userId for recent files fetch');
+ return res.status(400).json({error: 'Invalid userId'});
+ }
+
+ if (!hostId) {
+ logger.warn('Host ID is required for recent files fetch');
+ return res.status(400).json({error: 'Host ID is required'});
+ }
+
+ try {
+ const recentFiles = await db
+ .select()
+ .from(configEditorRecent)
+ .where(and(
+ eq(configEditorRecent.userId, userId),
+ eq(configEditorRecent.hostId, hostId)
+ ))
+ .orderBy(desc(configEditorRecent.lastOpened));
+ res.json(recentFiles);
+ } catch (err) {
+ logger.error('Failed to fetch recent files', err);
+ res.status(500).json({error: 'Failed to fetch recent files'});
+ }
+});
+
+// Route: Add file to recent (requires JWT)
+// POST /ssh/config_editor/recent
+router.post('/config_editor/recent', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {name, path, hostId} = req.body;
+ if (!isNonEmptyString(userId) || !name || !path || !hostId) {
+ logger.warn('Invalid request for adding recent file');
+ return res.status(400).json({error: 'Invalid request - userId, name, path, and hostId are required'});
+ }
+ try {
+ const conditions = [
+ eq(configEditorRecent.userId, userId),
+ eq(configEditorRecent.path, path),
+ eq(configEditorRecent.hostId, hostId)
+ ];
+
+ const existing = await db
+ .select()
+ .from(configEditorRecent)
+ .where(and(...conditions));
+
+ if (existing.length > 0) {
+ await db
+ .update(configEditorRecent)
+ .set({lastOpened: new Date().toISOString()})
+ .where(and(...conditions));
+ } else {
+ // Add new recent file
+ await db.insert(configEditorRecent).values({
+ userId,
+ hostId,
+ name,
+ path,
+ lastOpened: new Date().toISOString()
+ });
+ }
+ res.json({message: 'File added to recent'});
+ } catch (err) {
+ logger.error('Failed to add recent file', err);
+ res.status(500).json({error: 'Failed to add recent file'});
+ }
+});
+
+// Route: Remove file from recent (requires JWT)
+// DELETE /ssh/config_editor/recent
+router.delete('/config_editor/recent', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {name, path, hostId} = req.body;
+ if (!isNonEmptyString(userId) || !name || !path || !hostId) {
+ logger.warn('Invalid request for removing recent file');
+ return res.status(400).json({error: 'Invalid request - userId, name, path, and hostId are required'});
+ }
+ try {
+ const conditions = [
+ eq(configEditorRecent.userId, userId),
+ eq(configEditorRecent.path, path),
+ eq(configEditorRecent.hostId, hostId)
+ ];
+
+ const result = await db
+ .delete(configEditorRecent)
+ .where(and(...conditions));
+ res.json({message: 'File removed from recent'});
+ } catch (err) {
+ logger.error('Failed to remove recent file', err);
+ res.status(500).json({error: 'Failed to remove recent file'});
+ }
+});
+
+// Route: Get pinned files (requires JWT)
+// GET /ssh/config_editor/pinned
+router.get('/config_editor/pinned', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const hostId = req.query.hostId ? parseInt(req.query.hostId as string) : null;
+
+ if (!isNonEmptyString(userId)) {
+ logger.warn('Invalid userId for pinned files fetch');
+ return res.status(400).json({error: 'Invalid userId'});
+ }
+
+ if (!hostId) {
+ logger.warn('Host ID is required for pinned files fetch');
+ return res.status(400).json({error: 'Host ID is required'});
+ }
+
+ try {
+ const pinnedFiles = await db
+ .select()
+ .from(configEditorPinned)
+ .where(and(
+ eq(configEditorPinned.userId, userId),
+ eq(configEditorPinned.hostId, hostId)
+ ))
+ .orderBy(configEditorPinned.pinnedAt);
+ res.json(pinnedFiles);
+ } catch (err) {
+ logger.error('Failed to fetch pinned files', err);
+ res.status(500).json({error: 'Failed to fetch pinned files'});
+ }
+});
+
+// Route: Add file to pinned (requires JWT)
+// POST /ssh/config_editor/pinned
+router.post('/config_editor/pinned', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {name, path, hostId} = req.body;
+ if (!isNonEmptyString(userId) || !name || !path || !hostId) {
+ logger.warn('Invalid request for adding pinned file');
+ return res.status(400).json({error: 'Invalid request - userId, name, path, and hostId are required'});
+ }
+ try {
+ const conditions = [
+ eq(configEditorPinned.userId, userId),
+ eq(configEditorPinned.path, path),
+ eq(configEditorPinned.hostId, hostId)
+ ];
+
+ const existing = await db
+ .select()
+ .from(configEditorPinned)
+ .where(and(...conditions));
+
+ if (existing.length === 0) {
+ await db.insert(configEditorPinned).values({
+ userId,
+ hostId,
+ name,
+ path,
+ pinnedAt: new Date().toISOString()
+ });
+ }
+ res.json({message: 'File pinned successfully'});
+ } catch (err) {
+ logger.error('Failed to pin file', err);
+ res.status(500).json({error: 'Failed to pin file'});
+ }
+});
+
+// Route: Remove file from pinned (requires JWT)
+// DELETE /ssh/config_editor/pinned
+router.delete('/config_editor/pinned', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {name, path, hostId} = req.body;
+ if (!isNonEmptyString(userId) || !name || !path || !hostId) {
+ logger.warn('Invalid request for removing pinned file');
+ return res.status(400).json({error: 'Invalid request - userId, name, path, and hostId are required'});
+ }
+ try {
+ const conditions = [
+ eq(configEditorPinned.userId, userId),
+ eq(configEditorPinned.path, path),
+ eq(configEditorPinned.hostId, hostId)
+ ];
+
+ const result = await db
+ .delete(configEditorPinned)
+ .where(and(...conditions));
+ res.json({message: 'File unpinned successfully'});
+ } catch (err) {
+ logger.error('Failed to unpin file', err);
+ res.status(500).json({error: 'Failed to unpin file'});
+ }
+});
+
+// Route: Get folder shortcuts (requires JWT)
+// GET /ssh/config_editor/shortcuts
+router.get('/config_editor/shortcuts', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const hostId = req.query.hostId ? parseInt(req.query.hostId as string) : null;
+
+ if (!isNonEmptyString(userId)) {
+ return res.status(400).json({error: 'Invalid userId'});
+ }
+
+ if (!hostId) {
+ return res.status(400).json({error: 'Host ID is required'});
+ }
+
+ try {
+ const shortcuts = await db
+ .select()
+ .from(configEditorShortcuts)
+ .where(and(
+ eq(configEditorShortcuts.userId, userId),
+ eq(configEditorShortcuts.hostId, hostId)
+ ))
+ .orderBy(configEditorShortcuts.createdAt);
+ res.json(shortcuts);
+ } catch (err) {
+ logger.error('Failed to fetch shortcuts', err);
+ res.status(500).json({error: 'Failed to fetch shortcuts'});
+ }
+});
+
+// Route: Add folder shortcut (requires JWT)
+// POST /ssh/config_editor/shortcuts
+router.post('/config_editor/shortcuts', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {name, path, hostId} = req.body;
+ if (!isNonEmptyString(userId) || !name || !path || !hostId) {
+ return res.status(400).json({error: 'Invalid request - userId, name, path, and hostId are required'});
+ }
+ try {
+ const conditions = [
+ eq(configEditorShortcuts.userId, userId),
+ eq(configEditorShortcuts.path, path),
+ eq(configEditorShortcuts.hostId, hostId)
+ ];
+
+ const existing = await db
+ .select()
+ .from(configEditorShortcuts)
+ .where(and(...conditions));
+
+ if (existing.length === 0) {
+ await db.insert(configEditorShortcuts).values({
+ userId,
+ hostId,
+ name,
+ path,
+ createdAt: new Date().toISOString()
+ });
+ }
+ res.json({message: 'Shortcut added successfully'});
+ } catch (err) {
+ logger.error('Failed to add shortcut', err);
+ res.status(500).json({error: 'Failed to add shortcut'});
+ }
+});
+
+// Route: Remove folder shortcut (requires JWT)
+// DELETE /ssh/config_editor/shortcuts
+router.delete('/config_editor/shortcuts', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ const {name, path, hostId} = req.body;
+ if (!isNonEmptyString(userId) || !name || !path || !hostId) {
+ return res.status(400).json({error: 'Invalid request - userId, name, path, and hostId are required'});
+ }
+ try {
+ const conditions = [
+ eq(configEditorShortcuts.userId, userId),
+ eq(configEditorShortcuts.path, path),
+ eq(configEditorShortcuts.hostId, hostId)
+ ];
+
+ const result = await db
+ .delete(configEditorShortcuts)
+ .where(and(...conditions));
+ res.json({message: 'Shortcut removed successfully'});
+ } catch (err) {
+ logger.error('Failed to remove shortcut', err);
+ res.status(500).json({error: 'Failed to remove shortcut'});
+ }
+});
+
+export default router;
\ No newline at end of file
diff --git a/src/backend/database/routes/users.ts b/src/backend/database/routes/users.ts
new file mode 100644
index 000000000..783408aa7
--- /dev/null
+++ b/src/backend/database/routes/users.ts
@@ -0,0 +1,642 @@
+import express from 'express';
+import {db} from '../db/index.js';
+import {users, settings} from '../db/schema.js';
+import {eq, and} from 'drizzle-orm';
+import chalk from 'chalk';
+import bcrypt from 'bcryptjs';
+import {nanoid} from 'nanoid';
+import jwt from 'jsonwebtoken';
+import type {Request, Response, NextFunction} from 'express';
+
+async function verifyOIDCToken(idToken: string, issuerUrl: string, clientId: string): Promise<any> {
+ try {
+ let jwksUrl: string | null = null;
+
+ const normalizedIssuerUrl = issuerUrl.endsWith('/') ? issuerUrl.slice(0, -1) : issuerUrl;
+
+ try {
+ const discoveryUrl = `${normalizedIssuerUrl}/.well-known/openid-configuration`;
+ const discoveryResponse = await fetch(discoveryUrl);
+ if (discoveryResponse.ok) {
+ const discovery = await discoveryResponse.json() as any;
+ if (discovery.jwks_uri) {
+ jwksUrl = discovery.jwks_uri;
+ } else {
+ logger.warn('OIDC discovery document does not contain jwks_uri');
+ }
+ } else {
+ logger.warn(`OIDC discovery failed with status: ${discoveryResponse.status}`);
+ }
+ } catch (discoveryError) {
+ logger.warn(`OIDC discovery failed: ${discoveryError}`);
+ }
+
+ if (!jwksUrl) {
+ jwksUrl = `${normalizedIssuerUrl}/.well-known/jwks.json`;
+ }
+
+ if (!jwksUrl) {
+ const authentikJwksUrl = `${normalizedIssuerUrl}/jwks/`;
+ try {
+ const jwksTestResponse = await fetch(authentikJwksUrl);
+ if (jwksTestResponse.ok) {
+ jwksUrl = authentikJwksUrl;
+ }
+ } catch (error) {
+ logger.warn(`Authentik JWKS URL also failed: ${error}`);
+ }
+ }
+
+ if (!jwksUrl) {
+ const baseUrl = normalizedIssuerUrl.replace(/\/application\/o\/[^\/]+$/, '');
+ const rootJwksUrl = `${baseUrl}/.well-known/jwks.json`;
+ try {
+ const jwksTestResponse = await fetch(rootJwksUrl);
+ if (jwksTestResponse.ok) {
+ jwksUrl = rootJwksUrl;
+ }
+ } catch (error) {
+ logger.warn(`Authentik root JWKS URL also failed: ${error}`);
+ }
+ }
+
+ const jwksResponse = await fetch(jwksUrl);
+ if (!jwksResponse.ok) {
+ throw new Error(`Failed to fetch JWKS from ${jwksUrl}: ${jwksResponse.status}`);
+ }
+
+ const jwks = await jwksResponse.json() as any;
+
+ const header = JSON.parse(Buffer.from(idToken.split('.')[0], 'base64').toString());
+ const keyId = header.kid;
+
+ const publicKey = jwks.keys.find((key: any) => key.kid === keyId);
+ if (!publicKey) {
+ throw new Error(`No matching public key found for key ID: ${keyId}`);
+ }
+
+ const { importJWK, jwtVerify } = await import('jose');
+ const key = await importJWK(publicKey);
+
+ const { payload } = await jwtVerify(idToken, key, {
+ issuer: issuerUrl,
+ audience: clientId,
+ });
+
+ return payload;
+ } catch (error) {
+ logger.error('OIDC token verification failed:', error);
+ throw error;
+ }
+}
+
+const dbIconSymbol = '🗄️';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${dbIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+const router = express.Router();
+
+function isNonEmptyString(val: any): val is string {
+ return typeof val === 'string' && val.trim().length > 0;
+}
+
+interface JWTPayload {
+ userId: string;
+ iat?: number;
+ exp?: number;
+}
+
+// JWT authentication middleware
+function authenticateJWT(req: Request, res: Response, next: NextFunction) {
+ const authHeader = req.headers['authorization'];
+ if (!authHeader || !authHeader.startsWith('Bearer ')) {
+ logger.warn('Missing or invalid Authorization header');
+ return res.status(401).json({error: 'Missing or invalid Authorization header'});
+ }
+ const token = authHeader.split(' ')[1];
+ const jwtSecret = process.env.JWT_SECRET || 'secret';
+ try {
+ const payload = jwt.verify(token, jwtSecret) as JWTPayload;
+ (req as any).userId = payload.userId;
+ next();
+ } catch (err) {
+ logger.warn('Invalid or expired token');
+ return res.status(401).json({error: 'Invalid or expired token'});
+ }
+}
+
+// Route: Create traditional user (username/password)
+// POST /users/create
+router.post('/create', async (req, res) => {
+ try {
+ const row = db.$client.prepare("SELECT value FROM settings WHERE key = 'allow_registration'").get();
+ if (row && (row as any).value !== 'true') {
+ return res.status(403).json({error: 'Registration is currently disabled'});
+ }
+ } catch (e) {
+ }
+
+ const {username, password} = req.body;
+
+ if (!isNonEmptyString(username) || !isNonEmptyString(password)) {
+ logger.warn('Invalid user creation attempt - missing username or password');
+ return res.status(400).json({ error: 'Username and password are required' });
+ }
+
+ try {
+ const existing = await db
+ .select()
+ .from(users)
+ .where(eq(users.username, username));
+ if (existing && existing.length > 0) {
+ logger.warn(`Attempt to create duplicate username: ${username}`);
+ return res.status(409).json({error: 'Username already exists'});
+ }
+
+ let isFirstUser = false;
+ try {
+ const countResult = db.$client.prepare('SELECT COUNT(*) as count FROM users').get();
+ isFirstUser = ((countResult as any)?.count || 0) === 0;
+ } catch (e) {
+ isFirstUser = true;
+ }
+
+ const saltRounds = parseInt(process.env.SALT || '10', 10);
+ const password_hash = await bcrypt.hash(password, saltRounds);
+ const id = nanoid();
+
+ await db.insert(users).values({
+ id,
+ username,
+ password_hash,
+ is_admin: isFirstUser,
+ is_oidc: false,
+ client_id: '',
+ client_secret: '',
+ issuer_url: '',
+ authorization_url: '',
+ token_url: '',
+ identifier_path: '',
+ name_path: '',
+ scopes: 'openid email profile',
+ });
+
+ logger.success(`Traditional user created: ${username} (is_admin: ${isFirstUser})`);
+ res.json({message: 'User created', is_admin: isFirstUser});
+ } catch (err) {
+ logger.error('Failed to create user', err);
+ res.status(500).json({error: 'Failed to create user'});
+ }
+});
+
+// Route: Create OIDC provider configuration (admin only)
+// POST /users/oidc-config
+router.post('/oidc-config', authenticateJWT, async (req, res) => {
+ const userId = (req as any).userId;
+ try {
+ const user = await db.select().from(users).where(eq(users.id, userId));
+ if (!user || user.length === 0 || !user[0].is_admin) {
+ return res.status(403).json({error: 'Not authorized'});
+ }
+
+ const {
+ client_id,
+ client_secret,
+ issuer_url,
+ authorization_url,
+ token_url,
+ identifier_path,
+ name_path,
+ scopes
+ } = req.body;
+
+ if (!isNonEmptyString(client_id) || !isNonEmptyString(client_secret) ||
+ !isNonEmptyString(issuer_url) || !isNonEmptyString(authorization_url) ||
+ !isNonEmptyString(token_url) || !isNonEmptyString(identifier_path) ||
+ !isNonEmptyString(name_path)) {
+ return res.status(400).json({error: 'All OIDC configuration fields are required'});
+ }
+
+ const config = {
+ client_id,
+ client_secret,
+ issuer_url,
+ authorization_url,
+ token_url,
+ identifier_path,
+ name_path,
+ scopes: scopes || 'openid email profile'
+ };
+
+ db.$client.prepare("INSERT OR REPLACE INTO settings (key, value) VALUES ('oidc_config', ?)").run(JSON.stringify(config));
+
+ res.json({message: 'OIDC configuration updated'});
+ } catch (err) {
+ logger.error('Failed to update OIDC config', err);
+ res.status(500).json({error: 'Failed to update OIDC config'});
+ }
+});
+
+// Route: Get OIDC configuration
+// GET /users/oidc-config
+router.get('/oidc-config', async (req, res) => {
+ try {
+ const row = db.$client.prepare("SELECT value FROM settings WHERE key = 'oidc_config'").get();
+ if (!row) {
+ return res.status(404).json({error: 'OIDC not configured'});
+ }
+ res.json(JSON.parse((row as any).value));
+ } catch (err) {
+ logger.error('Failed to get OIDC config', err);
+ res.status(500).json({error: 'Failed to get OIDC config'});
+ }
+});
+
+// Route: Get OIDC authorization URL
+// GET /users/oidc/authorize
+router.get('/oidc/authorize', async (req, res) => {
+ try {
+ const row = db.$client.prepare("SELECT value FROM settings WHERE key = 'oidc_config'").get();
+ if (!row) {
+ return res.status(404).json({error: 'OIDC not configured'});
+ }
+
+ const config = JSON.parse((row as any).value);
+ const state = nanoid();
+ const nonce = nanoid();
+
+ let origin = req.get('Origin') || req.get('Referer')?.replace(/\/[^\/]*$/, '') || 'http://localhost:5173';
+
+ if (origin.includes('localhost')) {
+ origin = 'http://localhost:8081';
+ }
+
+ const redirectUri = `${origin}/users/oidc/callback`;
+
+ db.$client.prepare("INSERT OR REPLACE INTO settings (key, value) VALUES (?, ?)").run(`oidc_state_${state}`, nonce);
+
+ db.$client.prepare("INSERT OR REPLACE INTO settings (key, value) VALUES (?, ?)").run(`oidc_redirect_${state}`, redirectUri);
+
+ const authUrl = new URL(config.authorization_url);
+ authUrl.searchParams.set('client_id', config.client_id);
+ authUrl.searchParams.set('redirect_uri', redirectUri);
+ authUrl.searchParams.set('response_type', 'code');
+ authUrl.searchParams.set('scope', config.scopes);
+ authUrl.searchParams.set('state', state);
+ authUrl.searchParams.set('nonce', nonce);
+
+ res.json({auth_url: authUrl.toString(), state, nonce});
+ } catch (err) {
+ logger.error('Failed to generate OIDC auth URL', err);
+ res.status(500).json({error: 'Failed to generate authorization URL'});
+ }
+});
+
+// Route: OIDC callback - exchange code for token and create/login user
+// GET /users/oidc/callback
+router.get('/oidc/callback', async (req, res) => {
+ const {code, state} = req.query;
+
+ if (!isNonEmptyString(code) || !isNonEmptyString(state)) {
+ return res.status(400).json({error: 'Code and state are required'});
+ }
+
+ const storedRedirectRow = db.$client.prepare("SELECT value FROM settings WHERE key = ?").get(`oidc_redirect_${state}`);
+ if (!storedRedirectRow) {
+ return res.status(400).json({error: 'Invalid state parameter - redirect URI not found'});
+ }
+ const redirectUri = (storedRedirectRow as any).value;
+
+ try {
+ const storedNonce = db.$client.prepare("SELECT value FROM settings WHERE key = ?").get(`oidc_state_${state}`);
+ if (!storedNonce) {
+ return res.status(400).json({error: 'Invalid state parameter'});
+ }
+
+ db.$client.prepare("DELETE FROM settings WHERE key = ?").run(`oidc_state_${state}`);
+ db.$client.prepare("DELETE FROM settings WHERE key = ?").run(`oidc_redirect_${state}`);
+
+ const configRow = db.$client.prepare("SELECT value FROM settings WHERE key = 'oidc_config'").get();
+ if (!configRow) {
+ return res.status(500).json({error: 'OIDC not configured'});
+ }
+
+ const config = JSON.parse((configRow as any).value);
+
+ const tokenResponse = await fetch(config.token_url, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ },
+ body: new URLSearchParams({
+ grant_type: 'authorization_code',
+ client_id: config.client_id,
+ client_secret: config.client_secret,
+ code: code,
+ redirect_uri: redirectUri,
+ }),
+ });
+
+ if (!tokenResponse.ok) {
+ logger.error('OIDC token exchange failed', await tokenResponse.text());
+ return res.status(400).json({error: 'Failed to exchange authorization code'});
+ }
+
+ const tokenData = await tokenResponse.json() as any;
+
+ let userInfo;
+ if (tokenData.id_token) {
+ try {
+ userInfo = await verifyOIDCToken(tokenData.id_token, config.issuer_url, config.client_id);
+ } catch (error) {
+ logger.error('OIDC token verification failed, falling back to userinfo endpoint', error);
+ if (tokenData.access_token) {
+ const normalizedIssuerUrl = config.issuer_url.endsWith('/') ? config.issuer_url.slice(0, -1) : config.issuer_url;
+ const baseUrl = normalizedIssuerUrl.replace(/\/application\/o\/[^\/]+$/, '');
+ const userInfoUrl = `${baseUrl}/userinfo/`;
+
+ const userInfoResponse = await fetch(userInfoUrl, {
+ headers: {
+ 'Authorization': `Bearer ${tokenData.access_token}`,
+ },
+ });
+
+ if (userInfoResponse.ok) {
+ userInfo = await userInfoResponse.json();
+ } else {
+ logger.error(`Userinfo endpoint failed with status: ${userInfoResponse.status}`);
+ }
+ }
+ }
+ } else if (tokenData.access_token) {
+ const normalizedIssuerUrl = config.issuer_url.endsWith('/') ? config.issuer_url.slice(0, -1) : config.issuer_url;
+ const baseUrl = normalizedIssuerUrl.replace(/\/application\/o\/[^\/]+$/, '');
+ const userInfoUrl = `${baseUrl}/userinfo/`;
+
+ const userInfoResponse = await fetch(userInfoUrl, {
+ headers: {
+ 'Authorization': `Bearer ${tokenData.access_token}`,
+ },
+ });
+
+ if (userInfoResponse.ok) {
+ userInfo = await userInfoResponse.json();
+ } else {
+ logger.error(`Userinfo endpoint failed with status: ${userInfoResponse.status}`);
+ }
+ }
+
+ if (!userInfo) {
+ return res.status(400).json({error: 'Failed to get user information'});
+ }
+
+ const identifier = userInfo[config.identifier_path];
+ const name = userInfo[config.name_path] || identifier;
+
+ if (!identifier) {
+ logger.error(`Identifier not found at path: ${config.identifier_path}`);
+ logger.error(`Available fields: ${Object.keys(userInfo).join(', ')}`);
+ return res.status(400).json({error: `User identifier not found at path: ${config.identifier_path}. Available fields: ${Object.keys(userInfo).join(', ')}`});
+ }
+
+ let user = await db
+ .select()
+ .from(users)
+ .where(and(eq(users.is_oidc, true), eq(users.oidc_identifier, identifier)));
+
+ let isFirstUser = false;
+ if (!user || user.length === 0) {
+ try {
+ const countResult = db.$client.prepare('SELECT COUNT(*) as count FROM users').get();
+ isFirstUser = ((countResult as any)?.count || 0) === 0;
+ } catch (e) {
+ isFirstUser = true;
+ }
+
+ const id = nanoid();
+ await db.insert(users).values({
+ id,
+ username: name,
+ password_hash: '',
+ is_admin: isFirstUser,
+ is_oidc: true,
+ oidc_identifier: identifier,
+ client_id: config.client_id,
+ client_secret: config.client_secret,
+ issuer_url: config.issuer_url,
+ authorization_url: config.authorization_url,
+ token_url: config.token_url,
+ identifier_path: config.identifier_path,
+ name_path: config.name_path,
+ scopes: config.scopes,
+ });
+
+ user = await db
+ .select()
+ .from(users)
+ .where(eq(users.id, id));
+ } else {
+ await db.update(users)
+ .set({ username: name })
+ .where(eq(users.id, user[0].id));
+
+ user = await db
+ .select()
+ .from(users)
+ .where(eq(users.id, user[0].id));
+ }
+
+ const userRecord = user[0];
+
+ const jwtSecret = process.env.JWT_SECRET || 'secret';
+ const token = jwt.sign({ userId: userRecord.id }, jwtSecret, {
+ expiresIn: '50d',
+ });
+
+ let frontendUrl = redirectUri.replace('/users/oidc/callback', '');
+
+ if (frontendUrl.includes('localhost')) {
+ frontendUrl = 'http://localhost:5173';
+ }
+
+ const redirectUrl = new URL(frontendUrl);
+ redirectUrl.searchParams.set('success', 'true');
+ redirectUrl.searchParams.set('token', token);
+
+ res.redirect(redirectUrl.toString());
+
+ } catch (err) {
+ logger.error('OIDC callback failed', err);
+
+ let frontendUrl = redirectUri.replace('/users/oidc/callback', '');
+
+ if (frontendUrl.includes('localhost')) {
+ frontendUrl = 'http://localhost:5173';
+ }
+
+ const redirectUrl = new URL(frontendUrl);
+ redirectUrl.searchParams.set('error', 'OIDC authentication failed');
+
+ res.redirect(redirectUrl.toString());
+ }
+});
+
+// Route: Get user JWT by username and password (traditional login)
+// POST /users/login
+router.post('/login', async (req, res) => {
+ const {username, password} = req.body;
+
+ if (!isNonEmptyString(username) || !isNonEmptyString(password)) {
+ logger.warn('Invalid traditional login attempt');
+ return res.status(400).json({ error: 'Invalid username or password' });
+ }
+
+ try {
+ const user = await db
+ .select()
+ .from(users)
+ .where(eq(users.username, username));
+
+ if (!user || user.length === 0) {
+ logger.warn(`User not found: ${username}`);
+ return res.status(404).json({ error: 'User not found' });
+ }
+
+ const userRecord = user[0];
+
+ if (userRecord.is_oidc) {
+ return res.status(403).json({ error: 'This user uses external authentication' });
+ }
+
+ const isMatch = await bcrypt.compare(password, userRecord.password_hash);
+ if (!isMatch) {
+ logger.warn(`Incorrect password for user: ${username}`);
+ return res.status(401).json({ error: 'Incorrect password' });
+ }
+
+ const jwtSecret = process.env.JWT_SECRET || 'secret';
+ const token = jwt.sign({ userId: userRecord.id }, jwtSecret, {
+ expiresIn: '50d',
+ });
+
+ return res.json({
+ token,
+ is_admin: !!userRecord.is_admin,
+ username: userRecord.username
+ });
+
+ } catch (err) {
+ logger.error('Failed to log in user', err);
+ return res.status(500).json({ error: 'Login failed' });
+ }
+});
+
+// Route: Get current user's info using JWT
+// GET /users/me
+router.get('/me', authenticateJWT, async (req: Request, res: Response) => {
+ const userId = (req as any).userId;
+ if (!isNonEmptyString(userId)) {
+ logger.warn('Invalid userId in JWT for /users/me');
+ return res.status(401).json({error: 'Invalid userId'});
+ }
+ try {
+ const user = await db
+ .select()
+ .from(users)
+ .where(eq(users.id, userId));
+ if (!user || user.length === 0) {
+ logger.warn(`User not found for /users/me: ${userId}`);
+ return res.status(401).json({error: 'User not found'});
+ }
+ res.json({
+ username: user[0].username,
+ is_admin: !!user[0].is_admin,
+ is_oidc: !!user[0].is_oidc
+ });
+ } catch (err) {
+ logger.error('Failed to get username', err);
+ res.status(500).json({error: 'Failed to get username'});
+ }
+});
+
+// Route: Count users
+// GET /users/count
+router.get('/count', async (req, res) => {
+ try {
+ const countResult = db.$client.prepare('SELECT COUNT(*) as count FROM users').get();
+ const count = (countResult as any)?.count || 0;
+ res.json({count});
+ } catch (err) {
+ logger.error('Failed to count users', err);
+ res.status(500).json({error: 'Failed to count users'});
+ }
+});
+
+// Route: DB health check (actually queries DB)
+// GET /users/db-health
+router.get('/db-health', async (req, res) => {
+ try {
+ db.$client.prepare('SELECT 1').get();
+ res.json({status: 'ok'});
+ } catch (err) {
+ logger.error('DB health check failed', err);
+ res.status(500).json({error: 'Database not accessible'});
+ }
+});
+
+// Route: Get registration allowed status
+// GET /users/registration-allowed
+router.get('/registration-allowed', async (req, res) => {
+ try {
+ const row = db.$client.prepare("SELECT value FROM settings WHERE key = 'allow_registration'").get();
+ res.json({allowed: row ? (row as any).value === 'true' : true});
+ } catch (err) {
+ logger.error('Failed to get registration allowed', err);
+ res.status(500).json({error: 'Failed to get registration allowed'});
+ }
+});
+
+// Route: Set registration allowed status (admin only)
+// PATCH /users/registration-allowed
+router.patch('/registration-allowed', authenticateJWT, async (req, res) => {
+ const userId = (req as any).userId;
+ try {
+ const user = await db.select().from(users).where(eq(users.id, userId));
+ if (!user || user.length === 0 || !user[0].is_admin) {
+ return res.status(403).json({error: 'Not authorized'});
+ }
+ const {allowed} = req.body;
+ if (typeof allowed !== 'boolean') {
+ return res.status(400).json({error: 'Invalid value for allowed'});
+ }
+ db.$client.prepare("UPDATE settings SET value = ? WHERE key = 'allow_registration'").run(allowed ? 'true' : 'false');
+ res.json({allowed});
+ } catch (err) {
+ logger.error('Failed to set registration allowed', err);
+ res.status(500).json({error: 'Failed to set registration allowed'});
+ }
+});
+
+export default router;
\ No newline at end of file
diff --git a/src/backend/ssh/ssh.ts b/src/backend/ssh/ssh.ts
new file mode 100644
index 000000000..4646528ce
--- /dev/null
+++ b/src/backend/ssh/ssh.ts
@@ -0,0 +1,363 @@
+import {WebSocketServer, WebSocket, type RawData} from 'ws';
+import {Client, type ClientChannel, type PseudoTtyOptions} from 'ssh2';
+import chalk from 'chalk';
+
+const wss = new WebSocketServer({port: 8082});
+
+const sshIconSymbol = '🖥️';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${sshIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+wss.on('connection', (ws: WebSocket) => {
+ let sshConn: Client | null = null;
+ let sshStream: ClientChannel | null = null;
+ let pingInterval: NodeJS.Timeout | null = null;
+
+ ws.on('close', () => {
+ cleanupSSH();
+ });
+
+ ws.on('message', (msg: RawData) => {
+ let parsed: any;
+ try {
+ parsed = JSON.parse(msg.toString());
+ } catch (e) {
+ logger.error('Invalid JSON received: ' + msg.toString());
+ ws.send(JSON.stringify({type: 'error', message: 'Invalid JSON'}));
+ return;
+ }
+
+ const {type, data} = parsed;
+
+ switch (type) {
+ case 'connectToHost':
+ handleConnectToHost(data);
+ break;
+
+ case 'resize':
+ handleResize(data);
+ break;
+
+ case 'disconnect':
+ cleanupSSH();
+ break;
+
+ case 'input':
+ if (sshStream) {
+ if (data === '\t') {
+ sshStream.write(data);
+ } else if (data.startsWith('\x1b')) {
+ sshStream.write(data);
+ } else {
+ sshStream.write(Buffer.from(data, 'utf8'));
+ }
+ }
+ break;
+
+ case 'ping':
+ ws.send(JSON.stringify({type: 'pong'}));
+ break;
+
+ default:
+ logger.warn('Unknown message type: ' + type);
+ }
+ });
+
+ function handleConnectToHost(data: {
+ cols: number;
+ rows: number;
+ hostConfig: {
+ ip: string;
+ port: number;
+ username: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ authType?: string;
+ };
+ }) {
+ const {cols, rows, hostConfig} = data;
+ const {ip, port, username, password, key, keyPassword, keyType, authType} = hostConfig;
+
+ if (!username || typeof username !== 'string' || username.trim() === '') {
+ logger.error('Invalid username provided');
+ ws.send(JSON.stringify({type: 'error', message: 'Invalid username provided'}));
+ return;
+ }
+
+ if (!ip || typeof ip !== 'string' || ip.trim() === '') {
+ logger.error('Invalid IP provided');
+ ws.send(JSON.stringify({type: 'error', message: 'Invalid IP provided'}));
+ return;
+ }
+
+ if (!port || typeof port !== 'number' || port <= 0) {
+ logger.error('Invalid port provided');
+ ws.send(JSON.stringify({type: 'error', message: 'Invalid port provided'}));
+ return;
+ }
+
+ sshConn = new Client();
+
+ const connectionTimeout = setTimeout(() => {
+ if (sshConn) {
+ logger.error('SSH connection timeout');
+ ws.send(JSON.stringify({type: 'error', message: 'SSH connection timeout'}));
+ cleanupSSH(connectionTimeout);
+ }
+ }, 15000);
+
+ sshConn.on('ready', () => {
+ clearTimeout(connectionTimeout);
+ const pseudoTtyOpts: PseudoTtyOptions = {
+ term: 'xterm-256color',
+ cols,
+ rows,
+ modes: {
+ ECHO: 1,
+ ECHOCTL: 0,
+ ICANON: 1,
+ ISIG: 1,
+ ICRNL: 1,
+ IXON: 1,
+ IXOFF: 0,
+ ISTRIP: 0,
+ OPOST: 1,
+ ONLCR: 1,
+ OCRNL: 0,
+ ONOCR: 0,
+ ONLRET: 0,
+ CS7: 0,
+ CS8: 1,
+ PARENB: 0,
+ PARODD: 0,
+ TTY_OP_ISPEED: 38400,
+ TTY_OP_OSPEED: 38400,
+ }
+ };
+
+ sshConn!.shell(pseudoTtyOpts, (err, stream) => {
+ if (err) {
+ logger.error('Shell error: ' + err.message);
+ ws.send(JSON.stringify({type: 'error', message: 'Shell error: ' + err.message}));
+ return;
+ }
+
+ sshStream = stream;
+
+ stream.on('data', (chunk: Buffer) => {
+ let data: string;
+ try {
+ data = chunk.toString('utf8');
+ } catch (e) {
+ data = chunk.toString('binary');
+ }
+
+ ws.send(JSON.stringify({type: 'data', data}));
+ });
+
+ stream.on('close', () => {
+ cleanupSSH(connectionTimeout);
+ });
+
+ stream.on('error', (err: Error) => {
+ logger.error('SSH stream error: ' + err.message);
+
+ const isConnectionError = err.message.includes('ECONNRESET') ||
+ err.message.includes('EPIPE') ||
+ err.message.includes('ENOTCONN') ||
+ err.message.includes('ETIMEDOUT');
+
+ if (isConnectionError) {
+ ws.send(JSON.stringify({type: 'disconnected', message: 'Connection lost'}));
+ } else {
+ ws.send(JSON.stringify({type: 'error', message: 'SSH stream error: ' + err.message}));
+ }
+ });
+
+ setupPingInterval();
+
+ ws.send(JSON.stringify({type: 'connected', message: 'SSH connected'}));
+ });
+ });
+
+ sshConn.on('error', (err: Error) => {
+ clearTimeout(connectionTimeout);
+ logger.error('SSH connection error: ' + err.message);
+
+ let errorMessage = 'SSH error: ' + err.message;
+ if (err.message.includes('No matching key exchange algorithm')) {
+ errorMessage = 'SSH error: No compatible key exchange algorithm found. This may be due to an older SSH server or network device.';
+ } else if (err.message.includes('No matching cipher')) {
+ errorMessage = 'SSH error: No compatible cipher found. This may be due to an older SSH server or network device.';
+ } else if (err.message.includes('No matching MAC')) {
+ errorMessage = 'SSH error: No compatible MAC algorithm found. This may be due to an older SSH server or network device.';
+ } else if (err.message.includes('ENOTFOUND') || err.message.includes('ENOENT')) {
+ errorMessage = 'SSH error: Could not resolve hostname or connect to server.';
+ } else if (err.message.includes('ECONNREFUSED')) {
+ errorMessage = 'SSH error: Connection refused. The server may not be running or the port may be incorrect.';
+ } else if (err.message.includes('ETIMEDOUT')) {
+ errorMessage = 'SSH error: Connection timed out. Check your network connection and server availability.';
+ } else if (err.message.includes('ECONNRESET') || err.message.includes('EPIPE')) {
+ errorMessage = 'SSH error: Connection was reset. This may be due to network issues or server timeout.';
+ } else if (err.message.includes('authentication failed') || err.message.includes('Permission denied')) {
+ errorMessage = 'SSH error: Authentication failed. Please check your username and password/key.';
+ }
+
+ ws.send(JSON.stringify({type: 'error', message: errorMessage}));
+ cleanupSSH(connectionTimeout);
+ });
+
+ sshConn.on('close', () => {
+ clearTimeout(connectionTimeout);
+ cleanupSSH(connectionTimeout);
+ });
+
+ const connectConfig: any = {
+ host: ip,
+ port,
+ username,
+ keepaliveInterval: 30000,
+ keepaliveCountMax: 3,
+ readyTimeout: 10000,
+ tcpKeepAlive: true,
+ tcpKeepAliveInitialDelay: 30000,
+ env: {
+ TERM: 'xterm-256color',
+ LANG: 'en_US.UTF-8',
+ LC_ALL: 'en_US.UTF-8',
+ LC_CTYPE: 'en_US.UTF-8',
+ LC_MESSAGES: 'en_US.UTF-8',
+ LC_MONETARY: 'en_US.UTF-8',
+ LC_NUMERIC: 'en_US.UTF-8',
+ LC_TIME: 'en_US.UTF-8',
+ LC_COLLATE: 'en_US.UTF-8',
+ COLORTERM: 'truecolor',
+ },
+
+ algorithms: {
+ kex: [
+ 'diffie-hellman-group14-sha256',
+ 'diffie-hellman-group14-sha1',
+ 'diffie-hellman-group1-sha1',
+ 'diffie-hellman-group-exchange-sha256',
+ 'diffie-hellman-group-exchange-sha1',
+ 'ecdh-sha2-nistp256',
+ 'ecdh-sha2-nistp384',
+ 'ecdh-sha2-nistp521'
+ ],
+ cipher: [
+ 'aes128-ctr',
+ 'aes192-ctr',
+ 'aes256-ctr',
+ 'aes128-cbc',
+ 'aes192-cbc',
+ 'aes256-cbc',
+ '3des-cbc'
+ ],
+ hmac: [
+ 'hmac-sha2-256',
+ 'hmac-sha2-512',
+ 'hmac-sha1',
+ 'hmac-md5'
+ ],
+ compress: [
+ 'none',
+ 'zlib'
+ ]
+ }
+ };
+ if (authType === 'key' && key) {
+ connectConfig.privateKey = key;
+ if (keyPassword) {
+ connectConfig.passphrase = keyPassword;
+ }
+ if (keyType && keyType !== 'auto') {
+ connectConfig.privateKeyType = keyType;
+ }
+ } else if (authType === 'key') {
+ logger.error('SSH key authentication requested but no key provided');
+ ws.send(JSON.stringify({type: 'error', message: 'SSH key authentication requested but no key provided'}));
+ return;
+ } else {
+ connectConfig.password = password;
+ }
+
+ sshConn.connect(connectConfig);
+ }
+
+ function handleResize(data: { cols: number; rows: number }) {
+ if (sshStream && sshStream.setWindow) {
+ sshStream.setWindow(data.rows, data.cols, data.rows, data.cols);
+ ws.send(JSON.stringify({type: 'resized', cols: data.cols, rows: data.rows}));
+ }
+ }
+
+ function cleanupSSH(timeoutId?: NodeJS.Timeout) {
+ if (timeoutId) {
+ clearTimeout(timeoutId);
+ }
+
+ if (pingInterval) {
+ clearInterval(pingInterval);
+ pingInterval = null;
+ }
+
+ if (sshStream) {
+ try {
+ sshStream.end();
+ } catch (e: any) {
+ logger.error('Error closing stream: ' + e.message);
+ }
+ sshStream = null;
+ }
+
+ if (sshConn) {
+ try {
+ sshConn.end();
+ } catch (e: any) {
+ logger.error('Error closing connection: ' + e.message);
+ }
+ sshConn = null;
+ }
+ }
+
+ function setupPingInterval() {
+ pingInterval = setInterval(() => {
+ if (sshConn && sshStream) {
+ try {
+ sshStream.write('\x00');
+ } catch (e: any) {
+ logger.error('SSH keepalive failed: ' + e.message);
+ cleanupSSH();
+ }
+ }
+ }, 60000);
+ }
+});
diff --git a/src/backend/ssh_tunnel/ssh_tunnel.ts b/src/backend/ssh_tunnel/ssh_tunnel.ts
new file mode 100644
index 000000000..82881605c
--- /dev/null
+++ b/src/backend/ssh_tunnel/ssh_tunnel.ts
@@ -0,0 +1,1283 @@
+import express from 'express';
+import cors from 'cors';
+import {Client} from 'ssh2';
+import {ChildProcess} from 'child_process';
+import chalk from 'chalk';
+import axios from 'axios';
+import * as net from 'net';
+
+const app = express();
+app.use(cors({
+ origin: '*',
+ methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
+ allowedHeaders: 'Origin,X-Requested-With,Content-Type,Accept,Authorization',
+}));
+app.use(express.json());
+
+const tunnelIconSymbol = '📡';
+const getTimeStamp = (): string => chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${tunnelIconSymbol}]`)} ${message}`;
+};
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+const activeTunnels = new Map<string, Client>();
+const retryCounters = new Map<string, number>();
+const connectionStatus = new Map<string, TunnelStatus>();
+const tunnelVerifications = new Map<string, VerificationData>();
+const manualDisconnects = new Set<string>();
+const verificationTimers = new Map<string, NodeJS.Timeout>();
+const activeRetryTimers = new Map<string, NodeJS.Timeout>();
+const countdownIntervals = new Map<string, NodeJS.Timeout>();
+const retryExhaustedTunnels = new Set<string>();
+
+const tunnelConfigs = new Map<string, TunnelConfig>();
+const activeTunnelProcesses = new Map<string, ChildProcess>();
+
+interface TunnelConnection {
+ sourcePort: number;
+ endpointPort: number;
+ endpointHost: string;
+ maxRetries: number;
+ retryInterval: number;
+ autoStart: boolean;
+}
+
+interface SSHHost {
+ id: number;
+ name: string;
+ ip: string;
+ port: number;
+ username: string;
+ folder: string;
+ tags: string[];
+ pin: boolean;
+ authType: string;
+ password?: string;
+ key?: string;
+ keyPassword?: string;
+ keyType?: string;
+ enableTerminal: boolean;
+ enableTunnel: boolean;
+ enableConfigEditor: boolean;
+ defaultPath: string;
+ tunnelConnections: TunnelConnection[];
+ createdAt: string;
+ updatedAt: string;
+}
+
+interface TunnelConfig {
+ name: string;
+ hostName: string;
+ sourceIP: string;
+ sourceSSHPort: number;
+ sourceUsername: string;
+ sourcePassword?: string;
+ sourceAuthMethod: string;
+ sourceSSHKey?: string;
+ sourceKeyPassword?: string;
+ sourceKeyType?: string;
+ endpointIP: string;
+ endpointSSHPort: number;
+ endpointUsername: string;
+ endpointPassword?: string;
+ endpointAuthMethod: string;
+ endpointSSHKey?: string;
+ endpointKeyPassword?: string;
+ endpointKeyType?: string;
+ sourcePort: number;
+ endpointPort: number;
+ maxRetries: number;
+ retryInterval: number;
+ autoStart: boolean;
+ isPinned: boolean;
+}
+
+interface HostConfig {
+ host: SSHHost;
+ tunnels: TunnelConfig[];
+}
+
+interface TunnelStatus {
+ connected: boolean;
+ status: ConnectionState;
+ retryCount?: number;
+ maxRetries?: number;
+ nextRetryIn?: number;
+ reason?: string;
+ errorType?: ErrorType;
+ manualDisconnect?: boolean;
+ retryExhausted?: boolean;
+}
+
+interface VerificationData {
+ conn: Client;
+ timeout: NodeJS.Timeout;
+}
+
+const CONNECTION_STATES = {
+ DISCONNECTED: "disconnected",
+ CONNECTING: "connecting",
+ CONNECTED: "connected",
+ VERIFYING: "verifying",
+ FAILED: "failed",
+ UNSTABLE: "unstable",
+ RETRYING: "retrying",
+ WAITING: "waiting"
+} as const;
+
+const ERROR_TYPES = {
+ AUTH: "authentication",
+ NETWORK: "network",
+ PORT: "port_conflict",
+ PERMISSION: "permission",
+ TIMEOUT: "timeout",
+ UNKNOWN: "unknown"
+} as const;
+
+type ConnectionState = typeof CONNECTION_STATES[keyof typeof CONNECTION_STATES];
+type ErrorType = typeof ERROR_TYPES[keyof typeof ERROR_TYPES];
+
+function broadcastTunnelStatus(tunnelName: string, status: TunnelStatus): void {
+ if (status.status === CONNECTION_STATES.CONNECTED && activeRetryTimers.has(tunnelName)) {
+ return;
+ }
+
+ if (retryExhaustedTunnels.has(tunnelName) && status.status === CONNECTION_STATES.FAILED) {
+ status.reason = "Max retries exhausted";
+ }
+
+ connectionStatus.set(tunnelName, status);
+}
+
+function getAllTunnelStatus(): Record<string, TunnelStatus> {
+ const tunnelStatus: Record<string, TunnelStatus> = {};
+ connectionStatus.forEach((status, key) => {
+ tunnelStatus[key] = status;
+ });
+ return tunnelStatus;
+}
+
+function classifyError(errorMessage: string): ErrorType {
+ if (!errorMessage) return ERROR_TYPES.UNKNOWN;
+
+ const message = errorMessage.toLowerCase();
+
+ if (message.includes("closed by remote host") ||
+ message.includes("connection reset by peer") ||
+ message.includes("connection refused") ||
+ message.includes("broken pipe")) {
+ return ERROR_TYPES.NETWORK;
+ }
+
+ if (message.includes("authentication failed") ||
+ message.includes("permission denied") ||
+ message.includes("incorrect password")) {
+ return ERROR_TYPES.AUTH;
+ }
+
+ if (message.includes("connect etimedout") ||
+ message.includes("timeout") ||
+ message.includes("timed out")) {
+ return ERROR_TYPES.TIMEOUT;
+ }
+
+ if (message.includes("bind: address already in use") ||
+ message.includes("failed for listen port") ||
+ message.includes("port forwarding failed")) {
+ return ERROR_TYPES.PORT;
+ }
+
+ if (message.includes("permission") ||
+ message.includes("access denied")) {
+ return ERROR_TYPES.PERMISSION;
+ }
+
+ return ERROR_TYPES.UNKNOWN;
+}
+
+function getTunnelMarker(tunnelName: string) {
+ return `TUNNEL_MARKER_${tunnelName.replace(/[^a-zA-Z0-9]/g, '_')}`;
+}
+
+function cleanupTunnelResources(tunnelName: string): void {
+ const tunnelConfig = tunnelConfigs.get(tunnelName);
+ if (tunnelConfig) {
+ killRemoteTunnelByMarker(tunnelConfig, tunnelName, (err) => {
+ if (err) {
+ logger.error(`Failed to kill remote tunnel for '${tunnelName}': ${err.message}`);
+ }
+ });
+ }
+
+ if (activeTunnelProcesses.has(tunnelName)) {
+ try {
+ const proc = activeTunnelProcesses.get(tunnelName);
+ if (proc) {
+ proc.kill('SIGTERM');
+ }
+ } catch (e) {
+ logger.error(`Error while killing local ssh process for tunnel '${tunnelName}'`, e);
+ }
+ activeTunnelProcesses.delete(tunnelName);
+ }
+
+ if (activeTunnels.has(tunnelName)) {
+ try {
+ const conn = activeTunnels.get(tunnelName);
+ if (conn) {
+ conn.end();
+ }
+ } catch (e) {
+ logger.error(`Error while closing SSH2 Client for tunnel '${tunnelName}'`, e);
+ }
+ activeTunnels.delete(tunnelName);
+ }
+
+ if (tunnelVerifications.has(tunnelName)) {
+ const verification = tunnelVerifications.get(tunnelName);
+ if (verification?.timeout) clearTimeout(verification.timeout);
+ try {
+ verification?.conn.end();
+ } catch (e) {
+ }
+ tunnelVerifications.delete(tunnelName);
+ }
+
+ const timerKeys = [
+ tunnelName,
+ `${tunnelName}_confirm`,
+ `${tunnelName}_retry`,
+ `${tunnelName}_verify_retry`
+ ];
+
+ timerKeys.forEach(key => {
+ if (verificationTimers.has(key)) {
+ clearTimeout(verificationTimers.get(key)!);
+ verificationTimers.delete(key);
+ }
+ });
+
+ if (activeRetryTimers.has(tunnelName)) {
+ clearTimeout(activeRetryTimers.get(tunnelName)!);
+ activeRetryTimers.delete(tunnelName);
+ }
+
+ if (countdownIntervals.has(tunnelName)) {
+ clearInterval(countdownIntervals.get(tunnelName)!);
+ countdownIntervals.delete(tunnelName);
+ }
+}
+
+function resetRetryState(tunnelName: string): void {
+ retryCounters.delete(tunnelName);
+ retryExhaustedTunnels.delete(tunnelName);
+
+ if (activeRetryTimers.has(tunnelName)) {
+ clearTimeout(activeRetryTimers.get(tunnelName)!);
+ activeRetryTimers.delete(tunnelName);
+ }
+
+ if (countdownIntervals.has(tunnelName)) {
+ clearInterval(countdownIntervals.get(tunnelName)!);
+ countdownIntervals.delete(tunnelName);
+ }
+
+ ['', '_confirm', '_retry', '_verify_retry'].forEach(suffix => {
+ const timerKey = `${tunnelName}${suffix}`;
+ if (verificationTimers.has(timerKey)) {
+ clearTimeout(verificationTimers.get(timerKey)!);
+ verificationTimers.delete(timerKey);
+ }
+ });
+}
+
+function handleDisconnect(tunnelName: string, tunnelConfig: TunnelConfig | null, shouldRetry = true): void {
+ if (tunnelVerifications.has(tunnelName)) {
+ try {
+ const verification = tunnelVerifications.get(tunnelName);
+ if (verification?.timeout) clearTimeout(verification.timeout);
+ verification?.conn.end();
+ } catch (e) {
+ }
+ tunnelVerifications.delete(tunnelName);
+ }
+
+ cleanupTunnelResources(tunnelName);
+
+ if (manualDisconnects.has(tunnelName)) {
+ resetRetryState(tunnelName);
+
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.DISCONNECTED,
+ manualDisconnect: true
+ });
+ return;
+ }
+
+
+ if (retryExhaustedTunnels.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "Max retries already exhausted"
+ });
+ return;
+ }
+
+ if (activeRetryTimers.has(tunnelName)) {
+ return;
+ }
+
+ if (shouldRetry && tunnelConfig) {
+ const maxRetries = tunnelConfig.maxRetries || 3;
+ const retryInterval = tunnelConfig.retryInterval || 5000;
+
+ let retryCount = (retryCounters.get(tunnelName) || 0) + 1;
+
+ if (retryCount > maxRetries) {
+ logger.error(`All ${maxRetries} retries failed for ${tunnelName}`);
+
+ retryExhaustedTunnels.add(tunnelName);
+ activeTunnels.delete(tunnelName);
+ retryCounters.delete(tunnelName);
+
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ retryExhausted: true,
+ reason: `Max retries exhausted`
+ });
+ return;
+ }
+
+ retryCounters.set(tunnelName, retryCount);
+
+ if (retryCount <= maxRetries) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.RETRYING,
+ retryCount: retryCount,
+ maxRetries: maxRetries,
+ nextRetryIn: retryInterval / 1000
+ });
+
+ if (activeRetryTimers.has(tunnelName)) {
+ clearTimeout(activeRetryTimers.get(tunnelName)!);
+ activeRetryTimers.delete(tunnelName);
+ }
+
+ const initialNextRetryIn = Math.ceil(retryInterval / 1000);
+ let currentNextRetryIn = initialNextRetryIn;
+
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.WAITING,
+ retryCount: retryCount,
+ maxRetries: maxRetries,
+ nextRetryIn: currentNextRetryIn
+ });
+
+ const countdownInterval = setInterval(() => {
+ currentNextRetryIn--;
+ if (currentNextRetryIn > 0) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.WAITING,
+ retryCount: retryCount,
+ maxRetries: maxRetries,
+ nextRetryIn: currentNextRetryIn
+ });
+ }
+ }, 1000);
+
+ countdownIntervals.set(tunnelName, countdownInterval);
+
+ const timer = setTimeout(() => {
+ clearInterval(countdownInterval);
+ countdownIntervals.delete(tunnelName);
+ activeRetryTimers.delete(tunnelName);
+
+ if (!manualDisconnects.has(tunnelName)) {
+ activeTunnels.delete(tunnelName);
+
+ connectSSHTunnel(tunnelConfig, retryCount);
+ }
+ }, retryInterval);
+
+ activeRetryTimers.set(tunnelName, timer);
+ }
+ } else {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED
+ });
+
+ activeTunnels.delete(tunnelName);
+ }
+}
+
+function verifyTunnelConnection(tunnelName: string, tunnelConfig: TunnelConfig, isPeriodic = false): void {
+ if (manualDisconnects.has(tunnelName) || !activeTunnels.has(tunnelName)) {
+ return;
+ }
+
+ if (tunnelVerifications.has(tunnelName)) {
+ return;
+ }
+
+ const conn = activeTunnels.get(tunnelName);
+ if (!conn) return;
+
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.VERIFYING
+ });
+
+ const verificationConn = new Client();
+ tunnelVerifications.set(tunnelName, {
+ conn: verificationConn,
+ timeout: setTimeout(() => {
+ logger.error(`Verification timeout for '${tunnelName}'`);
+ cleanupVerification(false, "Verification timeout");
+ }, 10000)
+ });
+
+ function cleanupVerification(isSuccessful: boolean, failureReason = "Unknown verification failure") {
+ const verification = tunnelVerifications.get(tunnelName);
+ if (verification) {
+ clearTimeout(verification.timeout);
+ try {
+ verification.conn.end();
+ } catch (e) {
+ }
+ tunnelVerifications.delete(tunnelName);
+ }
+
+ if (isSuccessful) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: true,
+ status: CONNECTION_STATES.CONNECTED
+ });
+
+ if (!isPeriodic) {
+ setupPingInterval(tunnelName, tunnelConfig);
+ }
+ } else {
+ logger.warn(`Verification failed for '${tunnelName}': ${failureReason}`);
+
+ if (failureReason.includes('command failed') || failureReason.includes('connection error') || failureReason.includes('timeout')) {
+ if (!manualDisconnects.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: failureReason
+ });
+ }
+ activeTunnels.delete(tunnelName);
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ } else {
+ logger.info(`Assuming tunnel '${tunnelName}' is working despite verification warning: ${failureReason}`);
+ cleanupVerification(true);
+ }
+ }
+ }
+
+ function attemptVerification() {
+ const testCmd = `timeout 3 bash -c 'nc -z ${tunnelConfig.endpointIP} ${tunnelConfig.endpointPort}'`;
+
+ verificationConn.exec(testCmd, (err, stream) => {
+ if (err) {
+ logger.error(`Verification command failed for '${tunnelName}': ${err.message}`);
+ cleanupVerification(false, `Verification command failed: ${err.message}`);
+ return;
+ }
+
+ let output = '';
+ let errorOutput = '';
+
+ stream.on('data', (data: Buffer) => {
+ output += data.toString();
+ });
+
+ stream.stderr?.on('data', (data: Buffer) => {
+ errorOutput += data.toString();
+ });
+
+ stream.on('close', (code: number) => {
+ if (code === 0) {
+ cleanupVerification(true);
+ } else {
+ const isTimeout = errorOutput.includes('timeout') || errorOutput.includes('Connection timed out');
+ const isConnectionRefused = errorOutput.includes('Connection refused') || errorOutput.includes('No route to host');
+
+ let failureReason = `Cannot connect to ${tunnelConfig.endpointIP}:${tunnelConfig.endpointPort}`;
+ if (isTimeout) {
+ failureReason = `Tunnel verification timeout - cannot reach ${tunnelConfig.endpointIP}:${tunnelConfig.endpointPort}`;
+ } else if (isConnectionRefused) {
+ failureReason = `Connection refused to ${tunnelConfig.endpointIP}:${tunnelConfig.endpointPort} - tunnel may not be established`;
+ }
+
+ cleanupVerification(false, failureReason);
+ }
+ });
+
+ stream.on('error', (err: Error) => {
+ logger.error(`Verification stream error for '${tunnelName}': ${err.message}`);
+ cleanupVerification(false, `Verification stream error: ${err.message}`);
+ });
+ });
+ }
+
+ verificationConn.on('ready', () => {
+ setTimeout(() => {
+ attemptVerification();
+ }, 2000);
+ });
+
+ verificationConn.on('error', (err: Error) => {
+ cleanupVerification(false, `Verification connection error: ${err.message}`);
+ });
+
+ verificationConn.on('close', () => {
+ if (tunnelVerifications.has(tunnelName)) {
+ cleanupVerification(false, "Verification connection closed");
+ }
+ });
+
+ const connOptions: any = {
+ host: tunnelConfig.sourceIP,
+ port: tunnelConfig.sourceSSHPort,
+ username: tunnelConfig.sourceUsername,
+ readyTimeout: 10000,
+ keepaliveInterval: 30000,
+ keepaliveCountMax: 3,
+ tcpKeepAlive: true,
+ tcpKeepAliveInitialDelay: 30000,
+ algorithms: {
+ kex: [
+ 'diffie-hellman-group14-sha256',
+ 'diffie-hellman-group14-sha1',
+ 'diffie-hellman-group1-sha1',
+ 'diffie-hellman-group-exchange-sha256',
+ 'diffie-hellman-group-exchange-sha1',
+ 'ecdh-sha2-nistp256',
+ 'ecdh-sha2-nistp384',
+ 'ecdh-sha2-nistp521'
+ ],
+ cipher: [
+ 'aes128-ctr',
+ 'aes192-ctr',
+ 'aes256-ctr',
+ 'aes128-cbc',
+ 'aes192-cbc',
+ 'aes256-cbc',
+ '3des-cbc'
+ ],
+ hmac: [
+ 'hmac-sha2-256',
+ 'hmac-sha2-512',
+ 'hmac-sha1',
+ 'hmac-md5'
+ ],
+ compress: [
+ 'none',
+ 'zlib'
+ ]
+ }
+ };
+
+ if (tunnelConfig.sourceAuthMethod === "key" && tunnelConfig.sourceSSHKey) {
+ connOptions.privateKey = tunnelConfig.sourceSSHKey;
+ if (tunnelConfig.sourceKeyPassword) {
+ connOptions.passphrase = tunnelConfig.sourceKeyPassword;
+ }
+ if (tunnelConfig.sourceKeyType && tunnelConfig.sourceKeyType !== 'auto') {
+ connOptions.privateKeyType = tunnelConfig.sourceKeyType;
+ }
+ } else if (tunnelConfig.sourceAuthMethod === "key") {
+ logger.error(`SSH key authentication requested but no key provided for tunnel '${tunnelName}'`);
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "SSH key authentication requested but no key provided"
+ });
+ return;
+ } else {
+ connOptions.password = tunnelConfig.sourcePassword;
+ }
+
+ verificationConn.connect(connOptions);
+}
+
+function setupPingInterval(tunnelName: string, tunnelConfig: TunnelConfig): void {
+ const pingInterval = setInterval(() => {
+ if (!activeTunnels.has(tunnelName) || manualDisconnects.has(tunnelName)) {
+ clearInterval(pingInterval);
+ return;
+ }
+
+ const conn = activeTunnels.get(tunnelName);
+ if (!conn) {
+ clearInterval(pingInterval);
+ return;
+ }
+
+ conn.exec('echo "ping"', (err, stream) => {
+ if (err) {
+ clearInterval(pingInterval);
+
+ if (!manualDisconnects.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.UNSTABLE,
+ reason: "Ping failed"
+ });
+ }
+
+ activeTunnels.delete(tunnelName);
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ return;
+ }
+
+ stream.on('close', (code: number) => {
+ if (code !== 0) {
+ clearInterval(pingInterval);
+
+ if (!manualDisconnects.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.UNSTABLE,
+ reason: "Ping command failed"
+ });
+ }
+
+ activeTunnels.delete(tunnelName);
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ }
+ });
+
+ stream.on('error', (err: Error) => {
+ clearInterval(pingInterval);
+
+ if (!manualDisconnects.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.UNSTABLE,
+ reason: "Ping stream error"
+ });
+ }
+
+ activeTunnels.delete(tunnelName);
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ });
+ });
+ }, 60000);
+}
+
+function connectSSHTunnel(tunnelConfig: TunnelConfig, retryAttempt = 0): void {
+ const tunnelName = tunnelConfig.name;
+ const tunnelMarker = getTunnelMarker(tunnelName);
+
+ if (manualDisconnects.has(tunnelName)) {
+ return;
+ }
+
+ cleanupTunnelResources(tunnelName);
+
+ if (retryAttempt === 0) {
+ retryExhaustedTunnels.delete(tunnelName);
+ retryCounters.delete(tunnelName);
+ }
+
+ const currentStatus = connectionStatus.get(tunnelName);
+ if (!currentStatus || currentStatus.status !== CONNECTION_STATES.WAITING) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.CONNECTING,
+ retryCount: retryAttempt > 0 ? retryAttempt : undefined
+ });
+ }
+
+ if (!tunnelConfig || !tunnelConfig.sourceIP || !tunnelConfig.sourceUsername || !tunnelConfig.sourceSSHPort) {
+ logger.error(`Invalid connection details for '${tunnelName}'`);
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "Missing required connection details"
+ });
+ return;
+ }
+
+ const conn = new Client();
+
+ const connectionTimeout = setTimeout(() => {
+ if (conn) {
+ if (activeRetryTimers.has(tunnelName)) {
+ return;
+ }
+
+ try {
+ conn.end();
+ } catch (e) {
+ }
+
+ activeTunnels.delete(tunnelName);
+
+ if (!activeRetryTimers.has(tunnelName)) {
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ }
+ }
+ }, 15000);
+
+ conn.on("error", (err) => {
+ clearTimeout(connectionTimeout);
+ logger.error(`SSH error for '${tunnelName}': ${err.message}`);
+
+ if (activeRetryTimers.has(tunnelName)) {
+ return;
+ }
+
+ const errorType = classifyError(err.message);
+
+ if (!manualDisconnects.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ errorType: errorType,
+ reason: err.message
+ });
+ }
+
+ activeTunnels.delete(tunnelName);
+
+ const shouldNotRetry = errorType === ERROR_TYPES.AUTH ||
+ errorType === ERROR_TYPES.PORT ||
+ errorType === ERROR_TYPES.PERMISSION ||
+ manualDisconnects.has(tunnelName);
+
+ handleDisconnect(tunnelName, tunnelConfig, !shouldNotRetry);
+ });
+
+ conn.on("close", () => {
+ clearTimeout(connectionTimeout);
+
+ if (activeRetryTimers.has(tunnelName)) {
+ return;
+ }
+
+ if (!manualDisconnects.has(tunnelName)) {
+ const currentStatus = connectionStatus.get(tunnelName);
+ if (!currentStatus || currentStatus.status !== CONNECTION_STATES.FAILED) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.DISCONNECTED
+ });
+ }
+
+ if (!activeRetryTimers.has(tunnelName)) {
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ }
+ }
+ });
+
+ conn.on("ready", () => {
+ clearTimeout(connectionTimeout);
+
+ const isAlreadyVerifying = tunnelVerifications.has(tunnelName);
+ if (isAlreadyVerifying) {
+ return;
+ }
+
+ let tunnelCmd: string;
+ if (tunnelConfig.endpointAuthMethod === "key" && tunnelConfig.endpointSSHKey) {
+ const keyFilePath = `/tmp/tunnel_key_${tunnelName.replace(/[^a-zA-Z0-9]/g, '_')}`;
+ tunnelCmd = `echo '${tunnelConfig.endpointSSHKey}' > ${keyFilePath} && chmod 600 ${keyFilePath} && ssh -i ${keyFilePath} -N -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -R ${tunnelConfig.endpointPort}:localhost:${tunnelConfig.sourcePort} ${tunnelConfig.endpointUsername}@${tunnelConfig.endpointIP} ${tunnelMarker} && rm -f ${keyFilePath}`;
+ } else {
+ tunnelCmd = `sshpass -p '${tunnelConfig.endpointPassword || ''}' ssh -N -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -R ${tunnelConfig.endpointPort}:localhost:${tunnelConfig.sourcePort} ${tunnelConfig.endpointUsername}@${tunnelConfig.endpointIP} ${tunnelMarker}`;
+ }
+
+ conn.exec(tunnelCmd, (err, stream) => {
+ if (err) {
+ logger.error(`Connection error for '${tunnelName}': ${err.message}`);
+
+ conn.end();
+
+ activeTunnels.delete(tunnelName);
+
+ const errorType = classifyError(err.message);
+ const shouldNotRetry = errorType === ERROR_TYPES.AUTH ||
+ errorType === ERROR_TYPES.PORT ||
+ errorType === ERROR_TYPES.PERMISSION;
+
+ handleDisconnect(tunnelName, tunnelConfig, !shouldNotRetry);
+ return;
+ }
+
+ activeTunnels.set(tunnelName, conn);
+
+ setTimeout(() => {
+ if (!manualDisconnects.has(tunnelName) && activeTunnels.has(tunnelName)) {
+ verifyTunnelConnection(tunnelName, tunnelConfig, false);
+ }
+ }, 2000);
+
+ stream.on("close", (code: number) => {
+ if (activeRetryTimers.has(tunnelName)) {
+ return;
+ }
+
+ activeTunnels.delete(tunnelName);
+
+ if (tunnelVerifications.has(tunnelName)) {
+ try {
+ const verification = tunnelVerifications.get(tunnelName);
+ if (verification?.timeout) clearTimeout(verification.timeout);
+ verification?.conn.end();
+ } catch (e) {
+ }
+ tunnelVerifications.delete(tunnelName);
+ }
+
+ const isLikelyRemoteClosure = code === 255;
+
+ if (isLikelyRemoteClosure && retryExhaustedTunnels.has(tunnelName)) {
+ retryExhaustedTunnels.delete(tunnelName);
+ }
+
+ if (!manualDisconnects.has(tunnelName) && code !== 0 && code !== undefined) {
+ if (retryExhaustedTunnels.has(tunnelName)) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "Max retries exhausted"
+ });
+ } else {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: isLikelyRemoteClosure ? "Connection closed by remote host" : "Connection closed unexpectedly"
+ });
+ }
+ }
+
+ if (!activeRetryTimers.has(tunnelName) && !retryExhaustedTunnels.has(tunnelName)) {
+ handleDisconnect(tunnelName, tunnelConfig, !manualDisconnects.has(tunnelName));
+ } else if (retryExhaustedTunnels.has(tunnelName) && isLikelyRemoteClosure) {
+ retryExhaustedTunnels.delete(tunnelName);
+ retryCounters.delete(tunnelName);
+ handleDisconnect(tunnelName, tunnelConfig, true);
+ }
+ });
+
+ stream.stdout?.on("data", (data: Buffer) => {
+ });
+
+ stream.on("error", (err: Error) => {
+ });
+
+ stream.stderr.on("data", (data) => {
+ const errorMsg = data.toString().trim();
+ logger.debug(`Tunnel stderr for '${tunnelName}': ${errorMsg}`);
+ });
+ });
+ });
+
+ const connOptions: any = {
+ host: tunnelConfig.sourceIP,
+ port: tunnelConfig.sourceSSHPort,
+ username: tunnelConfig.sourceUsername,
+ keepaliveInterval: 30000,
+ keepaliveCountMax: 3,
+ readyTimeout: 10000,
+ tcpKeepAlive: true,
+ tcpKeepAliveInitialDelay: 30000,
+ algorithms: {
+ kex: [
+ 'diffie-hellman-group14-sha256',
+ 'diffie-hellman-group14-sha1',
+ 'diffie-hellman-group1-sha1',
+ 'diffie-hellman-group-exchange-sha256',
+ 'diffie-hellman-group-exchange-sha1',
+ 'ecdh-sha2-nistp256',
+ 'ecdh-sha2-nistp384',
+ 'ecdh-sha2-nistp521'
+ ],
+ cipher: [
+ 'aes128-ctr',
+ 'aes192-ctr',
+ 'aes256-ctr',
+ 'aes128-cbc',
+ 'aes192-cbc',
+ 'aes256-cbc',
+ '3des-cbc'
+ ],
+ hmac: [
+ 'hmac-sha2-256',
+ 'hmac-sha2-512',
+ 'hmac-sha1',
+ 'hmac-md5'
+ ],
+ compress: [
+ 'none',
+ 'zlib'
+ ]
+ }
+ };
+
+ if (tunnelConfig.sourceAuthMethod === "key" && tunnelConfig.sourceSSHKey) {
+ if (!tunnelConfig.sourceSSHKey.includes('-----BEGIN')) {
+ logger.error(`Invalid SSH key format for tunnel '${tunnelName}'. Key should start with '-----BEGIN'`);
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "Invalid SSH key format"
+ });
+ return;
+ }
+
+ connOptions.privateKey = tunnelConfig.sourceSSHKey;
+ if (tunnelConfig.sourceKeyPassword) {
+ connOptions.passphrase = tunnelConfig.sourceKeyPassword;
+ }
+ if (tunnelConfig.sourceKeyType && tunnelConfig.sourceKeyType !== 'auto') {
+ connOptions.privateKeyType = tunnelConfig.sourceKeyType;
+ }
+ } else if (tunnelConfig.sourceAuthMethod === "key") {
+ logger.error(`SSH key authentication requested but no key provided for tunnel '${tunnelName}'`);
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "SSH key authentication requested but no key provided"
+ });
+ return;
+ } else {
+ connOptions.password = tunnelConfig.sourcePassword;
+ }
+
+ const testSocket = new net.Socket();
+ testSocket.setTimeout(5000);
+
+ testSocket.on('connect', () => {
+ testSocket.destroy();
+
+ const currentStatus = connectionStatus.get(tunnelName);
+ if (!currentStatus || currentStatus.status !== CONNECTION_STATES.WAITING) {
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.CONNECTING,
+ retryCount: retryAttempt > 0 ? retryAttempt : undefined
+ });
+ }
+
+ conn.connect(connOptions);
+ });
+
+ testSocket.on('timeout', () => {
+ testSocket.destroy();
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: "Network connectivity test failed - server not reachable"
+ });
+ });
+
+ testSocket.on('error', (err: any) => {
+ testSocket.destroy();
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.FAILED,
+ reason: `Network connectivity test failed - ${err.message}`
+ });
+ });
+
+ testSocket.connect(tunnelConfig.sourceSSHPort, tunnelConfig.sourceIP);
+}
+
+function killRemoteTunnelByMarker(tunnelConfig: TunnelConfig, tunnelName: string, callback: (err?: Error) => void) {
+ const tunnelMarker = getTunnelMarker(tunnelName);
+ const conn = new Client();
+ const connOptions: any = {
+ host: tunnelConfig.sourceIP,
+ port: tunnelConfig.sourceSSHPort,
+ username: tunnelConfig.sourceUsername,
+ keepaliveInterval: 30000,
+ keepaliveCountMax: 3,
+ readyTimeout: 10000,
+ tcpKeepAlive: true,
+ tcpKeepAliveInitialDelay: 30000,
+ algorithms: {
+ kex: [
+ 'diffie-hellman-group14-sha256',
+ 'diffie-hellman-group14-sha1',
+ 'diffie-hellman-group1-sha1',
+ 'diffie-hellman-group-exchange-sha256',
+ 'diffie-hellman-group-exchange-sha1',
+ 'ecdh-sha2-nistp256',
+ 'ecdh-sha2-nistp384',
+ 'ecdh-sha2-nistp521'
+ ],
+ cipher: [
+ 'aes128-ctr',
+ 'aes192-ctr',
+ 'aes256-ctr',
+ 'aes128-cbc',
+ 'aes192-cbc',
+ 'aes256-cbc',
+ '3des-cbc'
+ ],
+ hmac: [
+ 'hmac-sha2-256',
+ 'hmac-sha2-512',
+ 'hmac-sha1',
+ 'hmac-md5'
+ ],
+ compress: [
+ 'none',
+ 'zlib'
+ ]
+ }
+ };
+ if (tunnelConfig.sourceAuthMethod === "key" && tunnelConfig.sourceSSHKey) {
+ connOptions.privateKey = tunnelConfig.sourceSSHKey;
+ if (tunnelConfig.sourceKeyPassword) {
+ connOptions.passphrase = tunnelConfig.sourceKeyPassword;
+ }
+ if (tunnelConfig.sourceKeyType && tunnelConfig.sourceKeyType !== 'auto') {
+ connOptions.privateKeyType = tunnelConfig.sourceKeyType;
+ }
+ } else {
+ connOptions.password = tunnelConfig.sourcePassword;
+ }
+ conn.on('ready', () => {
+ const killCmd = `pkill -f '${tunnelMarker}'`;
+ conn.exec(killCmd, (err, stream) => {
+ if (err) {
+ conn.end();
+ callback(err);
+ return;
+ }
+ stream.on('close', () => {
+ conn.end();
+ callback();
+ });
+ stream.on('data', () => {
+ });
+ stream.stderr.on('data', () => {
+ });
+ });
+ });
+ conn.on('error', (err) => {
+ callback(err);
+ });
+ conn.connect(connOptions);
+}
+
+app.get('/ssh/tunnel/status', (req, res) => {
+ res.json(getAllTunnelStatus());
+});
+
+app.get('/ssh/tunnel/status/:tunnelName', (req, res) => {
+ const {tunnelName} = req.params;
+ const status = connectionStatus.get(tunnelName);
+
+ if (!status) {
+ return res.status(404).json({error: 'Tunnel not found'});
+ }
+
+ res.json({name: tunnelName, status});
+});
+
+app.post('/ssh/tunnel/connect', (req, res) => {
+ const tunnelConfig: TunnelConfig = req.body;
+
+ if (!tunnelConfig || !tunnelConfig.name) {
+ return res.status(400).json({error: 'Invalid tunnel configuration'});
+ }
+
+ const tunnelName = tunnelConfig.name;
+
+ manualDisconnects.delete(tunnelName);
+ retryCounters.delete(tunnelName);
+ retryExhaustedTunnels.delete(tunnelName);
+
+ tunnelConfigs.set(tunnelName, tunnelConfig);
+
+ connectSSHTunnel(tunnelConfig, 0);
+
+ res.json({message: 'Connection request received', tunnelName});
+});
+
+app.post('/ssh/tunnel/disconnect', (req, res) => {
+ const {tunnelName} = req.body;
+
+ if (!tunnelName) {
+ return res.status(400).json({error: 'Tunnel name required'});
+ }
+
+ manualDisconnects.add(tunnelName);
+ retryCounters.delete(tunnelName);
+ retryExhaustedTunnels.delete(tunnelName);
+
+ if (activeRetryTimers.has(tunnelName)) {
+ clearTimeout(activeRetryTimers.get(tunnelName)!);
+ activeRetryTimers.delete(tunnelName);
+ }
+
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.DISCONNECTED,
+ manualDisconnect: true
+ });
+
+ const tunnelConfig = tunnelConfigs.get(tunnelName) || null;
+ handleDisconnect(tunnelName, tunnelConfig, false);
+
+ setTimeout(() => {
+ manualDisconnects.delete(tunnelName);
+ }, 5000);
+
+ res.json({message: 'Disconnect request received', tunnelName});
+});
+
+app.post('/ssh/tunnel/cancel', (req, res) => {
+ const {tunnelName} = req.body;
+
+ if (!tunnelName) {
+ return res.status(400).json({error: 'Tunnel name required'});
+ }
+
+ retryCounters.delete(tunnelName);
+ retryExhaustedTunnels.delete(tunnelName);
+
+ if (activeRetryTimers.has(tunnelName)) {
+ clearTimeout(activeRetryTimers.get(tunnelName)!);
+ activeRetryTimers.delete(tunnelName);
+ }
+
+ if (countdownIntervals.has(tunnelName)) {
+ clearInterval(countdownIntervals.get(tunnelName)!);
+ countdownIntervals.delete(tunnelName);
+ }
+
+ broadcastTunnelStatus(tunnelName, {
+ connected: false,
+ status: CONNECTION_STATES.DISCONNECTED,
+ manualDisconnect: true
+ });
+
+ const tunnelConfig = tunnelConfigs.get(tunnelName) || null;
+ handleDisconnect(tunnelName, tunnelConfig, false);
+
+ setTimeout(() => {
+ manualDisconnects.delete(tunnelName);
+ }, 5000);
+
+ res.json({message: 'Cancel request received', tunnelName});
+});
+
+async function initializeAutoStartTunnels(): Promise<void> {
+ try {
+ const response = await axios.get('http://localhost:8081/ssh/db/host/internal', {
+ headers: {
+ 'Content-Type': 'application/json',
+ 'X-Internal-Request': '1'
+ }
+ });
+
+ const hosts: SSHHost[] = response.data || [];
+ const autoStartTunnels: TunnelConfig[] = [];
+
+ for (const host of hosts) {
+ if (host.enableTunnel && host.tunnelConnections) {
+ for (const tunnelConnection of host.tunnelConnections) {
+ if (tunnelConnection.autoStart) {
+ const endpointHost = hosts.find(h =>
+ h.name === tunnelConnection.endpointHost ||
+ `${h.username}@${h.ip}` === tunnelConnection.endpointHost
+ );
+
+ if (endpointHost) {
+ const tunnelConfig: TunnelConfig = {
+ name: `${host.name || `${host.username}@${host.ip}`}_${tunnelConnection.sourcePort}_${tunnelConnection.endpointPort}`,
+ hostName: host.name || `${host.username}@${host.ip}`,
+ sourceIP: host.ip,
+ sourceSSHPort: host.port,
+ sourceUsername: host.username,
+ sourcePassword: host.password,
+ sourceAuthMethod: host.authType,
+ sourceSSHKey: host.key,
+ sourceKeyPassword: host.keyPassword,
+ sourceKeyType: host.keyType,
+ endpointIP: endpointHost.ip,
+ endpointSSHPort: endpointHost.port,
+ endpointUsername: endpointHost.username,
+ endpointPassword: endpointHost.password,
+ endpointAuthMethod: endpointHost.authType,
+ endpointSSHKey: endpointHost.key,
+ endpointKeyPassword: endpointHost.keyPassword,
+ endpointKeyType: endpointHost.keyType,
+ sourcePort: tunnelConnection.sourcePort,
+ endpointPort: tunnelConnection.endpointPort,
+ maxRetries: tunnelConnection.maxRetries,
+ retryInterval: tunnelConnection.retryInterval * 1000,
+ autoStart: tunnelConnection.autoStart,
+ isPinned: host.pin
+ };
+
+ autoStartTunnels.push(tunnelConfig);
+ }
+ }
+ }
+ }
+ }
+
+ logger.info(`Found ${autoStartTunnels.length} auto-start tunnels`);
+
+ for (const tunnelConfig of autoStartTunnels) {
+ tunnelConfigs.set(tunnelConfig.name, tunnelConfig);
+
+ setTimeout(() => {
+ connectSSHTunnel(tunnelConfig, 0);
+ }, 1000);
+ }
+ } catch (error: any) {
+ logger.error('Failed to initialize auto-start tunnels:', error.message);
+ }
+}
+
+const PORT = 8083;
+app.listen(PORT, () => {
+ setTimeout(() => {
+ initializeAutoStartTunnels();
+ }, 2000);
+});
\ No newline at end of file
diff --git a/src/backend/starter.ts b/src/backend/starter.ts
new file mode 100644
index 000000000..b76bdf2f7
--- /dev/null
+++ b/src/backend/starter.ts
@@ -0,0 +1,55 @@
+// npx tsc -p tsconfig.node.json
+// node ./dist/backend/starter.js
+
+import './database/database.js'
+import './ssh/ssh.js';
+import './ssh_tunnel/ssh_tunnel.js';
+import './config_editor/config_editor.js';
+import chalk from 'chalk';
+
+const fixedIconSymbol = '🚀';
+
+const getTimeStamp = (): string => {
+ return chalk.gray(`[${new Date().toLocaleTimeString()}]`);
+};
+
+const formatMessage = (level: string, colorFn: chalk.Chalk, message: string): string => {
+ return `${getTimeStamp()} ${colorFn(`[${level.toUpperCase()}]`)} ${chalk.hex('#1e3a8a')(`[${fixedIconSymbol}]`)} ${message}`;
+};
+
+const logger = {
+ info: (msg: string): void => {
+ console.log(formatMessage('info', chalk.cyan, msg));
+ },
+ warn: (msg: string): void => {
+ console.warn(formatMessage('warn', chalk.yellow, msg));
+ },
+ error: (msg: string, err?: unknown): void => {
+ console.error(formatMessage('error', chalk.redBright, msg));
+ if (err) console.error(err);
+ },
+ success: (msg: string): void => {
+ console.log(formatMessage('success', chalk.greenBright, msg));
+ },
+ debug: (msg: string): void => {
+ if (process.env.NODE_ENV !== 'production') {
+ console.debug(formatMessage('debug', chalk.magenta, msg));
+ }
+ }
+};
+
+(async () => {
+ try {
+ logger.info("Starting all backend servers...");
+
+ logger.success("All servers started successfully");
+
+ process.on('SIGINT', () => {
+ logger.info("Shutting down servers...");
+ process.exit(0);
+ });
+ } catch (error) {
+ logger.error("Failed to start servers:", error);
+ process.exit(1);
+ }
+})();
\ No newline at end of file
diff --git a/src/components/theme-provider.tsx b/src/components/theme-provider.tsx
new file mode 100644
index 000000000..4977fd232
--- /dev/null
+++ b/src/components/theme-provider.tsx
@@ -0,0 +1,73 @@
+import {createContext, useContext, useEffect, useState} from "react"
+
+type Theme = "dark" | "light" | "system"
+
+type ThemeProviderProps = {
+ children: React.ReactNode
+ defaultTheme?: Theme
+ storageKey?: string
+}
+
+type ThemeProviderState = {
+ theme: Theme
+ setTheme: (theme: Theme) => void
+}
+
+const initialState: ThemeProviderState = {
+ theme: "system",
+ setTheme: () => null,
+}
+
+const ThemeProviderContext = createContext<ThemeProviderState>(initialState)
+
+export function ThemeProvider({
+ children,
+ defaultTheme = "system",
+ storageKey = "vite-ui-theme",
+ ...props
+ }: ThemeProviderProps) {
+ const [theme, setTheme] = useState<Theme>(
+ () => (localStorage.getItem(storageKey) as Theme) || defaultTheme
+ )
+
+ useEffect(() => {
+ const root = window.document.documentElement
+
+ root.classList.remove("light", "dark")
+
+ if (theme === "system") {
+ const systemTheme = window.matchMedia("(prefers-color-scheme: dark)")
+ .matches
+ ? "dark"
+ : "light"
+
+ root.classList.add(systemTheme)
+ return
+ }
+
+ root.classList.add(theme)
+ }, [theme])
+
+ const value = {
+ theme,
+ setTheme: (theme: Theme) => {
+ localStorage.setItem(storageKey, theme)
+ setTheme(theme)
+ },
+ }
+
+ return (
+ <ThemeProviderContext.Provider {...props} value={value}>
+ {children}
+ </ThemeProviderContext.Provider>
+ )
+}
+
+export const useTheme = () => {
+ const context = useContext(ThemeProviderContext)
+
+ if (context === undefined)
+ throw new Error("useTheme must be used within a ThemeProvider")
+
+ return context
+}
\ No newline at end of file
diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx
new file mode 100644
index 000000000..d21b65f7a
--- /dev/null
+++ b/src/components/ui/accordion.tsx
@@ -0,0 +1,64 @@
+import * as React from "react"
+import * as AccordionPrimitive from "@radix-ui/react-accordion"
+import { ChevronDownIcon } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+function Accordion({
+ ...props
+}: React.ComponentProps<typeof AccordionPrimitive.Root>) {
+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />
+}
+
+function AccordionItem({
+ className,
+ ...props
+}: React.ComponentProps<typeof AccordionPrimitive.Item>) {
+ return (
+ <AccordionPrimitive.Item
+ data-slot="accordion-item"
+ className={cn("border-b last:border-b-0", className)}
+ {...props}
+ />
+ )
+}
+
+function AccordionTrigger({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {
+ return (
+ <AccordionPrimitive.Header className="flex">
+ <AccordionPrimitive.Trigger
+ data-slot="accordion-trigger"
+ className={cn(
+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />
+ </AccordionPrimitive.Trigger>
+ </AccordionPrimitive.Header>
+ )
+}
+
+function AccordionContent({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof AccordionPrimitive.Content>) {
+ return (
+ <AccordionPrimitive.Content
+ data-slot="accordion-content"
+ className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
+ {...props}
+ >
+ <div className={cn("pt-0 pb-4", className)}>{children}</div>
+ </AccordionPrimitive.Content>
+ )
+}
+
+export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx
new file mode 100644
index 000000000..eda4eee83
--- /dev/null
+++ b/src/components/ui/alert.tsx
@@ -0,0 +1,66 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+
+import { cn } from "@/lib/utils"
+
+const alertVariants = cva(
+ "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
+ {
+ variants: {
+ variant: {
+ default: "bg-card text-card-foreground",
+ destructive:
+ "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ }
+)
+
+function Alert({
+ className,
+ variant,
+ ...props
+}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
+ return (
+ <div
+ data-slot="alert"
+ role="alert"
+ className={cn(alertVariants({ variant }), className)}
+ {...props}
+ />
+ )
+}
+
+function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-title"
+ className={cn(
+ "col-start-2 font-medium tracking-tight whitespace-normal break-words",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDescription({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-description"
+ className={cn(
+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Alert, AlertTitle, AlertDescription }
diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx
new file mode 100644
index 000000000..02054139a
--- /dev/null
+++ b/src/components/ui/badge.tsx
@@ -0,0 +1,46 @@
+import * as React from "react"
+import { Slot } from "@radix-ui/react-slot"
+import { cva, type VariantProps } from "class-variance-authority"
+
+import { cn } from "@/lib/utils"
+
+const badgeVariants = cva(
+ "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
+ {
+ variants: {
+ variant: {
+ default:
+ "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
+ secondary:
+ "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
+ destructive:
+ "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
+ outline:
+ "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ }
+)
+
+function Badge({
+ className,
+ variant,
+ asChild = false,
+ ...props
+}: React.ComponentProps<"span"> &
+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
+ const Comp = asChild ? Slot : "span"
+
+ return (
+ <Comp
+ data-slot="badge"
+ className={cn(badgeVariants({ variant }), className)}
+ {...props}
+ />
+ )
+}
+
+export { Badge, badgeVariants }
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
new file mode 100644
index 000000000..a2df8dce6
--- /dev/null
+++ b/src/components/ui/button.tsx
@@ -0,0 +1,59 @@
+import * as React from "react"
+import { Slot } from "@radix-ui/react-slot"
+import { cva, type VariantProps } from "class-variance-authority"
+
+import { cn } from "@/lib/utils"
+
+const buttonVariants = cva(
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ {
+ variants: {
+ variant: {
+ default:
+ "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
+ destructive:
+ "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
+ outline:
+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
+ secondary:
+ "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
+ ghost:
+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
+ link: "text-primary underline-offset-4 hover:underline",
+ },
+ size: {
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
+ icon: "size-9",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ }
+)
+
+function Button({
+ className,
+ variant,
+ size,
+ asChild = false,
+ ...props
+}: React.ComponentProps<"button"> &
+ VariantProps<typeof buttonVariants> & {
+ asChild?: boolean
+ }) {
+ const Comp = asChild ? Slot : "button"
+
+ return (
+ <Comp
+ data-slot="button"
+ className={cn(buttonVariants({ variant, size, className }))}
+ {...props}
+ />
+ )
+}
+
+export { Button, buttonVariants }
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
new file mode 100644
index 000000000..d05bbc6c7
--- /dev/null
+++ b/src/components/ui/card.tsx
@@ -0,0 +1,92 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Card({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card"
+ className={cn(
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-header"
+ className={cn(
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-title"
+ className={cn("leading-none font-semibold", className)}
+ {...props}
+ />
+ )
+}
+
+function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-description"
+ className={cn("text-muted-foreground text-sm", className)}
+ {...props}
+ />
+ )
+}
+
+function CardAction({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-action"
+ className={cn(
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function CardContent({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-content"
+ className={cn("px-6", className)}
+ {...props}
+ />
+ )
+}
+
+function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="card-footer"
+ className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
+ {...props}
+ />
+ )
+}
+
+export {
+ Card,
+ CardHeader,
+ CardFooter,
+ CardTitle,
+ CardAction,
+ CardDescription,
+ CardContent,
+}
diff --git a/src/components/ui/checkbox.tsx b/src/components/ui/checkbox.tsx
new file mode 100644
index 000000000..defeb01f2
--- /dev/null
+++ b/src/components/ui/checkbox.tsx
@@ -0,0 +1,30 @@
+import * as React from "react"
+import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
+import { CheckIcon } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+function Checkbox({
+ className,
+ ...props
+}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
+ return (
+ <CheckboxPrimitive.Root
+ data-slot="checkbox"
+ className={cn(
+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
+ className
+ )}
+ {...props}
+ >
+ <CheckboxPrimitive.Indicator
+ data-slot="checkbox-indicator"
+ className="flex items-center justify-center text-current transition-none"
+ >
+ <CheckIcon className="size-3.5" />
+ </CheckboxPrimitive.Indicator>
+ </CheckboxPrimitive.Root>
+ )
+}
+
+export { Checkbox }
diff --git a/src/components/ui/form.tsx b/src/components/ui/form.tsx
new file mode 100644
index 000000000..7d7474cc9
--- /dev/null
+++ b/src/components/ui/form.tsx
@@ -0,0 +1,165 @@
+import * as React from "react"
+import * as LabelPrimitive from "@radix-ui/react-label"
+import { Slot } from "@radix-ui/react-slot"
+import {
+ Controller,
+ FormProvider,
+ useFormContext,
+ useFormState,
+ type ControllerProps,
+ type FieldPath,
+ type FieldValues,
+} from "react-hook-form"
+
+import { cn } from "@/lib/utils"
+import { Label } from "@/components/ui/label"
+
+const Form = FormProvider
+
+type FormFieldContextValue<
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
+> = {
+ name: TName
+}
+
+const FormFieldContext = React.createContext<FormFieldContextValue>(
+ {} as FormFieldContextValue
+)
+
+const FormField = <
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
+>({
+ ...props
+}: ControllerProps<TFieldValues, TName>) => {
+ return (
+ <FormFieldContext.Provider value={{ name: props.name }}>
+ <Controller {...props} />
+ </FormFieldContext.Provider>
+ )
+}
+
+const useFormField = () => {
+ const fieldContext = React.useContext(FormFieldContext)
+ const itemContext = React.useContext(FormItemContext)
+ const { getFieldState } = useFormContext()
+ const formState = useFormState({ name: fieldContext.name })
+ const fieldState = getFieldState(fieldContext.name, formState)
+
+ if (!fieldContext) {
+ throw new Error("useFormField should be used within <FormField>")
+ }
+
+ const { id } = itemContext
+
+ return {
+ id,
+ name: fieldContext.name,
+ formItemId: `${id}-form-item`,
+ formDescriptionId: `${id}-form-item-description`,
+ formMessageId: `${id}-form-item-message`,
+ ...fieldState,
+ }
+}
+
+type FormItemContextValue = {
+ id: string
+}
+
+const FormItemContext = React.createContext<FormItemContextValue>(
+ {} as FormItemContextValue
+)
+
+function FormItem({ className, ...props }: React.ComponentProps<"div">) {
+ const id = React.useId()
+
+ return (
+ <FormItemContext.Provider value={{ id }}>
+ <div
+ data-slot="form-item"
+ className={cn("grid gap-2", className)}
+ {...props}
+ />
+ </FormItemContext.Provider>
+ )
+}
+
+function FormLabel({
+ className,
+ ...props
+}: React.ComponentProps<typeof LabelPrimitive.Root>) {
+ const { error, formItemId } = useFormField()
+
+ return (
+ <Label
+ data-slot="form-label"
+ data-error={!!error}
+ className={cn("data-[error=true]:text-destructive", className)}
+ htmlFor={formItemId}
+ {...props}
+ />
+ )
+}
+
+function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField()
+
+ return (
+ <Slot
+ data-slot="form-control"
+ id={formItemId}
+ aria-describedby={
+ !error
+ ? `${formDescriptionId}`
+ : `${formDescriptionId} ${formMessageId}`
+ }
+ aria-invalid={!!error}
+ {...props}
+ />
+ )
+}
+
+function FormDescription({ className, ...props }: React.ComponentProps<"p">) {
+ const { formDescriptionId } = useFormField()
+
+ return (
+ <p
+ data-slot="form-description"
+ id={formDescriptionId}
+ className={cn("text-muted-foreground text-sm", className)}
+ {...props}
+ />
+ )
+}
+
+function FormMessage({ className, ...props }: React.ComponentProps<"p">) {
+ const { error, formMessageId } = useFormField()
+ const body = error ? String(error?.message ?? "") : props.children
+
+ if (!body) {
+ return null
+ }
+
+ return (
+ <p
+ data-slot="form-message"
+ id={formMessageId}
+ className={cn("text-destructive text-sm", className)}
+ {...props}
+ >
+ {body}
+ </p>
+ )
+}
+
+export {
+ useFormField,
+ Form,
+ FormItem,
+ FormLabel,
+ FormControl,
+ FormDescription,
+ FormMessage,
+ FormField,
+}
diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx
new file mode 100644
index 000000000..03295ca6a
--- /dev/null
+++ b/src/components/ui/input.tsx
@@ -0,0 +1,21 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Input({ className, type, ...props }: React.ComponentProps<"input">) {
+ return (
+ <input
+ type={type}
+ data-slot="input"
+ className={cn(
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Input }
diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx
new file mode 100644
index 000000000..ef7133a75
--- /dev/null
+++ b/src/components/ui/label.tsx
@@ -0,0 +1,22 @@
+import * as React from "react"
+import * as LabelPrimitive from "@radix-ui/react-label"
+
+import { cn } from "@/lib/utils"
+
+function Label({
+ className,
+ ...props
+}: React.ComponentProps<typeof LabelPrimitive.Root>) {
+ return (
+ <LabelPrimitive.Root
+ data-slot="label"
+ className={cn(
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Label }
diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsx
new file mode 100644
index 000000000..6d51b6ced
--- /dev/null
+++ b/src/components/ui/popover.tsx
@@ -0,0 +1,46 @@
+import * as React from "react"
+import * as PopoverPrimitive from "@radix-ui/react-popover"
+
+import { cn } from "@/lib/utils"
+
+function Popover({
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
+ return <PopoverPrimitive.Root data-slot="popover" {...props} />
+}
+
+function PopoverTrigger({
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />
+}
+
+function PopoverContent({
+ className,
+ align = "center",
+ sideOffset = 4,
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
+ return (
+ <PopoverPrimitive.Portal>
+ <PopoverPrimitive.Content
+ data-slot="popover-content"
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
+ className
+ )}
+ {...props}
+ />
+ </PopoverPrimitive.Portal>
+ )
+}
+
+function PopoverAnchor({
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />
+}
+
+export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }
diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx
new file mode 100644
index 000000000..dd5a6badd
--- /dev/null
+++ b/src/components/ui/resizable.tsx
@@ -0,0 +1,54 @@
+import * as React from "react"
+import { GripVerticalIcon } from "lucide-react"
+import * as ResizablePrimitive from "react-resizable-panels"
+
+import { cn } from "@/lib/utils"
+
+function ResizablePanelGroup({
+ className,
+ ...props
+}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {
+ return (
+ <ResizablePrimitive.PanelGroup
+ data-slot="resizable-panel-group"
+ className={cn(
+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function ResizablePanel({
+ ...props
+}: React.ComponentProps<typeof ResizablePrimitive.Panel>) {
+ return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />
+}
+
+function ResizableHandle({
+ withHandle,
+ className,
+ ...props
+}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
+ withHandle?: boolean
+}) {
+ return (
+ <ResizablePrimitive.PanelResizeHandle
+ data-slot="resizable-handle"
+ className={cn(
+ "relative flex w-1 items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-1 data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90 bg-[#434345] hover:bg-[#2a2a2c] active:bg-[#1a1a1c] transition-colors duration-150",
+ className
+ )}
+ {...props}
+ >
+ {withHandle && (
+ <div className="bg-[#434345] hover:bg-[#2a2a2c] active:bg-[#1a1a1c] z-10 flex h-4 w-3 items-center justify-center rounded-xs border transition-colors duration-150">
+ <GripVerticalIcon className="size-2.5" />
+ </div>
+ )}
+ </ResizablePrimitive.PanelResizeHandle>
+ )
+}
+
+export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
diff --git a/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx
new file mode 100644
index 000000000..9376f5948
--- /dev/null
+++ b/src/components/ui/scroll-area.tsx
@@ -0,0 +1,56 @@
+import * as React from "react"
+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
+
+import { cn } from "@/lib/utils"
+
+function ScrollArea({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
+ return (
+ <ScrollAreaPrimitive.Root
+ data-slot="scroll-area"
+ className={cn("relative", className)}
+ {...props}
+ >
+ <ScrollAreaPrimitive.Viewport
+ data-slot="scroll-area-viewport"
+ className="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
+ >
+ {children}
+ </ScrollAreaPrimitive.Viewport>
+ <ScrollBar />
+ <ScrollAreaPrimitive.Corner />
+ </ScrollAreaPrimitive.Root>
+ )
+}
+
+function ScrollBar({
+ className,
+ orientation = "vertical",
+ ...props
+}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
+ return (
+ <ScrollAreaPrimitive.ScrollAreaScrollbar
+ data-slot="scroll-area-scrollbar"
+ orientation={orientation}
+ className={cn(
+ "flex touch-none p-px transition-colors select-none",
+ orientation === "vertical" &&
+ "h-full w-2.5 border-l border-l-transparent",
+ orientation === "horizontal" &&
+ "h-2.5 flex-col border-t border-t-transparent",
+ className
+ )}
+ {...props}
+ >
+ <ScrollAreaPrimitive.ScrollAreaThumb
+ data-slot="scroll-area-thumb"
+ className="bg-border relative flex-1 rounded-full"
+ />
+ </ScrollAreaPrimitive.ScrollAreaScrollbar>
+ )
+}
+
+export { ScrollArea, ScrollBar }
diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx
new file mode 100644
index 000000000..51f466ecc
--- /dev/null
+++ b/src/components/ui/select.tsx
@@ -0,0 +1,183 @@
+import * as React from "react"
+import * as SelectPrimitive from "@radix-ui/react-select"
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+function Select({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Root>) {
+ return <SelectPrimitive.Root data-slot="select" {...props} />
+}
+
+function SelectGroup({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Group>) {
+ return <SelectPrimitive.Group data-slot="select-group" {...props} />
+}
+
+function SelectValue({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Value>) {
+ return <SelectPrimitive.Value data-slot="select-value" {...props} />
+}
+
+function SelectTrigger({
+ className,
+ size = "default",
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
+ size?: "sm" | "default"
+}) {
+ return (
+ <SelectPrimitive.Trigger
+ data-slot="select-trigger"
+ data-size={size}
+ className={cn(
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDownIcon className="size-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+ )
+}
+
+function SelectContent({
+ className,
+ children,
+ position = "popper",
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Content>) {
+ return (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ data-slot="select-content"
+ className={cn(
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className
+ )}
+ position={position}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+ )
+}
+
+function SelectLabel({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Label>) {
+ return (
+ <SelectPrimitive.Label
+ data-slot="select-label"
+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectItem({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Item>) {
+ return (
+ <SelectPrimitive.Item
+ data-slot="select-item"
+ className={cn(
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ className
+ )}
+ {...props}
+ >
+ <span className="absolute right-2 flex size-3.5 items-center justify-center">
+ <SelectPrimitive.ItemIndicator>
+ <CheckIcon className="size-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+ )
+}
+
+function SelectSeparator({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
+ return (
+ <SelectPrimitive.Separator
+ data-slot="select-separator"
+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectScrollUpButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
+ return (
+ <SelectPrimitive.ScrollUpButton
+ data-slot="select-scroll-up-button"
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className
+ )}
+ {...props}
+ >
+ <ChevronUpIcon className="size-4" />
+ </SelectPrimitive.ScrollUpButton>
+ )
+}
+
+function SelectScrollDownButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
+ return (
+ <SelectPrimitive.ScrollDownButton
+ data-slot="select-scroll-down-button"
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className
+ )}
+ {...props}
+ >
+ <ChevronDownIcon className="size-4" />
+ </SelectPrimitive.ScrollDownButton>
+ )
+}
+
+export {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectScrollDownButton,
+ SelectScrollUpButton,
+ SelectSeparator,
+ SelectTrigger,
+ SelectValue,
+}
diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsx
new file mode 100644
index 000000000..275381cab
--- /dev/null
+++ b/src/components/ui/separator.tsx
@@ -0,0 +1,28 @@
+"use client"
+
+import * as React from "react"
+import * as SeparatorPrimitive from "@radix-ui/react-separator"
+
+import { cn } from "@/lib/utils"
+
+function Separator({
+ className,
+ orientation = "horizontal",
+ decorative = true,
+ ...props
+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
+ return (
+ <SeparatorPrimitive.Root
+ data-slot="separator"
+ decorative={decorative}
+ orientation={orientation}
+ className={cn(
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Separator }
diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx
new file mode 100644
index 000000000..6906f5b2b
--- /dev/null
+++ b/src/components/ui/sheet.tsx
@@ -0,0 +1,137 @@
+import * as React from "react"
+import * as SheetPrimitive from "@radix-ui/react-dialog"
+import { XIcon } from "lucide-react"
+
+import { cn } from "@/lib/utils"
+
+function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
+ return <SheetPrimitive.Root data-slot="sheet" {...props} />
+}
+
+function SheetTrigger({
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
+}
+
+function SheetClose({
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Close>) {
+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
+}
+
+function SheetPortal({
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
+}
+
+function SheetOverlay({
+ className,
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
+ return (
+ <SheetPrimitive.Overlay
+ data-slot="sheet-overlay"
+ className={cn(
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SheetContent({
+ className,
+ children,
+ side = "right",
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Content> & {
+ side?: "top" | "right" | "bottom" | "left"
+}) {
+ return (
+ <SheetPortal>
+ <SheetOverlay />
+ <SheetPrimitive.Content
+ data-slot="sheet-content"
+ className={cn(
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
+ side === "right" &&
+ "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
+ side === "left" &&
+ "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
+ side === "top" &&
+ "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
+ side === "bottom" &&
+ "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
+ <XIcon className="size-4" />
+ <span className="sr-only">Close</span>
+ </SheetPrimitive.Close>
+ </SheetPrimitive.Content>
+ </SheetPortal>
+ )
+}
+
+function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sheet-header"
+ className={cn("flex flex-col gap-1.5 p-4", className)}
+ {...props}
+ />
+ )
+}
+
+function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sheet-footer"
+ className={cn("mt-auto flex flex-col gap-2 p-4", className)}
+ {...props}
+ />
+ )
+}
+
+function SheetTitle({
+ className,
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Title>) {
+ return (
+ <SheetPrimitive.Title
+ data-slot="sheet-title"
+ className={cn("text-foreground font-semibold", className)}
+ {...props}
+ />
+ )
+}
+
+function SheetDescription({
+ className,
+ ...props
+}: React.ComponentProps<typeof SheetPrimitive.Description>) {
+ return (
+ <SheetPrimitive.Description
+ data-slot="sheet-description"
+ className={cn("text-muted-foreground text-sm", className)}
+ {...props}
+ />
+ )
+}
+
+export {
+ Sheet,
+ SheetTrigger,
+ SheetClose,
+ SheetContent,
+ SheetHeader,
+ SheetFooter,
+ SheetTitle,
+ SheetDescription,
+}
diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx
new file mode 100644
index 000000000..ad864e242
--- /dev/null
+++ b/src/components/ui/sidebar.tsx
@@ -0,0 +1,725 @@
+import * as React from "react"
+import { Slot } from "@radix-ui/react-slot"
+import { cva, type VariantProps } from "class-variance-authority"
+import { PanelLeftIcon } from "lucide-react"
+
+import { useIsMobile } from "@/hooks/use-mobile"
+import { cn } from "@/lib/utils"
+import { Button } from "@/components/ui/button"
+import { Input } from "@/components/ui/input"
+import { Separator } from "@/components/ui/separator"
+import {
+ Sheet,
+ SheetContent,
+ SheetDescription,
+ SheetHeader,
+ SheetTitle,
+} from "@/components/ui/sheet"
+import { Skeleton } from "@/components/ui/skeleton"
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipProvider,
+ TooltipTrigger,
+} from "@/components/ui/tooltip"
+
+const SIDEBAR_COOKIE_NAME = "sidebar_state"
+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
+const SIDEBAR_WIDTH = "16rem"
+const SIDEBAR_WIDTH_MOBILE = "18rem"
+const SIDEBAR_WIDTH_ICON = "3rem"
+const SIDEBAR_KEYBOARD_SHORTCUT = "b"
+
+type SidebarContextProps = {
+ state: "expanded" | "collapsed"
+ open: boolean
+ setOpen: (open: boolean) => void
+ openMobile: boolean
+ setOpenMobile: (open: boolean) => void
+ isMobile: boolean
+ toggleSidebar: () => void
+}
+
+const SidebarContext = React.createContext<SidebarContextProps | null>(null)
+
+function useSidebar() {
+ const context = React.useContext(SidebarContext)
+ if (!context) {
+ throw new Error("useSidebar must be used within a SidebarProvider.")
+ }
+
+ return context
+}
+
+function SidebarProvider({
+ defaultOpen = true,
+ open: openProp,
+ onOpenChange: setOpenProp,
+ className,
+ style,
+ children,
+ ...props
+}: React.ComponentProps<"div"> & {
+ defaultOpen?: boolean
+ open?: boolean
+ onOpenChange?: (open: boolean) => void
+}) {
+ const isMobile = useIsMobile()
+ const [openMobile, setOpenMobile] = React.useState(false)
+
+ // This is the internal state of the sidebar.
+ // We use openProp and setOpenProp for control from outside the component.
+ const [_open, _setOpen] = React.useState(defaultOpen)
+ const open = openProp ?? _open
+ const setOpen = React.useCallback(
+ (value: boolean | ((value: boolean) => boolean)) => {
+ const openState = typeof value === "function" ? value(open) : value
+ if (setOpenProp) {
+ setOpenProp(openState)
+ } else {
+ _setOpen(openState)
+ }
+
+ // This sets the cookie to keep the sidebar state.
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`
+ },
+ [setOpenProp, open]
+ )
+
+ // Helper to toggle the sidebar.
+ const toggleSidebar = React.useCallback(() => {
+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open)
+ }, [isMobile, setOpen, setOpenMobile])
+
+ // Adds a keyboard shortcut to toggle the sidebar.
+ React.useEffect(() => {
+ const handleKeyDown = (event: KeyboardEvent) => {
+ if (
+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
+ (event.metaKey || event.ctrlKey)
+ ) {
+ event.preventDefault()
+ toggleSidebar()
+ }
+ }
+
+ window.addEventListener("keydown", handleKeyDown)
+ return () => window.removeEventListener("keydown", handleKeyDown)
+ }, [toggleSidebar])
+
+ // We add a state so that we can do data-state="expanded" or "collapsed".
+ // This makes it easier to style the sidebar with Tailwind classes.
+ const state = open ? "expanded" : "collapsed"
+
+ const contextValue = React.useMemo<SidebarContextProps>(
+ () => ({
+ state,
+ open,
+ setOpen,
+ isMobile,
+ openMobile,
+ setOpenMobile,
+ toggleSidebar,
+ }),
+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
+ )
+
+ return (
+ <SidebarContext.Provider value={contextValue}>
+ <TooltipProvider delayDuration={0}>
+ <div
+ data-slot="sidebar-wrapper"
+ style={
+ {
+ "--sidebar-width": SIDEBAR_WIDTH,
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
+ ...style,
+ } as React.CSSProperties
+ }
+ className={cn(
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ </div>
+ </TooltipProvider>
+ </SidebarContext.Provider>
+ )
+}
+
+function Sidebar({
+ side = "left",
+ variant = "sidebar",
+ collapsible = "offcanvas",
+ className,
+ children,
+ ...props
+}: React.ComponentProps<"div"> & {
+ side?: "left" | "right"
+ variant?: "sidebar" | "floating" | "inset"
+ collapsible?: "offcanvas" | "icon" | "none"
+}) {
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar()
+
+ if (collapsible === "none") {
+ return (
+ <div
+ data-slot="sidebar"
+ className={cn(
+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ </div>
+ )
+ }
+
+ if (isMobile) {
+ return (
+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>
+ <SheetContent
+ data-sidebar="sidebar"
+ data-slot="sidebar"
+ data-mobile="true"
+ className="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden"
+ style={
+ {
+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,
+ } as React.CSSProperties
+ }
+ side={side}
+ >
+ <SheetHeader className="sr-only">
+ <SheetTitle>Sidebar</SheetTitle>
+ <SheetDescription>Displays the mobile sidebar.</SheetDescription>
+ </SheetHeader>
+ <div className="flex h-full w-full flex-col">{children}</div>
+ </SheetContent>
+ </Sheet>
+ )
+ }
+
+ return (
+ <div
+ className="group peer text-sidebar-foreground hidden md:block"
+ data-state={state}
+ data-collapsible={state === "collapsed" ? collapsible : ""}
+ data-variant={variant}
+ data-side={side}
+ data-slot="sidebar"
+ >
+ {/* This is what handles the sidebar gap on desktop */}
+ <div
+ data-slot="sidebar-gap"
+ className={cn(
+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
+ "group-data-[collapsible=offcanvas]:w-0",
+ "group-data-[side=right]:rotate-180",
+ variant === "floating" || variant === "inset"
+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"
+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
+ )}
+ />
+ <div
+ data-slot="sidebar-container"
+ className={cn(
+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
+ side === "left"
+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
+ // Adjust the padding for floating and inset variants.
+ variant === "floating" || variant === "inset"
+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
+ className
+ )}
+ {...props}
+ >
+ <div
+ data-sidebar="sidebar"
+ data-slot="sidebar-inner"
+ className="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
+ >
+ {children}
+ </div>
+ </div>
+ </div>
+ )
+}
+
+function SidebarTrigger({
+ className,
+ onClick,
+ ...props
+}: React.ComponentProps<typeof Button>) {
+ const { toggleSidebar } = useSidebar()
+
+ return (
+ <Button
+ data-sidebar="trigger"
+ data-slot="sidebar-trigger"
+ variant="ghost"
+ size="icon"
+ className={cn("size-7", className)}
+ onClick={(event) => {
+ onClick?.(event)
+ toggleSidebar()
+ }}
+ {...props}
+ >
+ <PanelLeftIcon />
+ <span className="sr-only">Toggle Sidebar</span>
+ </Button>
+ )
+}
+
+function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
+ const { toggleSidebar } = useSidebar()
+
+ return (
+ <button
+ data-sidebar="rail"
+ data-slot="sidebar-rail"
+ aria-label="Toggle Sidebar"
+ tabIndex={-1}
+ onClick={toggleSidebar}
+ title="Toggle Sidebar"
+ className={cn(
+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",
+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
+ return (
+ <main
+ data-slot="sidebar-inset"
+ className={cn(
+ "bg-background relative flex w-full flex-1 flex-col",
+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarInput({
+ className,
+ ...props
+}: React.ComponentProps<typeof Input>) {
+ return (
+ <Input
+ data-slot="sidebar-input"
+ data-sidebar="input"
+ className={cn("bg-background h-8 w-full shadow-none", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sidebar-header"
+ data-sidebar="header"
+ className={cn("flex flex-col gap-2 p-2", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sidebar-footer"
+ data-sidebar="footer"
+ className={cn("flex flex-col gap-2 p-2", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarSeparator({
+ className,
+ ...props
+}: React.ComponentProps<typeof Separator>) {
+ return (
+ <Separator
+ data-slot="sidebar-separator"
+ data-sidebar="separator"
+ className={cn("bg-sidebar-border mx-2 w-auto", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sidebar-content"
+ data-sidebar="content"
+ className={cn(
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarGroup({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sidebar-group"
+ data-sidebar="group"
+ className={cn("relative flex w-full min-w-0 flex-col p-2", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarGroupLabel({
+ className,
+ asChild = false,
+ ...props
+}: React.ComponentProps<"div"> & { asChild?: boolean }) {
+ const Comp = asChild ? Slot : "div"
+
+ return (
+ <Comp
+ data-slot="sidebar-group-label"
+ data-sidebar="group-label"
+ className={cn(
+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarGroupAction({
+ className,
+ asChild = false,
+ ...props
+}: React.ComponentProps<"button"> & { asChild?: boolean }) {
+ const Comp = asChild ? Slot : "button"
+
+ return (
+ <Comp
+ data-slot="sidebar-group-action"
+ data-sidebar="group-action"
+ className={cn(
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ // Increases the hit area of the button on mobile.
+ "after:absolute after:-inset-2 md:after:hidden",
+ "group-data-[collapsible=icon]:hidden",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarGroupContent({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sidebar-group-content"
+ data-sidebar="group-content"
+ className={cn("w-full text-sm", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">) {
+ return (
+ <ul
+ data-slot="sidebar-menu"
+ data-sidebar="menu"
+ className={cn("flex w-full min-w-0 flex-col gap-1", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
+ return (
+ <li
+ data-slot="sidebar-menu-item"
+ data-sidebar="menu-item"
+ className={cn("group/menu-item relative", className)}
+ {...props}
+ />
+ )
+}
+
+const sidebarMenuButtonVariants = cva(
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
+ {
+ variants: {
+ variant: {
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
+ outline:
+ "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
+ },
+ size: {
+ default: "h-8 text-sm",
+ sm: "h-7 text-xs",
+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ }
+)
+
+function SidebarMenuButton({
+ asChild = false,
+ isActive = false,
+ variant = "default",
+ size = "default",
+ tooltip,
+ className,
+ ...props
+}: React.ComponentProps<"button"> & {
+ asChild?: boolean
+ isActive?: boolean
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>
+} & VariantProps<typeof sidebarMenuButtonVariants>) {
+ const Comp = asChild ? Slot : "button"
+ const { isMobile, state } = useSidebar()
+
+ const button = (
+ <Comp
+ data-slot="sidebar-menu-button"
+ data-sidebar="menu-button"
+ data-size={size}
+ data-active={isActive}
+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
+ {...props}
+ />
+ )
+
+ if (!tooltip) {
+ return button
+ }
+
+ if (typeof tooltip === "string") {
+ tooltip = {
+ children: tooltip,
+ }
+ }
+
+ return (
+ <Tooltip>
+ <TooltipTrigger asChild>{button}</TooltipTrigger>
+ <TooltipContent
+ side="right"
+ align="center"
+ hidden={state !== "collapsed" || isMobile}
+ {...tooltip}
+ />
+ </Tooltip>
+ )
+}
+
+function SidebarMenuAction({
+ className,
+ asChild = false,
+ showOnHover = false,
+ ...props
+}: React.ComponentProps<"button"> & {
+ asChild?: boolean
+ showOnHover?: boolean
+}) {
+ const Comp = asChild ? Slot : "button"
+
+ return (
+ <Comp
+ data-slot="sidebar-menu-action"
+ data-sidebar="menu-action"
+ className={cn(
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ // Increases the hit area of the button on mobile.
+ "after:absolute after:-inset-2 md:after:hidden",
+ "peer-data-[size=sm]/menu-button:top-1",
+ "peer-data-[size=default]/menu-button:top-1.5",
+ "peer-data-[size=lg]/menu-button:top-2.5",
+ "group-data-[collapsible=icon]:hidden",
+ showOnHover &&
+ "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarMenuBadge({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="sidebar-menu-badge"
+ data-sidebar="menu-badge"
+ className={cn(
+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
+ "peer-data-[size=sm]/menu-button:top-1",
+ "peer-data-[size=default]/menu-button:top-1.5",
+ "peer-data-[size=lg]/menu-button:top-2.5",
+ "group-data-[collapsible=icon]:hidden",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarMenuSkeleton({
+ className,
+ showIcon = false,
+ ...props
+}: React.ComponentProps<"div"> & {
+ showIcon?: boolean
+}) {
+ // Random width between 50 to 90%.
+ const width = React.useMemo(() => {
+ return `${Math.floor(Math.random() * 40) + 50}%`
+ }, [])
+
+ return (
+ <div
+ data-slot="sidebar-menu-skeleton"
+ data-sidebar="menu-skeleton"
+ className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}
+ {...props}
+ >
+ {showIcon && (
+ <Skeleton
+ className="size-4 rounded-md"
+ data-sidebar="menu-skeleton-icon"
+ />
+ )}
+ <Skeleton
+ className="h-4 max-w-(--skeleton-width) flex-1"
+ data-sidebar="menu-skeleton-text"
+ style={
+ {
+ "--skeleton-width": width,
+ } as React.CSSProperties
+ }
+ />
+ </div>
+ )
+}
+
+function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {
+ return (
+ <ul
+ data-slot="sidebar-menu-sub"
+ data-sidebar="menu-sub"
+ className={cn(
+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",
+ "group-data-[collapsible=icon]:hidden",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function SidebarMenuSubItem({
+ className,
+ ...props
+}: React.ComponentProps<"li">) {
+ return (
+ <li
+ data-slot="sidebar-menu-sub-item"
+ data-sidebar="menu-sub-item"
+ className={cn("group/menu-sub-item relative", className)}
+ {...props}
+ />
+ )
+}
+
+function SidebarMenuSubButton({
+ asChild = false,
+ size = "md",
+ isActive = false,
+ className,
+ ...props
+}: React.ComponentProps<"a"> & {
+ asChild?: boolean
+ size?: "sm" | "md"
+ isActive?: boolean
+}) {
+ const Comp = asChild ? Slot : "a"
+
+ return (
+ <Comp
+ data-slot="sidebar-menu-sub-button"
+ data-sidebar="menu-sub-button"
+ data-size={size}
+ data-active={isActive}
+ className={cn(
+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
+ size === "sm" && "text-xs",
+ size === "md" && "text-sm",
+ "group-data-[collapsible=icon]:hidden",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export {
+ Sidebar,
+ SidebarContent,
+ SidebarFooter,
+ SidebarGroup,
+ SidebarGroupAction,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarHeader,
+ SidebarInput,
+ SidebarInset,
+ SidebarMenu,
+ SidebarMenuAction,
+ SidebarMenuBadge,
+ SidebarMenuButton,
+ SidebarMenuItem,
+ SidebarMenuSkeleton,
+ SidebarMenuSub,
+ SidebarMenuSubButton,
+ SidebarMenuSubItem,
+ SidebarProvider,
+ SidebarRail,
+ SidebarSeparator,
+ SidebarTrigger,
+ // eslint-disable-next-line react-refresh/only-export-components
+ useSidebar,
+}
diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx
new file mode 100644
index 000000000..32ea0ef7f
--- /dev/null
+++ b/src/components/ui/skeleton.tsx
@@ -0,0 +1,13 @@
+import { cn } from "@/lib/utils"
+
+function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="skeleton"
+ className={cn("bg-accent animate-pulse rounded-md", className)}
+ {...props}
+ />
+ )
+}
+
+export { Skeleton }
diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx
new file mode 100644
index 000000000..b0363e3f8
--- /dev/null
+++ b/src/components/ui/switch.tsx
@@ -0,0 +1,29 @@
+import * as React from "react"
+import * as SwitchPrimitive from "@radix-ui/react-switch"
+
+import { cn } from "@/lib/utils"
+
+function Switch({
+ className,
+ ...props
+}: React.ComponentProps<typeof SwitchPrimitive.Root>) {
+ return (
+ <SwitchPrimitive.Root
+ data-slot="switch"
+ className={cn(
+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
+ className
+ )}
+ {...props}
+ >
+ <SwitchPrimitive.Thumb
+ data-slot="switch-thumb"
+ className={cn(
+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
+ )}
+ />
+ </SwitchPrimitive.Root>
+ )
+}
+
+export { Switch }
diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx
new file mode 100644
index 000000000..3d6f3acf8
--- /dev/null
+++ b/src/components/ui/tabs.tsx
@@ -0,0 +1,64 @@
+import * as React from "react"
+import * as TabsPrimitive from "@radix-ui/react-tabs"
+
+import { cn } from "@/lib/utils"
+
+function Tabs({
+ className,
+ ...props
+}: React.ComponentProps<typeof TabsPrimitive.Root>) {
+ return (
+ <TabsPrimitive.Root
+ data-slot="tabs"
+ className={cn("flex flex-col gap-2", className)}
+ {...props}
+ />
+ )
+}
+
+function TabsList({
+ className,
+ ...props
+}: React.ComponentProps<typeof TabsPrimitive.List>) {
+ return (
+ <TabsPrimitive.List
+ data-slot="tabs-list"
+ className={cn(
+ "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function TabsTrigger({
+ className,
+ ...props
+}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
+ return (
+ <TabsPrimitive.Trigger
+ data-slot="tabs-trigger"
+ className={cn(
+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function TabsContent({
+ className,
+ ...props
+}: React.ComponentProps<typeof TabsPrimitive.Content>) {
+ return (
+ <TabsPrimitive.Content
+ data-slot="tabs-content"
+ className={cn("flex-1 outline-none", className)}
+ {...props}
+ />
+ )
+}
+
+export { Tabs, TabsList, TabsTrigger, TabsContent }
diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsx
new file mode 100644
index 000000000..4ee26b38a
--- /dev/null
+++ b/src/components/ui/tooltip.tsx
@@ -0,0 +1,61 @@
+"use client"
+
+import * as React from "react"
+import * as TooltipPrimitive from "@radix-ui/react-tooltip"
+
+import { cn } from "@/lib/utils"
+
+function TooltipProvider({
+ delayDuration = 0,
+ ...props
+}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
+ return (
+ <TooltipPrimitive.Provider
+ data-slot="tooltip-provider"
+ delayDuration={delayDuration}
+ {...props}
+ />
+ )
+}
+
+function Tooltip({
+ ...props
+}: React.ComponentProps<typeof TooltipPrimitive.Root>) {
+ return (
+ <TooltipProvider>
+ <TooltipPrimitive.Root data-slot="tooltip" {...props} />
+ </TooltipProvider>
+ )
+}
+
+function TooltipTrigger({
+ ...props
+}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
+}
+
+function TooltipContent({
+ className,
+ sideOffset = 0,
+ children,
+ ...props
+}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
+ return (
+ <TooltipPrimitive.Portal>
+ <TooltipPrimitive.Content
+ data-slot="tooltip-content"
+ sideOffset={sideOffset}
+ className={cn(
+ "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
+ </TooltipPrimitive.Content>
+ </TooltipPrimitive.Portal>
+ )
+}
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
diff --git a/src/hooks/use-mobile.ts b/src/hooks/use-mobile.ts
new file mode 100644
index 000000000..2b0fe1dfe
--- /dev/null
+++ b/src/hooks/use-mobile.ts
@@ -0,0 +1,19 @@
+import * as React from "react"
+
+const MOBILE_BREAKPOINT = 768
+
+export function useIsMobile() {
+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
+
+ React.useEffect(() => {
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
+ const onChange = () => {
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
+ }
+ mql.addEventListener("change", onChange)
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
+ return () => mql.removeEventListener("change", onChange)
+ }, [])
+
+ return !!isMobile
+}
diff --git a/src/index.css b/src/index.css
new file mode 100644
index 000000000..df6351344
--- /dev/null
+++ b/src/index.css
@@ -0,0 +1,133 @@
+@import "tailwindcss";
+@import "tw-animate-css";
+
+@custom-variant dark (&:is(.dark *));
+
+:root {
+ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
+ line-height: 1.5;
+ font-weight: 400;
+
+ color-scheme: light dark;
+ color: rgba(255, 255, 255, 0.87);
+ background-color: #09090b;
+
+ font-synthesis: none;
+ text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ --radius: 0.625rem;
+ --background: oklch(1 0 0);
+ --foreground: oklch(0.141 0.005 285.823);
+ --card: oklch(1 0 0);
+ --card-foreground: oklch(0.141 0.005 285.823);
+ --popover: oklch(1 0 0);
+ --popover-foreground: oklch(0.141 0.005 285.823);
+ --primary: oklch(0.21 0.006 285.885);
+ --primary-foreground: oklch(0.985 0 0);
+ --secondary: oklch(0.967 0.001 286.375);
+ --secondary-foreground: oklch(0.21 0.006 285.885);
+ --muted: oklch(0.967 0.001 286.375);
+ --muted-foreground: oklch(0.552 0.016 285.938);
+ --accent: oklch(0.967 0.001 286.375);
+ --accent-foreground: oklch(0.21 0.006 285.885);
+ --destructive: oklch(0.577 0.245 27.325);
+ --border: oklch(0.92 0.004 286.32);
+ --input: oklch(0.92 0.004 286.32);
+ --ring: oklch(0.705 0.015 286.067);
+ --chart-1: oklch(0.646 0.222 41.116);
+ --chart-2: oklch(0.6 0.118 184.704);
+ --chart-3: oklch(0.398 0.07 227.392);
+ --chart-4: oklch(0.828 0.189 84.429);
+ --chart-5: oklch(0.769 0.188 70.08);
+ --sidebar: oklch(0.985 0 0);
+ --sidebar-foreground: oklch(0.141 0.005 285.823);
+ --sidebar-primary: oklch(0.21 0.006 285.885);
+ --sidebar-primary-foreground: oklch(0.985 0 0);
+ --sidebar-accent: oklch(0.967 0.001 286.375);
+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
+ --sidebar-border: oklch(0.92 0.004 286.32);
+ --sidebar-ring: oklch(0.705 0.015 286.067);
+}
+
+@theme inline {
+ --radius-sm: calc(var(--radius) - 4px);
+ --radius-md: calc(var(--radius) - 2px);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) + 4px);
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --color-card: var(--card);
+ --color-card-foreground: var(--card-foreground);
+ --color-popover: var(--popover);
+ --color-popover-foreground: var(--popover-foreground);
+ --color-primary: var(--primary);
+ --color-primary-foreground: var(--primary-foreground);
+ --color-secondary: var(--secondary);
+ --color-secondary-foreground: var(--secondary-foreground);
+ --color-muted: var(--muted);
+ --color-muted-foreground: var(--muted-foreground);
+ --color-accent: var(--accent);
+ --color-accent-foreground: var(--accent-foreground);
+ --color-destructive: var(--destructive);
+ --color-border: var(--border);
+ --color-input: var(--input);
+ --color-ring: var(--ring);
+ --color-chart-1: var(--chart-1);
+ --color-chart-2: var(--chart-2);
+ --color-chart-3: var(--chart-3);
+ --color-chart-4: var(--chart-4);
+ --color-chart-5: var(--chart-5);
+ --color-sidebar: var(--sidebar);
+ --color-sidebar-foreground: var(--sidebar-foreground);
+ --color-sidebar-primary: var(--sidebar-primary);
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
+ --color-sidebar-accent: var(--sidebar-accent);
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
+ --color-sidebar-border: var(--sidebar-border);
+ --color-sidebar-ring: var(--sidebar-ring);
+}
+
+.dark {
+ --background: oklch(0.141 0.005 285.823);
+ --foreground: oklch(0.985 0 0);
+ --card: oklch(0.21 0.006 285.885);
+ --card-foreground: oklch(0.985 0 0);
+ --popover: oklch(0.21 0.006 285.885);
+ --popover-foreground: oklch(0.985 0 0);
+ --primary: oklch(0.92 0.004 286.32);
+ --primary-foreground: oklch(0.21 0.006 285.885);
+ --secondary: oklch(0.274 0.006 286.033);
+ --secondary-foreground: oklch(0.985 0 0);
+ --muted: oklch(0.274 0.006 286.033);
+ --muted-foreground: oklch(0.705 0.015 286.067);
+ --accent: oklch(0.274 0.006 286.033);
+ --accent-foreground: oklch(0.985 0 0);
+ --destructive: oklch(0.704 0.191 22.216);
+ --border: oklch(1 0 0 / 10%);
+ --input: oklch(1 0 0 / 15%);
+ --ring: oklch(0.552 0.016 285.938);
+ --chart-1: oklch(0.488 0.243 264.376);
+ --chart-2: oklch(0.696 0.17 162.48);
+ --chart-3: oklch(0.769 0.188 70.08);
+ --chart-4: oklch(0.627 0.265 303.9);
+ --chart-5: oklch(0.645 0.246 16.439);
+ --sidebar: oklch(0.21 0.006 285.885);
+ --sidebar-foreground: oklch(0.985 0 0);
+ --sidebar-primary: oklch(0.488 0.243 264.376);
+ --sidebar-primary-foreground: oklch(0.985 0 0);
+ --sidebar-accent: oklch(0.274 0.006 286.033);
+ --sidebar-accent-foreground: oklch(0.985 0 0);
+ --sidebar-border: oklch(1 0 0 / 10%);
+ --sidebar-ring: oklch(0.552 0.016 285.938);
+}
+
+@layer base {
+ * {
+ @apply border-border outline-ring/50;
+ }
+
+ body {
+ @apply bg-background text-foreground;
+ }
+}
\ No newline at end of file
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
new file mode 100644
index 000000000..bd0c391dd
--- /dev/null
+++ b/src/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx"
+import { twMerge } from "tailwind-merge"
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs))
+}
diff --git a/src/main.tsx b/src/main.tsx
new file mode 100644
index 000000000..0fcf6949c
--- /dev/null
+++ b/src/main.tsx
@@ -0,0 +1,13 @@
+import {StrictMode} from 'react'
+import {createRoot} from 'react-dom/client'
+import './index.css'
+import App from './App.tsx'
+import {ThemeProvider} from "@/components/theme-provider"
+
+createRoot(document.getElementById('root')!).render(
+ <StrictMode>
+ <ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
+ <App/>
+ </ThemeProvider>
+ </StrictMode>,
+)
diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts
new file mode 100644
index 000000000..11f02fe2a
--- /dev/null
+++ b/src/vite-env.d.ts
@@ -0,0 +1 @@
+/// <reference types="vite/client" />
diff --git a/tsconfig.app.json b/tsconfig.app.json
new file mode 100644
index 000000000..0c7eded95
--- /dev/null
+++ b/tsconfig.app.json
@@ -0,0 +1,44 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
+ "target": "ES2022",
+ "useDefineForClassFields": true,
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+
+ /* Linting - Made extremely permissive */
+ "strict": false,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noImplicitReturns": false,
+ "noFallthroughCasesInSwitch": false,
+ "noUncheckedSideEffectImports": false,
+ "noImplicitAny": false,
+ "noImplicitThis": false,
+ "noUncheckedIndexedAccess": false,
+ "exactOptionalPropertyTypes": false,
+ "noPropertyAccessFromIndexSignature": false,
+ "allowUnusedLabels": true,
+ "allowUnreachableCode": true,
+ "noImplicitOverride": false,
+ "noEmitOnError": false,
+
+ /* shadcn */
+ "baseUrl": ".",
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ }
+ },
+ "include": ["src"]
+}
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 000000000..f3c137833
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,20 @@
+{
+ "files": [],
+ "references": [
+ {
+ "path": "./tsconfig.app.json"
+ },
+ {
+ "path": "./tsconfig.node.json"
+ }
+ ],
+ "compilerOptions": {
+ "baseUrl": ".",
+ "module": "ESNext",
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ }
+}
\ No newline at end of file
diff --git a/tsconfig.node.json b/tsconfig.node.json
new file mode 100644
index 000000000..6b1225045
--- /dev/null
+++ b/tsconfig.node.json
@@ -0,0 +1,29 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
+ "target": "ES2023",
+ "lib": ["ES2023"],
+ "module": "nodenext",
+ "skipLibCheck": true,
+ "moduleResolution": "nodenext",
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": false,
+ "outDir": "./dist/backend",
+ "strict": false,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noImplicitReturns": false,
+ "noFallthroughCasesInSwitch": false,
+ "noUncheckedSideEffectImports": false,
+ "noImplicitAny": false,
+ "noImplicitThis": false,
+ "noImplicitReturns": false,
+ "noUncheckedIndexedAccess": false,
+ "exactOptionalPropertyTypes": false,
+ "noPropertyAccessFromIndexSignature": false,
+ "allowUnusedLabels": true,
+ "allowUnreachableCode": true
+ },
+ "include": ["src/backend/**/*.ts"]
+}
\ No newline at end of file
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 000000000..a0c7d6091
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,14 @@
+import path from "path"
+import tailwindcss from "@tailwindcss/vite"
+import { defineConfig } from 'vite'
+import react from '@vitejs/plugin-react-swc'
+
+// https://vite.dev/config/
+export default defineConfig({
+ plugins: [react(), tailwindcss()],
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "./src"),
+ },
+ },
+})
\ No newline at end of file