Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
initial implementation
CarterPerez-dev96d681cf1eb9
diff --git a/PROJECTS/encrypted-p2p-chat/.env.example b/PROJECTS/encrypted-p2p-chat/.env.examplenew file mode 100644index 00000000..ed841e55--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.env.example@@ -0,0 +1,63 @@+# Application+ENV=development+DEBUG=true+APP_NAME=encrypted-p2p-chat+SECRET_KEY=your-secret-key-here-change-in-production++# Docker Host Ports (change these if you have conflicts)+POSTGRES_HOST_PORT=5432+SURREAL_HOST_PORT=8001+REDIS_HOST_PORT=6379+BACKEND_HOST_PORT=8000+NGINX_HTTP_PORT=80+NGINX_HTTPS_PORT=443++# PostgreSQL (for auth data)+POSTGRES_HOST=postgres+POSTGRES_PORT=5432+POSTGRES_DB=chat_auth+POSTGRES_USER=chat_user+POSTGRES_PASSWORD=change-this-password+DATABASE_URL=postgresql+asyncpg://chat_user:change-this-password@postgres:5432/chat_auth+DB_POOL_SIZE=20+DB_MAX_OVERFLOW=40++# SurrealDB (for real-time chat data)+SURREAL_HOST=surrealdb+SURREAL_PORT=8000+SURREAL_USER=root+SURREAL_PASSWORD=change-this-password+SURREAL_NAMESPACE=chat+SURREAL_DATABASE=production+SURREAL_URL=ws://surrealdb:8000++# Redis (for caching and rate limiting)+REDIS_HOST=redis+REDIS_PORT=6379+REDIS_PASSWORD=+REDIS_URL=redis://redis:6379++# WebAuthn / Passkeys+RP_ID=localhost+RP_NAME=Encrypted P2P Chat+RP_ORIGIN=http://localhost++# Frontend (Vite requires VITE_ prefix)+VITE_API_URL=http://localhost:8000+VITE_WS_URL=ws://localhost:8000+VITE_RP_ID=localhost++# CORS+CORS_ORIGINS=["http://localhost:3000","http://localhost:5173"]++# WebSocket+WS_HEARTBEAT_INTERVAL=30+WS_MAX_CONNECTIONS_PER_USER=5++# Encryption+KEY_ROTATION_DAYS=90+MAX_SKIPPED_MESSAGE_KEYS=1000++# Rate Limiting+RATE_LIMIT_MESSAGES_PER_MINUTE=60+RATE_LIMIT_AUTH_ATTEMPTS=5diff --git a/PROJECTS/encrypted-p2p-chat/.gitignore b/PROJECTS/encrypted-p2p-chat/.gitignorenew file mode 100644index 00000000..a8849b3e--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.gitignore@@ -0,0 +1,71 @@+# Environment+/.env+.env.local+backend/.env+frontend/.env++# Python+__pycache__/+*.py[cod]+*$py.class+*.so+.Python+build/+develop-eggs/+dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+wheels/+*.egg-info/+.installed.cfg+*.egg+venv/+ENV/+env/++# Testing+.pytest_cache/+.coverage+htmlcov/+.mypy_cache/+.ruff_cache/++# IDE+.vscode/+.idea/+*.swp+*.swo+*~++# Logs+*.log+logs/++# Docker+docker-compose.override.yml++# Database+*.db+*.sqlite+*.sqlite3++# macOS+.DS_Store++# Node+node_modules/+.pnpm-store/+dist/+.solid/++# Nginx+nginx/ssl/++# AI handoff documentation+.truthdiff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/Activate.ps1 b/PROJECTS/encrypted-p2p-chat/.venv/bin/Activate.ps1new file mode 100644index 00000000..b49d77ba--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/Activate.ps1@@ -0,0 +1,247 @@+<#+.Synopsis+Activate a Python virtual environment for the current PowerShell session.++.Description+Pushes the python executable for a virtual environment to the front of the+$Env:PATH environment variable and sets the prompt to signify that you are+in a Python virtual environment. Makes use of the command line switches as+well as the `pyvenv.cfg` file values present in the virtual environment.++.Parameter VenvDir+Path to the directory that contains the virtual environment to activate. The+default value for this is the parent of the directory that the Activate.ps1+script is located within.++.Parameter Prompt+The prompt prefix to display when this virtual environment is activated. By+default, this prompt is the name of the virtual environment folder (VenvDir)+surrounded by parentheses and followed by a single space (ie. '(.venv) ').++.Example+Activate.ps1+Activates the Python virtual environment that contains the Activate.ps1 script.++.Example+Activate.ps1 -Verbose+Activates the Python virtual environment that contains the Activate.ps1 script,+and shows extra information about the activation as it executes.++.Example+Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv+Activates the Python virtual environment located in the specified location.++.Example+Activate.ps1 -Prompt "MyPython"+Activates the Python virtual environment that contains the Activate.ps1 script,+and prefixes the current prompt with the specified string (surrounded in+parentheses) while the virtual environment is active.++.Notes+On Windows, it may be required to enable this Activate.ps1 script by setting the+execution policy for the user. You can do this by issuing the following PowerShell+command:++PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser++For more information on Execution Policies:+https://go.microsoft.com/fwlink/?LinkID=135170++#>+Param(+ [Parameter(Mandatory = $false)]+ [String]+ $VenvDir,+ [Parameter(Mandatory = $false)]+ [String]+ $Prompt+)++<# Function declarations --------------------------------------------------- #>++<#+.Synopsis+Remove all shell session elements added by the Activate script, including the+addition of the virtual environment's Python executable from the beginning of+the PATH variable.++.Parameter NonDestructive+If present, do not remove this function from the global namespace for the+session.++#>+function global:deactivate ([switch]$NonDestructive) {+ # Revert to original values++ # The prior prompt:+ if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {+ Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt+ Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT+ }++ # The prior PYTHONHOME:+ if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {+ Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME+ Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME+ }++ # The prior PATH:+ if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {+ Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH+ Remove-Item -Path Env:_OLD_VIRTUAL_PATH+ }++ # Just remove the VIRTUAL_ENV altogether:+ if (Test-Path -Path Env:VIRTUAL_ENV) {+ Remove-Item -Path env:VIRTUAL_ENV+ }++ # Just remove VIRTUAL_ENV_PROMPT altogether.+ if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {+ Remove-Item -Path env:VIRTUAL_ENV_PROMPT+ }++ # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:+ if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {+ Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force+ }++ # Leave deactivate function in the global namespace if requested:+ if (-not $NonDestructive) {+ Remove-Item -Path function:deactivate+ }+}++<#+.Description+Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the+given folder, and returns them in a map.++For each line in the pyvenv.cfg file, if that line can be parsed into exactly+two strings separated by `=` (with any amount of whitespace surrounding the =)+then it is considered a `key = value` line. The left hand string is the key,+the right hand is the value.++If the value starts with a `'` or a `"` then the first and last character is+stripped from the value before being captured.++.Parameter ConfigDir+Path to the directory that contains the `pyvenv.cfg` file.+#>+function Get-PyVenvConfig(+ [String]+ $ConfigDir+) {+ Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"++ # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).+ $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue++ # An empty map will be returned if no config file is found.+ $pyvenvConfig = @{ }++ if ($pyvenvConfigPath) {++ Write-Verbose "File exists, parse `key = value` lines"+ $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath++ $pyvenvConfigContent | ForEach-Object {+ $keyval = $PSItem -split "\s*=\s*", 2+ if ($keyval[0] -and $keyval[1]) {+ $val = $keyval[1]++ # Remove extraneous quotations around a string value.+ if ("'""".Contains($val.Substring(0, 1))) {+ $val = $val.Substring(1, $val.Length - 2)+ }++ $pyvenvConfig[$keyval[0]] = $val+ Write-Verbose "Adding Key: '$($keyval[0])'='$val'"+ }+ }+ }+ return $pyvenvConfig+}+++<# Begin Activate script --------------------------------------------------- #>++# Determine the containing directory of this script+$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition+$VenvExecDir = Get-Item -Path $VenvExecPath++Write-Verbose "Activation script is located in path: '$VenvExecPath'"+Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"+Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"++# Set values required in priority: CmdLine, ConfigFile, Default+# First, get the location of the virtual environment, it might not be+# VenvExecDir if specified on the command line.+if ($VenvDir) {+ Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"+}+else {+ Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."+ $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")+ Write-Verbose "VenvDir=$VenvDir"+}++# Next, read the `pyvenv.cfg` file to determine any required value such+# as `prompt`.+$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir++# Next, set the prompt from the command line, or the config file, or+# just use the name of the virtual environment folder.+if ($Prompt) {+ Write-Verbose "Prompt specified as argument, using '$Prompt'"+}+else {+ Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"+ if ($pyvenvCfg -and $pyvenvCfg['prompt']) {+ Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"+ $Prompt = $pyvenvCfg['prompt'];+ }+ else {+ Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"+ Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"+ $Prompt = Split-Path -Path $venvDir -Leaf+ }+}++Write-Verbose "Prompt = '$Prompt'"+Write-Verbose "VenvDir='$VenvDir'"++# Deactivate any currently active virtual environment, but leave the+# deactivate function in place.+deactivate -nondestructive++# Now set the environment variable VIRTUAL_ENV, used by many tools to determine+# that there is an activated venv.+$env:VIRTUAL_ENV = $VenvDir++if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {++ Write-Verbose "Setting prompt to '$Prompt'"++ # Set the prompt to include the env name+ # Make sure _OLD_VIRTUAL_PROMPT is global+ function global:_OLD_VIRTUAL_PROMPT { "" }+ Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT+ New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt++ function global:prompt {+ Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "+ _OLD_VIRTUAL_PROMPT+ }+ $env:VIRTUAL_ENV_PROMPT = $Prompt+}++# Clear PYTHONHOME+if (Test-Path -Path Env:PYTHONHOME) {+ Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME+ Remove-Item -Path Env:PYTHONHOME+}++# Add the venv to the PATH+Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH+$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/activate b/PROJECTS/encrypted-p2p-chat/.venv/bin/activatenew file mode 100644index 00000000..c20de642--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/activate@@ -0,0 +1,70 @@+# This file must be used with "source bin/activate" *from bash*+# You cannot run it directly++deactivate () {+ # reset old environment variables+ if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then+ PATH="${_OLD_VIRTUAL_PATH:-}"+ export PATH+ unset _OLD_VIRTUAL_PATH+ fi+ if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then+ PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"+ export PYTHONHOME+ unset _OLD_VIRTUAL_PYTHONHOME+ fi++ # Call hash to forget past commands. Without forgetting+ # past commands the $PATH changes we made may not be respected+ hash -r 2> /dev/null++ if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then+ PS1="${_OLD_VIRTUAL_PS1:-}"+ export PS1+ unset _OLD_VIRTUAL_PS1+ fi++ unset VIRTUAL_ENV+ unset VIRTUAL_ENV_PROMPT+ if [ ! "${1:-}" = "nondestructive" ] ; then+ # Self destruct!+ unset -f deactivate+ fi+}++# unset irrelevant variables+deactivate nondestructive++# on Windows, a path can contain colons and backslashes and has to be converted:+if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then+ # transform D:\path\to\venv to /d/path/to/venv on MSYS+ # and to /cygdrive/d/path/to/venv on Cygwin+ export VIRTUAL_ENV=$(cygpath "/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv")+else+ # use the path as-is+ export VIRTUAL_ENV="/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv"+fi++_OLD_VIRTUAL_PATH="$PATH"+PATH="$VIRTUAL_ENV/bin:$PATH"+export PATH++# unset PYTHONHOME if set+# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)+# could use `if (set -u; : $PYTHONHOME) ;` in bash+if [ -n "${PYTHONHOME:-}" ] ; then+ _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"+ unset PYTHONHOME+fi++if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then+ _OLD_VIRTUAL_PS1="${PS1:-}"+ PS1="(.venv) ${PS1:-}"+ export PS1+ VIRTUAL_ENV_PROMPT="(.venv) "+ export VIRTUAL_ENV_PROMPT+fi++# Call hash to forget past commands. Without forgetting+# past commands the $PATH changes we made may not be respected+hash -r 2> /dev/nulldiff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/activate.csh b/PROJECTS/encrypted-p2p-chat/.venv/bin/activate.cshnew file mode 100644index 00000000..c9fe5be8--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/activate.csh@@ -0,0 +1,27 @@+# This file must be used with "source bin/activate.csh" *from csh*.+# You cannot run it directly.++# Created by Davide Di Blasi <[email protected]>.+# Ported to Python 3.3 venv by Andrew Svetlov <[email protected]>++alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'++# Unset irrelevant variables.+deactivate nondestructive++setenv VIRTUAL_ENV "/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv"++set _OLD_VIRTUAL_PATH="$PATH"+setenv PATH "$VIRTUAL_ENV/bin:$PATH"+++set _OLD_VIRTUAL_PROMPT="$prompt"++if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then+ set prompt = "(.venv) $prompt"+ setenv VIRTUAL_ENV_PROMPT "(.venv) "+endif++alias pydoc python -m pydoc++rehashdiff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/activate.fish b/PROJECTS/encrypted-p2p-chat/.venv/bin/activate.fishnew file mode 100644index 00000000..ba7f7dc0--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/activate.fish@@ -0,0 +1,69 @@+# This file must be used with "source <venv>/bin/activate.fish" *from fish*+# (https://fishshell.com/). You cannot run it directly.++function deactivate -d "Exit virtual environment and return to normal shell environment"+ # reset old environment variables+ if test -n "$_OLD_VIRTUAL_PATH"+ set -gx PATH $_OLD_VIRTUAL_PATH+ set -e _OLD_VIRTUAL_PATH+ end+ if test -n "$_OLD_VIRTUAL_PYTHONHOME"+ set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME+ set -e _OLD_VIRTUAL_PYTHONHOME+ end++ if test -n "$_OLD_FISH_PROMPT_OVERRIDE"+ set -e _OLD_FISH_PROMPT_OVERRIDE+ # prevents error when using nested fish instances (Issue #93858)+ if functions -q _old_fish_prompt+ functions -e fish_prompt+ functions -c _old_fish_prompt fish_prompt+ functions -e _old_fish_prompt+ end+ end++ set -e VIRTUAL_ENV+ set -e VIRTUAL_ENV_PROMPT+ if test "$argv[1]" != "nondestructive"+ # Self-destruct!+ functions -e deactivate+ end+end++# Unset irrelevant variables.+deactivate nondestructive++set -gx VIRTUAL_ENV "/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv"++set -gx _OLD_VIRTUAL_PATH $PATH+set -gx PATH "$VIRTUAL_ENV/bin" $PATH++# Unset PYTHONHOME if set.+if set -q PYTHONHOME+ set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME+ set -e PYTHONHOME+end++if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"+ # fish uses a function instead of an env var to generate the prompt.++ # Save the current fish_prompt function as the function _old_fish_prompt.+ functions -c fish_prompt _old_fish_prompt++ # With the original prompt function renamed, we can override with our own.+ function fish_prompt+ # Save the return status of the last command.+ set -l old_status $status++ # Output the venv prompt; color taken from the blue of the Python logo.+ printf "%s%s%s" (set_color 4B8BBE) "(.venv) " (set_color normal)++ # Restore the return status of the previous command.+ echo "exit $old_status" | .+ # Output the original/"old" prompt.+ _old_fish_prompt+ end++ set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"+ set -gx VIRTUAL_ENV_PROMPT "(.venv) "+enddiff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/alembic b/PROJECTS/encrypted-p2p-chat/.venv/bin/alembicnew file mode 100755index 00000000..5676ea59--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/alembic@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from alembic.config import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/cbor2 b/PROJECTS/encrypted-p2p-chat/.venv/bin/cbor2new file mode 100755index 00000000..c6dd1250--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/cbor2@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from cbor2.tool import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/dmypy b/PROJECTS/encrypted-p2p-chat/.venv/bin/dmypynew file mode 100755index 00000000..4329c295--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/dmypy@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from mypy.dmypy.client import console_entry+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(console_entry())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/dotenv b/PROJECTS/encrypted-p2p-chat/.venv/bin/dotenvnew file mode 100755index 00000000..d89553ab--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/dotenv@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from dotenv.__main__ import cli+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(cli())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/fastapi b/PROJECTS/encrypted-p2p-chat/.venv/bin/fastapinew file mode 100755index 00000000..32a6ce9c--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/fastapi@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from fastapi.cli import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/httpx b/PROJECTS/encrypted-p2p-chat/.venv/bin/httpxnew file mode 100755index 00000000..ae963741--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/httpx@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from httpx import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/identify-cli b/PROJECTS/encrypted-p2p-chat/.venv/bin/identify-clinew file mode 100755index 00000000..63ad7578--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/identify-cli@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from identify.cli import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/mako-render b/PROJECTS/encrypted-p2p-chat/.venv/bin/mako-rendernew file mode 100755index 00000000..ac7c5cd3--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/mako-render@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from mako.cmd import cmdline+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(cmdline())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/mypy b/PROJECTS/encrypted-p2p-chat/.venv/bin/mypynew file mode 100755index 00000000..82faa570--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/mypy@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from mypy.__main__ import console_entry+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(console_entry())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/mypyc b/PROJECTS/encrypted-p2p-chat/.venv/bin/mypycnew file mode 100755index 00000000..da6e582b--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/mypyc@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from mypyc.__main__ import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/nodeenv b/PROJECTS/encrypted-p2p-chat/.venv/bin/nodeenvnew file mode 100755index 00000000..fb203022--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/nodeenv@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from nodeenv import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/normalizer b/PROJECTS/encrypted-p2p-chat/.venv/bin/normalizernew file mode 100755index 00000000..6eea6de6--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/normalizer@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from charset_normalizer.cli import cli_detect+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(cli_detect())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/pip b/PROJECTS/encrypted-p2p-chat/.venv/bin/pipnew file mode 100755index 00000000..f6ea54bf--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/pip@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pip._internal.cli.main import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/pip3 b/PROJECTS/encrypted-p2p-chat/.venv/bin/pip3new file mode 100755index 00000000..f6ea54bf--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/pip3@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pip._internal.cli.main import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/pip3.12 b/PROJECTS/encrypted-p2p-chat/.venv/bin/pip3.12new file mode 100755index 00000000..f6ea54bf--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/pip3.12@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pip._internal.cli.main import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/pre-commit b/PROJECTS/encrypted-p2p-chat/.venv/bin/pre-commitnew file mode 100755index 00000000..1eac3c2b--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/pre-commit@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pre_commit.main import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/py.test b/PROJECTS/encrypted-p2p-chat/.venv/bin/py.testnew file mode 100755index 00000000..b69e9594--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/py.test@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pytest import console_main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(console_main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/pygmentize b/PROJECTS/encrypted-p2p-chat/.venv/bin/pygmentizenew file mode 100755index 00000000..d7497938--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/pygmentize@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pygments.cmdline import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/pytest b/PROJECTS/encrypted-p2p-chat/.venv/bin/pytestnew file mode 100755index 00000000..b69e9594--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/pytest@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from pytest import console_main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(console_main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/python b/PROJECTS/encrypted-p2p-chat/.venv/bin/pythonnew file mode 120000index 00000000..9dc388f7--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/python@@ -0,0 +1 @@+/home/yoshi/.pyenv/versions/3.12.7/bin/python\ No newline at end of filediff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/python3 b/PROJECTS/encrypted-p2p-chat/.venv/bin/python3new file mode 120000index 00000000..d8654aa0--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/python3@@ -0,0 +1 @@+python\ No newline at end of filediff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/python3.12 b/PROJECTS/encrypted-p2p-chat/.venv/bin/python3.12new file mode 120000index 00000000..d8654aa0--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/python3.12@@ -0,0 +1 @@+python\ No newline at end of filediff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/ruff b/PROJECTS/encrypted-p2p-chat/.venv/bin/ruffnew file mode 100755index 00000000..098fc345Binary files /dev/null and b/PROJECTS/encrypted-p2p-chat/.venv/bin/ruff differdiff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/stubgen b/PROJECTS/encrypted-p2p-chat/.venv/bin/stubgennew file mode 100755index 00000000..f1f860a2--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/stubgen@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from mypy.stubgen import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/stubtest b/PROJECTS/encrypted-p2p-chat/.venv/bin/stubtestnew file mode 100755index 00000000..a9819afb--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/stubtest@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from mypy.stubtest import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/uvicorn b/PROJECTS/encrypted-p2p-chat/.venv/bin/uvicornnew file mode 100755index 00000000..db23e2d9--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/uvicorn@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from uvicorn.main import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/virtualenv b/PROJECTS/encrypted-p2p-chat/.venv/bin/virtualenvnew file mode 100755index 00000000..5c30fc5f--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/virtualenv@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from virtualenv.__main__ import run_with_catch+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(run_with_catch())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/watchfiles b/PROJECTS/encrypted-p2p-chat/.venv/bin/watchfilesnew file mode 100755index 00000000..d417051c--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/watchfiles@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from watchfiles.cli import cli+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(cli())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/websockets b/PROJECTS/encrypted-p2p-chat/.venv/bin/websocketsnew file mode 100755index 00000000..88ae427f--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/websockets@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from websockets.cli import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/yapf b/PROJECTS/encrypted-p2p-chat/.venv/bin/yapfnew file mode 100755index 00000000..8229a3d1--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/yapf@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from yapf import run_main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(run_main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/bin/yapf-diff b/PROJECTS/encrypted-p2p-chat/.venv/bin/yapf-diffnew file mode 100755index 00000000..3dc241bd--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/bin/yapf-diff@@ -0,0 +1,8 @@+#!/home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venv/bin/python+# -*- coding: utf-8 -*-+import re+import sys+from yapf_third_party.yapf_diff.yapf_diff import main+if __name__ == '__main__':+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])+ sys.exit(main())diff --git a/PROJECTS/encrypted-p2p-chat/.venv/include/site/python3.12/greenlet/greenlet.h b/PROJECTS/encrypted-p2p-chat/.venv/include/site/python3.12/greenlet/greenlet.hnew file mode 100644index 00000000..d02a16e4--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/include/site/python3.12/greenlet/greenlet.h@@ -0,0 +1,164 @@+/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */++/* Greenlet object interface */++#ifndef Py_GREENLETOBJECT_H+#define Py_GREENLETOBJECT_H+++#include <Python.h>++#ifdef __cplusplus+extern "C" {+#endif++/* This is deprecated and undocumented. It does not change. */+#define GREENLET_VERSION "1.0.0"++#ifndef GREENLET_MODULE+#define implementation_ptr_t void*+#endif++typedef struct _greenlet {+ PyObject_HEAD+ PyObject* weakreflist;+ PyObject* dict;+ implementation_ptr_t pimpl;+} PyGreenlet;++#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type))+++/* C API functions */++/* Total number of symbols that are exported */+#define PyGreenlet_API_pointers 12++#define PyGreenlet_Type_NUM 0+#define PyExc_GreenletError_NUM 1+#define PyExc_GreenletExit_NUM 2++#define PyGreenlet_New_NUM 3+#define PyGreenlet_GetCurrent_NUM 4+#define PyGreenlet_Throw_NUM 5+#define PyGreenlet_Switch_NUM 6+#define PyGreenlet_SetParent_NUM 7++#define PyGreenlet_MAIN_NUM 8+#define PyGreenlet_STARTED_NUM 9+#define PyGreenlet_ACTIVE_NUM 10+#define PyGreenlet_GET_PARENT_NUM 11++#ifndef GREENLET_MODULE+/* This section is used by modules that uses the greenlet C API */+static void** _PyGreenlet_API = NULL;++# define PyGreenlet_Type \+ (*(PyTypeObject*)_PyGreenlet_API[PyGreenlet_Type_NUM])++# define PyExc_GreenletError \+ ((PyObject*)_PyGreenlet_API[PyExc_GreenletError_NUM])++# define PyExc_GreenletExit \+ ((PyObject*)_PyGreenlet_API[PyExc_GreenletExit_NUM])++/*+ * PyGreenlet_New(PyObject *args)+ *+ * greenlet.greenlet(run, parent=None)+ */+# define PyGreenlet_New \+ (*(PyGreenlet * (*)(PyObject * run, PyGreenlet * parent)) \+ _PyGreenlet_API[PyGreenlet_New_NUM])++/*+ * PyGreenlet_GetCurrent(void)+ *+ * greenlet.getcurrent()+ */+# define PyGreenlet_GetCurrent \+ (*(PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM])++/*+ * PyGreenlet_Throw(+ * PyGreenlet *greenlet,+ * PyObject *typ,+ * PyObject *val,+ * PyObject *tb)+ *+ * g.throw(...)+ */+# define PyGreenlet_Throw \+ (*(PyObject * (*)(PyGreenlet * self, \+ PyObject * typ, \+ PyObject * val, \+ PyObject * tb)) \+ _PyGreenlet_API[PyGreenlet_Throw_NUM])++/*+ * PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args)+ *+ * g.switch(*args, **kwargs)+ */+# define PyGreenlet_Switch \+ (*(PyObject * \+ (*)(PyGreenlet * greenlet, PyObject * args, PyObject * kwargs)) \+ _PyGreenlet_API[PyGreenlet_Switch_NUM])++/*+ * PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent)+ *+ * g.parent = new_parent+ */+# define PyGreenlet_SetParent \+ (*(int (*)(PyGreenlet * greenlet, PyGreenlet * nparent)) \+ _PyGreenlet_API[PyGreenlet_SetParent_NUM])++/*+ * PyGreenlet_GetParent(PyObject* greenlet)+ *+ * return greenlet.parent;+ *+ * This could return NULL even if there is no exception active.+ * If it does not return NULL, you are responsible for decrementing the+ * reference count.+ */+# define PyGreenlet_GetParent \+ (*(PyGreenlet* (*)(PyGreenlet*)) \+ _PyGreenlet_API[PyGreenlet_GET_PARENT_NUM])++/*+ * deprecated, undocumented alias.+ */+# define PyGreenlet_GET_PARENT PyGreenlet_GetParent++# define PyGreenlet_MAIN \+ (*(int (*)(PyGreenlet*)) \+ _PyGreenlet_API[PyGreenlet_MAIN_NUM])++# define PyGreenlet_STARTED \+ (*(int (*)(PyGreenlet*)) \+ _PyGreenlet_API[PyGreenlet_STARTED_NUM])++# define PyGreenlet_ACTIVE \+ (*(int (*)(PyGreenlet*)) \+ _PyGreenlet_API[PyGreenlet_ACTIVE_NUM])+++++/* Macro that imports greenlet and initializes C API */+/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we+ keep the older definition to be sure older code that might have a copy of+ the header still works. */+# define PyGreenlet_Import() \+ { \+ _PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \+ }++#endif /* GREENLET_MODULE */++#ifdef __cplusplus+}+#endif+#endif /* !Py_GREENLETOBJECT_H */diff --git a/PROJECTS/encrypted-p2p-chat/.venv/lib64 b/PROJECTS/encrypted-p2p-chat/.venv/lib64new file mode 120000index 00000000..7951405f--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/lib64@@ -0,0 +1 @@+lib\ No newline at end of filediff --git a/PROJECTS/encrypted-p2p-chat/.venv/pyvenv.cfg b/PROJECTS/encrypted-p2p-chat/.venv/pyvenv.cfgnew file mode 100644index 00000000..e0a444cc--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/.venv/pyvenv.cfg@@ -0,0 +1,5 @@+home = /home/yoshi/.pyenv/versions/3.12.7/bin+include-system-site-packages = false+version = 3.12.7+executable = /home/yoshi/.pyenv/versions/3.12.7/bin/python3.12+command = /home/yoshi/.pyenv/versions/3.12.7/bin/python -m venv /home/yoshi/dev/Cybersecurity-Projects/PROJECTS/encrypted-p2p-chat/.venvdiff --git a/PROJECTS/encrypted-p2p-chat/Makefile b/PROJECTS/encrypted-p2p-chat/Makefilenew file mode 100644index 00000000..a6612be6--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/Makefile@@ -0,0 +1,110 @@+# ⒸAngelaMos | 2025+# Makefile++.PHONY: help setup setup-backend setup-frontend env dev prod build-dev build-prod up-dev up-prod down-dev down-prod logs-dev logs-prod test-backend clean++help:+ @echo "Encrypted P2P Chat - Makefile Commands"+ @echo ""+ @echo "Setup:"+ @echo " make setup - Complete project setup (backend + frontend)"+ @echo " make setup-backend - Setup backend (venv, install deps)"+ @echo " make setup-frontend - Setup frontend (install npm deps)"+ @echo " make env - Copy .env.example to .env files"+ @echo ""+ @echo "Development:"+ @echo " make dev - Start development environment"+ @echo " make build-dev - Build development Docker images"+ @echo " make up-dev - Start development containers"+ @echo " make down-dev - Stop development containers"+ @echo " make logs-dev - Follow development logs"+ @echo ""+ @echo "Production:"+ @echo " make prod - Start production environment"+ @echo " make build-prod - Build production Docker images"+ @echo " make up-prod - Start production containers"+ @echo " make down-prod - Stop production containers"+ @echo " make logs-prod - Follow production logs"+ @echo ""+ @echo "Testing:"+ @echo " make test-backend - Run backend tests"+ @echo ""+ @echo "Cleanup:"+ @echo " make clean - Remove all containers, volumes, and build artifacts"++setup: setup-backend setup-frontend env+ @echo "Setup complete!"++setup-backend:+ @echo "Setting up backend..."+ cd backend && python3 -m venv ../.venv+ . .venv/bin/activate && cd backend && pip install -e .[dev]+ @echo "Backend setup complete!"++setup-frontend:+ @echo "Setting up frontend..."+ cd frontend && npm install+ @echo "Frontend setup complete!"++env:+ @echo "Creating .env files..."+ @if [ ! -f .env ]; then cp .env.example .env; echo "Created root .env"; fi+ @if [ ! -f frontend/.env ]; then cp frontend/.env.example frontend/.env; echo "Created frontend/.env"; fi+ @echo ".env files created! Please update with your values."++dev: build-dev up-dev++build-dev:+ @echo "Building development Docker images..."+ docker compose -f docker-compose.dev.yml build++up-dev:+ @echo "Starting development environment..."+ docker compose -f docker-compose.dev.yml up -d+ @echo "Development environment started!"+ @echo "Frontend: http://localhost:5173"+ @echo "Backend: http://localhost:8000"+ @echo "Nginx: http://localhost"++down-dev:+ @echo "Stopping development environment..."+ docker compose -f docker-compose.dev.yml down++logs-dev:+ docker compose -f docker-compose.dev.yml logs -f++prod: build-prod up-prod++build-prod:+ @echo "Building production Docker images..."+ docker compose -f docker-compose.prod.yml build++up-prod:+ @echo "Starting production environment..."+ docker compose -f docker-compose.prod.yml up -d+ @echo "Production environment started!"+ @echo "Application: http://localhost"++down-prod:+ @echo "Stopping production environment..."+ docker compose -f docker-compose.prod.yml down++logs-prod:+ docker compose -f docker-compose.prod.yml logs -f++test-backend:+ @echo "Running backend tests..."+ . .venv/bin/activate && cd backend && python -m pytest tests/ -v++clean:+ @echo "Cleaning up..."+ docker compose -f docker-compose.dev.yml down -v+ docker compose -f docker-compose.prod.yml down -v+ rm -rf frontend/node_modules+ rm -rf frontend/dist+ rm -rf backend/.venv+ rm -rf backend/__pycache__+ rm -rf backend/.pytest_cache+ rm -rf backend/.mypy_cache+ rm -rf backend/.ruff_cache+ @echo "Cleanup complete!"diff --git a/PROJECTS/encrypted-p2p-chat/README.md b/PROJECTS/encrypted-p2p-chat/README.mdnew file mode 100644index 00000000..85dff8c2--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/README.md@@ -0,0 +1,240 @@+# Encrypted P2P Chat++End-to-end encrypted P2P chat application with Signal Protocol (Double Ratchet + X3DH) and WebAuthn/Passkeys authentication.++## Tech Stack++### Backend+- **FastAPI** - Modern Python web framework+- **PostgreSQL + SQLModel** - User and credential storage+- **SurrealDB** - Real-time messaging with live queries+- **Redis** - Challenge storage and caching+- **Double Ratchet + X3DH** - Signal Protocol encryption+- **WebAuthn** - Passwordless authentication++### Frontend+- **SolidJS 1.9** - Fine-grained reactive UI+- **TypeScript** - Type safety+- **Vite 6** - Modern build tool+- **Tailwind CSS v4** - Utility-first CSS+- **@tanstack/solid-query** - Data fetching++### Infrastructure+- **Docker Compose** - Service orchestration+- **Nginx** - Reverse proxy+- **Makefile** - Development automation++## Quick Start++### Prerequisites++- Docker and Docker Compose+- **Node.js 20.19+ or 22.12+** (required for Vite 7)+- **Python 3.13+** (latest stable)+- Make++### Setup++1. Clone the repository++2. Create environment files:+```bash+make env+```++This creates:+- `.env` (root) - Used by backend and docker-compose+- `frontend/.env` - Used by Vite frontend++3. Update `.env` files with your configuration++4. Run development environment:+```bash+make dev+```++The application will be available at:+- **Frontend**: http://localhost:3000 (Vite dev server)+- **Backend**: http://localhost:8000 (FastAPI)+- **Nginx**: http://localhost (proxies to frontend/backend)++### Development Commands++```bash+make help # Show all commands+make setup # Complete project setup+make dev # Start development environment+make logs-dev # Follow development logs+make down-dev # Stop development environment+make test-backend # Run backend tests+make clean # Clean all artifacts+```++### Production Commands++```bash+make build-prod # Build production images+make prod # Start production environment+make logs-prod # Follow production logs+make down-prod # Stop production environment+```++## Project Structure++```+encrypted-p2p-chat/+├── backend/+│ ├── app/+│ │ ├── api/ # API endpoints+│ │ │ ├── auth.py # WebAuthn authentication+│ │ │ ├── encryption.py # Prekey bundle endpoints+│ │ │ └── websocket.py # WebSocket endpoint+│ │ ├── core/+│ │ │ ├── encryption/+│ │ │ │ ├── x3dh_manager.py # X3DH key exchange+│ │ │ │ └── double_ratchet.py # Double Ratchet engine+│ │ │ ├── passkey/+│ │ │ │ └── passkey_manager.py # WebAuthn manager+│ │ │ ├── exceptions.py # Custom exceptions+│ │ │ ├── redis_manager.py # Redis client+│ │ │ ├── surreal_manager.py # SurrealDB client+│ │ │ └── websocket_manager.py # WebSocket connections+│ │ ├── models/ # SQLModel database models+│ │ ├── schemas/ # Pydantic schemas+│ │ ├── services/ # Business logic layer+│ │ ├── config.py # Configuration and constants+│ │ ├── factory.py # FastAPI app factory+│ │ └── main.py # Entry point+│ ├── tests/ # Pytest tests+│ ├── Dockerfile # Production+│ ├── Dockerfile.dev # Development+│ └── pyproject.toml+├── frontend/+│ ├── src/+│ │ ├── pages/ # SolidJS pages+│ │ ├── App.tsx # Root component with routes+│ │ ├── index.tsx # Entry point+│ │ ├── index.css # Tailwind imports+│ │ └── config.ts # Constants+│ ├── public/+│ │ └── index.html+│ ├── Dockerfile # Production+│ ├── Dockerfile.dev # Development+│ ├── vite.config.ts+│ ├── tsconfig.json+│ └── package.json+├── nginx/+│ ├── nginx.dev.conf # Development config+│ ├── nginx.prod.conf # Production config+│ └── Dockerfile+├── docker-compose.yml # Production+├── docker-compose.dev.yml # Development+├── Makefile+└── .env.example++## Features++### Authentication+- Passwordless login with WebAuthn/Passkeys+- Discoverable credentials (device-based auth)+- Multi-device support+- Signature counter verification++### Encryption+- Double Ratchet protocol (Signal)+- X3DH key exchange for async messaging+- Forward secrecy+- Break-in recovery+- Out-of-order message handling++### Real-time Messaging+- WebSocket connections+- SurrealDB live queries+- Online/offline presence+- Typing indicators+- Read receipts+- Heartbeat keep-alive++## Development++### Backend Development++```bash+cd backend+python -m venv ../.venv+source ../.venv/bin/activate+pip install -e .[dev]+python -m pytest tests/ -v+```++### Frontend Development++```bash+cd frontend+npm install+npm run dev+npm run typecheck+npm run lint+```++## Testing++### Backend Tests++```bash+make test-backend+```++Or manually:++```bash+cd backend+python -m pytest tests/ -v+```++## Environment Variables++See `.env.example` files for all configuration options.++Required variables:+- `SECRET_KEY` - Application secret key+- `POSTGRES_PASSWORD` - PostgreSQL password+- `SURREAL_PASSWORD` - SurrealDB password++## Architecture++### Backend Architecture++```+API Endpoints (thin routes)+ ↓+Services (business logic)+ ↓+Models (database)+ ↓+PostgreSQL / SurrealDB / Redis+```++### Encryption Flow++```+X3DH Key Exchange+ ↓+Shared Secret+ ↓+Double Ratchet Initialization+ ↓+Per-Message Encryption (AES-256-GCM)+```++### WebSocket Flow++```+Client → WebSocket → Connection Manager → Service Layer → SurrealDB+ ↓+ Live Queries → Broadcast+```++## License++MITdiff --git a/PROJECTS/encrypted-p2p-chat/backend/app/api/rooms.py b/PROJECTS/encrypted-p2p-chat/backend/app/api/rooms.pynew file mode 100644index 00000000..67e04eca--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/backend/app/api/rooms.py@@ -0,0 +1,121 @@+"""+ⒸAngelaMos | 2025+Rooms API for creating and managing chat rooms+"""++import logging+from uuid import UUID+from datetime import UTC, datetime++from fastapi import (+ APIRouter,+ Depends,+ HTTPException,+ status,+)+from sqlmodel.ext.asyncio.session import AsyncSession++from app.schemas.rooms import (+ CreateRoomRequest,+ ParticipantResponse,+ RoomAPIResponse,+ RoomListResponse,+)+from app.core.enums import RoomType+from app.models.Base import get_session+from app.core.surreal_manager import surreal_db+from app.services.auth_service import auth_service+++logger = logging.getLogger(__name__)+++router = APIRouter(prefix = "/rooms", tags = ["rooms"])++[email protected]("", status_code = status.HTTP_201_CREATED)+async def create_room(+ request: CreateRoomRequest,+ session: AsyncSession = Depends(get_session),+) -> RoomAPIResponse:+ """+ Create a new chat room+ """+ participant = await auth_service.get_user_by_id(+ session,+ UUID(request.participant_id),+ )++ if not participant:+ raise HTTPException(+ status_code = status.HTTP_404_NOT_FOUND,+ detail = "Participant not found",+ )++ now = datetime.now(UTC)++ room_data = {+ "name": participant.display_name,+ "room_type": request.room_type.value,+ "created_by": request.participant_id,+ "created_at": now.isoformat(),+ "updated_at": now.isoformat(),+ "is_ephemeral": request.room_type == RoomType.EPHEMERAL,+ }++ room = await surreal_db.create_room(room_data)++ logger.info(+ "Created room %s with participant %s",+ room.id,+ request.participant_id,+ )++ return RoomAPIResponse(+ id = room.id,+ type = RoomType(room.room_type),+ name = participant.display_name,+ participants = [+ ParticipantResponse(+ user_id = str(participant.id),+ username = participant.username,+ display_name = participant.display_name,+ role = "member",+ joined_at = now.isoformat(),+ )+ ],+ unread_count = 0,+ is_encrypted = True,+ created_at = room.created_at.isoformat(),+ updated_at = room.updated_at.isoformat(),+ )++[email protected]("", status_code = status.HTTP_200_OK)+async def list_rooms() -> RoomListResponse:+ """+ List all rooms for the current user+ """+ return RoomListResponse(rooms = [])++[email protected]("/{room_id}", status_code = status.HTTP_200_OK)+async def get_room(room_id: str) -> RoomAPIResponse:+ """+ Get a specific room+ """+ raise HTTPException(+ status_code = status.HTTP_404_NOT_FOUND,+ detail = "Room not found",+ )++[email protected]("/{room_id}", status_code = status.HTTP_204_NO_CONTENT)+async def delete_room(room_id: str) -> None:+ """+ Delete a room+ """+ raise HTTPException(+ status_code = status.HTTP_404_NOT_FOUND,+ detail = "Room not found",+ )diff --git a/PROJECTS/encrypted-p2p-chat/backend/app/core/surreal_manager.py b/PROJECTS/encrypted-p2p-chat/backend/app/core/surreal_manager.pyindex a98bd9f2..109dd80f 100644--- a/PROJECTS/encrypted-p2p-chat/backend/app/core/surreal_manager.py+++ b/PROJECTS/encrypted-p2p-chat/backend/app/core/surreal_manager.py@@ -87,6 +87,7 @@ class SurrealDBManager:"""await self.ensure_connected()result = await self.db.create("messages", message_data)+ result["id"] = str(result["id"])return MessageResponse(**result)async def get_room_messages(@@ -123,6 +124,7 @@ class SurrealDBManager:"""await self.ensure_connected()result = await self.db.create("rooms", room_data)+ result["id"] = str(result["id"])return RoomResponse(**result)async def get_user_rooms(self, user_id: str) -> list[RoomResponse]:@@ -235,7 +237,8 @@ class SurrealDBManager:"""await self.ensure_connected()room = await self.db.create("rooms", room_data)- room_id = room["id"]+ room_id = str(room["id"])+ room["id"] = room_idasyncio.create_task(self._schedule_room_deletion(room_id, ttl_seconds))return RoomResponse(**room)diff --git a/PROJECTS/encrypted-p2p-chat/backend/app/factory.py b/PROJECTS/encrypted-p2p-chat/backend/app/factory.pyindex ef458563..4e016f37 100644--- a/PROJECTS/encrypted-p2p-chat/backend/app/factory.py+++ b/PROJECTS/encrypted-p2p-chat/backend/app/factory.py@@ -25,6 +25,7 @@ from app.config import ()from app.models.Base import init_dbfrom app.api.auth import router as auth_router+from app.api.rooms import router as rooms_routerfrom app.core.surreal_manager import surreal_dbfrom app.core.redis_manager import redis_managerfrom app.api.encryption import router as encryption_router@@ -106,6 +107,7 @@ def create_app() -> FastAPI:return HealthResponse(status = "healthy")app.include_router(auth_router)+ app.include_router(rooms_router)app.include_router(encryption_router)app.include_router(websocket_router)diff --git a/PROJECTS/encrypted-p2p-chat/backend/app/schemas/__init__.py b/PROJECTS/encrypted-p2p-chat/backend/app/schemas/__init__.pyindex 06ff77f5..8324ba12 100644--- a/PROJECTS/encrypted-p2p-chat/backend/app/schemas/__init__.py+++ b/PROJECTS/encrypted-p2p-chat/backend/app/schemas/__init__.py@@ -33,6 +33,12 @@ from app.schemas.websocket import (WSHeartbeat,)from app.schemas.common import HealthResponse, RootResponse+from app.schemas.rooms import (+ CreateRoomRequest,+ ParticipantResponse,+ RoomAPIResponse,+ RoomListResponse,+)__all__ = [@@ -61,4 +67,8 @@ __all__ = ["WSHeartbeat","RootResponse","HealthResponse",+ "CreateRoomRequest",+ "ParticipantResponse",+ "RoomAPIResponse",+ "RoomListResponse",]diff --git a/PROJECTS/encrypted-p2p-chat/backend/app/schemas/rooms.py b/PROJECTS/encrypted-p2p-chat/backend/app/schemas/rooms.pynew file mode 100644index 00000000..abe5c3b5--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/backend/app/schemas/rooms.py@@ -0,0 +1,48 @@+"""+ⒸAngelaMos | 2025+Pydantic schemas for rooms API+"""++from pydantic import BaseModel++from app.core.enums import RoomType+++class CreateRoomRequest(BaseModel):+ """+ Request to create a new room+ """+ participant_id: str+ room_type: RoomType = RoomType.DIRECT+++class ParticipantResponse(BaseModel):+ """+ Participant in a room+ """+ user_id: str+ username: str+ display_name: str+ role: str = "member"+ joined_at: str+++class RoomAPIResponse(BaseModel):+ """+ Room response for API+ """+ id: str+ type: RoomType+ name: str | None = None+ participants: list[ParticipantResponse]+ unread_count: int = 0+ is_encrypted: bool = True+ created_at: str+ updated_at: str+++class RoomListResponse(BaseModel):+ """+ List of rooms response+ """+ rooms: list[RoomAPIResponse]diff --git a/PROJECTS/encrypted-p2p-chat/backend/pyproject.toml b/PROJECTS/encrypted-p2p-chat/backend/pyproject.tomlindex 8ab4de2a..047868fe 100644--- a/PROJECTS/encrypted-p2p-chat/backend/pyproject.toml+++ b/PROJECTS/encrypted-p2p-chat/backend/pyproject.toml@@ -109,11 +109,13 @@ ignore = ["RUF002", # Docstring with ambiguous unicode"B008", # FastAPI Depends() in defaults is standard pattern"ARG001", # Unused function args (lifespan protocol)+ "E712", # SQLAlchemy requires == True/False for query filters][tool.ruff.lint.per-file-ignores]"__init__.py" = ["F401"]+"tests/*" = ["ARG002"][tool.mypy]python_version = "3.13"@@ -152,7 +154,7 @@ disable_error_code = ["union-attr", "type-arg"][[tool.mypy.overrides]]module = "app.services.auth_service"-disable_error_code = ["arg-type", "no-any-return"]+disable_error_code = ["arg-type", "no-any-return", "attr-defined"][[tool.mypy.overrides]]module = "app.services.prekey_service"@@ -238,6 +240,8 @@ max-positional-arguments = 7[tool.pylint."messages control"]per-file-ignores = ["alembic/env.py:W0611", # Unused imports needed for SQLModel metadata+ "app/services/*:C0121", # SQLAlchemy requires == True/False for query filters+ "tests/*:W0212,W0621", # Tests access protected members; pytest fixtures reuse names]diff --git a/PROJECTS/encrypted-p2p-chat/conf/docker/dev/fastapi.docker b/PROJECTS/encrypted-p2p-chat/conf/docker/dev/fastapi.dockernew file mode 100644index 00000000..7f4e5a99--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/docker/dev/fastapi.docker@@ -0,0 +1,28 @@+# ©AngelaMos | 2025+# Development FastAPI Dockerfile+# Hot reload with uvicorn, volume mounts for code++FROM python:3.13-slim++ENV PYTHONUNBUFFERED=1 \+ PYTHONDONTWRITEBYTECODE=1 \+ PIP_NO_CACHE_DIR=1 \+ PIP_DISABLE_PIP_VERSION_CHECK=1++WORKDIR /app++RUN apt-get update && \+ apt-get install -y --no-install-recommends \+ build-essential \+ libpq-dev \+ curl && \+ rm -rf /var/lib/apt/lists/*++COPY backend/pyproject.toml ./+RUN pip install -e .[dev]++COPY backend/ .++EXPOSE 8000++CMD ["uvicorn", "app.factory:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000", "--reload"]diff --git a/PROJECTS/encrypted-p2p-chat/conf/docker/dev/vite.docker b/PROJECTS/encrypted-p2p-chat/conf/docker/dev/vite.dockernew file mode 100644index 00000000..b238d871--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/docker/dev/vite.docker@@ -0,0 +1,17 @@+# ©AngelaMos | 2025+# Development Vite Dockerfile+# HMR dev server, volume mounts for code++FROM node:22-alpine++WORKDIR /app++COPY frontend/package*.json ./++RUN npm ci++COPY frontend/ .++EXPOSE 5173++CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]diff --git a/PROJECTS/encrypted-p2p-chat/conf/docker/prod/fastapi.docker b/PROJECTS/encrypted-p2p-chat/conf/docker/prod/fastapi.dockernew file mode 100644index 00000000..d4a8af99--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/docker/prod/fastapi.docker@@ -0,0 +1,53 @@+# ©AngelaMos | 2025+# Production FastAPI Dockerfile+# Multi stage build, gunicorn with uvicorn workers++FROM python:3.13-slim AS builder++ENV PYTHONUNBUFFERED=1 \+ PYTHONDONTWRITEBYTECODE=1 \+ PIP_NO_CACHE_DIR=1 \+ PIP_DISABLE_PIP_VERSION_CHECK=1++WORKDIR /app++RUN apt-get update && \+ apt-get install -y --no-install-recommends \+ build-essential \+ libpq-dev && \+ rm -rf /var/lib/apt/lists/*++COPY backend/pyproject.toml ./+RUN pip install --user --no-warn-script-location .+RUN pip install --user --no-warn-script-location gunicorn++FROM python:3.13-slim++WORKDIR /app++RUN apt-get update && \+ apt-get install -y --no-install-recommends \+ libpq5 \+ curl && \+ rm -rf /var/lib/apt/lists/* && \+ useradd -m -u 1000 appuser++COPY --from=builder /root/.local /home/appuser/.local+ENV PATH=/home/appuser/.local/bin:$PATH++COPY backend/ .++RUN chown -R appuser:appuser /app+USER appuser++EXPOSE 8000++HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \+ CMD curl -f http://localhost:8000/health || exit 1++CMD ["gunicorn", "app.main:app", \+ "--workers", "4", \+ "--worker-class", "uvicorn.workers.UvicornWorker", \+ "--bind", "0.0.0.0:8000", \+ "--access-logfile", "-", \+ "--error-logfile", "-"]diff --git a/PROJECTS/encrypted-p2p-chat/conf/docker/prod/vite.docker b/PROJECTS/encrypted-p2p-chat/conf/docker/prod/vite.dockernew file mode 100644index 00000000..fca89cbc--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/docker/prod/vite.docker@@ -0,0 +1,28 @@+# ©AngelaMos | 2025+# Production Vite Dockerfile+# Multi-stage: build with node, serve with nginx++FROM node:22-alpine AS builder++WORKDIR /app++COPY frontend/package*.json ./++RUN npm ci++COPY frontend/ .++RUN npm run build++FROM nginx:alpine++COPY --from=builder /app/dist /usr/share/nginx/html++COPY conf/nginx/prod.nginx /etc/nginx/nginx.conf++EXPOSE 80++HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \+ CMD wget --quiet --tries=1 --spider http://localhost/health || exit 1++CMD ["nginx", "-g", "daemon off;"]diff --git a/PROJECTS/encrypted-p2p-chat/conf/nginx/dev.nginx b/PROJECTS/encrypted-p2p-chat/conf/nginx/dev.nginxnew file mode 100644index 00000000..b80a0939--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/nginx/dev.nginx@@ -0,0 +1,81 @@+# ©AngelaMos | 2025+# Development Nginx Configuration+# - Proxies to Vite dev server (HMR/WebSocket support)+# - Proxies /api and /ws to FastAPI backend+# - No caching, verbose logging++user nginx;+worker_processes 1;+error_log /var/log/nginx/error.log debug;+pid /var/run/nginx.pid;++events {+ worker_connections 1024;+ use epoll;+}++http {+ include /etc/nginx/mime.types;+ include /etc/nginx/http.conf;+ default_type application/octet-stream;++ access_log /var/log/nginx/access.log main_timed;++ sendfile off;+ tcp_nodelay on;+ keepalive_timeout 65;++ server {+ listen 80;+ listen [::]:80;+ server_name _;++ client_max_body_size 10M;++ # WebSocket to backend+ location /ws {+ proxy_pass http://backend;+ proxy_http_version 1.1;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection $connection_upgrade;+ 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;+ proxy_read_timeout 3600s;+ proxy_send_timeout 3600s;+ proxy_buffering off;+ }++ # API routes+ location /api {+ proxy_pass http://backend;+ proxy_http_version 1.1;+ proxy_set_header Connection "";+ 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;+ proxy_buffering off;+ proxy_request_buffering off;+ }++ # Vite dev server with HMR+ location / {+ proxy_pass http://frontend;+ proxy_http_version 1.1;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection $connection_upgrade;+ proxy_set_header Host $host;+ proxy_cache_bypass $http_upgrade;+ proxy_read_timeout 60s;+ proxy_buffering off;+ }++ location /health {+ access_log off;+ return 200 "healthy\n";+ add_header Content-Type text/plain;+ }+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/conf/nginx/http.conf b/PROJECTS/encrypted-p2p-chat/conf/nginx/http.confnew file mode 100644index 00000000..a0d9348e--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/nginx/http.conf@@ -0,0 +1,27 @@+# ©AngelaMos | 2025+# Shared HTTP configuration for dev and prod++# WebSocket upgrade handling - sets Connection to "upgrade" when Upgrade header present,+# otherwise "close" for regular HTTP requests+map $http_upgrade $connection_upgrade {+ default upgrade;+ '' close;+}++upstream backend {+ server backend:8000 max_fails=3 fail_timeout=30s;+ keepalive 32;+}++upstream frontend {+ server frontend:5173;+}++log_format main_timed '$remote_addr - $remote_user [$time_local] '+ '"$request" $status $body_bytes_sent '+ '"$http_referer" "$http_user_agent" '+ 'rt=$request_time uct="$upstream_connect_time" '+ 'uht="$upstream_header_time" urt="$upstream_response_time"';++limit_req_zone $binary_remote_addr zone=api_limit:10m rate=10r/s;+limit_conn_zone $binary_remote_addr zone=conn_limit:10m;diff --git a/PROJECTS/encrypted-p2p-chat/conf/nginx/prod.nginx b/PROJECTS/encrypted-p2p-chat/conf/nginx/prod.nginxnew file mode 100644index 00000000..7c3b8a91--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/conf/nginx/prod.nginx@@ -0,0 +1,187 @@+# ©AngelaMos | 2025+# Production Nginx Configuration+# - Serves static frontend from /usr/share/nginx/html+# - Proxies /api and /ws to FastAPI backend+# - Caching, compression, security headers, rate limiting++user nginx;+worker_processes auto;+worker_rlimit_nofile 100000;+error_log /var/log/nginx/error.log warn;+pid /var/run/nginx.pid;++events {+ worker_connections 4096;+ use epoll;+ multi_accept on;+}++http {+ include /etc/nginx/mime.types;+ default_type application/octet-stream;++ # WebSocket upgrade handling+ map $http_upgrade $connection_upgrade {+ default upgrade;+ '' close;+ }++ upstream backend {+ server backend:8000 max_fails=3 fail_timeout=30s;+ keepalive 32;+ }++ # Rate limit zones+ limit_req_zone $binary_remote_addr zone=api_limit:10m rate=10r/s;+ limit_conn_zone $binary_remote_addr zone=conn_limit:10m;++ # Logging with timing and buffering+ log_format main_timed '$remote_addr - $remote_user [$time_local] '+ '"$request" $status $body_bytes_sent '+ '"$http_referer" "$http_user_agent" '+ 'rt=$request_time urt="$upstream_response_time"';++ access_log /var/log/nginx/access.log main_timed buffer=32k flush=5s;++ # Performance+ sendfile on;+ tcp_nopush on;+ tcp_nodelay on;+ keepalive_timeout 65;+ keepalive_requests 100;+ types_hash_max_size 2048;+ server_tokens off;++ # File cache+ open_file_cache max=10000 inactive=20s;+ open_file_cache_valid 30s;+ open_file_cache_min_uses 2;+ open_file_cache_errors on;++ # Buffer sizes+ client_body_buffer_size 128k;+ client_header_buffer_size 16k;+ client_max_body_size 10m;+ large_client_header_buffers 4 16k;++ # Timeouts+ client_body_timeout 12s;+ client_header_timeout 12s;+ send_timeout 10s;++ # Gzip compression+ gzip on;+ gzip_vary on;+ gzip_proxied any;+ gzip_comp_level 6;+ gzip_min_length 256;+ gzip_types+ text/plain+ text/css+ text/xml+ text/javascript+ application/json+ application/javascript+ application/xml+rss+ application/atom+xml+ font/truetype+ font/opentype+ application/vnd.ms-fontobject+ image/svg+xml;++ server {+ listen 80;+ listen [::]:80;+ server_name _;++ root /usr/share/nginx/html;+ index index.html;++ # Security headers+ add_header X-Frame-Options "SAMEORIGIN" always;+ add_header X-Content-Type-Options "nosniff" always;+ add_header X-XSS-Protection "1; mode=block" always;+ add_header Referrer-Policy "strict-origin-when-cross-origin" always;+ add_header Permissions-Policy "geolocation=(), microphone=(), camera=()" always;++ # WebSocket to backend+ location /ws {+ proxy_pass http://backend;+ proxy_http_version 1.1;+ proxy_set_header Upgrade $http_upgrade;+ proxy_set_header Connection $connection_upgrade;+ 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;+ proxy_read_timeout 3600s;+ proxy_send_timeout 3600s;+ proxy_connect_timeout 75s;+ proxy_buffering off;+ }++ # API routes with rate limiting+ location /api {+ limit_req zone=api_limit burst=20 nodelay;+ limit_conn conn_limit 20;++ proxy_pass http://backend;+ proxy_http_version 1.1;+ proxy_set_header Connection "";+ 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;++ proxy_buffering on;+ proxy_buffers 8 24k;+ proxy_buffer_size 2k;++ proxy_connect_timeout 75s;+ proxy_send_timeout 30s;+ proxy_read_timeout 30s;+ }++ # Static assets - aggressive caching+ location ~* \.(jpg|jpeg|png|gif|ico|svg|webp|avif)$ {+ expires 1y;+ add_header Cache-Control "public, immutable";+ access_log off;+ }++ location ~* \.(css|js)$ {+ expires 1y;+ add_header Cache-Control "public, immutable";+ access_log off;+ }++ location ~* \.(woff|woff2|ttf|eot|otf)$ {+ expires 1y;+ add_header Cache-Control "public, immutable";+ access_log off;+ }++ # index.html - never cache+ location = /index.html {+ add_header Cache-Control "no-cache, no-store, must-revalidate";+ }++ # SPA fallback+ location / {+ try_files $uri $uri/ /index.html;+ }++ location /health {+ access_log off;+ return 200 "healthy\n";+ add_header Content-Type text/plain;+ }++ # Deny hidden files+ location ~ /\. {+ deny all;+ access_log off;+ log_not_found off;+ }+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/docker-compose.dev.yml b/PROJECTS/encrypted-p2p-chat/docker-compose.dev.ymlnew file mode 100644index 00000000..a4cfc7db--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/docker-compose.dev.yml@@ -0,0 +1,147 @@+# ©AngelaMos | 2025+# Development Docker Compose++services:+ postgres:+ image: postgres:16-alpine+ container_name: chat-postgres-dev+ environment:+ POSTGRES_DB: ${POSTGRES_DB:-chat_auth}+ POSTGRES_USER: ${POSTGRES_USER:-chat_user}+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD required}+ POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"+ volumes:+ - postgres_dev_data:/var/lib/postgresql/data+ ports:+ - "${POSTGRES_HOST_PORT:-5432}:5432"+ networks:+ - chat_network_dev+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-chat_user} -d ${POSTGRES_DB:-chat_auth}"]+ interval: 10s+ timeout: 5s+ retries: 5++ surrealdb:+ image: surrealdb/surrealdb:latest+ container_name: chat-surrealdb-dev+ user: "0:0"+ command: start --log trace --user root --pass ${SURREAL_PASSWORD:?SURREAL_PASSWORD required} file:/data/database.db+ environment:+ - SURREAL_USER=root+ - SURREAL_PASS=${SURREAL_PASSWORD}+ volumes:+ - surreal_dev_data:/data+ ports:+ - "${SURREAL_HOST_PORT:-8001}:8000"+ networks:+ - chat_network_dev+ healthcheck:+ test: ["CMD", "/surreal", "isready", "--endpoint", "http://localhost:8000"]+ interval: 10s+ timeout: 5s+ retries: 5++ redis:+ image: redis:8-alpine+ container_name: chat-redis-dev+ command: >+ redis-server+ --appendonly yes+ --maxmemory 2gb+ --maxmemory-policy allkeys-lru+ --save 60 1000+ --loglevel warning+ volumes:+ - redis_dev_data:/data+ ports:+ - "${REDIS_HOST_PORT:-6379}:6379"+ networks:+ - chat_network_dev+ healthcheck:+ test: ["CMD", "redis-cli", "ping"]+ interval: 10s+ timeout: 5s+ retries: 5++ backend:+ build:+ context: .+ dockerfile: conf/docker/dev/fastapi.docker+ container_name: chat-backend-dev+ environment:+ ENV: ${ENV:-development}+ DEBUG: ${DEBUG:-true}+ SECRET_KEY: ${SECRET_KEY:?SECRET_KEY required}+ DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-chat_user}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-chat_auth}+ SURREAL_URL: ${SURREAL_URL:-ws://surrealdb:8000}+ SURREAL_PASSWORD: ${SURREAL_PASSWORD}+ REDIS_URL: ${REDIS_URL:-redis://redis:6379}+ RP_ID: ${RP_ID:-localhost}+ RP_NAME: ${RP_NAME:-Encrypted P2P Chat}+ RP_ORIGIN: ${RP_ORIGIN:-http://localhost:82}+ CORS_ORIGINS: ${CORS_ORIGINS}+ volumes:+ - ./backend:/app+ - /app/.venv+ - /app/__pycache__+ depends_on:+ postgres:+ condition: service_healthy+ surrealdb:+ condition: service_healthy+ redis:+ condition: service_healthy+ networks:+ - chat_network_dev+ ports:+ - "${BACKEND_HOST_PORT:-8000}:8000"+ restart: unless-stopped++ frontend:+ build:+ context: .+ dockerfile: conf/docker/dev/vite.docker+ container_name: chat-frontend-dev+ environment:+ - VITE_API_URL=${VITE_API_URL:-http://localhost:8000}+ - VITE_WS_URL=${VITE_WS_URL:-ws://localhost:8000}+ - VITE_RP_ID=${VITE_RP_ID:-localhost}+ volumes:+ - ./frontend:/app+ - /app/node_modules+ depends_on:+ - backend+ networks:+ - chat_network_dev+ ports:+ - "${FRONTEND_DEV_PORT:-5173}:5173"+ restart: unless-stopped++ nginx:+ image: nginx:alpine+ container_name: chat-nginx-dev+ ports:+ - "${NGINX_HTTP_PORT:-80}:80"+ volumes:+ - ./conf/nginx/dev.nginx:/etc/nginx/nginx.conf:ro+ - ./conf/nginx/http.conf:/etc/nginx/http.conf:ro+ depends_on:+ - backend+ - frontend+ networks:+ - chat_network_dev+ restart: unless-stopped++networks:+ chat_network_dev:+ driver: bridge+ name: chat_network_dev++volumes:+ postgres_dev_data:+ name: chat_postgres_dev_data+ surreal_dev_data:+ name: chat_surreal_dev_data+ redis_dev_data:+ name: chat_redis_dev_datadiff --git a/PROJECTS/encrypted-p2p-chat/docker-compose.prod.yml b/PROJECTS/encrypted-p2p-chat/docker-compose.prod.ymlnew file mode 100644index 00000000..e6440e42--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/docker-compose.prod.yml@@ -0,0 +1,117 @@+# ©AngelaMos | 2025+# Production Docker Compose++services:+ postgres:+ image: postgres:16-alpine+ container_name: chat-postgres+ environment:+ POSTGRES_DB: ${POSTGRES_DB:-chat_auth}+ POSTGRES_USER: ${POSTGRES_USER:-chat_user}+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD required}+ POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"+ volumes:+ - postgres_data:/var/lib/postgresql/data+ networks:+ - chat_network+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-chat_user}"]+ interval: 10s+ timeout: 5s+ retries: 5+ restart: always++ surrealdb:+ image: surrealdb/surrealdb:latest+ container_name: chat-surrealdb+ command: start --log trace --user root --pass ${SURREAL_PASSWORD:?SURREAL_PASSWORD required} file:/data/database.db+ environment:+ - SURREAL_USER=root+ - SURREAL_PASS=${SURREAL_PASSWORD}+ volumes:+ - surreal_data:/data+ networks:+ - chat_network+ healthcheck:+ test: ["CMD", "curl", "-f", "http://localhost:8000/health"]+ interval: 10s+ timeout: 5s+ retries: 5+ restart: always++ redis:+ image: redis:8-alpine+ container_name: chat-redis+ command: >+ redis-server+ --appendonly yes+ --maxmemory 2gb+ --maxmemory-policy allkeys-lru+ --save 60 1000+ --loglevel warning+ volumes:+ - redis_data:/data+ networks:+ - chat_network+ healthcheck:+ test: ["CMD", "redis-cli", "ping"]+ interval: 10s+ timeout: 5s+ retries: 5+ restart: always++ backend:+ build:+ context: .+ dockerfile: conf/docker/prod/fastapi.docker+ container_name: chat-backend+ environment:+ ENV: ${ENV:-production}+ DEBUG: ${DEBUG:-false}+ SECRET_KEY: ${SECRET_KEY:?SECRET_KEY required}+ DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-chat_user}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-chat_auth}+ SURREAL_URL: ws://surrealdb:8000+ SURREAL_PASSWORD: ${SURREAL_PASSWORD}+ REDIS_URL: redis://redis:6379+ RP_ID: ${RP_ID:-localhost}+ RP_NAME: ${RP_NAME:-Encrypted P2P Chat}+ RP_ORIGIN: ${RP_ORIGIN:-https://localhost}+ expose:+ - "8000"+ depends_on:+ postgres:+ condition: service_healthy+ surrealdb:+ condition: service_healthy+ redis:+ condition: service_healthy+ networks:+ - chat_network+ restart: always++ frontend:+ build:+ context: .+ dockerfile: conf/docker/prod/vite.docker+ container_name: chat-nginx+ ports:+ - "${NGINX_HTTP_PORT:-80}:80"+ - "${NGINX_HTTPS_PORT:-443}:443"+ depends_on:+ - backend+ networks:+ - chat_network+ restart: always++networks:+ chat_network:+ driver: bridge+ name: chat_network++volumes:+ postgres_data:+ name: chat_postgres_data+ surreal_data:+ name: chat_surreal_data+ redis_data:+ name: chat_redis_datadiff --git a/PROJECTS/encrypted-p2p-chat/frontend/.gitignore b/PROJECTS/encrypted-p2p-chat/frontend/.gitignorenew file mode 100644index 00000000..c78808df--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/.gitignore@@ -0,0 +1,8 @@+node_modules+dist+dist-ssr+*.local+.env+.DS_Store+.context+diff --git a/PROJECTS/encrypted-p2p-chat/frontend/.prettierignore b/PROJECTS/encrypted-p2p-chat/frontend/.prettierignorenew file mode 100644index 00000000..fedf8027--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/.prettierignore@@ -0,0 +1,24 @@+# Dependencies+node_modules/++# Build outputs+dist/+build/++# Logs+*.log+npm-debug.log*++# Runtime data+pids+*.pid+*.seed++# Coverage directory used by tools like istanbul+coverage/++# Other+.DS_Store+.env*+.vscode/+.idea/diff --git a/PROJECTS/encrypted-p2p-chat/frontend/.prettierrc b/PROJECTS/encrypted-p2p-chat/frontend/.prettierrcnew file mode 100644index 00000000..88997a1b--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/.prettierrc@@ -0,0 +1,9 @@+{+ "semi": true,+ "trailingComma": "es5",+ "singleQuote": false,+ "printWidth": 95,+ "tabWidth": 2,+ "useTabs": false,+ "plugins": ["prettier-plugin-tailwindcss"]+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/README.md b/PROJECTS/encrypted-p2p-chat/frontend/README.mdnew file mode 100644index 00000000..7664abdd--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/README.md@@ -0,0 +1,50 @@+# Encrypted P2P Chat - Frontend++SolidJS frontend with Vite, TypeScript, and Tailwind CSS v4.++## Requirements++- **Node.js 20.19+ or 22.12+** (required for Vite 7)++## Tech Stack++- **SolidJS 1.9.10** - Fine-grained reactivity+- **TypeScript 5.9** - Type safety+- **Vite 7** - Build tool (ESM only, requires Node 20.19+)+- **Tailwind CSS v4.1** - Utility-first CSS (stable release)+- **@solidjs/router** - Client-side routing+- **@tanstack/solid-query 5.90** - Data fetching and caching+- **nanostores 1.1** - State management++## Development++```bash+npm install+npm run dev+```++Frontend runs on http://localhost:3000++## Build++```bash+npm run build+```++Output in `dist/` directory.++## SolidJS Routing++Unlike React Router, SolidJS uses:+- `<A>` component for navigation (not `<Link>`)+- `useNavigate()` for programmatic navigation+- `useParams()` for route parameters+- `useSearchParams()` for query parameters++## Environment Variables++Copy `.env.example` to `.env` and configure:++- `VITE_API_URL` - Backend API URL+- `VITE_WS_URL` - WebSocket URL+- `VITE_RP_ID` - WebAuthn Relying Party IDdiff --git a/PROJECTS/encrypted-p2p-chat/frontend/eslint.config.js b/PROJECTS/encrypted-p2p-chat/frontend/eslint.config.jsnew file mode 100644index 00000000..19813f35--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/eslint.config.js@@ -0,0 +1,156 @@+// ===================+// © AngelaMos | 2025+// eslint.config.js+// ===================+import js from "@eslint/js";+import tseslint from "typescript-eslint";+import solid from "eslint-plugin-solid/configs/typescript";+import jsxA11y from "eslint-plugin-jsx-a11y";+import prettierConfig from "eslint-config-prettier";+import globals from "globals";++export default tseslint.config(+ {+ ignores: [+ "dist",+ "node_modules",+ "*.config.js",+ "*.config.ts",+ "*.min.js",+ ],+ },++ js.configs.recommended,++ ...tseslint.configs.strictTypeChecked,+ ...tseslint.configs.stylisticTypeChecked,++ {+ files: ["**/*.{ts,tsx}"],+ ...solid,+ plugins: {+ ...solid.plugins,+ "jsx-a11y": jsxA11y,+ },+ languageOptions: {+ parser: tseslint.parser,+ parserOptions: {+ project: ["./tsconfig.json"],+ tsconfigRootDir: import.meta.dirname,+ ecmaFeatures: { jsx: true },+ },+ globals: {+ ...globals.browser,+ ...globals.node,+ },+ },+ rules: {+ ...solid.rules,++ "@typescript-eslint/no-unused-vars": [+ "error",+ {+ argsIgnorePattern: "^_",+ varsIgnorePattern: "^_",+ caughtErrorsIgnorePattern: "^_",+ },+ ],+ "@typescript-eslint/consistent-type-imports": [+ "error",+ {+ prefer: "type-imports",+ fixStyle: "inline-type-imports",+ },+ ],+ "@typescript-eslint/explicit-function-return-type": [+ "error",+ {+ allowExpressions: true,+ allowTypedFunctionExpressions: true,+ allowHigherOrderFunctions: true,+ allowDirectConstAssertionInArrowFunctions: true,+ },+ ],+ "@typescript-eslint/naming-convention": "off",+ "@typescript-eslint/no-non-null-assertion": "error",+ "@typescript-eslint/array-type": ["error", { default: "array" }],+ "@typescript-eslint/no-explicit-any": "error",+ "@typescript-eslint/no-confusing-void-expression": "off",+ "@typescript-eslint/no-unnecessary-condition": "off",+ "@typescript-eslint/no-floating-promises": "error",+ "@typescript-eslint/strict-boolean-expressions": [+ "error",+ {+ allowString: false,+ allowNumber: false,+ allowNullableObject: false,+ allowNullableString: true,+ allowAny: true,+ },+ ],+ "@typescript-eslint/prefer-as-const": "error",+ "@typescript-eslint/consistent-type-definitions": ["error", "interface"],+ "@typescript-eslint/restrict-template-expressions": "off",+ "@typescript-eslint/no-misused-promises": [+ "error",+ {+ checksVoidReturn: {+ attributes: false,+ },+ },+ ],++ "solid/reactivity": "warn",+ "solid/no-destructure": "warn",+ "solid/jsx-no-undef": "error",+ "solid/no-react-specific-props": "error",+ "solid/prefer-for": "warn",+ "solid/self-closing-comp": "error",+ "solid/style-prop": "error",+ "solid/no-innerhtml": "error",+ "solid/no-unknown-namespaces": "error",+ "solid/event-handlers": [+ "error",+ {+ ignoreCase: false,+ warnOnSpread: true,+ },+ ],+ "solid/imports": "error",+ "solid/no-proxy-apis": "off",++ "jsx-a11y/alt-text": "error",+ "jsx-a11y/anchor-has-content": "error",+ "jsx-a11y/click-events-have-key-events": "error",+ "jsx-a11y/no-static-element-interactions": "error",+ "jsx-a11y/no-noninteractive-element-interactions": "warn",+ "jsx-a11y/aria-props": "error",+ "jsx-a11y/aria-role": "error",+ "jsx-a11y/role-has-required-aria-props": "error",++ "no-console": ["warn", { allow: ["warn", "error"] }],+ "no-debugger": "error",+ "no-alert": "error",+ "no-var": "error",+ "prefer-const": "error",+ "prefer-template": "error",+ "object-shorthand": "error",+ "no-nested-ternary": "error",+ "max-depth": ["error", 6],+ "max-lines": [+ "error",+ { max: 2000, skipBlankLines: true, skipComments: true },+ ],+ complexity: ["error", 55],+ },+ },++ {+ files: ["src/index.tsx"],+ rules: {+ "@typescript-eslint/no-non-null-assertion": "off",+ },+ },++ prettierConfig+);diff --git a/PROJECTS/encrypted-p2p-chat/frontend/index.html b/PROJECTS/encrypted-p2p-chat/frontend/index.htmlnew file mode 100644index 00000000..11db284f--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/index.html@@ -0,0 +1,19 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />+ <meta name="description" content="End-to-end encrypted P2P chat application" />+ <title>Encrypted P2P Chat</title>+ <link rel="preconnect" href="https://fonts.googleapis.com" />+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />+ <link+ href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"+ rel="stylesheet"+ />+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/index.tsx"></script>+ </body>+</html>diff --git a/PROJECTS/encrypted-p2p-chat/frontend/package-lock.json b/PROJECTS/encrypted-p2p-chat/frontend/package-lock.jsonnew file mode 100644index 00000000..1341cffb--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/package-lock.json@@ -0,0 +1,5533 @@+{+ "name": "encrypted-p2p-chat-frontend",+ "version": "1.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "encrypted-p2p-chat-frontend",+ "version": "1.0.0",+ "dependencies": {+ "@nanostores/persistent": "^1.2.0",+ "@nanostores/solid": "^1.1.1",+ "@solidjs/router": "^0.15.3",+ "@tanstack/solid-query": "^5.90.13",+ "nanostores": "^1.1.0",+ "solid-js": "^1.9.10"+ },+ "devDependencies": {+ "@eslint/js": "^9.17.0",+ "@tailwindcss/vite": "^4.1.17",+ "@types/node": "^22.10.2",+ "eslint": "^9.17.0",+ "eslint-config-prettier": "^10.1.5",+ "eslint-plugin-jsx-a11y": "^6.10.2",+ "eslint-plugin-solid": "^0.14.5",+ "globals": "^16.2.0",+ "prettier": "^3.4.2",+ "prettier-plugin-tailwindcss": "^0.6.9",+ "tailwindcss": "^4.1.17",+ "typescript": "^5.9.3",+ "typescript-eslint": "^8.20.0",+ "vite": "^7.2.4",+ "vite-plugin-solid": "^2.11.10"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",+ "dev": true,+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.27.1",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz",+ "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz",+ "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.27.1",+ "@babel/generator": "^7.28.5",+ "@babel/helper-compilation-targets": "^7.27.2",+ "@babel/helper-module-transforms": "^7.28.3",+ "@babel/helpers": "^7.28.4",+ "@babel/parser": "^7.28.5",+ "@babel/template": "^7.27.2",+ "@babel/traverse": "^7.28.5",+ "@babel/types": "^7.28.5",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/core/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz",+ "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==",+ "dev": true,+ "dependencies": {+ "@babel/parser": "^7.28.5",+ "@babel/types": "^7.28.5",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.27.2",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz",+ "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==",+ "dev": true,+ "dependencies": {+ "@babel/compat-data": "^7.27.2",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz",+ "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==",+ "dev": true,+ "dependencies": {+ "@babel/traverse": "^7.27.1",+ "@babel/types": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz",+ "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==",+ "dev": true,+ "dependencies": {+ "@babel/helper-module-imports": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.27.1",+ "@babel/traverse": "^7.28.3"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz",+ "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.28.4",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz",+ "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==",+ "dev": true,+ "dependencies": {+ "@babel/template": "^7.27.2",+ "@babel/types": "^7.28.4"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",+ "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.28.5"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-syntax-jsx": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz",+ "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==",+ "dev": true,+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.27.2",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",+ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.27.1",+ "@babel/parser": "^7.27.2",+ "@babel/types": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz",+ "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.27.1",+ "@babel/generator": "^7.28.5",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.28.5",+ "@babel/template": "^7.27.2",+ "@babel/types": "^7.28.5",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",+ "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",+ "dev": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.9.0",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz",+ "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==",+ "dev": true,+ "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,+ "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.2",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",+ "dev": true,+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "node_modules/@eslint/config-array": {+ "version": "0.21.1",+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz",+ "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==",+ "dev": true,+ "dependencies": {+ "@eslint/object-schema": "^2.1.7",+ "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.4.2",+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",+ "dev": true,+ "dependencies": {+ "@eslint/core": "^0.17.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/core": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",+ "dev": true,+ "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,+ "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,+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@eslint/js": {+ "version": "9.39.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz",+ "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==",+ "dev": true,+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://eslint.org/donate"+ }+ },+ "node_modules/@eslint/object-schema": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",+ "dev": true,+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/plugin-kit": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",+ "dev": true,+ "dependencies": {+ "@eslint/core": "^0.17.0",+ "levn": "^0.4.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@humanfs/core": {+ "version": "0.19.1",+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",+ "dev": true,+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "node_modules/@humanfs/node": {+ "version": "0.16.7",+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",+ "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",+ "dev": true,+ "dependencies": {+ "@humanfs/core": "^0.19.1",+ "@humanwhocodes/retry": "^0.4.0"+ },+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "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,+ "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,+ "engines": {+ "node": ">=18.18"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@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==",+ "dev": true,+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@nanostores/persistent": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@nanostores/persistent/-/persistent-1.2.0.tgz",+ "integrity": "sha512-kf5WOLpVI9Pk+AwXHIax4in3pesNe8299BEGQ2H8kgI05SZw7KKWCDv7bt2FOlND8E5y7rO5PRW34q0UCAl/DA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "engines": {+ "node": "^20.0.0 || >=22.0.0"+ },+ "peerDependencies": {+ "nanostores": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^1.0.0"+ }+ },+ "node_modules/@nanostores/solid": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@nanostores/solid/-/solid-1.1.1.tgz",+ "integrity": "sha512-gF0Eat1/c3hOaklBMSVoEjcNzJc5zGk4VSg94H9LPmXYww1pxgr7zylpi3jjyxRu24c8+aYNkmRWzolAwzSA1A==",+ "peerDependencies": {+ "nanostores": ">=0.9.0 <2.0.0",+ "solid-js": "^1.6.0"+ }+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.3.tgz",+ "integrity": "sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.3.tgz",+ "integrity": "sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.3.tgz",+ "integrity": "sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.3.tgz",+ "integrity": "sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.3.tgz",+ "integrity": "sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.3.tgz",+ "integrity": "sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.3.tgz",+ "integrity": "sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.3.tgz",+ "integrity": "sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.3.tgz",+ "integrity": "sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.3.tgz",+ "integrity": "sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.3.tgz",+ "integrity": "sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.3.tgz",+ "integrity": "sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.3.tgz",+ "integrity": "sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.3.tgz",+ "integrity": "sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.3.tgz",+ "integrity": "sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.3.tgz",+ "integrity": "sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.3.tgz",+ "integrity": "sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.3.tgz",+ "integrity": "sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.3.tgz",+ "integrity": "sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.3.tgz",+ "integrity": "sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.3.tgz",+ "integrity": "sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.3.tgz",+ "integrity": "sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@solidjs/router": {+ "version": "0.15.4",+ "resolved": "https://registry.npmjs.org/@solidjs/router/-/router-0.15.4.tgz",+ "integrity": "sha512-WOpgg9a9T638cR+5FGbFi/IV4l2FpmBs1GpIMSPa0Ce9vyJN7Wts+X2PqMf9IYn0zUj2MlSJtm1gp7/HI/n5TQ==",+ "peerDependencies": {+ "solid-js": "^1.8.6"+ }+ },+ "node_modules/@tailwindcss/node": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.17.tgz",+ "integrity": "sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==",+ "dev": true,+ "dependencies": {+ "@jridgewell/remapping": "^2.3.4",+ "enhanced-resolve": "^5.18.3",+ "jiti": "^2.6.1",+ "lightningcss": "1.30.2",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.1.17"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.17.tgz",+ "integrity": "sha512-F0F7d01fmkQhsTjXezGBLdrl1KresJTcI3DB8EkScCldyKp3Msz4hub4uyYaVnk88BAS1g5DQjjF6F5qczheLA==",+ "dev": true,+ "engines": {+ "node": ">= 10"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.1.17",+ "@tailwindcss/oxide-darwin-arm64": "4.1.17",+ "@tailwindcss/oxide-darwin-x64": "4.1.17",+ "@tailwindcss/oxide-freebsd-x64": "4.1.17",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.17",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.1.17",+ "@tailwindcss/oxide-linux-arm64-musl": "4.1.17",+ "@tailwindcss/oxide-linux-x64-gnu": "4.1.17",+ "@tailwindcss/oxide-linux-x64-musl": "4.1.17",+ "@tailwindcss/oxide-wasm32-wasi": "4.1.17",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.1.17",+ "@tailwindcss/oxide-win32-x64-msvc": "4.1.17"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.17.tgz",+ "integrity": "sha512-BMqpkJHgOZ5z78qqiGE6ZIRExyaHyuxjgrJ6eBO5+hfrfGkuya0lYfw8fRHG77gdTjWkNWEEm+qeG2cDMxArLQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.17.tgz",+ "integrity": "sha512-EquyumkQweUBNk1zGEU/wfZo2qkp/nQKRZM8bUYO0J+Lums5+wl2CcG1f9BgAjn/u9pJzdYddHWBiFXJTcxmOg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.17.tgz",+ "integrity": "sha512-gdhEPLzke2Pog8s12oADwYu0IAw04Y2tlmgVzIN0+046ytcgx8uZmCzEg4VcQh+AHKiS7xaL8kGo/QTiNEGRog==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.17.tgz",+ "integrity": "sha512-hxGS81KskMxML9DXsaXT1H0DyA+ZBIbyG/sSAjWNe2EDl7TkPOBI42GBV3u38itzGUOmFfCzk1iAjDXds8Oh0g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.17.tgz",+ "integrity": "sha512-k7jWk5E3ldAdw0cNglhjSgv501u7yrMf8oeZ0cElhxU6Y2o7f8yqelOp3fhf7evjIS6ujTI3U8pKUXV2I4iXHQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.17.tgz",+ "integrity": "sha512-HVDOm/mxK6+TbARwdW17WrgDYEGzmoYayrCgmLEw7FxTPLcp/glBisuyWkFz/jb7ZfiAXAXUACfyItn+nTgsdQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.17.tgz",+ "integrity": "sha512-HvZLfGr42i5anKtIeQzxdkw/wPqIbpeZqe7vd3V9vI3RQxe3xU1fLjss0TjyhxWcBaipk7NYwSrwTwK1hJARMg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.17.tgz",+ "integrity": "sha512-M3XZuORCGB7VPOEDH+nzpJ21XPvK5PyjlkSFkFziNHGLc5d6g3di2McAAblmaSUNl8IOmzYwLx9NsE7bplNkwQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.17.tgz",+ "integrity": "sha512-k7f+pf9eXLEey4pBlw+8dgfJHY4PZ5qOUFDyNf7SI6lHjQ9Zt7+NcscjpwdCEbYi6FI5c2KDTDWyf2iHcCSyyQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.17.tgz",+ "integrity": "sha512-cEytGqSSoy7zK4JRWiTCx43FsKP/zGr0CsuMawhH67ONlH+T79VteQeJQRO/X7L0juEUA8ZyuYikcRBf0vsxhg==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.6.0",+ "@emnapi/runtime": "^1.6.0",+ "@emnapi/wasi-threads": "^1.1.0",+ "@napi-rs/wasm-runtime": "^1.0.7",+ "@tybys/wasm-util": "^0.10.1",+ "tslib": "^2.4.0"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.17.tgz",+ "integrity": "sha512-JU5AHr7gKbZlOGvMdb4722/0aYbU+tN6lv1kONx0JK2cGsh7g148zVWLM0IKR3NeKLv+L90chBVYcJ8uJWbC9A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.17.tgz",+ "integrity": "sha512-SKWM4waLuqx0IH+FMDUw6R66Hu4OuTALFgnleKbqhgGU30DY20NORZMZUKgLRjQXNN2TLzKvh48QXTig4h4bGw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/vite": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.17.tgz",+ "integrity": "sha512-4+9w8ZHOiGnpcGI6z1TVVfWaX/koK7fKeSYF3qlYg2xpBtbteP2ddBxiarL+HVgfSJGeK5RIxRQmKm4rTJJAwA==",+ "dev": true,+ "dependencies": {+ "@tailwindcss/node": "4.1.17",+ "@tailwindcss/oxide": "4.1.17",+ "tailwindcss": "4.1.17"+ },+ "peerDependencies": {+ "vite": "^5.2.0 || ^6 || ^7"+ }+ },+ "node_modules/@tanstack/query-core": {+ "version": "5.90.11",+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.11.tgz",+ "integrity": "sha512-f9z/nXhCgWDF4lHqgIE30jxLe4sYv15QodfdPDKYAk7nAEjNcndy4dHz3ezhdUaR23BpWa4I2EH4/DZ0//Uf8A==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"+ }+ },+ "node_modules/@tanstack/solid-query": {+ "version": "5.90.14",+ "resolved": "https://registry.npmjs.org/@tanstack/solid-query/-/solid-query-5.90.14.tgz",+ "integrity": "sha512-e/TP+92mOFoQtInffcYKvAExgbQoBSDrarKnGwnindQBItp0ne1VdIg88K2U8rNwwM/wdj15V5azpXIkZkNQDw==",+ "dependencies": {+ "@tanstack/query-core": "5.90.11"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"+ },+ "peerDependencies": {+ "solid-js": "^1.6.0"+ }+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "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==",+ "dev": true+ },+ "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+ },+ "node_modules/@types/node": {+ "version": "22.19.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.1.tgz",+ "integrity": "sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==",+ "dev": true,+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.48.0.tgz",+ "integrity": "sha512-XxXP5tL1txl13YFtrECECQYeZjBZad4fyd3cFV4a19LkAY/bIp9fev3US4S5fDVV2JaYFiKAZ/GRTOLer+mbyQ==",+ "dev": true,+ "dependencies": {+ "@eslint-community/regexpp": "^4.10.0",+ "@typescript-eslint/scope-manager": "8.48.0",+ "@typescript-eslint/type-utils": "8.48.0",+ "@typescript-eslint/utils": "8.48.0",+ "@typescript-eslint/visitor-keys": "8.48.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.48.0",+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.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,+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.48.0.tgz",+ "integrity": "sha512-jCzKdm/QK0Kg4V4IK/oMlRZlY+QOcdjv89U2NgKHZk1CYTj82/RVSx1mV/0gqCVMJ/DA+Zf/S4NBWNF8GQ+eqQ==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/scope-manager": "8.48.0",+ "@typescript-eslint/types": "8.48.0",+ "@typescript-eslint/typescript-estree": "8.48.0",+ "@typescript-eslint/visitor-keys": "8.48.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 <6.0.0"+ }+ },+ "node_modules/@typescript-eslint/project-service": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.48.0.tgz",+ "integrity": "sha512-Ne4CTZyRh1BecBf84siv42wv5vQvVmgtk8AuiEffKTUo3DrBaGYZueJSxxBZ8fjk/N3DrgChH4TOdIOwOwiqqw==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/tsconfig-utils": "^8.48.0",+ "@typescript-eslint/types": "^8.48.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 <6.0.0"+ }+ },+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.48.0.tgz",+ "integrity": "sha512-uGSSsbrtJrLduti0Q1Q9+BF1/iFKaxGoQwjWOIVNJv0o6omrdyR8ct37m4xIl5Zzpkp69Kkmvom7QFTtue89YQ==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "8.48.0",+ "@typescript-eslint/visitor-keys": "8.48.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.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.48.0.tgz",+ "integrity": "sha512-WNebjBdFdyu10sR1M4OXTt2OkMd5KWIL+LLfeH9KhgP+jzfDV/LI3eXzwJ1s9+Yc0Kzo2fQCdY/OpdusCMmh6w==",+ "dev": true,+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"+ }+ },+ "node_modules/@typescript-eslint/type-utils": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.48.0.tgz",+ "integrity": "sha512-zbeVaVqeXhhab6QNEKfK96Xyc7UQuoFWERhEnj3mLVnUWrQnv15cJNseUni7f3g557gm0e46LZ6IJ4NJVOgOpw==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "8.48.0",+ "@typescript-eslint/typescript-estree": "8.48.0",+ "@typescript-eslint/utils": "8.48.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 <6.0.0"+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.48.0.tgz",+ "integrity": "sha512-cQMcGQQH7kwKoVswD1xdOytxQR60MWKM1di26xSUtxehaDs/32Zpqsu5WJlXTtTTqyAVK8R7hvsUnIXRS+bjvA==",+ "dev": true,+ "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.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.48.0.tgz",+ "integrity": "sha512-ljHab1CSO4rGrQIAyizUS6UGHHCiAYhbfcIZ1zVJr5nMryxlXMVWS3duFPSKvSUbFPwkXMFk1k0EMIjub4sRRQ==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/project-service": "8.48.0",+ "@typescript-eslint/tsconfig-utils": "8.48.0",+ "@typescript-eslint/types": "8.48.0",+ "@typescript-eslint/visitor-keys": "8.48.0",+ "debug": "^4.3.4",+ "minimatch": "^9.0.4",+ "semver": "^7.6.0",+ "tinyglobby": "^0.2.15",+ "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 <6.0.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,+ "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,+ "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.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.48.0.tgz",+ "integrity": "sha512-yTJO1XuGxCsSfIVt1+1UrLHtue8xz16V8apzPYI06W0HbEbEWHxHXgZaAgavIkoh+GeV6hKKd5jm0sS6OYxWXQ==",+ "dev": true,+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.7.0",+ "@typescript-eslint/scope-manager": "8.48.0",+ "@typescript-eslint/types": "8.48.0",+ "@typescript-eslint/typescript-estree": "8.48.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 <6.0.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.48.0.tgz",+ "integrity": "sha512-T0XJMaRPOH3+LBbAfzR2jalckP1MSG/L9eUtY0DEzUyVaXJ/t6zN0nR7co5kz0Jko/nkSYCBRkz1djvjajVTTg==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/types": "8.48.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/acorn": {+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "dev": true,+ "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,+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "dev": true+ },+ "node_modules/aria-query": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",+ "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/array-buffer-byte-length": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",+ "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "is-array-buffer": "^3.0.5"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array-includes": {+ "version": "3.1.9",+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz",+ "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.24.0",+ "es-object-atoms": "^1.1.1",+ "get-intrinsic": "^1.3.0",+ "is-string": "^1.1.1",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.flat": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz",+ "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.flatmap": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz",+ "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/arraybuffer.prototype.slice": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz",+ "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==",+ "dev": true,+ "dependencies": {+ "array-buffer-byte-length": "^1.0.1",+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "is-array-buffer": "^3.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/ast-types-flow": {+ "version": "0.0.8",+ "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz",+ "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==",+ "dev": true+ },+ "node_modules/async-function": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz",+ "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/available-typed-arrays": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",+ "dev": true,+ "dependencies": {+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/axe-core": {+ "version": "4.11.0",+ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.0.tgz",+ "integrity": "sha512-ilYanEU8vxxBexpJd8cWM4ElSQq4QctCLKih0TSfjIfCQTeyH/6zVrmIJfLPrKTKJRbiG+cfnZbQIjAlJmF1jQ==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/axobject-query": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/babel-plugin-jsx-dom-expressions": {+ "version": "0.40.3",+ "resolved": "https://registry.npmjs.org/babel-plugin-jsx-dom-expressions/-/babel-plugin-jsx-dom-expressions-0.40.3.tgz",+ "integrity": "sha512-5HOwwt0BYiv/zxl7j8Pf2bGL6rDXfV6nUhLs8ygBX+EFJXzBPHM/euj9j/6deMZ6wa52Wb2PBaAV5U/jKwIY1w==",+ "dev": true,+ "dependencies": {+ "@babel/helper-module-imports": "7.18.6",+ "@babel/plugin-syntax-jsx": "^7.18.6",+ "@babel/types": "^7.20.7",+ "html-entities": "2.3.3",+ "parse5": "^7.1.2"+ },+ "peerDependencies": {+ "@babel/core": "^7.20.12"+ }+ },+ "node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports": {+ "version": "7.18.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz",+ "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==",+ "dev": true,+ "dependencies": {+ "@babel/types": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/babel-preset-solid": {+ "version": "1.9.10",+ "resolved": "https://registry.npmjs.org/babel-preset-solid/-/babel-preset-solid-1.9.10.tgz",+ "integrity": "sha512-HCelrgua/Y+kqO8RyL04JBWS/cVdrtUv/h45GntgQY+cJl4eBcKkCDV3TdMjtKx1nXwRaR9QXslM/Npm1dxdZQ==",+ "dev": true,+ "dependencies": {+ "babel-plugin-jsx-dom-expressions": "^0.40.3"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0",+ "solid-js": "^1.9.10"+ },+ "peerDependenciesMeta": {+ "solid-js": {+ "optional": true+ }+ }+ },+ "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+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.8.31",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.31.tgz",+ "integrity": "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==",+ "dev": true,+ "bin": {+ "baseline-browser-mapping": "dist/cli.js"+ }+ },+ "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,+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/browserslist": {+ "version": "4.28.0",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz",+ "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==",+ "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"+ }+ ],+ "dependencies": {+ "baseline-browser-mapping": "^2.8.25",+ "caniuse-lite": "^1.0.30001754",+ "electron-to-chromium": "^1.5.249",+ "node-releases": "^2.0.27",+ "update-browserslist-db": "^1.1.4"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/call-bind": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",+ "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",+ "dev": true,+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.0",+ "es-define-property": "^1.0.0",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001757",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz",+ "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==",+ "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"+ }+ ]+ },+ "node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "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/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dev": true,+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true+ },+ "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+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true+ },+ "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,+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="+ },+ "node_modules/damerau-levenshtein": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz",+ "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==",+ "dev": true+ },+ "node_modules/data-view-buffer": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz",+ "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/data-view-byte-length": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz",+ "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/inspect-js"+ }+ },+ "node_modules/data-view-byte-offset": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz",+ "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "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+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "dev": true,+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-properties": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",+ "dev": true,+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "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==",+ "dev": true,+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.260",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.260.tgz",+ "integrity": "sha512-ov8rBoOBhVawpzdre+Cmz4FB+y66Eqrk6Gwqd8NGxuhv99GQ8XqMAr351KEkOt7gukXWDg6gJWEMKgL2RLMPtA==",+ "dev": true+ },+ "node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "dev": true+ },+ "node_modules/enhanced-resolve": {+ "version": "5.18.3",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz",+ "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==",+ "dev": true,+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.2.0"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/entities": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",+ "dev": true,+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/es-abstract": {+ "version": "1.24.0",+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz",+ "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==",+ "dev": true,+ "dependencies": {+ "array-buffer-byte-length": "^1.0.2",+ "arraybuffer.prototype.slice": "^1.0.4",+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "data-view-buffer": "^1.0.2",+ "data-view-byte-length": "^1.0.2",+ "data-view-byte-offset": "^1.0.1",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "es-set-tostringtag": "^2.1.0",+ "es-to-primitive": "^1.3.0",+ "function.prototype.name": "^1.1.8",+ "get-intrinsic": "^1.3.0",+ "get-proto": "^1.0.1",+ "get-symbol-description": "^1.1.0",+ "globalthis": "^1.0.4",+ "gopd": "^1.2.0",+ "has-property-descriptors": "^1.0.2",+ "has-proto": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "internal-slot": "^1.1.0",+ "is-array-buffer": "^3.0.5",+ "is-callable": "^1.2.7",+ "is-data-view": "^1.0.2",+ "is-negative-zero": "^2.0.3",+ "is-regex": "^1.2.1",+ "is-set": "^2.0.3",+ "is-shared-array-buffer": "^1.0.4",+ "is-string": "^1.1.1",+ "is-typed-array": "^1.1.15",+ "is-weakref": "^1.1.1",+ "math-intrinsics": "^1.1.0",+ "object-inspect": "^1.13.4",+ "object-keys": "^1.1.1",+ "object.assign": "^4.1.7",+ "own-keys": "^1.0.1",+ "regexp.prototype.flags": "^1.5.4",+ "safe-array-concat": "^1.1.3",+ "safe-push-apply": "^1.0.0",+ "safe-regex-test": "^1.1.0",+ "set-proto": "^1.0.0",+ "stop-iteration-iterator": "^1.1.0",+ "string.prototype.trim": "^1.2.10",+ "string.prototype.trimend": "^1.0.9",+ "string.prototype.trimstart": "^1.0.8",+ "typed-array-buffer": "^1.0.3",+ "typed-array-byte-length": "^1.0.3",+ "typed-array-byte-offset": "^1.0.4",+ "typed-array-length": "^1.0.7",+ "unbox-primitive": "^1.1.0",+ "which-typed-array": "^1.1.19"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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/es-shim-unscopables": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz",+ "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==",+ "dev": true,+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-to-primitive": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz",+ "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==",+ "dev": true,+ "dependencies": {+ "is-callable": "^1.2.7",+ "is-date-object": "^1.0.5",+ "is-symbol": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "dev": true,+ "hasInstallScript": true,+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "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,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint": {+ "version": "9.39.1",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz",+ "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==",+ "dev": true,+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.8.0",+ "@eslint-community/regexpp": "^4.12.1",+ "@eslint/config-array": "^0.21.1",+ "@eslint/config-helpers": "^0.4.2",+ "@eslint/core": "^0.17.0",+ "@eslint/eslintrc": "^3.3.1",+ "@eslint/js": "9.39.1",+ "@eslint/plugin-kit": "^0.4.1",+ "@humanfs/node": "^0.16.6",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.6",+ "ajv": "^6.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-config-prettier": {+ "version": "10.1.8",+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz",+ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",+ "dev": true,+ "bin": {+ "eslint-config-prettier": "bin/cli.js"+ },+ "funding": {+ "url": "https://opencollective.com/eslint-config-prettier"+ },+ "peerDependencies": {+ "eslint": ">=7.0.0"+ }+ },+ "node_modules/eslint-plugin-jsx-a11y": {+ "version": "6.10.2",+ "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz",+ "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==",+ "dev": true,+ "dependencies": {+ "aria-query": "^5.3.2",+ "array-includes": "^3.1.8",+ "array.prototype.flatmap": "^1.3.2",+ "ast-types-flow": "^0.0.8",+ "axe-core": "^4.10.0",+ "axobject-query": "^4.1.0",+ "damerau-levenshtein": "^1.0.8",+ "emoji-regex": "^9.2.2",+ "hasown": "^2.0.2",+ "jsx-ast-utils": "^3.3.5",+ "language-tags": "^1.0.9",+ "minimatch": "^3.1.2",+ "object.fromentries": "^2.0.8",+ "safe-regex-test": "^1.0.3",+ "string.prototype.includes": "^2.0.1"+ },+ "engines": {+ "node": ">=4.0"+ },+ "peerDependencies": {+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9"+ }+ },+ "node_modules/eslint-plugin-solid": {+ "version": "0.14.5",+ "resolved": "https://registry.npmjs.org/eslint-plugin-solid/-/eslint-plugin-solid-0.14.5.tgz",+ "integrity": "sha512-nfuYK09ah5aJG/oEN6P1qziy1zLgW4PDWe75VNPi4CEFYk1x2AEqwFeQfEPR7gNn0F2jOeqKhx2E+5oNCOBYWQ==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/utils": "^7.13.1 || ^8.0.0",+ "estraverse": "^5.3.0",+ "is-html": "^2.0.0",+ "kebab-case": "^1.0.2",+ "known-css-properties": "^0.30.0",+ "style-to-object": "^1.0.6"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",+ "typescript": ">=4.8.4"+ }+ },+ "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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "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,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true+ },+ "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+ },+ "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+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "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,+ "dependencies": {+ "flat-cache": "^4.0.0"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "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,+ "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,+ "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+ },+ "node_modules/for-each": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",+ "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",+ "dev": true,+ "dependencies": {+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "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==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/function.prototype.name": {+ "version": "1.1.8",+ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz",+ "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "functions-have-names": "^1.2.3",+ "hasown": "^2.0.2",+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/functions-have-names": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/generator-function": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz",+ "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "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==",+ "dev": true,+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "dev": true,+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-symbol-description": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz",+ "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/globals": {+ "version": "16.5.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz",+ "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==",+ "dev": true,+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globalthis": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",+ "dev": true,+ "dependencies": {+ "define-properties": "^1.2.1",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "dev": true,+ "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==",+ "dev": true+ },+ "node_modules/graphemer": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",+ "dev": true+ },+ "node_modules/has-bigints": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz",+ "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "dev": true,+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-proto": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz",+ "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==",+ "dev": true,+ "dependencies": {+ "dunder-proto": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "dev": true,+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/html-entities": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz",+ "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==",+ "dev": true+ },+ "node_modules/html-tags": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-3.3.1.tgz",+ "integrity": "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==",+ "dev": true,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "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,+ "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,+ "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,+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inline-style-parser": {+ "version": "0.2.7",+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",+ "dev": true+ },+ "node_modules/internal-slot": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",+ "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==",+ "dev": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "hasown": "^2.0.2",+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/is-array-buffer": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",+ "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-async-function": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz",+ "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==",+ "dev": true,+ "dependencies": {+ "async-function": "^1.0.0",+ "call-bound": "^1.0.3",+ "get-proto": "^1.0.1",+ "has-tostringtag": "^1.0.2",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-bigint": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz",+ "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==",+ "dev": true,+ "dependencies": {+ "has-bigints": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-boolean-object": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz",+ "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-callable": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-data-view": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz",+ "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "get-intrinsic": "^1.2.6",+ "is-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-date-object": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz",+ "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-finalizationregistry": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz",+ "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-generator-function": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz",+ "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.4",+ "generator-function": "^2.0.0",+ "get-proto": "^1.0.1",+ "has-tostringtag": "^1.0.2",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-html": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/is-html/-/is-html-2.0.0.tgz",+ "integrity": "sha512-S+OpgB5i7wzIue/YSE5hg0e5ZYfG3hhpNh9KGl6ayJ38p7ED6wxQLd1TV91xHpcTvw90KMJ9EwN3F/iNflHBVg==",+ "dev": true,+ "dependencies": {+ "html-tags": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-map": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",+ "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-negative-zero": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz",+ "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-number-object": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz",+ "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-regex": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz",+ "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-set": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",+ "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-shared-array-buffer": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz",+ "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-string": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz",+ "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-symbol": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz",+ "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "has-symbols": "^1.1.0",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-typed-array": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",+ "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",+ "dev": true,+ "dependencies": {+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakmap": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",+ "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakref": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz",+ "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakset": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz",+ "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-what": {+ "version": "4.1.16",+ "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz",+ "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==",+ "dev": true,+ "engines": {+ "node": ">=12.13"+ },+ "funding": {+ "url": "https://github.com/sponsors/mesqueeb"+ }+ },+ "node_modules/isarray": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",+ "dev": true+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true+ },+ "node_modules/jiti": {+ "version": "2.6.1",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",+ "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",+ "dev": true,+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "dev": true+ },+ "node_modules/js-yaml": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",+ "dev": true,+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "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+ },+ "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+ },+ "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+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jsx-ast-utils": {+ "version": "3.3.5",+ "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",+ "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==",+ "dev": true,+ "dependencies": {+ "array-includes": "^3.1.6",+ "array.prototype.flat": "^1.3.1",+ "object.assign": "^4.1.4",+ "object.values": "^1.1.6"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/kebab-case": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/kebab-case/-/kebab-case-1.0.2.tgz",+ "integrity": "sha512-7n6wXq4gNgBELfDCpzKc+mRrZFs7D+wgfF5WRFLNAr4DA/qtr9Js8uOAVAfHhuLMfAcQ0pRKqbpjx+TcJVdE1Q==",+ "dev": true+ },+ "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,+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/known-css-properties": {+ "version": "0.30.0",+ "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.30.0.tgz",+ "integrity": "sha512-VSWXYUnsPu9+WYKkfmJyLKtIvaRJi1kXUqVmBACORXZQxT5oZDsoZ2vQP+bQFDnWtpI/4eq3MLoRMjI2fnLzTQ==",+ "dev": true+ },+ "node_modules/language-subtag-registry": {+ "version": "0.3.23",+ "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz",+ "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==",+ "dev": true+ },+ "node_modules/language-tags": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz",+ "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==",+ "dev": true,+ "dependencies": {+ "language-subtag-registry": "^0.3.20"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "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,+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/lightningcss": {+ "version": "1.30.2",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.2.tgz",+ "integrity": "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==",+ "dev": true,+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.30.2",+ "lightningcss-darwin-arm64": "1.30.2",+ "lightningcss-darwin-x64": "1.30.2",+ "lightningcss-freebsd-x64": "1.30.2",+ "lightningcss-linux-arm-gnueabihf": "1.30.2",+ "lightningcss-linux-arm64-gnu": "1.30.2",+ "lightningcss-linux-arm64-musl": "1.30.2",+ "lightningcss-linux-x64-gnu": "1.30.2",+ "lightningcss-linux-x64-musl": "1.30.2",+ "lightningcss-win32-arm64-msvc": "1.30.2",+ "lightningcss-win32-x64-msvc": "1.30.2"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.30.2",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.30.2.tgz",+ "integrity": "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.30.2",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.2.tgz",+ "integrity": "sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.2.tgz",+ "integrity": "sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.2.tgz",+ "integrity": "sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.2.tgz",+ "integrity": "sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.2.tgz",+ "integrity": "sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.2.tgz",+ "integrity": "sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.2.tgz",+ "integrity": "sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.2.tgz",+ "integrity": "sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.2.tgz",+ "integrity": "sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "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.2",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.2.tgz",+ "integrity": "sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "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,+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",+ "dev": true+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/merge-anything": {+ "version": "5.1.7",+ "resolved": "https://registry.npmjs.org/merge-anything/-/merge-anything-5.1.7.tgz",+ "integrity": "sha512-eRtbOb1N5iyH0tkQDAoQ4Ipsp/5qSR79Dzrz8hEPxRX10RWWR/iQXdoKmBSRCThY1Fh5EhISDtpSc93fpxUniQ==",+ "dev": true,+ "dependencies": {+ "is-what": "^4.1.8"+ },+ "engines": {+ "node": ">=12.13"+ },+ "funding": {+ "url": "https://github.com/sponsors/mesqueeb"+ }+ },+ "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,+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/nanostores": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/nanostores/-/nanostores-1.1.0.tgz",+ "integrity": "sha512-yJBmDJr18xy47dbNVlHcgdPrulSn1nhSE6Ns9vTG+Nx9VPT6iV1MD6aQFp/t52zpf82FhLLTXAXr30NuCnxvwA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "engines": {+ "node": "^20.0.0 || >=22.0.0"+ }+ },+ "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+ },+ "node_modules/node-releases": {+ "version": "2.0.27",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",+ "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",+ "dev": true+ },+ "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==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.assign": {+ "version": "4.1.7",+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz",+ "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0",+ "has-symbols": "^1.1.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object.fromentries": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz",+ "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object.values": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz",+ "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/optionator": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",+ "dev": true,+ "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/own-keys": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz",+ "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==",+ "dev": true,+ "dependencies": {+ "get-intrinsic": "^1.2.6",+ "object-keys": "^1.1.1",+ "safe-push-apply": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "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,+ "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,+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parse5": {+ "version": "7.3.0",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",+ "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",+ "dev": true,+ "dependencies": {+ "entities": "^6.0.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "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,+ "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,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true+ },+ "node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "dev": true,+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/possible-typed-array-names": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",+ "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.6",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/prettier": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",+ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",+ "dev": true,+ "bin": {+ "prettier": "bin/prettier.cjs"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },+ "node_modules/prettier-plugin-tailwindcss": {+ "version": "0.6.14",+ "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.14.tgz",+ "integrity": "sha512-pi2e/+ZygeIqntN+vC573BcW5Cve8zUB0SSAGxqpB4f96boZF4M3phPVoOFCeypwkpRYdi7+jQ5YJJUwrkGUAg==",+ "dev": true,+ "engines": {+ "node": ">=14.21.3"+ },+ "peerDependencies": {+ "@ianvs/prettier-plugin-sort-imports": "*",+ "@prettier/plugin-hermes": "*",+ "@prettier/plugin-oxc": "*",+ "@prettier/plugin-pug": "*",+ "@shopify/prettier-plugin-liquid": "*",+ "@trivago/prettier-plugin-sort-imports": "*",+ "@zackad/prettier-plugin-twig": "*",+ "prettier": "^3.0",+ "prettier-plugin-astro": "*",+ "prettier-plugin-css-order": "*",+ "prettier-plugin-import-sort": "*",+ "prettier-plugin-jsdoc": "*",+ "prettier-plugin-marko": "*",+ "prettier-plugin-multiline-arrays": "*",+ "prettier-plugin-organize-attributes": "*",+ "prettier-plugin-organize-imports": "*",+ "prettier-plugin-sort-imports": "*",+ "prettier-plugin-style-order": "*",+ "prettier-plugin-svelte": "*"+ },+ "peerDependenciesMeta": {+ "@ianvs/prettier-plugin-sort-imports": {+ "optional": true+ },+ "@prettier/plugin-hermes": {+ "optional": true+ },+ "@prettier/plugin-oxc": {+ "optional": true+ },+ "@prettier/plugin-pug": {+ "optional": true+ },+ "@shopify/prettier-plugin-liquid": {+ "optional": true+ },+ "@trivago/prettier-plugin-sort-imports": {+ "optional": true+ },+ "@zackad/prettier-plugin-twig": {+ "optional": true+ },+ "prettier-plugin-astro": {+ "optional": true+ },+ "prettier-plugin-css-order": {+ "optional": true+ },+ "prettier-plugin-import-sort": {+ "optional": true+ },+ "prettier-plugin-jsdoc": {+ "optional": true+ },+ "prettier-plugin-marko": {+ "optional": true+ },+ "prettier-plugin-multiline-arrays": {+ "optional": true+ },+ "prettier-plugin-organize-attributes": {+ "optional": true+ },+ "prettier-plugin-organize-imports": {+ "optional": true+ },+ "prettier-plugin-sort-imports": {+ "optional": true+ },+ "prettier-plugin-style-order": {+ "optional": true+ },+ "prettier-plugin-svelte": {+ "optional": true+ }+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/reflect.getprototypeof": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz",+ "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.9",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.7",+ "get-proto": "^1.0.1",+ "which-builtin-type": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/regexp.prototype.flags": {+ "version": "1.5.4",+ "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz",+ "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-errors": "^1.3.0",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "set-function-name": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/rollup": {+ "version": "4.53.3",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.3.tgz",+ "integrity": "sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==",+ "dev": true,+ "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.53.3",+ "@rollup/rollup-android-arm64": "4.53.3",+ "@rollup/rollup-darwin-arm64": "4.53.3",+ "@rollup/rollup-darwin-x64": "4.53.3",+ "@rollup/rollup-freebsd-arm64": "4.53.3",+ "@rollup/rollup-freebsd-x64": "4.53.3",+ "@rollup/rollup-linux-arm-gnueabihf": "4.53.3",+ "@rollup/rollup-linux-arm-musleabihf": "4.53.3",+ "@rollup/rollup-linux-arm64-gnu": "4.53.3",+ "@rollup/rollup-linux-arm64-musl": "4.53.3",+ "@rollup/rollup-linux-loong64-gnu": "4.53.3",+ "@rollup/rollup-linux-ppc64-gnu": "4.53.3",+ "@rollup/rollup-linux-riscv64-gnu": "4.53.3",+ "@rollup/rollup-linux-riscv64-musl": "4.53.3",+ "@rollup/rollup-linux-s390x-gnu": "4.53.3",+ "@rollup/rollup-linux-x64-gnu": "4.53.3",+ "@rollup/rollup-linux-x64-musl": "4.53.3",+ "@rollup/rollup-openharmony-arm64": "4.53.3",+ "@rollup/rollup-win32-arm64-msvc": "4.53.3",+ "@rollup/rollup-win32-ia32-msvc": "4.53.3",+ "@rollup/rollup-win32-x64-gnu": "4.53.3",+ "@rollup/rollup-win32-x64-msvc": "4.53.3",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/safe-array-concat": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz",+ "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "get-intrinsic": "^1.2.6",+ "has-symbols": "^1.1.0",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">=0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/safe-push-apply": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz",+ "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==",+ "dev": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/safe-regex-test": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz",+ "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "is-regex": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/semver": {+ "version": "7.7.3",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",+ "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",+ "dev": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/seroval": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/seroval/-/seroval-1.3.2.tgz",+ "integrity": "sha512-RbcPH1n5cfwKrru7v7+zrZvjLurgHhGyso3HTyGtRivGWgYjbOmGuivCQaORNELjNONoK35nj28EoWul9sb1zQ==",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/seroval-plugins": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.3.3.tgz",+ "integrity": "sha512-16OL3NnUBw8JG1jBLUoZJsLnQq0n5Ua6aHalhJK4fMQkz1lqR7Osz1sA30trBtd9VUDc2NgkuRCn8+/pBwqZ+w==",+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "seroval": "^1.0"+ }+ },+ "node_modules/set-function-length": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",+ "dev": true,+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/set-function-name": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",+ "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",+ "dev": true,+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "functions-have-names": "^1.2.3",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/set-proto": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz",+ "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==",+ "dev": true,+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "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,+ "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,+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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==",+ "dev": true,+ "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/solid-js": {+ "version": "1.9.10",+ "resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.9.10.tgz",+ "integrity": "sha512-Coz956cos/EPDlhs6+jsdTxKuJDPT7B5SVIWgABwROyxjY7Xbr8wkzD68Et+NxnV7DLJ3nJdAC2r9InuV/4Jew==",+ "dependencies": {+ "csstype": "^3.1.0",+ "seroval": "~1.3.0",+ "seroval-plugins": "~1.3.0"+ }+ },+ "node_modules/solid-refresh": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/solid-refresh/-/solid-refresh-0.6.3.tgz",+ "integrity": "sha512-F3aPsX6hVw9ttm5LYlth8Q15x6MlI/J3Dn+o3EQyRTtTxidepSTwAYdozt01/YA+7ObcciagGEyXIopGZzQtbA==",+ "dev": true,+ "dependencies": {+ "@babel/generator": "^7.23.6",+ "@babel/helper-module-imports": "^7.22.15",+ "@babel/types": "^7.23.6"+ },+ "peerDependencies": {+ "solid-js": "^1.3"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stop-iteration-iterator": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",+ "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==",+ "dev": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "internal-slot": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/string.prototype.includes": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",+ "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.3"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/string.prototype.trim": {+ "version": "1.2.10",+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz",+ "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-data-property": "^1.1.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-object-atoms": "^1.0.0",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimend": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz",+ "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimstart": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",+ "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/style-to-object": {+ "version": "1.0.14",+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",+ "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",+ "dev": true,+ "dependencies": {+ "inline-style-parser": "0.2.7"+ }+ },+ "node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/tailwindcss": {+ "version": "4.1.17",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.17.tgz",+ "integrity": "sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==",+ "dev": true+ },+ "node_modules/tapable": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz",+ "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==",+ "dev": true,+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.15",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",+ "dev": true,+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "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,+ "engines": {+ "node": ">=18.12"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4"+ }+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/typed-array-buffer": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",+ "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/typed-array-byte-length": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz",+ "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-byte-offset": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz",+ "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==",+ "dev": true,+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.15",+ "reflect.getprototypeof": "^1.0.9"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-length": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz",+ "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "is-typed-array": "^1.1.13",+ "possible-typed-array-names": "^1.0.0",+ "reflect.getprototypeof": "^1.0.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/typescript-eslint": {+ "version": "8.48.0",+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.48.0.tgz",+ "integrity": "sha512-fcKOvQD9GUn3Xw63EgiDqhvWJ5jsyZUaekl3KVpGsDJnN46WJTe3jWxtQP9lMZm1LJNkFLlTaWAxK2vUQR+cqw==",+ "dev": true,+ "dependencies": {+ "@typescript-eslint/eslint-plugin": "8.48.0",+ "@typescript-eslint/parser": "8.48.0",+ "@typescript-eslint/typescript-estree": "8.48.0",+ "@typescript-eslint/utils": "8.48.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 <6.0.0"+ }+ },+ "node_modules/unbox-primitive": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz",+ "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-bigints": "^1.0.2",+ "has-symbols": "^1.1.0",+ "which-boxed-primitive": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "dev": true+ },+ "node_modules/update-browserslist-db": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz",+ "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==",+ "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"+ }+ ],+ "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,+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/vite": {+ "version": "7.2.4",+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.4.tgz",+ "integrity": "sha512-NL8jTlbo0Tn4dUEXEsUg8KeyG/Lkmc4Fnzb8JXN/Ykm9G4HNImjtABMJgkQoVjOBN/j2WAwDTRytdqJbZsah7w==",+ "dev": true,+ "dependencies": {+ "esbuild": "^0.25.0",+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3",+ "postcss": "^8.5.6",+ "rollup": "^4.43.0",+ "tinyglobby": "^0.2.15"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^20.19.0 || >=22.12.0",+ "jiti": ">=1.21.0",+ "less": "^4.0.0",+ "lightningcss": "^1.21.0",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite-plugin-solid": {+ "version": "2.11.10",+ "resolved": "https://registry.npmjs.org/vite-plugin-solid/-/vite-plugin-solid-2.11.10.tgz",+ "integrity": "sha512-Yr1dQybmtDtDAHkii6hXuc1oVH9CPcS/Zb2jN/P36qqcrkNnVPsMTzQ06jyzFPFjj3U1IYKMVt/9ZqcwGCEbjw==",+ "dev": true,+ "dependencies": {+ "@babel/core": "^7.23.3",+ "@types/babel__core": "^7.20.4",+ "babel-preset-solid": "^1.8.4",+ "merge-anything": "^5.1.7",+ "solid-refresh": "^0.6.3",+ "vitefu": "^1.0.4"+ },+ "peerDependencies": {+ "@testing-library/jest-dom": "^5.16.6 || ^5.17.0 || ^6.*",+ "solid-js": "^1.7.2",+ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ },+ "peerDependenciesMeta": {+ "@testing-library/jest-dom": {+ "optional": true+ }+ }+ },+ "node_modules/vitefu": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.1.tgz",+ "integrity": "sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ==",+ "dev": true,+ "peerDependencies": {+ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0"+ },+ "peerDependenciesMeta": {+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/which-boxed-primitive": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz",+ "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==",+ "dev": true,+ "dependencies": {+ "is-bigint": "^1.1.0",+ "is-boolean-object": "^1.2.1",+ "is-number-object": "^1.1.1",+ "is-string": "^1.1.1",+ "is-symbol": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-builtin-type": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz",+ "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==",+ "dev": true,+ "dependencies": {+ "call-bound": "^1.0.2",+ "function.prototype.name": "^1.1.6",+ "has-tostringtag": "^1.0.2",+ "is-async-function": "^2.0.0",+ "is-date-object": "^1.1.0",+ "is-finalizationregistry": "^1.1.0",+ "is-generator-function": "^1.0.10",+ "is-regex": "^1.2.1",+ "is-weakref": "^1.0.2",+ "isarray": "^2.0.5",+ "which-boxed-primitive": "^1.1.0",+ "which-collection": "^1.0.2",+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-collection": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",+ "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",+ "dev": true,+ "dependencies": {+ "is-map": "^2.0.3",+ "is-set": "^2.0.3",+ "is-weakmap": "^2.0.2",+ "is-weakset": "^2.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-typed-array": {+ "version": "1.1.19",+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz",+ "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==",+ "dev": true,+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "for-each": "^0.3.5",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true+ },+ "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,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ }+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/package.json b/PROJECTS/encrypted-p2p-chat/frontend/package.jsonnew file mode 100644index 00000000..552e7918--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/package.json@@ -0,0 +1,43 @@+{+ "name": "encrypted-p2p-chat-frontend",+ "version": "1.0.0",+ "description": "End-to-end encrypted P2P chat frontend with SolidJS",+ "type": "module",+ "scripts": {+ "dev": "vite",+ "build": "vite build",+ "preview": "vite preview",+ "typecheck": "tsc --noEmit",+ "lint:eslint": "eslint .",+ "lint:eslint:fix": "eslint . --fix",+ "lint:types": "tsc --noEmit",+ "lint": "npm run lint:eslint && npm run lint:types",+ "format": "prettier --write \"src/**/*.{ts,tsx,css}\"",+ "format:check": "prettier --check \"src/**/*.{ts,tsx,css}\""+ },+ "dependencies": {+ "@nanostores/persistent": "^1.2.0",+ "@nanostores/solid": "^1.1.1",+ "@solidjs/router": "^0.15.3",+ "@tanstack/solid-query": "^5.90.13",+ "nanostores": "^1.1.0",+ "solid-js": "^1.9.10"+ },+ "devDependencies": {+ "@eslint/js": "^9.17.0",+ "@tailwindcss/vite": "^4.1.17",+ "@types/node": "^22.10.2",+ "eslint": "^9.17.0",+ "eslint-config-prettier": "^10.1.5",+ "eslint-plugin-jsx-a11y": "^6.10.2",+ "eslint-plugin-solid": "^0.14.5",+ "globals": "^16.2.0",+ "prettier": "^3.4.2",+ "prettier-plugin-tailwindcss": "^0.6.9",+ "tailwindcss": "^4.1.17",+ "typescript": "^5.9.3",+ "typescript-eslint": "^8.20.0",+ "vite": "^7.2.4",+ "vite-plugin-solid": "^2.11.10"+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/App.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/App.tsxnew file mode 100644index 00000000..8119154f--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/App.tsx@@ -0,0 +1,26 @@+// ===================+// © AngelaMos | 2025+// App.tsx+// ===================+import { Route } from "@solidjs/router";+import { type Component, lazy } from "solid-js";++const Home = lazy(() => import("./pages/Home"));+const Register = lazy(() => import("./pages/Register"));+const Login = lazy(() => import("./pages/Login"));+const Chat = lazy(() => import("./pages/Chat"));+const NotFound = lazy(() => import("./pages/NotFound"));++const App: Component = () => {+ return (+ <>+ <Route path="/" component={Home} />+ <Route path="/register" component={Register} />+ <Route path="/login" component={Login} />+ <Route path="/chat" component={Chat} />+ <Route path="*" component={NotFound} />+ </>+ );+};++export default App;diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/AuthCard.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/AuthCard.tsxnew file mode 100644index 00000000..c97badda--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/AuthCard.tsx@@ -0,0 +1,61 @@+/**+ * 8-bit styled auth card container+ */++import type { ParentProps, JSX } from "solid-js"+import { Show } from "solid-js"++interface AuthCardProps extends ParentProps {+ title: string+ subtitle?: string+}++export function AuthCard(props: AuthCardProps): JSX.Element {+ return (+ <div class="w-full max-w-md">+ <div+ class="+ bg-black border-4 border-orange+ shadow-[8px_8px_0_var(--color-orange)]+ p-6+ "+ >+ <div class="mb-6">+ <div class="flex items-center gap-3 mb-4">+ <LockIcon />+ <h1 class="font-pixel text-lg text-orange uppercase">+ {props.title}+ </h1>+ </div>++ <Show when={props.subtitle}>+ <p class="font-pixel text-[10px] text-gray leading-relaxed">+ {props.subtitle}+ </p>+ </Show>+ </div>++ {props.children}+ </div>++ <div class="mt-4 flex justify-center">+ <span class="font-pixel text-[8px] text-gray">+ END-TO-END ENCRYPTED+ </span>+ </div>+ </div>+ )+}++function LockIcon(): JSX.Element {+ return (+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none">+ <rect x="7" y="4" width="10" height="2" fill="currentColor" class="text-orange" />+ <rect x="5" y="6" width="2" height="5" fill="currentColor" class="text-orange" />+ <rect x="17" y="6" width="2" height="5" fill="currentColor" class="text-orange" />+ <rect x="4" y="11" width="16" height="2" fill="currentColor" class="text-orange" />+ <rect x="4" y="13" width="16" height="8" fill="currentColor" class="text-orange" />+ <rect x="11" y="15" width="2" height="4" fill="currentColor" class="text-black" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/AuthForm.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/AuthForm.tsxnew file mode 100644index 00000000..f0971917--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/AuthForm.tsx@@ -0,0 +1,177 @@+// ===================+// © AngelaMos | 2025+// AuthForm.tsx+// ===================++import { createSignal, Show } from "solid-js"+import type { JSX } from "solid-js"+import { A } from "@solidjs/router"+import { Input } from "../UI/Input"+import { PasskeyButton } from "./PasskeyButton"+import { AuthCard } from "./AuthCard"+import {+ validateUsername,+ validateDisplayName,+} from "../../lib/validators"+import { authService } from "../../services"+import { showToast } from "../../stores"+import { ApiError } from "../../types"++type AuthMode = "login" | "register"++interface AuthFormProps {+ mode: AuthMode+}++export function AuthForm(props: AuthFormProps): JSX.Element {+ const [username, setUsername] = createSignal("")+ const [displayName, setDisplayName] = createSignal("")+ const [loading, setLoading] = createSignal(false)+ const [usernameError, setUsernameError] = createSignal<string | undefined>()+ const [displayNameError, setDisplayNameError] = createSignal<string | undefined>()++ const isRegister = (): boolean => props.mode === "register"++ const title = (): string => isRegister() ? "CREATE ACCOUNT" : "WELCOME BACK"++ const subtitle = (): string =>+ isRegister()+ ? "REGISTER WITH A PASSKEY FOR SECURE, PASSWORDLESS AUTHENTICATION"+ : "SIGN IN WITH YOUR PASSKEY TO CONTINUE"++ const validateForm = (): boolean => {+ let valid = true++ if (isRegister()) {+ const usernameResult = validateUsername(username())+ if (!usernameResult.valid) {+ setUsernameError(usernameResult.error)+ valid = false+ } else {+ setUsernameError(undefined)+ }++ const displayNameResult = validateDisplayName(displayName())+ if (!displayNameResult.valid) {+ setDisplayNameError(displayNameResult.error)+ valid = false+ } else {+ setDisplayNameError(undefined)+ }+ }++ return valid+ }++ const handleSubmit = async (): Promise<void> => {+ if (!validateForm()) {+ return+ }++ setLoading(true)++ try {+ if (isRegister()) {+ await authService.register(username(), displayName())+ showToast("success", "REGISTRATION COMPLETE", "YOUR PASSKEY HAS BEEN CREATED")+ } else {+ const trimmedUsername = username().trim()+ const usernameValue = trimmedUsername === "" ? undefined : trimmedUsername+ await authService.login(usernameValue)+ showToast("success", "LOGIN SUCCESSFUL", "WELCOME BACK")+ }+ } catch (error) {+ let message = "AN UNEXPECTED ERROR OCCURRED"++ if (error instanceof ApiError) {+ message = error.message.toUpperCase()+ } else if (error instanceof Error) {+ if (error.name === "NotAllowedError") {+ message = "PASSKEY OPERATION CANCELLED"+ } else if (error.name === "InvalidStateError") {+ message = "PASSKEY ALREADY REGISTERED"+ } else {+ message = error.message.toUpperCase()+ }+ }++ showToast("error", isRegister() ? "REGISTRATION FAILED" : "LOGIN FAILED", message)+ } finally {+ setLoading(false)+ }+ }++ return (+ <AuthCard title={title()} subtitle={subtitle()}>+ <div class="space-y-4">+ <Show when={isRegister()}>+ <Input+ name="username"+ label="USERNAME"+ placeholder="ENTER USERNAME"+ value={username()}+ onInput={setUsername}+ error={usernameError()}+ required+ disabled={loading()}+ fullWidth+ />++ <Input+ name="displayName"+ label="DISPLAY NAME"+ placeholder="ENTER DISPLAY NAME"+ value={displayName()}+ onInput={setDisplayName}+ error={displayNameError()}+ required+ disabled={loading()}+ fullWidth+ />+ </Show>++ <Show when={!isRegister()}>+ <Input+ name="username"+ label="USERNAME (OPTIONAL)"+ placeholder="LEAVE BLANK FOR DISCOVERABLE"+ value={username()}+ onInput={setUsername}+ hint="LEAVE BLANK TO USE DISCOVERABLE CREDENTIALS"+ disabled={loading()}+ fullWidth+ />+ </Show>++ <div class="pt-2">+ <PasskeyButton+ mode={props.mode}+ onClick={handleSubmit}+ loading={loading()}+ />+ </div>+ </div>++ <div class="mt-6 pt-4 border-t-2 border-dark-gray">+ <p class="font-pixel text-[10px] text-center text-gray">+ <Show+ when={isRegister()}+ fallback={+ <>+ DON'T HAVE AN ACCOUNT?{" "}+ <A href="/register" class="text-orange hover:underline">+ REGISTER+ </A>+ </>+ }+ >+ ALREADY HAVE AN ACCOUNT?{" "}+ <A href="/login" class="text-orange hover:underline">+ SIGN IN+ </A>+ </Show>+ </p>+ </div>+ </AuthCard>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/PasskeyButton.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/PasskeyButton.tsxnew file mode 100644index 00000000..35f7d0db--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/PasskeyButton.tsx@@ -0,0 +1,95 @@+// ===================+// © AngelaMos | 2025+// PasskeyButton.tsx+// ===================++import {+ Show,+ createSignal,+ onMount,+} from "solid-js"+import type { JSX } from "solid-js"+import { Button } from "../UI/Button"+import {+ isWebAuthnSupported,+ isPlatformAuthenticatorAvailable,+} from "../../services"++interface PasskeyButtonProps {+ mode: "register" | "login"+ onClick: () => void | Promise<void>+ loading?: boolean+ disabled?: boolean+ class?: string+}++export function PasskeyButton(props: PasskeyButtonProps): JSX.Element {+ const [webAuthnSupported, setWebAuthnSupported] = createSignal(true)+ const [platformAvailable, setPlatformAvailable] = createSignal(false)++ onMount(() => {+ const supported = isWebAuthnSupported()+ setWebAuthnSupported(supported)++ if (supported) {+ void isPlatformAuthenticatorAvailable().then((available) => {+ setPlatformAvailable(available)+ })+ }+ })++ const buttonText = (): string => {+ if (!webAuthnSupported()) {+ return "WEBAUTHN NOT SUPPORTED"+ }+ return props.mode === "register" ? "REGISTER WITH PASSKEY" : "LOGIN WITH PASSKEY"+ }++ const isDisabled = (): boolean => {+ return !webAuthnSupported() || (props.disabled ?? false)+ }++ return (+ <div class={`flex flex-col gap-2 ${props.class ?? ""}`}>+ <Button+ variant="primary"+ size="lg"+ fullWidth+ loading={props.loading}+ disabled={isDisabled()}+ onClick={props.onClick}+ leftIcon={<PasskeyIcon />}+ >+ {buttonText()}+ </Button>++ <Show when={!webAuthnSupported()}>+ <p class="font-pixel text-[8px] text-error text-center">+ YOUR BROWSER DOES NOT SUPPORT PASSKEYS+ </p>+ </Show>++ <Show when={webAuthnSupported() && platformAvailable()}>+ <p class="font-pixel text-[8px] text-success text-center">+ BIOMETRIC AUTH AVAILABLE+ </p>+ </Show>+ </div>+ )+}++function PasskeyIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="2" y="6" width="2" height="6" />+ <rect x="4" y="4" width="2" height="2" />+ <rect x="6" y="2" width="4" height="2" />+ <rect x="10" y="4" width="2" height="2" />+ <rect x="12" y="6" width="2" height="2" />+ <rect x="6" y="8" width="4" height="2" />+ <rect x="4" y="10" width="2" height="2" />+ <rect x="10" y="10" width="2" height="2" />+ <rect x="6" y="12" width="4" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/index.tsnew file mode 100644index 00000000..3ac0dae5--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Auth/index.ts@@ -0,0 +1,7 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export { PasskeyButton } from "./PasskeyButton"+export { AuthCard } from "./AuthCard"+export { AuthForm } from "./AuthForm"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ChatHeader.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ChatHeader.tsxnew file mode 100644index 00000000..d3326033--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ChatHeader.tsx@@ -0,0 +1,127 @@+// ===================+// © AngelaMos | 2025+// ChatHeader.tsx+// ===================+import { Show } from "solid-js"+import type { JSX } from "solid-js"+import type { Room, Participant } from "../../types"+import { OnlineStatus } from "./OnlineStatus"+import { EncryptionBadge } from "./EncryptionBadge"+import { getUserStatus } from "../../stores"+import { IconButton } from "../UI/IconButton"++interface ChatHeaderProps {+ room: Room | null+ onSettingsClick?: () => void+ onInfoClick?: () => void+ class?: string+}++export function ChatHeader(props: ChatHeaderProps): JSX.Element {+ const otherParticipant = (): Participant | null => {+ if (props.room?.type !== "direct") return null+ return props.room.participants[0] ?? null+ }++ const displayName = (): string => {+ const room = props.room+ if (room === null) return "CHAT"+ if (room.name !== undefined && room.name !== null) return room.name+ const other = otherParticipant()+ return other?.display_name ?? other?.username ?? "CHAT"+ }++ const initials = (): string => {+ const name = displayName()+ return name.slice(0, 2).toUpperCase()+ }++ return (+ <div class={`flex-shrink-0 px-4 py-3 border-b-2 border-orange ${props.class ?? ""}`}>+ <div class="flex items-center justify-between">+ <div class="flex items-center gap-3">+ <div class="relative">+ <div class="w-10 h-10 bg-black border-2 border-orange flex items-center justify-center">+ <span class="font-pixel text-[10px] text-orange">+ {initials()}+ </span>+ </div>+ <Show when={otherParticipant()} keyed>+ {(participant) => (+ <div class="absolute -bottom-1 -right-1">+ <OnlineStatus+ status={getUserStatus(participant.user_id)}+ size="sm"+ />+ </div>+ )}+ </Show>+ </div>++ <div>+ <h2 class="font-pixel text-xs text-white">+ {displayName()}+ </h2>+ <div class="flex items-center gap-2 mt-0.5">+ <Show when={props.room?.is_encrypted}>+ <EncryptionBadge isEncrypted showLabel size="sm" />+ </Show>+ <Show when={props.room?.type === "group"}>+ <span class="font-pixel text-[8px] text-gray">+ {props.room?.participants.length ?? 0} MEMBERS+ </span>+ </Show>+ <Show when={otherParticipant()} keyed>+ {(participant) => (+ <span class="font-pixel text-[8px] text-gray uppercase">+ {getUserStatus(participant.user_id)}+ </span>+ )}+ </Show>+ </div>+ </div>+ </div>++ <div class="flex items-center gap-2">+ <Show when={props.onInfoClick}>+ <IconButton+ icon={<InfoIcon />}+ onClick={props.onInfoClick}+ ariaLabel="Room info"+ size="sm"+ />+ </Show>+ <Show when={props.onSettingsClick}>+ <IconButton+ icon={<SettingsIcon />}+ onClick={props.onSettingsClick}+ ariaLabel="Room settings"+ size="sm"+ />+ </Show>+ </div>+ </div>+ </div>+ )+}++function InfoIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="7" y="3" width="2" height="2" />+ <rect x="7" y="7" width="2" height="6" />+ </svg>+ )+}++function SettingsIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="7" y="1" width="2" height="3" />+ <rect x="7" y="12" width="2" height="3" />+ <rect x="1" y="7" width="3" height="2" />+ <rect x="12" y="7" width="3" height="2" />+ <rect x="5" y="5" width="6" height="6" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ChatInput.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ChatInput.tsxnew file mode 100644index 00000000..c293dc08--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ChatInput.tsx@@ -0,0 +1,132 @@+// ===================+// © AngelaMos | 2025+// ChatInput.tsx+// ===================+import { createSignal, Show, onCleanup } from "solid-js"+import type { JSX } from "solid-js"+import { Button } from "../UI/Button"+import { wsManager } from "../../websocket"+import { MESSAGE_MAX_LENGTH } from "../../types"++interface ChatInputProps {+ roomId: string+ recipientId: string+ disabled?: boolean+ onSend?: (content: string) => void+ class?: string+}++export function ChatInput(props: ChatInputProps): JSX.Element {+ const [message, setMessage] = createSignal("")+ const [isTyping, setIsTyping] = createSignal(false)+ let typingTimeout: ReturnType<typeof setTimeout> | undefined+ let inputRef: HTMLInputElement | undefined++ const charCount = (): number => message().length+ const isOverLimit = (): boolean => charCount() > MESSAGE_MAX_LENGTH+ const canSend = (): boolean => message().trim().length > 0 && !isOverLimit() && (props.disabled !== true)++ const handleInput = (e: Event): void => {+ const target = e.target as HTMLInputElement+ setMessage(target.value)++ if (!isTyping()) {+ setIsTyping(true)+ wsManager.sendTypingIndicator(props.roomId, true)+ }++ if (typingTimeout !== undefined) {+ clearTimeout(typingTimeout)+ }++ typingTimeout = setTimeout(() => {+ setIsTyping(false)+ wsManager.sendTypingIndicator(props.roomId, false)+ }, 2000)+ }++ const handleSend = (): void => {+ if (!canSend()) return++ const content = message().trim()+ props.onSend?.(content)+ setMessage("")++ if (isTyping()) {+ setIsTyping(false)+ wsManager.sendTypingIndicator(props.roomId, false)+ }++ inputRef?.focus()+ }++ const handleKeyDown = (e: KeyboardEvent): void => {+ if (e.key === "Enter" && !e.shiftKey) {+ e.preventDefault()+ handleSend()+ }+ }++ onCleanup(() => {+ if (typingTimeout !== undefined) {+ clearTimeout(typingTimeout)+ }+ if (isTyping()) {+ wsManager.sendTypingIndicator(props.roomId, false)+ }+ })++ return (+ <div class={`flex-shrink-0 p-4 border-t-2 border-orange ${props.class ?? ""}`}>+ <div class="flex gap-2">+ <div class="flex-1 flex items-center bg-black border-2 border-orange">+ <span class="font-pixel text-[10px] text-orange px-2">>>></span>+ <input+ ref={inputRef}+ type="text"+ value={message()}+ onInput={handleInput}+ onKeyDown={handleKeyDown}+ placeholder="TYPE YOUR MESSAGE..."+ disabled={props.disabled}+ maxLength={MESSAGE_MAX_LENGTH + 100}+ class="flex-1 bg-transparent font-pixel text-[10px] text-white py-2 pr-3 focus:outline-none placeholder:text-gray disabled:opacity-50"+ />+ </div>+ <Button+ variant="primary"+ size="md"+ onClick={handleSend}+ disabled={!canSend()}+ leftIcon={<SendIcon />}+ >+ SEND+ </Button>+ </div>++ <div class="flex items-center justify-between mt-2">+ <Show when={isOverLimit()}>+ <span class="font-pixel text-[8px] text-error">+ MESSAGE TOO LONG+ </span>+ </Show>+ <span class={`font-pixel text-[8px] ml-auto ${isOverLimit() ? "text-error" : "text-gray"}`}>+ {charCount()}/{MESSAGE_MAX_LENGTH}+ </span>+ </div>+ </div>+ )+}++function SendIcon(): JSX.Element {+ return (+ <svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor">+ <rect x="0" y="5" width="8" height="2" />+ <rect x="6" y="3" width="2" height="2" />+ <rect x="6" y="7" width="2" height="2" />+ <rect x="8" y="1" width="2" height="4" />+ <rect x="8" y="7" width="2" height="4" />+ <rect x="10" y="3" width="2" height="6" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ConversationItem.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ConversationItem.tsxnew file mode 100644index 00000000..3fec2eaa--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ConversationItem.tsx@@ -0,0 +1,115 @@+// ===================+// © AngelaMos | 2025+// ConversationItem.tsx+// ===================+import { Show } from "solid-js"+import type { JSX } from "solid-js"+import type { Room, Participant } from "../../types"+import { OnlineStatus } from "./OnlineStatus"+import { EncryptionBadge } from "./EncryptionBadge"+import { getUserStatus } from "../../stores"+import { formatRelativeTime } from "../../lib/date"++interface ConversationItemProps {+ room: Room+ isActive: boolean+ onClick: () => void+ class?: string+}++export function ConversationItem(props: ConversationItemProps): JSX.Element {+ const otherParticipant = (): Participant | null => {+ if (props.room.type !== "direct") return null+ return props.room.participants[0] ?? null+ }++ const displayName = (): string => {+ if (props.room.name) return props.room.name+ const other = otherParticipant()+ return other?.display_name ?? other?.username ?? "CHAT"+ }++ const initials = (): string => {+ const name = displayName()+ return name.slice(0, 2).toUpperCase()+ }++ const lastMessagePreview = (): string => {+ const msg = props.room.last_message+ if (msg === null || msg === undefined) return "NO MESSAGES"+ if (msg.is_encrypted) return "ENCRYPTED MESSAGE"+ const content = msg.content.slice(0, 40)+ return content.length < msg.content.length ? `${content}...` : content+ }++ const lastMessageTime = (): string => {+ const msg = props.room.last_message+ if (msg === null || msg === undefined) return ""+ return formatRelativeTime(msg.created_at)+ }++ const containerClasses = (): string => {+ const base = "w-full p-3 border-2 transition-colors cursor-pointer"+ if (props.isActive) {+ return `${base} bg-orange text-black border-orange`+ }+ return `${base} bg-black text-white border-dark-gray hover:border-orange`+ }++ return (+ <button+ type="button"+ class={`${containerClasses()} ${props.class ?? ""}`}+ onClick={() => props.onClick()}+ >+ <div class="flex items-start gap-3">+ <div class="relative flex-shrink-0">+ <div class={`w-10 h-10 border-2 flex items-center justify-center ${props.isActive ? "border-black" : "border-orange"}`}>+ <span class={`font-pixel text-[10px] ${props.isActive ? "text-black" : "text-orange"}`}>+ {initials()}+ </span>+ </div>+ <Show when={otherParticipant()} keyed>+ {(participant) => (+ <div class="absolute -bottom-1 -right-1">+ <OnlineStatus+ status={getUserStatus(participant.user_id)}+ size="sm"+ />+ </div>+ )}+ </Show>+ </div>++ <div class="flex-1 min-w-0 text-left">+ <div class="flex items-center justify-between gap-2">+ <span class={`font-pixel text-[10px] truncate ${props.isActive ? "text-black" : "text-white"}`}>+ {displayName()}+ </span>+ <span class={`font-pixel text-[8px] flex-shrink-0 ${props.isActive ? "text-black/60" : "text-gray"}`}>+ {lastMessageTime()}+ </span>+ </div>++ <div class="flex items-center justify-between gap-2 mt-1">+ <span class={`font-pixel text-[8px] truncate ${props.isActive ? "text-black/80" : "text-gray"}`}>+ {lastMessagePreview()}+ </span>+ <div class="flex items-center gap-1 flex-shrink-0">+ <Show when={props.room.is_encrypted}>+ <EncryptionBadge isEncrypted size="sm" />+ </Show>+ <Show when={props.room.unread_count > 0}>+ <div class="min-w-[18px] h-[18px] bg-orange flex items-center justify-center">+ <span class="font-pixel text-[8px] text-black">+ {props.room.unread_count > 99 ? "99+" : props.room.unread_count}+ </span>+ </div>+ </Show>+ </div>+ </div>+ </div>+ </div>+ </button>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ConversationList.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ConversationList.tsxnew file mode 100644index 00000000..19f52760--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/ConversationList.tsx@@ -0,0 +1,136 @@+// ===================+// © AngelaMos | 2025+// ConversationList.tsx+// ===================+import { Show, For, createMemo } from "solid-js"+import type { JSX } from "solid-js"+import { useStore } from "@nanostores/solid"+import { $rooms, $activeRoomId, setActiveRoom } from "../../stores"+import { ConversationItem } from "./ConversationItem"+import { Spinner } from "../UI/Spinner"+import type { Room } from "../../types"++interface ConversationListProps {+ loading?: boolean+ onNewChat?: () => void+ class?: string+}++export function ConversationList(props: ConversationListProps): JSX.Element {+ const rooms = useStore($rooms)+ const activeRoomId = useStore($activeRoomId)++ const sortedRooms = createMemo((): Room[] => {+ const roomsMap = rooms()+ const roomList: Room[] = Object.values(roomsMap)+ return roomList.sort((a, b) => {+ const aTime = a.last_message?.created_at ?? a.updated_at+ const bTime = b.last_message?.created_at ?? b.updated_at+ return new Date(bTime).getTime() - new Date(aTime).getTime()+ })+ })++ const handleRoomClick = (roomId: string): void => {+ setActiveRoom(roomId)+ }++ return (+ <div class={`flex flex-col h-full ${props.class ?? ""}`}>+ <div class="flex items-center justify-between px-4 py-3 border-b-2 border-dark-gray">+ <h2 class="font-pixel text-[10px] text-orange">+ CONVERSATIONS+ </h2>+ <Show when={props.onNewChat}>+ <button+ type="button"+ onClick={() => props.onNewChat?.()}+ class="w-6 h-6 flex items-center justify-center border-2 border-orange text-orange hover:bg-orange hover:text-black transition-colors"+ aria-label="New conversation"+ >+ <PlusIcon />+ </button>+ </Show>+ </div>++ <div class="flex-1 overflow-y-auto scrollbar-pixel">+ <Show+ when={props.loading !== true}+ fallback={+ <div class="flex items-center justify-center py-8">+ <Spinner size="md" />+ </div>+ }+ >+ <Show+ when={sortedRooms().length > 0}+ fallback={<EmptyConversations onNewChat={props.onNewChat} />}+ >+ <div class="p-2 space-y-2">+ <For each={sortedRooms()}>+ {(room) => (+ <ConversationItem+ room={room}+ isActive={room.id === activeRoomId()}+ onClick={() => handleRoomClick(room.id)}+ />+ )}+ </For>+ </div>+ </Show>+ </Show>+ </div>+ </div>+ )+}++interface EmptyConversationsProps {+ onNewChat?: () => void+}++function EmptyConversations(props: EmptyConversationsProps): JSX.Element {+ return (+ <div class="flex flex-col items-center justify-center py-12 px-4">+ <ChatIcon />+ <p class="font-pixel text-[10px] text-gray mt-4 text-center">+ NO CONVERSATIONS+ </p>+ <p class="font-pixel text-[8px] text-gray mt-1 text-center">+ START A NEW CHAT TO BEGIN+ </p>+ <Show when={props.onNewChat}>+ <button+ type="button"+ onClick={() => props.onNewChat?.()}+ class="mt-4 px-4 py-2 border-2 border-orange text-orange font-pixel text-[10px] hover:bg-orange hover:text-black transition-colors"+ >+ NEW CHAT+ </button>+ </Show>+ </div>+ )+}++function PlusIcon(): JSX.Element {+ return (+ <svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor">+ <rect x="5" y="1" width="2" height="10" />+ <rect x="1" y="5" width="10" height="2" />+ </svg>+ )+}++function ChatIcon(): JSX.Element {+ return (+ <svg width="40" height="40" viewBox="0 0 40 40" fill="currentColor" class="text-dark-gray">+ <rect x="6" y="6" width="28" height="3" />+ <rect x="3" y="9" width="3" height="20" />+ <rect x="34" y="9" width="3" height="20" />+ <rect x="6" y="29" width="10" height="3" />+ <rect x="24" y="29" width="10" height="3" />+ <rect x="16" y="32" width="3" height="3" />+ <rect x="13" y="35" width="3" height="3" />+ <rect x="10" y="14" width="20" height="2" />+ <rect x="10" y="20" width="14" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/EncryptionBadge.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/EncryptionBadge.tsxnew file mode 100644index 00000000..6fd012fc--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/EncryptionBadge.tsx@@ -0,0 +1,99 @@+// ===================+// © AngelaMos | 2025+// EncryptionBadge.tsx+// ===================+import { Show } from "solid-js"+import type { JSX } from "solid-js"++interface EncryptionBadgeProps {+ isEncrypted: boolean+ showLabel?: boolean+ size?: "sm" | "md"+ class?: string+}++export function EncryptionBadge(props: EncryptionBadgeProps): JSX.Element {+ const iconSize = (): string => props.size === "sm" ? "w-3 h-3" : "w-4 h-4"+ const textSize = (): string => props.size === "sm" ? "text-[6px]" : "text-[8px]"++ return (+ <Show when={props.isEncrypted}>+ <div+ class={`flex items-center gap-1 ${props.class ?? ""}`}+ title="END-TO-END ENCRYPTED"+ >+ <LockIcon class={`${iconSize()} text-success`} />+ <Show when={props.showLabel}>+ <span class={`font-pixel ${textSize()} text-success`}>+ E2E+ </span>+ </Show>+ </div>+ </Show>+ )+}++interface LockIconProps {+ class?: string+}++function LockIcon(props: LockIconProps): JSX.Element {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ class={props.class}+ aria-hidden="true"+ >+ <rect x="5" y="3" width="6" height="1" />+ <rect x="4" y="4" width="1" height="4" />+ <rect x="11" y="4" width="1" height="4" />+ <rect x="3" y="8" width="10" height="1" />+ <rect x="3" y="9" width="10" height="5" />+ <rect x="7" y="11" width="2" height="2" fill="currentColor" class="text-black" />+ </svg>+ )+}++interface UnencryptedBadgeProps {+ showLabel?: boolean+ size?: "sm" | "md"+ class?: string+}++export function UnencryptedBadge(props: UnencryptedBadgeProps): JSX.Element {+ const iconSize = (): string => props.size === "sm" ? "w-3 h-3" : "w-4 h-4"+ const textSize = (): string => props.size === "sm" ? "text-[6px]" : "text-[8px]"++ return (+ <div+ class={`flex items-center gap-1 ${props.class ?? ""}`}+ title="NOT ENCRYPTED"+ >+ <UnlockIcon class={`${iconSize()} text-gray`} />+ <Show when={props.showLabel}>+ <span class={`font-pixel ${textSize()} text-gray`}>+ UNENCRYPTED+ </span>+ </Show>+ </div>+ )+}++function UnlockIcon(props: LockIconProps): JSX.Element {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ class={props.class}+ aria-hidden="true"+ >+ <rect x="5" y="1" width="6" height="1" />+ <rect x="4" y="2" width="1" height="6" />+ <rect x="11" y="2" width="1" height="2" />+ <rect x="3" y="8" width="10" height="1" />+ <rect x="3" y="9" width="10" height="5" />+ <rect x="7" y="11" width="2" height="2" fill="currentColor" class="text-black" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/MessageBubble.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/MessageBubble.tsxnew file mode 100644index 00000000..e277c4e8--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/MessageBubble.tsx@@ -0,0 +1,155 @@+// ===================+// © AngelaMos | 2025+// MessageBubble.tsx+// ===================+import { Show, Switch, Match } from "solid-js"+import type { JSX } from "solid-js"+import type { Message, MessageStatus } from "../../types"+import { EncryptionBadge } from "./EncryptionBadge"+import { formatTime } from "../../lib/date"++interface MessageBubbleProps {+ message: Message+ isOwnMessage: boolean+ showSender?: boolean+ class?: string+}++export function MessageBubble(props: MessageBubbleProps): JSX.Element {+ const bubbleClasses = (): string => {+ const base = "max-w-[80%] p-3"+ if (props.isOwnMessage) {+ return `${base} bg-orange text-black ml-auto`+ }+ return `${base} bg-black border-2 border-orange text-white`+ }++ return (+ <div class={`flex ${props.isOwnMessage ? "justify-end" : "justify-start"} ${props.class ?? ""}`}>+ <div class={bubbleClasses()}>+ <Show when={props.showSender === true && !props.isOwnMessage}>+ <div class="font-pixel text-[8px] text-orange mb-1">+ {props.message.sender_username}+ </div>+ </Show>++ <div class="font-pixel text-[10px] break-words whitespace-pre-wrap">+ {props.message.content}+ </div>++ <div class="flex items-center justify-end gap-2 mt-2">+ <Show when={props.message.is_encrypted}>+ <EncryptionBadge isEncrypted size="sm" />+ </Show>+ <span class={`font-pixel text-[8px] ${props.isOwnMessage ? "text-black/60" : "text-gray"}`}>+ {formatTime(props.message.created_at)}+ </span>+ <Show when={props.isOwnMessage}>+ <MessageStatusIcon status={props.message.status} />+ </Show>+ </div>+ </div>+ </div>+ )+}++interface MessageStatusIconProps {+ status: MessageStatus+}++function MessageStatusIcon(props: MessageStatusIconProps): JSX.Element {+ return (+ <Switch fallback={<></>}>+ <Match when={props.status === "sending"}>+ <ClockIcon class="w-3 h-3 text-black/40" />+ </Match>+ <Match when={props.status === "sent"}>+ <CheckIcon class="w-3 h-3 text-black/60" />+ </Match>+ <Match when={props.status === "delivered"}>+ <DoubleCheckIcon class="w-3 h-3 text-black/60" />+ </Match>+ <Match when={props.status === "read"}>+ <DoubleCheckIcon class="w-3 h-3 text-success" />+ </Match>+ <Match when={props.status === "failed"}>+ <ErrorIcon class="w-3 h-3 text-error" />+ </Match>+ </Switch>+ )+}++interface IconProps {+ class?: string+}++function ClockIcon(props: IconProps): JSX.Element {+ return (+ <svg viewBox="0 0 12 12" fill="currentColor" class={props.class}>+ <rect x="5" y="1" width="2" height="1" />+ <rect x="3" y="2" width="2" height="1" />+ <rect x="7" y="2" width="2" height="1" />+ <rect x="2" y="3" width="1" height="2" />+ <rect x="9" y="3" width="1" height="2" />+ <rect x="1" y="5" width="1" height="2" />+ <rect x="10" y="5" width="1" height="2" />+ <rect x="2" y="7" width="1" height="2" />+ <rect x="9" y="7" width="1" height="2" />+ <rect x="3" y="9" width="2" height="1" />+ <rect x="7" y="9" width="2" height="1" />+ <rect x="5" y="10" width="2" height="1" />+ <rect x="5" y="3" width="2" height="3" />+ <rect x="5" y="5" width="3" height="2" />+ </svg>+ )+}++function CheckIcon(props: IconProps): JSX.Element {+ return (+ <svg viewBox="0 0 12 12" fill="currentColor" class={props.class}>+ <rect x="2" y="6" width="2" height="2" />+ <rect x="4" y="8" width="2" height="2" />+ <rect x="6" y="6" width="2" height="2" />+ <rect x="8" y="4" width="2" height="2" />+ <rect x="10" y="2" width="2" height="2" />+ </svg>+ )+}++function DoubleCheckIcon(props: IconProps): JSX.Element {+ return (+ <svg viewBox="0 0 16 12" fill="currentColor" class={props.class}>+ <rect x="0" y="6" width="2" height="2" />+ <rect x="2" y="8" width="2" height="2" />+ <rect x="4" y="6" width="2" height="2" />+ <rect x="6" y="4" width="2" height="2" />+ <rect x="8" y="2" width="2" height="2" />+ <rect x="4" y="6" width="2" height="2" />+ <rect x="6" y="8" width="2" height="2" />+ <rect x="8" y="6" width="2" height="2" />+ <rect x="10" y="4" width="2" height="2" />+ <rect x="12" y="2" width="2" height="2" />+ </svg>+ )+}++function ErrorIcon(props: IconProps): JSX.Element {+ return (+ <svg viewBox="0 0 12 12" fill="currentColor" class={props.class}>+ <rect x="5" y="1" width="2" height="1" />+ <rect x="3" y="2" width="2" height="1" />+ <rect x="7" y="2" width="2" height="1" />+ <rect x="2" y="3" width="1" height="2" />+ <rect x="9" y="3" width="1" height="2" />+ <rect x="1" y="5" width="1" height="2" />+ <rect x="10" y="5" width="1" height="2" />+ <rect x="2" y="7" width="1" height="2" />+ <rect x="9" y="7" width="1" height="2" />+ <rect x="3" y="9" width="2" height="1" />+ <rect x="7" y="9" width="2" height="1" />+ <rect x="5" y="10" width="2" height="1" />+ <rect x="5" y="3" width="2" height="4" />+ <rect x="5" y="8" width="2" height="1" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/MessageList.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/MessageList.tsxnew file mode 100644index 00000000..d56dd035--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/MessageList.tsx@@ -0,0 +1,174 @@+// ===================+// © AngelaMos | 2025+// MessageList.tsx+// ===================+import { Show, For, createEffect, createSignal, onMount } from "solid-js"+import type { JSX } from "solid-js"+import { useStore } from "@nanostores/solid"+import { $activeRoomMessages, $activeRoomPendingMessages } from "../../stores"+import { $userId } from "../../stores"+import { MessageBubble } from "./MessageBubble"+import { TypingIndicator } from "./TypingIndicator"+import { Spinner } from "../UI/Spinner"+import type { Message } from "../../types"++interface MessageListProps {+ roomId: string+ onLoadMore?: () => void+ hasMore?: boolean+ loading?: boolean+ class?: string+}++export function MessageList(props: MessageListProps): JSX.Element {+ let containerRef: HTMLDivElement | undefined+ const [autoScroll, setAutoScroll] = createSignal(true)++ const messages = useStore($activeRoomMessages)+ const pendingMessages = useStore($activeRoomPendingMessages)+ const userId = useStore($userId)++ const allMessages = (): Message[] => {+ return [...messages(), ...pendingMessages()]+ }++ const handleScroll = (): void => {+ if (containerRef === undefined) return++ const { scrollTop, scrollHeight, clientHeight } = containerRef+ const isAtBottom = scrollHeight - scrollTop - clientHeight < 50+ setAutoScroll(isAtBottom)++ if (scrollTop < 100 && props.hasMore === true && props.loading !== true && props.onLoadMore !== undefined) {+ props.onLoadMore()+ }+ }++ createEffect(() => {+ allMessages()+ if (autoScroll() && containerRef !== undefined) {+ containerRef.scrollTop = containerRef.scrollHeight+ }+ })++ onMount(() => {+ if (containerRef !== undefined) {+ containerRef.scrollTop = containerRef.scrollHeight+ }+ })++ const groupMessagesByDate = (msgs: Message[]): Map<string, Message[]> => {+ const groups = new Map<string, Message[]>()++ for (const msg of msgs) {+ const date = new Date(msg.created_at).toLocaleDateString("en-US", {+ weekday: "short",+ month: "short",+ day: "numeric",+ })++ const existing = groups.get(date) ?? []+ groups.set(date, [...existing, msg])+ }++ return groups+ }++ return (+ <div+ ref={containerRef}+ class={`flex-1 overflow-y-auto scrollbar-pixel p-4 ${props.class ?? ""}`}+ onScroll={handleScroll}+ >+ <Show when={props.loading}>+ <div class="flex justify-center py-4">+ <Spinner size="sm" />+ </div>+ </Show>++ <Show+ when={allMessages().length > 0}+ fallback={<EmptyMessages />}+ >+ <For each={Array.from(groupMessagesByDate(allMessages()).entries())}>+ {([date, dateMessages]) => (+ <div class="mb-6">+ <DateSeparator date={date} />+ <div class="space-y-3">+ <For each={dateMessages}>+ {(message, index) => {+ const prevMessage = (): Message | undefined =>+ index() > 0 ? dateMessages[index() - 1] : undefined+ const showSender = (): boolean => {+ const prev = prevMessage()+ return prev === undefined || prev.sender_id !== message.sender_id+ }++ return (+ <MessageBubble+ message={message}+ isOwnMessage={message.sender_id === userId()}+ showSender={showSender()}+ />+ )+ }}+ </For>+ </div>+ </div>+ )}+ </For>+ </Show>++ <div class="h-6">+ <TypingIndicator />+ </div>+ </div>+ )+}++function EmptyMessages(): JSX.Element {+ return (+ <div class="h-full flex flex-col items-center justify-center py-12">+ <MessageIcon />+ <p class="font-pixel text-[10px] text-gray mt-4">+ NO MESSAGES YET+ </p>+ <p class="font-pixel text-[8px] text-gray mt-1">+ START THE CONVERSATION+ </p>+ </div>+ )+}++interface DateSeparatorProps {+ date: string+}++function DateSeparator(props: DateSeparatorProps): JSX.Element {+ return (+ <div class="flex items-center gap-4 my-4">+ <div class="flex-1 h-px bg-dark-gray" />+ <span class="font-pixel text-[8px] text-gray uppercase">+ {props.date}+ </span>+ <div class="flex-1 h-px bg-dark-gray" />+ </div>+ )+}++function MessageIcon(): JSX.Element {+ return (+ <svg width="48" height="48" viewBox="0 0 48 48" fill="currentColor" class="text-dark-gray">+ <rect x="8" y="8" width="32" height="4" />+ <rect x="4" y="12" width="4" height="24" />+ <rect x="40" y="12" width="4" height="24" />+ <rect x="8" y="36" width="12" height="4" />+ <rect x="28" y="36" width="12" height="4" />+ <rect x="20" y="40" width="4" height="4" />+ <rect x="16" y="44" width="4" height="4" />+ <rect x="12" y="18" width="24" height="2" />+ <rect x="12" y="24" width="16" height="2" />+ <rect x="12" y="30" width="20" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/NewConversation.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/NewConversation.tsxnew file mode 100644index 00000000..08e6e21f--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/NewConversation.tsx@@ -0,0 +1,141 @@+// ===================+// © AngelaMos | 2025+// NewConversation.tsx+// ===================+import { createSignal, Show } from "solid-js"+import type { JSX } from "solid-js"+import { Modal } from "../UI/Modal"+import { Button } from "../UI/Button"+import { UserSearch } from "./UserSearch"+import type { User } from "../../types"+import { showToast } from "../../stores"++interface NewConversationProps {+ isOpen: boolean+ onClose: () => void+ onCreateRoom: (userId: string) => Promise<void>+}++export function NewConversation(props: NewConversationProps): JSX.Element {+ const [selectedUser, setSelectedUser] = createSignal<User | null>(null)+ const [loading, setLoading] = createSignal(false)++ const handleUserSelect = (user: User): void => {+ setSelectedUser(user)+ }++ const handleCreate = async (): Promise<void> => {+ const user = selectedUser()+ if (user === null) return++ setLoading(true)++ try {+ await props.onCreateRoom(user.id)+ showToast("success", "CHAT CREATED", `STARTED CONVERSATION WITH ${user.display_name.toUpperCase()}`)+ handleClose()+ } catch (_error: unknown) {+ showToast("error", "FAILED TO CREATE CHAT", "PLEASE TRY AGAIN")+ } finally {+ setLoading(false)+ }+ }++ const handleClose = (): void => {+ setSelectedUser(null)+ setLoading(false)+ props.onClose()+ }++ return (+ <Modal+ isOpen={props.isOpen}+ onClose={handleClose}+ title="NEW CONVERSATION"+ size="md"+ >+ <div class="space-y-4">+ <div>+ <label class="font-pixel text-[10px] text-gray block mb-2">+ SEARCH FOR A USER+ </label>+ <UserSearch+ onSelect={handleUserSelect}+ placeholder="ENTER USERNAME..."+ />+ </div>++ <Show when={selectedUser()} keyed>+ {(user) => (+ <div class="p-3 border-2 border-orange">+ <p class="font-pixel text-[8px] text-gray mb-2">SELECTED USER</p>+ <div class="flex items-center gap-3">+ <div class="w-10 h-10 border-2 border-orange flex items-center justify-center">+ <span class="font-pixel text-[10px] text-orange">+ {user.display_name.slice(0, 2).toUpperCase()}+ </span>+ </div>+ <div>+ <div class="font-pixel text-[10px] text-white">+ {user.display_name}+ </div>+ <div class="font-pixel text-[8px] text-gray">+ @{user.username}+ </div>+ </div>+ <button+ type="button"+ onClick={() => setSelectedUser(null)}+ class="ml-auto w-6 h-6 flex items-center justify-center border-2 border-gray text-gray hover:border-error hover:text-error transition-colors"+ aria-label="Remove selection"+ >+ <CloseIcon />+ </button>+ </div>+ </div>+ )}+ </Show>++ <div class="flex items-center gap-3 pt-4 border-t-2 border-dark-gray">+ <Button+ variant="secondary"+ size="md"+ onClick={handleClose}+ fullWidth+ >+ CANCEL+ </Button>+ <Button+ variant="primary"+ size="md"+ onClick={() => void handleCreate()}+ disabled={selectedUser() === null || loading()}+ loading={loading()}+ fullWidth+ >+ START CHAT+ </Button>+ </div>+ </div>+ </Modal>+ )+}++function CloseIcon(): JSX.Element {+ return (+ <svg width="10" height="10" viewBox="0 0 10 10" fill="currentColor">+ <rect x="1" y="2" width="2" height="2" />+ <rect x="2" y="3" width="2" height="2" />+ <rect x="3" y="4" width="2" height="2" />+ <rect x="4" y="3" width="2" height="2" />+ <rect x="5" y="2" width="2" height="2" />+ <rect x="6" y="3" width="2" height="2" />+ <rect x="7" y="2" width="2" height="2" />+ <rect x="4" y="5" width="2" height="2" />+ <rect x="3" y="6" width="2" height="2" />+ <rect x="2" y="7" width="2" height="2" />+ <rect x="5" y="6" width="2" height="2" />+ <rect x="6" y="7" width="2" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/OnlineStatus.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/OnlineStatus.tsxnew file mode 100644index 00000000..b1b39986--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/OnlineStatus.tsx@@ -0,0 +1,65 @@+// ===================+// © AngelaMos | 2025+// OnlineStatus.tsx+// ===================+import { Show } from "solid-js"+import type { JSX } from "solid-js"+import type { PresenceStatus } from "../../types"++interface OnlineStatusProps {+ status: PresenceStatus+ size?: "sm" | "md" | "lg"+ showLabel?: boolean+ class?: string+}++const SIZE_MAP = {+ sm: "w-2 h-2",+ md: "w-3 h-3",+ lg: "w-4 h-4",+}++export function OnlineStatus(props: OnlineStatusProps): JSX.Element {+ const sizeClass = (): string => SIZE_MAP[props.size ?? "md"]++ const statusColor = (): string => {+ switch (props.status) {+ case "online":+ return "bg-success"+ case "away":+ return "bg-away"+ case "offline":+ return "bg-offline"+ default:+ return "bg-gray"+ }+ }++ const statusLabel = (): string => {+ switch (props.status) {+ case "online":+ return "ONLINE"+ case "away":+ return "AWAY"+ case "offline":+ return "OFFLINE"+ default:+ return "UNKNOWN"+ }+ }++ return (+ <div class={`flex items-center gap-2 ${props.class ?? ""}`}>+ <div+ class={`${sizeClass()} ${statusColor()}`}+ role="status"+ aria-label={statusLabel()}+ />+ <Show when={props.showLabel === true}>+ <span class="font-pixel text-[8px] text-gray uppercase">+ {statusLabel()}+ </span>+ </Show>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/TypingIndicator.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/TypingIndicator.tsxnew file mode 100644index 00000000..6257f2e3--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/TypingIndicator.tsx@@ -0,0 +1,76 @@+// ===================+// © AngelaMos | 2025+// TypingIndicator.tsx+// ===================+import { Show, For } from "solid-js"+import type { JSX } from "solid-js"+import { useStore } from "@nanostores/solid"+import { $activeRoomTypingUsernames } from "../../stores"++interface TypingIndicatorProps {+ class?: string+}++export function TypingIndicator(props: TypingIndicatorProps): JSX.Element {+ const typingUsernames = useStore($activeRoomTypingUsernames)++ const typingText = (): string => {+ const users = typingUsernames()+ if (users.length === 0) return ""+ if (users.length === 1) return `${users[0]} IS TYPING`+ if (users.length === 2) return `${users[0]} AND ${users[1]} ARE TYPING`+ return `${users[0]} AND ${users.length - 1} OTHERS ARE TYPING`+ }++ return (+ <Show when={typingUsernames().length > 0}>+ <div class={`flex items-center gap-2 ${props.class ?? ""}`}>+ <TypingDots />+ <span class="font-pixel text-[8px] text-gray">+ {typingText()}+ </span>+ </div>+ </Show>+ )+}++function TypingDots(): JSX.Element {+ return (+ <div class="flex items-center gap-1">+ <For each={[0, 1, 2]}>+ {(index) => (+ <div+ class="w-1 h-1 bg-orange animate-bounce-pixel"+ style={{ "animation-delay": `${index * 150}ms` }}+ />+ )}+ </For>+ </div>+ )+}++interface TypingIndicatorInlineProps {+ usernames: string[]+ class?: string+}++export function TypingIndicatorInline(props: TypingIndicatorInlineProps): JSX.Element {+ const typingText = (): string => {+ const users = props.usernames+ if (users.length === 0) return ""+ if (users.length === 1) return `${users[0]} IS TYPING`+ if (users.length === 2) return `${users[0]} AND ${users[1]} ARE TYPING`+ return `${users[0]} AND ${users.length - 1} OTHERS ARE TYPING`+ }++ return (+ <Show when={props.usernames.length > 0}>+ <div class={`flex items-center gap-2 ${props.class ?? ""}`}>+ <TypingDots />+ <span class="font-pixel text-[8px] text-gray">+ {typingText()}+ </span>+ </div>+ </Show>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/UserSearch.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/UserSearch.tsxnew file mode 100644index 00000000..06439dc1--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/UserSearch.tsx@@ -0,0 +1,176 @@+// ===================+// © AngelaMos | 2025+// UserSearch.tsx+// ===================+import { createSignal, Show, For, onCleanup } from "solid-js"+import type { JSX } from "solid-js"+import { Input } from "../UI/Input"+import { Spinner } from "../UI/Spinner"+import { api } from "../../lib/api-client"+import { USER_SEARCH_MIN_LENGTH, USER_SEARCH_DEFAULT_LIMIT } from "../../config"+import type { User } from "../../types"++interface UserSearchProps {+ onSelect: (user: User) => void+ excludeIds?: string[]+ placeholder?: string+ class?: string+}++interface SearchResult {+ users: User[]+ loading: boolean+ error: string | null+}++export function UserSearch(props: UserSearchProps): JSX.Element {+ const [query, setQuery] = createSignal("")+ const [result, setResult] = createSignal<SearchResult>({+ users: [],+ loading: false,+ error: null,+ })+ const [isFocused, setIsFocused] = createSignal(false)++ let searchTimeout: ReturnType<typeof setTimeout> | undefined++ const handleInput = (value: string): void => {+ setQuery(value)++ if (searchTimeout !== undefined) {+ clearTimeout(searchTimeout)+ }++ if (value.trim().length < USER_SEARCH_MIN_LENGTH) {+ setResult({ users: [], loading: false, error: null })+ return+ }++ setResult((prev) => ({ ...prev, loading: true }))++ searchTimeout = setTimeout(() => {+ void searchUsers(value.trim())+ }, 300)+ }++ const searchUsers = async (searchQuery: string): Promise<void> => {+ try {+ const response = await api.users.search({+ query: searchQuery,+ limit: USER_SEARCH_DEFAULT_LIMIT,+ })+ setResult({ users: response.users, loading: false, error: null })+ } catch (error) {+ const errorMessage = error instanceof Error ? error.message : "Search failed"+ setResult({ users: [], loading: false, error: errorMessage })+ }+ }++ const handleSelect = (user: User): void => {+ props.onSelect(user)+ setQuery("")+ setResult({ users: [], loading: false, error: null })+ setIsFocused(false)+ }++ const filteredUsers = (): User[] => {+ const excludeSet = new Set(props.excludeIds ?? [])+ return result().users.filter((u) => !excludeSet.has(u.id))+ }++ const showResults = (): boolean => {+ return isFocused() && (result().loading || filteredUsers().length > 0 || result().error !== null)+ }++ onCleanup(() => {+ if (searchTimeout !== undefined) {+ clearTimeout(searchTimeout)+ }+ })++ return (+ <div class={`relative ${props.class ?? ""}`}>+ <Input+ name="user-search"+ placeholder={props.placeholder ?? "SEARCH USERS..."}+ value={query()}+ onInput={handleInput}+ onFocus={() => setIsFocused(true)}+ onBlur={() => setTimeout(() => setIsFocused(false), 200)}+ fullWidth+ leftIcon={<SearchIcon />}+ />++ <Show when={showResults()}>+ <div class="absolute top-full left-0 right-0 mt-1 bg-black border-2 border-orange max-h-64 overflow-y-auto scrollbar-pixel z-50">+ <Show when={result().loading}>+ <div class="flex items-center justify-center py-4">+ <Spinner size="sm" />+ </div>+ </Show>++ <Show when={result().error}>+ <div class="p-3">+ <span class="font-pixel text-[10px] text-error">+ {result().error}+ </span>+ </div>+ </Show>++ <Show when={!result().loading && !result().error}>+ <For each={filteredUsers()}>+ {(user) => (+ <button+ type="button"+ class="w-full p-3 flex items-center gap-3 hover:bg-orange hover:text-black transition-colors"+ onClick={() => handleSelect(user)}+ >+ <div class="w-8 h-8 border-2 border-orange flex items-center justify-center flex-shrink-0">+ <span class="font-pixel text-[8px] text-orange">+ {user.display_name.slice(0, 2).toUpperCase()}+ </span>+ </div>+ <div class="text-left min-w-0">+ <div class="font-pixel text-[10px] truncate">+ {user.display_name}+ </div>+ <div class="font-pixel text-[8px] text-gray truncate">+ @{user.username}+ </div>+ </div>+ </button>+ )}+ </For>+ </Show>++ <Show when={!result().loading && !result().error && filteredUsers().length === 0 && query().length >= USER_SEARCH_MIN_LENGTH}>+ <div class="p-3">+ <span class="font-pixel text-[10px] text-gray">+ NO USERS FOUND+ </span>+ </div>+ </Show>+ </div>+ </Show>+ </div>+ )+}++function SearchIcon(): JSX.Element {+ return (+ <svg width="14" height="14" viewBox="0 0 14 14" fill="currentColor" class="text-gray">+ <rect x="4" y="1" width="4" height="1" />+ <rect x="2" y="2" width="2" height="1" />+ <rect x="8" y="2" width="2" height="1" />+ <rect x="1" y="3" width="1" height="2" />+ <rect x="10" y="3" width="1" height="2" />+ <rect x="1" y="5" width="1" height="2" />+ <rect x="10" y="5" width="1" height="2" />+ <rect x="2" y="7" width="2" height="1" />+ <rect x="8" y="7" width="2" height="1" />+ <rect x="4" y="8" width="4" height="1" />+ <rect x="9" y="9" width="2" height="2" />+ <rect x="11" y="11" width="2" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/index.tsnew file mode 100644index 00000000..22a287e1--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Chat/index.ts@@ -0,0 +1,15 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export * from "./ConversationList"+export * from "./ConversationItem"+export * from "./MessageList"+export * from "./MessageBubble"+export * from "./ChatInput"+export * from "./ChatHeader"+export * from "./TypingIndicator"+export * from "./OnlineStatus"+export * from "./EncryptionBadge"+export * from "./UserSearch"+export * from "./NewConversation"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/AppShell.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/AppShell.tsxnew file mode 100644index 00000000..f39ccfcb--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/AppShell.tsx@@ -0,0 +1,79 @@+/**+ * Main application shell with sidebar and content area+ */++import type { ParentProps, JSX } from "solid-js"+import { Show } from "solid-js"+import { useStore } from "@nanostores/solid"+import { $sidebarOpen, $isMobile } from "../../stores"+import { Sidebar } from "./Sidebar"+import { Header } from "./Header"++interface AppShellProps extends ParentProps {+ showSidebar?: boolean+ showHeader?: boolean+}++export function AppShell(props: AppShellProps): JSX.Element {+ const sidebarOpen = useStore($sidebarOpen)+ const isMobile = useStore($isMobile)++ const showSidebar = (): boolean => props.showSidebar ?? true+ const showHeader = (): boolean => props.showHeader ?? true++ const getSidebarClasses = (): string => {+ if (isMobile()) {+ return sidebarOpen() ? "fixed inset-y-0 left-0 z-40 w-72" : "hidden"+ }+ return sidebarOpen() ? "w-72" : "w-0 overflow-hidden"+ }++ const handleBackdropClick = (): void => {+ $sidebarOpen.set(false)+ }++ const handleBackdropKeyDown = (e: KeyboardEvent): void => {+ if (e.key === "Enter" || e.key === " " || e.key === "Escape") {+ e.preventDefault()+ $sidebarOpen.set(false)+ }+ }++ return (+ <div class="h-screen flex flex-col bg-black overflow-hidden">+ <Show when={showHeader()}>+ <Header />+ </Show>++ <div class="flex-1 flex overflow-hidden">+ <Show when={showSidebar()}>+ <aside+ class={`+ flex-shrink-0 h-full+ border-r-2 border-orange+ transition-all duration-100+ ${getSidebarClasses()}+ `}+ >+ <Sidebar />+ </aside>++ <Show when={isMobile() && sidebarOpen()}>+ <div+ class="fixed inset-0 z-30 bg-black/80"+ role="button"+ tabIndex={0}+ onClick={handleBackdropClick}+ onKeyDown={handleBackdropKeyDown}+ aria-label="Close sidebar"+ />+ </Show>+ </Show>++ <main class="flex-1 overflow-hidden bg-black">+ {props.children}+ </main>+ </div>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/Header.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/Header.tsxnew file mode 100644index 00000000..19c8f40e--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/Header.tsx@@ -0,0 +1,131 @@+/**+ * 8-bit styled header/navbar component+ */++import type { JSX } from "solid-js"+import { Show } from "solid-js"+import { A } from "@solidjs/router"+import { useStore } from "@nanostores/solid"+import {+ $isAuthenticated,+ $sidebarOpen,+ toggleSidebar,+} from "../../stores"+import { IconButton } from "../UI/IconButton"+import { Badge } from "../UI/Badge"++export function Header(): JSX.Element {+ const isAuthenticated = useStore($isAuthenticated)+ const sidebarOpen = useStore($sidebarOpen)++ return (+ <header class="flex-shrink-0 bg-black border-b-4 border-orange">+ <div class="flex items-center justify-between h-14 px-4">+ <div class="flex items-center gap-3">+ <Show when={isAuthenticated()}>+ <IconButton+ icon={sidebarOpen() ? <CloseMenuIcon /> : <MenuIcon />}+ ariaLabel={sidebarOpen() ? "Close menu" : "Open menu"}+ onClick={toggleSidebar}+ size="sm"+ />+ </Show>++ <A href="/" class="flex items-center gap-2 hover:no-underline">+ <LockIcon />+ <h1 class="font-pixel text-sm text-orange uppercase hidden sm:block">+ ENCRYPTED CHAT+ </h1>+ <h1 class="font-pixel text-sm text-orange uppercase sm:hidden">+ E-CHAT+ </h1>+ </A>++ <Badge variant="primary" size="xs">+ E2EE+ </Badge>+ </div>++ <nav class="flex items-center gap-2">+ <Show+ when={isAuthenticated()}+ fallback={+ <>+ <A+ href="/login"+ class="font-pixel text-[10px] text-white hover:text-orange px-3 py-2"+ >+ LOGIN+ </A>+ <A+ href="/register"+ class="font-pixel text-[10px] bg-orange text-black px-3 py-2 hover:bg-white"+ >+ REGISTER+ </A>+ </>+ }+ >+ <IconButton+ icon={<SearchIcon />}+ ariaLabel="Search"+ size="sm"+ />+ </Show>+ </nav>+ </div>+ </header>+ )+}++function MenuIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="2" y="3" width="12" height="2" />+ <rect x="2" y="7" width="12" height="2" />+ <rect x="2" y="11" width="12" height="2" />+ </svg>+ )+}++function CloseMenuIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="3" y="3" width="2" height="2" />+ <rect x="5" y="5" width="2" height="2" />+ <rect x="7" y="7" width="2" height="2" />+ <rect x="9" y="9" width="2" height="2" />+ <rect x="11" y="11" width="2" height="2" />+ <rect x="11" y="3" width="2" height="2" />+ <rect x="9" y="5" width="2" height="2" />+ <rect x="5" y="9" width="2" height="2" />+ <rect x="3" y="11" width="2" height="2" />+ </svg>+ )+}++function LockIcon(): JSX.Element {+ return (+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none">+ <rect x="6" y="3" width="8" height="2" fill="currentColor" class="text-orange" />+ <rect x="4" y="5" width="2" height="4" fill="currentColor" class="text-orange" />+ <rect x="14" y="5" width="2" height="4" fill="currentColor" class="text-orange" />+ <rect x="3" y="9" width="14" height="2" fill="currentColor" class="text-orange" />+ <rect x="3" y="11" width="14" height="6" fill="currentColor" class="text-orange" />+ <rect x="9" y="12" width="2" height="4" fill="currentColor" class="text-black" />+ </svg>+ )+}++function SearchIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="4" y="2" width="6" height="2" />+ <rect x="2" y="4" width="2" height="6" />+ <rect x="10" y="4" width="2" height="6" />+ <rect x="4" y="10" width="6" height="2" />+ <rect x="10" y="10" width="2" height="2" />+ <rect x="12" y="12" width="2" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/ProtectedRoute.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/ProtectedRoute.tsxnew file mode 100644index 00000000..d2f26592--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/ProtectedRoute.tsx@@ -0,0 +1,83 @@+/**+ * Protected route wrapper that redirects unauthenticated users+ */++import type { ParentProps, JSX } from "solid-js"+import { Show, createEffect } from "solid-js"+import { useNavigate, useLocation } from "@solidjs/router"+import { useStore } from "@nanostores/solid"+import { $isAuthenticated } from "../../stores"+import { Spinner } from "../UI/Spinner"++interface ProtectedRouteProps extends ParentProps {+ redirectTo?: string+}++export function ProtectedRoute(props: ProtectedRouteProps): JSX.Element {+ const navigate = useNavigate()+ const location = useLocation()+ const isAuthenticated = useStore($isAuthenticated)++ const redirectPath = (): string => props.redirectTo ?? "/login"++ createEffect(() => {+ if (!isAuthenticated()) {+ const currentPath = location.pathname+ const redirectUrl = currentPath !== "/"+ ? `${redirectPath()}?redirect=${encodeURIComponent(currentPath)}`+ : redirectPath()++ navigate(redirectUrl, { replace: true })+ }+ })++ return (+ <Show+ when={isAuthenticated()}+ fallback={+ <div class="h-full flex items-center justify-center bg-black">+ <div class="flex flex-col items-center gap-4">+ <Spinner size="lg" />+ <span class="font-pixel text-[10px] text-orange">+ AUTHENTICATING...+ </span>+ </div>+ </div>+ }+ >+ {props.children}+ </Show>+ )+}++export function GuestRoute(props: ParentProps): JSX.Element {+ const navigate = useNavigate()+ const location = useLocation()+ const isAuthenticated = useStore($isAuthenticated)++ createEffect(() => {+ if (isAuthenticated()) {+ const params = new URLSearchParams(location.search)+ const redirectPath = params.get("redirect") ?? "/chat"+ navigate(redirectPath, { replace: true })+ }+ })++ return (+ <Show+ when={!isAuthenticated()}+ fallback={+ <div class="h-full flex items-center justify-center bg-black">+ <div class="flex flex-col items-center gap-4">+ <Spinner size="lg" />+ <span class="font-pixel text-[10px] text-orange">+ REDIRECTING...+ </span>+ </div>+ </div>+ }+ >+ {props.children}+ </Show>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/Sidebar.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/Sidebar.tsxnew file mode 100644index 00000000..1f65ff71--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/Sidebar.tsx@@ -0,0 +1,188 @@+/**+ * 8-bit styled sidebar component+ */++import type { JSX } from "solid-js"+import { Show, For } from "solid-js"+import type { Room, Participant } from "../../types"+import { A, useLocation } from "@solidjs/router"+import { useStore } from "@nanostores/solid"+import {+ $currentUser,+ $rooms,+ $activeRoomId,+ $totalUnreadCount,+ setActiveRoom,+} from "../../stores"+import { Avatar } from "../UI/Avatar"+import { Badge } from "../UI/Badge"+import { IconButton } from "../UI/IconButton"++export function Sidebar(): JSX.Element {+ const currentUser = useStore($currentUser)+ const rooms = useStore($rooms)+ const activeRoomId = useStore($activeRoomId)+ const totalUnread = useStore($totalUnreadCount)+ const location = useLocation()++ const roomList = (): Room[] => {+ const roomsObj = rooms()+ const roomArray: Room[] = Object.values(roomsObj)+ return roomArray.sort((a, b) => {+ const aTime = a.last_message?.created_at ?? a.updated_at+ const bTime = b.last_message?.created_at ?? b.updated_at+ return new Date(bTime).getTime() - new Date(aTime).getTime()+ })+ }++ const isActive = (path: string): boolean => location.pathname === path++ return (+ <div class="h-full flex flex-col bg-black">+ <div class="p-4 border-b-2 border-orange">+ <div class="flex items-center justify-between">+ <h2 class="font-pixel text-[10px] text-orange uppercase">+ Messages+ </h2>+ <Show when={totalUnread() > 0}>+ <Badge variant="primary" size="xs">+ {totalUnread()}+ </Badge>+ </Show>+ </div>+ </div>++ <div class="p-2">+ <IconButton+ icon={<NewChatIcon />}+ ariaLabel="New conversation"+ variant="subtle"+ size="sm"+ class="w-full justify-start gap-2 px-3"+ />+ </div>++ <nav class="flex-1 overflow-y-auto scrollbar-pixel">+ <div class="p-2 space-y-1">+ <For each={roomList()}>+ {(room) => {+ const isSelected = (): boolean => activeRoomId() === room.id+ const otherParticipant = (): Participant | undefined =>+ room.participants?.find((p: Participant) => p.user_id !== currentUser()?.id)++ return (+ <button+ type="button"+ onClick={() => setActiveRoom(room.id)}+ class={`+ w-full flex items-center gap-3 p-3+ border-2 transition-colors duration-100+ ${isSelected()+ ? "bg-orange text-black border-orange"+ : "bg-black text-white border-transparent hover:border-orange"+ }+ `}+ >+ <Avatar+ alt={room.name ?? otherParticipant()?.display_name ?? "Chat"}+ size="sm"+ fallback={room.name?.slice(0, 2) ?? otherParticipant()?.display_name?.slice(0, 2)}+ />+ <div class="flex-1 min-w-0 text-left">+ <div class="flex items-center justify-between">+ <span class="font-pixel text-[10px] truncate">+ {room.name ?? otherParticipant()?.display_name ?? "Chat"}+ </span>+ <Show when={room.unread_count > 0}>+ <Badge variant="primary" size="xs">+ {room.unread_count}+ </Badge>+ </Show>+ </div>+ <Show when={room.last_message} keyed>+ {(lastMsg) => (+ <p class={`font-pixel text-[8px] truncate mt-0.5 ${+ isSelected() ? "text-black/70" : "text-gray"+ }`}>+ {lastMsg.content}+ </p>+ )}+ </Show>+ </div>+ </button>+ )+ }}+ </For>+ </div>++ <Show when={roomList().length === 0}>+ <div class="p-4 text-center">+ <p class="font-pixel text-[8px] text-gray">+ NO CONVERSATIONS YET+ </p>+ <p class="font-pixel text-[8px] text-gray mt-2">+ START A NEW CHAT TO BEGIN+ </p>+ </div>+ </Show>+ </nav>++ <div class="p-3 border-t-2 border-orange">+ <Show when={currentUser()} keyed>+ {(user) => (+ <A+ href="/settings"+ class={`+ flex items-center gap-3 p-2+ border-2 transition-colors duration-100+ ${isActive("/settings")+ ? "bg-orange text-black border-orange"+ : "border-transparent hover:border-orange"+ }+ `}+ >+ <Avatar+ alt={user.display_name}+ size="sm"+ fallback={user.display_name.slice(0, 2)}+ />+ <div class="flex-1 min-w-0">+ <span class="font-pixel text-[10px] truncate block">+ {user.display_name}+ </span>+ <span class={`font-pixel text-[8px] ${+ isActive("/settings") ? "text-black/70" : "text-gray"+ }`}>+ @{user.username}+ </span>+ </div>+ <SettingsIcon />+ </A>+ )}+ </Show>+ </div>+ </div>+ )+}++function NewChatIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="7" y="2" width="2" height="12" />+ <rect x="2" y="7" width="12" height="2" />+ </svg>+ )+}++function SettingsIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="text-gray">+ <rect x="7" y="1" width="2" height="2" />+ <rect x="5" y="3" width="6" height="2" />+ <rect x="7" y="5" width="2" height="2" />+ <rect x="7" y="9" width="2" height="2" />+ <rect x="5" y="11" width="6" height="2" />+ <rect x="7" y="13" width="2" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/index.tsnew file mode 100644index 00000000..0577101b--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/Layout/index.ts@@ -0,0 +1,8 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export { AppShell } from "./AppShell"+export { Sidebar } from "./Sidebar"+export { Header } from "./Header"+export { ProtectedRoute, GuestRoute } from "./ProtectedRoute"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Avatar.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Avatar.tsxnew file mode 100644index 00000000..05a6f460--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Avatar.tsx@@ -0,0 +1,95 @@+/**+ * 8-bit styled avatar component+ */++import { Show, createSignal, onMount } from "solid-js"+import type { JSX } from "solid-js"+import type { AvatarProps, Size, PresenceStatus } from "../../types"++const SIZE_CLASSES: Record<Size, string> = {+ xs: "w-6 h-6 text-[8px]",+ sm: "w-8 h-8 text-[10px]",+ md: "w-10 h-10 text-xs",+ lg: "w-12 h-12 text-sm",+ xl: "w-16 h-16 text-base",+}++const STATUS_COLORS: Record<PresenceStatus, string> = {+ online: "bg-success",+ away: "bg-orange",+ offline: "bg-gray",+}++const STATUS_SIZE: Record<Size, string> = {+ xs: "w-2 h-2",+ sm: "w-2.5 h-2.5",+ md: "w-3 h-3",+ lg: "w-3.5 h-3.5",+ xl: "w-4 h-4",+}++export function Avatar(props: AvatarProps): JSX.Element {+ const [imageError, setImageError] = createSignal(false)+ let imgRef: HTMLImageElement | undefined++ const size = (): Size => props.size ?? "md"+ const showStatus = (): boolean => props.showStatus ?? false++ const getFallbackInitials = (): string => {+ if (props.fallback) {+ return props.fallback.slice(0, 2).toUpperCase()+ }+ return props.alt.slice(0, 2).toUpperCase()+ }++ onMount(() => {+ if (imgRef !== undefined) {+ imgRef.addEventListener("error", () => setImageError(true))+ }+ })++ const shouldShowImage = (): boolean => {+ return Boolean(props.src) && !imageError()+ }++ return (+ <div+ class={`+ relative inline-flex items-center justify-center+ bg-black border-2 border-orange+ ${SIZE_CLASSES[size()]}+ ${props.class ?? ""}+ `}+ >+ <Show+ when={shouldShowImage()}+ fallback={+ <span class="font-pixel text-orange select-none">+ {getFallbackInitials()}+ </span>+ }+ >+ <img+ ref={imgRef}+ src={props.src}+ alt={props.alt}+ class="w-full h-full object-cover"+ style={{ "image-rendering": "pixelated" }}+ />+ </Show>++ <Show when={showStatus() ? props.status : undefined} keyed>+ {(status) => (+ <span+ class={`+ absolute -bottom-0.5 -right-0.5+ border-2 border-black+ ${STATUS_SIZE[size()]}+ ${STATUS_COLORS[status]}+ `}+ />+ )}+ </Show>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Badge.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Badge.tsxnew file mode 100644index 00000000..60a22d3a--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Badge.tsx@@ -0,0 +1,54 @@+/**+ * 8-bit styled badge component+ */++import { Show } from "solid-js"+import type { JSX } from "solid-js"+import type { BadgeProps, Size, BadgeVariant } from "../../types"++const SIZE_CLASSES: Record<Size, string> = {+ xs: "px-1 py-0.5 text-[6px]",+ sm: "px-1.5 py-0.5 text-[8px]",+ md: "px-2 py-1 text-[10px]",+ lg: "px-3 py-1 text-xs",+ xl: "px-4 py-1.5 text-sm",+}++const VARIANT_CLASSES: Record<BadgeVariant, string> = {+ default: "bg-dark-gray text-white border-gray",+ primary: "bg-black text-orange border-orange",+ success: "bg-black text-success border-success",+ warning: "bg-black text-orange border-orange",+ error: "bg-black text-error border-error",+}++const DOT_COLORS: Record<BadgeVariant, string> = {+ default: "bg-gray",+ primary: "bg-orange",+ success: "bg-success",+ warning: "bg-orange",+ error: "bg-error",+}++export function Badge(props: BadgeProps): JSX.Element {+ const variant = (): BadgeVariant => props.variant ?? "default"+ const size = (): Size => props.size ?? "md"+ const showDot = (): boolean => props.dot ?? false++ return (+ <span+ class={`+ inline-flex items-center gap-1+ font-pixel border-2 uppercase+ ${SIZE_CLASSES[size()]}+ ${VARIANT_CLASSES[variant()]}+ ${props.class ?? ""}+ `}+ >+ <Show when={showDot()}>+ <span class={`w-1.5 h-1.5 ${DOT_COLORS[variant()]}`} />+ </Show>+ {props.children}+ </span>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Button.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Button.tsxnew file mode 100644index 00000000..419ebd2c--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Button.tsx@@ -0,0 +1,105 @@+/**+ * 8-bit styled button component+ */++import { Show, splitProps } from "solid-js"+import type { JSX } from "solid-js"+import type { ButtonProps, Size, ButtonVariant } from "../../types"+import { Spinner } from "./Spinner"++const SIZE_CLASSES: Record<Size, string> = {+ xs: "px-2 py-1 text-[8px]",+ sm: "px-3 py-1.5 text-[10px]",+ md: "px-4 py-2 text-xs",+ lg: "px-6 py-3 text-sm",+ xl: "px-8 py-4 text-base",+}++const VARIANT_CLASSES: Record<ButtonVariant, string> = {+ primary: `+ bg-black text-white border-2 border-orange+ hover:bg-orange hover:text-black+ active:translate-x-[2px] active:translate-y-[2px]+ shadow-pixel hover:shadow-none active:shadow-none+ `,+ secondary: `+ bg-black text-orange border-2 border-dark-gray+ hover:border-orange hover:text-white+ active:translate-x-[2px] active:translate-y-[2px]+ `,+ ghost: `+ bg-transparent text-orange border-2 border-transparent+ hover:border-orange hover:bg-black/50+ active:translate-x-[2px] active:translate-y-[2px]+ `,+ danger: `+ bg-black text-white border-2 border-error+ hover:bg-error hover:text-white+ active:translate-x-[2px] active:translate-y-[2px]+ shadow-[4px_4px_0_var(--color-error)] hover:shadow-none active:shadow-none+ `,+}++const DISABLED_CLASSES = `+ opacity-50 cursor-not-allowed+ hover:bg-black hover:text-white+ active:translate-x-0 active:translate-y-0+ shadow-none+`++export function Button(props: ButtonProps): JSX.Element {+ const [local, rest] = splitProps(props, [+ "variant",+ "size",+ "fullWidth",+ "disabled",+ "loading",+ "leftIcon",+ "rightIcon",+ "type",+ "onClick",+ "class",+ "children",+ ])++ const variant = (): ButtonVariant => local.variant ?? "primary"+ const size = (): Size => local.size ?? "md"+ const isDisabled = (): boolean => local.disabled ?? false+ const isLoading = (): boolean => local.loading ?? false++ const handleClick = (): void => {+ if (!isDisabled() && !isLoading() && local.onClick !== undefined) {+ local.onClick()+ }+ }++ return (+ <button+ type={local.type ?? "button"}+ disabled={isDisabled() || isLoading()}+ onClick={handleClick}+ class={`+ font-pixel inline-flex items-center justify-center gap-2+ transition-all duration-100 select-none+ focus:outline-none focus:ring-2 focus:ring-orange focus:ring-offset-2 focus:ring-offset-black+ ${SIZE_CLASSES[size()]}+ ${VARIANT_CLASSES[variant()]}+ ${(isDisabled() || isLoading()) ? DISABLED_CLASSES : ""}+ ${local.fullWidth === true ? "w-full" : ""}+ ${local.class ?? ""}+ `}+ {...rest}+ >+ <Show when={isLoading()}>+ <Spinner size="xs" />+ </Show>+ <Show when={!isLoading() && local.leftIcon}>+ {local.leftIcon}+ </Show>+ <span>{local.children}</span>+ <Show when={!isLoading() && local.rightIcon}>+ {local.rightIcon}+ </Show>+ </button>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Dropdown.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Dropdown.tsxnew file mode 100644index 00000000..da572271--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Dropdown.tsx@@ -0,0 +1,121 @@+/**+ * 8-bit styled dropdown menu component+ */++import { Show, For, createSignal, onCleanup, createEffect } from "solid-js"+import type { JSX } from "solid-js"+import type { DropdownProps, DropdownItem } from "../../types"++type DropdownAlign = "left" | "right"++export function Dropdown(props: DropdownProps): JSX.Element {+ const [isOpen, setIsOpen] = createSignal(false)+ let containerRef: HTMLDivElement | undefined++ const align = (): DropdownAlign => props.align ?? "left"++ const getItemClasses = (item: DropdownItem): string => {+ if (item.disabled === true) {+ return "text-gray cursor-not-allowed"+ }+ if (item.danger === true) {+ return "text-error hover:bg-error hover:text-white"+ }+ return "text-white hover:bg-orange hover:text-black"+ }++ const getItemActiveClass = (item: DropdownItem): string => {+ return item.disabled === true ? "" : "active:translate-x-[1px] active:translate-y-[1px]"+ }++ const handleToggle = (): void => {+ setIsOpen(!isOpen())+ }++ const handleSelect = (item: DropdownItem): void => {+ if (item.disabled === true) return+ props.onSelect(item.value)+ setIsOpen(false)+ }++ const handleClickOutside = (e: MouseEvent): void => {+ if (containerRef !== undefined && !containerRef.contains(e.target as Node)) {+ setIsOpen(false)+ }+ }++ const handleKeyDown = (e: KeyboardEvent): void => {+ if (e.key === "Escape") {+ setIsOpen(false)+ }+ }++ createEffect(() => {+ if (isOpen()) {+ document.addEventListener("click", handleClickOutside)+ document.addEventListener("keydown", handleKeyDown)+ }++ onCleanup(() => {+ document.removeEventListener("click", handleClickOutside)+ document.removeEventListener("keydown", handleKeyDown)+ })+ })++ return (+ <div+ ref={containerRef}+ class={`relative inline-block ${props.class ?? ""}`}+ >+ <div+ role="button"+ tabIndex={0}+ onClick={handleToggle}+ onKeyDown={(e) => {+ if (e.key === "Enter" || e.key === " ") {+ e.preventDefault()+ handleToggle()+ }+ }}+ >+ {props.trigger}+ </div>++ <Show when={isOpen()}>+ <div+ class={`+ absolute z-40 mt-1 min-w-[160px]+ bg-black border-2 border-orange+ shadow-[4px_4px_0_var(--color-orange)]+ animate-scale-in origin-top+ ${align() === "right" ? "right-0" : "left-0"}+ `}+ role="menu"+ >+ <For each={props.items}>+ {(item) => (+ <button+ type="button"+ role="menuitem"+ disabled={item.disabled}+ onClick={() => handleSelect(item)}+ class={`+ w-full flex items-center gap-2 px-3 py-2+ font-pixel text-[10px] text-left+ transition-colors duration-100+ ${getItemClasses(item)}+ ${getItemActiveClass(item)}+ `}+ >+ <Show when={item.icon}>+ <span class="flex-shrink-0">{item.icon}</span>+ </Show>+ <span class="flex-1">{item.label}</span>+ </button>+ )}+ </For>+ </div>+ </Show>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/IconButton.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/IconButton.tsxnew file mode 100644index 00000000..6b937ad7--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/IconButton.tsx@@ -0,0 +1,93 @@+/**+ * 8-bit styled icon button component+ */++import { Show, splitProps } from "solid-js"+import type { JSX } from "solid-js"+import type { IconButtonProps, Size } from "../../types"+import { Spinner } from "./Spinner"++type IconButtonVariant = "ghost" | "subtle"++const SIZE_CLASSES: Record<Size, string> = {+ xs: "w-6 h-6",+ sm: "w-8 h-8",+ md: "w-10 h-10",+ lg: "w-12 h-12",+ xl: "w-14 h-14",+}++const ICON_SIZE_CLASSES: Record<Size, string> = {+ xs: "w-3 h-3",+ sm: "w-4 h-4",+ md: "w-5 h-5",+ lg: "w-6 h-6",+ xl: "w-7 h-7",+}++const VARIANT_CLASSES: Record<IconButtonVariant, string> = {+ ghost: `+ bg-transparent text-orange+ hover:bg-orange/10 hover:text-orange+ active:bg-orange/20+ `,+ subtle: `+ bg-dark-gray text-white+ hover:bg-orange hover:text-black+ active:bg-orange/80+ `,+}++const DISABLED_CLASSES = "opacity-50 cursor-not-allowed hover:bg-transparent"++export function IconButton(props: IconButtonProps): JSX.Element {+ const [local, rest] = splitProps(props, [+ "icon",+ "onClick",+ "size",+ "variant",+ "ariaLabel",+ "disabled",+ "loading",+ "class",+ ])++ const size = (): Size => local.size ?? "md"+ const variant = (): IconButtonVariant => local.variant ?? "ghost"+ const isDisabled = (): boolean => local.disabled ?? false+ const isLoading = (): boolean => local.loading ?? false++ const handleClick = (): void => {+ if (!isDisabled() && !isLoading() && local.onClick !== undefined) {+ local.onClick()+ }+ }++ return (+ <button+ type="button"+ aria-label={local.ariaLabel}+ disabled={isDisabled() || isLoading()}+ onClick={handleClick}+ class={`+ inline-flex items-center justify-center+ transition-all duration-100+ focus:outline-none focus:ring-2 focus:ring-orange focus:ring-offset-1 focus:ring-offset-black+ ${SIZE_CLASSES[size()]}+ ${VARIANT_CLASSES[variant()]}+ ${(isDisabled() || isLoading()) ? DISABLED_CLASSES : ""}+ ${local.class ?? ""}+ `}+ {...rest}+ >+ <Show+ when={!isLoading()}+ fallback={<Spinner size={size() === "xs" ? "xs" : "sm"} />}+ >+ <span class={ICON_SIZE_CLASSES[size()]}>+ {local.icon}+ </span>+ </Show>+ </button>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Input.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Input.tsxnew file mode 100644index 00000000..39136eae--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Input.tsx@@ -0,0 +1,126 @@+/**+ * 8-bit styled input component+ */++import { Show, splitProps, createSignal } from "solid-js"+import type { JSX } from "solid-js"+import type { InputProps } from "../../types"++export function Input(props: InputProps): JSX.Element {+ const [local, rest] = splitProps(props, [+ "type",+ "name",+ "placeholder",+ "value",+ "onInput",+ "onChange",+ "onFocus",+ "onBlur",+ "disabled",+ "error",+ "label",+ "hint",+ "leftIcon",+ "rightIcon",+ "fullWidth",+ "maxLength",+ "minLength",+ "required",+ "autofocus",+ "class",+ ])++ const [focused, setFocused] = createSignal(false)++ const handleInput: JSX.EventHandler<HTMLInputElement, InputEvent> = (e) => {+ if (local.onInput !== undefined) {+ local.onInput(e.currentTarget.value)+ }+ }++ const handleChange: JSX.EventHandler<HTMLInputElement, Event> = (e) => {+ if (local.onChange !== undefined) {+ local.onChange(e.currentTarget.value)+ }+ }++ const hasError = (): boolean => Boolean(local.error)+ const isDisabled = (): boolean => local.disabled ?? false++ return (+ <div class={`flex flex-col gap-1 ${local.fullWidth === true ? "w-full" : ""}`}>+ <Show when={local.label}>+ <label+ class="font-pixel text-[10px] text-orange uppercase tracking-wider"+ for={local.name}+ >+ {local.label}+ <Show when={local.required}>+ <span class="text-error ml-1">*</span>+ </Show>+ </label>+ </Show>++ <div+ class={`+ relative flex items-center+ bg-black border-2+ transition-all duration-100+ ${focused() ? "border-orange shadow-[0_0_0_2px_var(--color-orange)]" : "border-dark-gray"}+ ${hasError() ? "border-error shadow-[0_0_0_2px_var(--color-error)]" : ""}+ ${isDisabled() ? "opacity-50 cursor-not-allowed" : ""}+ `}+ >+ <Show when={local.leftIcon}>+ <span class="pl-3 text-gray">{local.leftIcon}</span>+ </Show>++ <input+ type={local.type ?? "text"}+ name={local.name}+ id={local.name}+ placeholder={local.placeholder}+ value={local.value ?? ""}+ disabled={isDisabled()}+ maxLength={local.maxLength}+ minLength={local.minLength}+ required={local.required}+ autofocus={local.autofocus}+ onInput={handleInput}+ onChange={handleChange}+ onFocus={() => {+ setFocused(true)+ local.onFocus?.()+ }}+ onBlur={() => {+ setFocused(false)+ local.onBlur?.()+ }}+ class={`+ w-full bg-transparent font-pixel text-[16px] text-white+ px-3 py-2+ placeholder:font-placeholder placeholder:text-[16px] placeholder:text-gray+ focus:outline-none+ disabled:cursor-not-allowed+ ${local.leftIcon !== undefined ? "pl-1" : ""}+ ${local.rightIcon !== undefined ? "pr-1" : ""}+ ${local.class ?? ""}+ `}+ {...rest}+ />++ <Show when={local.rightIcon}>+ <span class="pr-3 text-gray">{local.rightIcon}</span>+ </Show>+ </div>++ <Show when={local.error}>+ <span class="font-pixel text-[8px] text-error">{local.error}</span>+ </Show>++ <Show when={local.hint && !local.error}>+ <span class="font-pixel text-[8px] text-gray">{local.hint}</span>+ </Show>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Modal.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Modal.tsxnew file mode 100644index 00000000..13058383--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Modal.tsx@@ -0,0 +1,136 @@+/**+ * 8-bit styled modal component+ */++import { Show, createEffect, onCleanup } from "solid-js"+import type { JSX } from "solid-js"+import type { ModalProps, Size } from "../../types"+import { IconButton } from "./IconButton"++const SIZE_CLASSES: Record<Size, string> = {+ xs: "max-w-xs",+ sm: "max-w-sm",+ md: "max-w-md",+ lg: "max-w-lg",+ xl: "max-w-xl",+}++export function Modal(props: ModalProps): JSX.Element {+ const size = (): Size => props.size ?? "md"+ const closeOnOverlayClick = (): boolean => props.closeOnOverlayClick ?? true+ const showCloseButton = (): boolean => props.showCloseButton ?? true++ const handleOverlayClick = (e: MouseEvent): void => {+ if (e.target === e.currentTarget && closeOnOverlayClick()) {+ props.onClose()+ }+ }++ const handleKeyDown = (e: KeyboardEvent): void => {+ if (e.key === "Escape") {+ props.onClose()+ }+ }++ createEffect(() => {+ if (props.isOpen) {+ document.addEventListener("keydown", handleKeyDown)+ document.body.style.overflow = "hidden"+ }++ onCleanup(() => {+ document.removeEventListener("keydown", handleKeyDown)+ document.body.style.overflow = ""+ })+ })++ const handleOverlayKeyDown = (e: KeyboardEvent): void => {+ if (e.key === "Enter" || e.key === " ") {+ e.preventDefault()+ if (closeOnOverlayClick()) {+ props.onClose()+ }+ }+ }++ return (+ <Show when={props.isOpen}>+ <div+ class="fixed inset-0 z-50 flex items-center justify-center p-4"+ role="button"+ tabIndex={0}+ onClick={handleOverlayClick}+ onKeyDown={handleOverlayKeyDown}+ aria-label="Close modal overlay"+ >+ <div class="absolute inset-0 bg-black/80 animate-fade-in" />++ <div+ class={`+ relative z-10 w-full+ bg-black border-4 border-orange+ shadow-[8px_8px_0_var(--color-orange)]+ animate-scale-in+ ${SIZE_CLASSES[size()]}+ `}+ role="dialog"+ aria-modal="true"+ aria-labelledby={props.title ? "modal-title" : undefined}+ >+ <Show when={(props.title !== undefined && props.title !== "") || showCloseButton()}>+ <div class="flex items-start justify-between p-4 border-b-2 border-orange">+ <div class="flex-1">+ <Show when={props.title}>+ <h2+ id="modal-title"+ class="font-pixel text-sm text-orange uppercase"+ >+ {props.title}+ </h2>+ </Show>+ <Show when={props.description}>+ <p class="font-pixel text-[10px] text-gray mt-1">+ {props.description}+ </p>+ </Show>+ </div>++ <Show when={showCloseButton()}>+ <IconButton+ icon={<CloseIcon />}+ ariaLabel="Close modal"+ onClick={props.onClose}+ size="sm"+ variant="ghost"+ />+ </Show>+ </div>+ </Show>++ <div class="p-4">+ {props.children}+ </div>+ </div>+ </div>+ </Show>+ )+}++function CloseIcon(): JSX.Element {+ return (+ <svg+ width="16"+ height="16"+ viewBox="0 0 16 16"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M2 2L14 14M14 2L2 14"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="square"+ />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Skeleton.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Skeleton.tsxnew file mode 100644index 00000000..1862fc84--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Skeleton.tsx@@ -0,0 +1,90 @@+/**+ * 8-bit styled skeleton loading component+ */++import { For } from "solid-js"+import type { JSX } from "solid-js"+import type { SkeletonProps } from "../../types"++type SkeletonVariant = "text" | "circular" | "rectangular"++export function Skeleton(props: SkeletonProps): JSX.Element {+ const variant = (): SkeletonVariant => props.variant ?? "text"+ const lines = (): number => props.lines ?? 1++ const getVariantClasses = (): string => {+ switch (variant()) {+ case "circular":+ return "rounded-none aspect-square"+ case "rectangular":+ return ""+ case "text":+ default:+ return "h-4"+ }+ }++ const getStyle = (): JSX.CSSProperties => {+ const style: JSX.CSSProperties = {}++ if (props.width) {+ style.width = props.width+ }++ if (props.height) {+ style.height = props.height+ }++ return style+ }++ return (+ <div class={`flex flex-col gap-2 ${props.class ?? ""}`}>+ <For each={Array(lines()).fill(0)}>+ {(_, index) => (+ <div+ class={`+ bg-dark-gray+ animate-pixel-pulse+ ${getVariantClasses()}+ ${index() === lines() - 1 && variant() === "text" ? "w-3/4" : "w-full"}+ `}+ style={getStyle()}+ />+ )}+ </For>+ </div>+ )+}++export function MessageSkeleton(): JSX.Element {+ return (+ <div class="flex gap-3 p-3">+ <Skeleton variant="circular" width="40px" height="40px" />+ <div class="flex-1">+ <Skeleton variant="text" width="120px" />+ <div class="mt-2">+ <Skeleton variant="text" lines={2} />+ </div>+ </div>+ </div>+ )+}++export function ConversationSkeleton(): JSX.Element {+ return (+ <div class="flex gap-3 p-3 border-b border-dark-gray">+ <Skeleton variant="circular" width="48px" height="48px" />+ <div class="flex-1">+ <Skeleton variant="text" width="140px" />+ <div class="mt-1">+ <Skeleton variant="text" width="200px" />+ </div>+ </div>+ </div>+ )+}++export function AvatarSkeleton(): JSX.Element {+ return <Skeleton variant="circular" width="40px" height="40px" />+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Spinner.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Spinner.tsxnew file mode 100644index 00000000..7a6701d9--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Spinner.tsx@@ -0,0 +1,59 @@+/**+ * 8-bit styled spinner component+ */++import type { JSX } from "solid-js"+import type { SpinnerProps, Size } from "../../types"++const SIZE_CLASSES: Record<Size, string> = {+ xs: "w-3 h-3",+ sm: "w-4 h-4",+ md: "w-6 h-6",+ lg: "w-8 h-8",+ xl: "w-12 h-12",+}++export function Spinner(props: SpinnerProps): JSX.Element {+ const size = (): Size => props.size ?? "md"++ return (+ <div+ class={`+ inline-block animate-pixel-spin+ ${SIZE_CLASSES[size()]}+ ${props.class ?? ""}+ `}+ role="status"+ aria-label="Loading"+ >+ <svg+ viewBox="0 0 16 16"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ class="w-full h-full"+ >+ <rect x="6" y="0" width="4" height="4" fill="currentColor" class="text-orange" />+ <rect x="10" y="2" width="4" height="4" fill="currentColor" class="text-orange/80" />+ <rect x="12" y="6" width="4" height="4" fill="currentColor" class="text-orange/60" />+ <rect x="10" y="10" width="4" height="4" fill="currentColor" class="text-orange/40" />+ <rect x="6" y="12" width="4" height="4" fill="currentColor" class="text-orange/30" />+ <rect x="2" y="10" width="4" height="4" fill="currentColor" class="text-orange/20" />+ <rect x="0" y="6" width="4" height="4" fill="currentColor" class="text-orange/10" />+ <rect x="2" y="2" width="4" height="4" fill="currentColor" class="text-orange/90" />+ </svg>+ </div>+ )+}++export function LoadingOverlay(): JSX.Element {+ return (+ <div class="fixed inset-0 z-50 flex items-center justify-center bg-black/90">+ <div class="flex flex-col items-center gap-4">+ <Spinner size="xl" />+ <span class="font-pixel text-xs text-orange animate-pulse">+ LOADING...+ </span>+ </div>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/TextArea.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/TextArea.tsxnew file mode 100644index 00000000..a8b2c5e7--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/TextArea.tsx@@ -0,0 +1,129 @@+/**+ * 8-bit styled textarea component+ */++import { Show, splitProps, createSignal, createEffect, onMount } from "solid-js"+import type { JSX } from "solid-js"+import type { TextAreaProps } from "../../types"++export function TextArea(props: TextAreaProps): JSX.Element {+ const [local, rest] = splitProps(props, [+ "name",+ "placeholder",+ "value",+ "onInput",+ "disabled",+ "error",+ "label",+ "rows",+ "maxLength",+ "autoResize",+ "class",+ ])++ const [focused, setFocused] = createSignal(false)+ let textareaRef: HTMLTextAreaElement | undefined++ const handleInput: JSX.EventHandler<HTMLTextAreaElement, InputEvent> = (e) => {+ if (local.onInput !== undefined) {+ local.onInput(e.currentTarget.value)+ }++ if (local.autoResize === true && textareaRef !== undefined) {+ adjustHeight()+ }+ }++ const adjustHeight = (): void => {+ if (textareaRef !== undefined) {+ textareaRef.style.height = "auto"+ textareaRef.style.height = `${textareaRef.scrollHeight}px`+ }+ }++ onMount(() => {+ if (local.autoResize === true && textareaRef !== undefined) {+ adjustHeight()+ }+ })++ createEffect(() => {+ if (local.autoResize === true && local.value !== undefined && textareaRef !== undefined) {+ adjustHeight()+ }+ })++ const hasError = (): boolean => Boolean(local.error)+ const isDisabled = (): boolean => local.disabled ?? false+ const currentLength = (): number => (local.value ?? "").length++ return (+ <div class="flex flex-col gap-1 w-full">+ <Show when={local.label}>+ <label+ class="font-pixel text-[10px] text-orange uppercase tracking-wider"+ for={local.name}+ >+ {local.label}+ </label>+ </Show>++ <div+ class={`+ relative+ bg-black border-2+ transition-all duration-100+ ${focused() ? "border-orange shadow-[0_0_0_2px_var(--color-orange)]" : "border-dark-gray"}+ ${hasError() ? "border-error shadow-[0_0_0_2px_var(--color-error)]" : ""}+ ${isDisabled() ? "opacity-50 cursor-not-allowed" : ""}+ `}+ >+ <textarea+ ref={textareaRef}+ name={local.name}+ id={local.name}+ placeholder={local.placeholder}+ value={local.value ?? ""}+ disabled={isDisabled()}+ rows={local.rows ?? 3}+ maxLength={local.maxLength}+ onInput={handleInput}+ onFocus={() => setFocused(true)}+ onBlur={() => setFocused(false)}+ class={`+ w-full bg-transparent font-pixel text-[16px] text-white+ px-3 py-2+ placeholder:font-placeholder placeholder:text-[16px] placeholder:text-gray+ focus:outline-none+ disabled:cursor-not-allowed+ resize-none+ ${local.autoResize === true ? "overflow-hidden" : ""}+ ${local.class ?? ""}+ `}+ {...rest}+ />+ </div>++ <div class="flex justify-between">+ <Show when={local.error}>+ <span class="font-pixel text-[8px] text-error">{local.error}</span>+ </Show>+ <Show when={!local.error}>+ <span />+ </Show>++ <Show when={local.maxLength}>+ <span+ class={`font-pixel text-[8px] ${+ currentLength() > (local.maxLength ?? 0) * 0.9+ ? "text-error"+ : "text-gray"+ }`}+ >+ {currentLength()}/{local.maxLength}+ </span>+ </Show>+ </div>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Toast.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Toast.tsxnew file mode 100644index 00000000..6ef237c1--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Toast.tsx@@ -0,0 +1,151 @@+/**+ * 8-bit styled toast notification component+ */++import { For, Show } from "solid-js"+import type { JSX } from "solid-js"+import type { ToastProps } from "../../types"+import { $toasts, dismissToast } from "../../stores"+import { useStore } from "@nanostores/solid"+import { IconButton } from "./IconButton"++type ToastVariant = "info" | "success" | "warning" | "error"++const VARIANT_CLASSES: Record<ToastVariant, string> = {+ info: "border-info text-info",+ success: "border-success text-success",+ warning: "border-orange text-orange",+ error: "border-error text-error",+}++const VARIANT_ICONS: Record<ToastVariant, JSX.Element> = {+ info: <InfoIcon />,+ success: <CheckIcon />,+ warning: <WarningIcon />,+ error: <ErrorIcon />,+}++export function Toast(props: ToastProps): JSX.Element {+ const handleDismiss = (): void => {+ dismissToast(props.id)+ }++ return (+ <div+ class={`+ flex items-start gap-3 p-4+ bg-black border-2+ shadow-[4px_4px_0_currentColor]+ animate-slide-in-right+ ${VARIANT_CLASSES[props.variant]}+ `}+ role="alert"+ >+ <span class="flex-shrink-0 mt-0.5">+ {VARIANT_ICONS[props.variant]}+ </span>++ <div class="flex-1 min-w-0">+ <p class="font-pixel text-[10px] text-white uppercase">+ {props.title}+ </p>+ <Show when={props.description}>+ <p class="font-pixel text-[8px] text-gray mt-1">+ {props.description}+ </p>+ </Show>+ <Show when={props.action} keyed>+ {(action) => (+ <button+ onClick={() => action.onClick()}+ class="font-pixel text-[8px] text-orange hover:underline mt-2"+ >+ {action.label}+ </button>+ )}+ </Show>+ </div>++ <IconButton+ icon={<CloseIcon />}+ ariaLabel="Dismiss"+ onClick={handleDismiss}+ size="xs"+ variant="ghost"+ />+ </div>+ )+}++export function ToastContainer(): JSX.Element {+ const toasts = useStore($toasts)++ return (+ <div class="fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm">+ <For each={toasts()}>+ {(toast) => <Toast {...toast} />}+ </For>+ </div>+ )+}++function InfoIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="7" y="3" width="2" height="2" />+ <rect x="7" y="7" width="2" height="6" />+ </svg>+ )+}++function CheckIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="3" y="8" width="2" height="2" />+ <rect x="5" y="10" width="2" height="2" />+ <rect x="7" y="8" width="2" height="2" />+ <rect x="9" y="6" width="2" height="2" />+ <rect x="11" y="4" width="2" height="2" />+ </svg>+ )+}++function WarningIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="7" y="2" width="2" height="8" />+ <rect x="7" y="12" width="2" height="2" />+ </svg>+ )+}++function ErrorIcon(): JSX.Element {+ return (+ <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">+ <rect x="3" y="3" width="2" height="2" />+ <rect x="5" y="5" width="2" height="2" />+ <rect x="7" y="7" width="2" height="2" />+ <rect x="9" y="9" width="2" height="2" />+ <rect x="11" y="11" width="2" height="2" />+ <rect x="11" y="3" width="2" height="2" />+ <rect x="9" y="5" width="2" height="2" />+ <rect x="5" y="9" width="2" height="2" />+ <rect x="3" y="11" width="2" height="2" />+ </svg>+ )+}++function CloseIcon(): JSX.Element {+ return (+ <svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor">+ <rect x="2" y="2" width="2" height="2" />+ <rect x="4" y="4" width="2" height="2" />+ <rect x="6" y="4" width="2" height="2" />+ <rect x="8" y="2" width="2" height="2" />+ <rect x="2" y="8" width="2" height="2" />+ <rect x="4" y="6" width="2" height="2" />+ <rect x="6" y="6" width="2" height="2" />+ <rect x="8" y="8" width="2" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Tooltip.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Tooltip.tsxnew file mode 100644index 00000000..7b381ac4--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/Tooltip.tsx@@ -0,0 +1,96 @@+/**+ * 8-bit styled tooltip component+ */++import { Show, createSignal, onCleanup } from "solid-js"+import type { JSX } from "solid-js"+import type { TooltipProps } from "../../types"++type TooltipPosition = "top" | "bottom" | "left" | "right"++const POSITION_CLASSES: Record<TooltipPosition, string> = {+ top: "bottom-full left-1/2 -translate-x-1/2 mb-2",+ bottom: "top-full left-1/2 -translate-x-1/2 mt-2",+ left: "right-full top-1/2 -translate-y-1/2 mr-2",+ right: "left-full top-1/2 -translate-y-1/2 ml-2",+}++const ARROW_CLASSES: Record<TooltipPosition, string> = {+ top: "top-full left-1/2 -translate-x-1/2 border-t-orange border-x-transparent border-b-transparent",+ bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-orange border-x-transparent border-t-transparent",+ left: "left-full top-1/2 -translate-y-1/2 border-l-orange border-y-transparent border-r-transparent",+ right: "right-full top-1/2 -translate-y-1/2 border-r-orange border-y-transparent border-l-transparent",+}++const DEFAULT_DELAY_MS = 300++export function Tooltip(props: TooltipProps): JSX.Element {+ const [visible, setVisible] = createSignal(false)+ let timeoutId: ReturnType<typeof setTimeout> | undefined++ const position = (): TooltipPosition => props.position ?? "top"+ const delay = (): number => props.delay ?? DEFAULT_DELAY_MS++ const showTooltip = (): void => {+ timeoutId = setTimeout(() => {+ setVisible(true)+ }, delay())+ }++ const hideTooltip = (): void => {+ if (timeoutId !== undefined) {+ clearTimeout(timeoutId)+ }+ setVisible(false)+ }++ onCleanup(() => {+ if (timeoutId !== undefined) {+ clearTimeout(timeoutId)+ }+ })++ return (+ <div+ class="relative inline-block"+ role="presentation"+ onMouseEnter={showTooltip}+ onMouseLeave={hideTooltip}+ onFocus={showTooltip}+ onBlur={hideTooltip}+ >+ {props.children}++ <Show when={visible()}>+ <div+ class={`+ absolute z-50 pointer-events-none+ ${POSITION_CLASSES[position()]}+ `}+ role="tooltip"+ >+ <div+ class={`+ relative+ px-2 py-1+ bg-black border-2 border-orange+ font-pixel text-[8px] text-white+ whitespace-nowrap+ shadow-[2px_2px_0_var(--color-orange)]+ animate-fade-in+ `}+ >+ {props.content}+ <span+ class={`+ absolute w-0 h-0+ border-4+ ${ARROW_CLASSES[position()]}+ `}+ />+ </div>+ </div>+ </Show>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/index.tsnew file mode 100644index 00000000..349f2da8--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/components/UI/index.ts@@ -0,0 +1,16 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export { Button } from "./Button"+export { Input } from "./Input"+export { TextArea } from "./TextArea"+export { Avatar } from "./Avatar"+export { Badge } from "./Badge"+export { Modal } from "./Modal"+export { Spinner, LoadingOverlay } from "./Spinner"+export { Toast, ToastContainer } from "./Toast"+export { Skeleton, MessageSkeleton, ConversationSkeleton, AvatarSkeleton } from "./Skeleton"+export { Tooltip } from "./Tooltip"+export { Dropdown } from "./Dropdown"+export { IconButton } from "./IconButton"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/config.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/config.tsnew file mode 100644index 00000000..c79f9ab8--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/config.ts@@ -0,0 +1,22 @@+// ===================+// © AngelaMos | 2025+// config.ts+// ===================+const envApiUrl: string | undefined = import.meta.env.VITE_API_URL as string | undefined;+const envWsUrl: string | undefined = import.meta.env.VITE_WS_URL as string | undefined;+const envRpId: string | undefined = import.meta.env.VITE_RP_ID as string | undefined;++export const API_URL = envApiUrl !== undefined && envApiUrl !== "" ? envApiUrl : "http://localhost:8000";+export const WS_URL = envWsUrl !== undefined && envWsUrl !== "" ? envWsUrl : "ws://localhost:8000";+export const RP_ID = envRpId !== undefined && envRpId !== "" ? envRpId : "localhost";++export const WS_HEARTBEAT_INTERVAL = 30000;+export const WS_RECONNECT_DELAY = 5000;+export const MESSAGE_MAX_LENGTH = 50000;+export const USERNAME_MIN_LENGTH = 3;+export const USERNAME_MAX_LENGTH = 50;+export const DISPLAY_NAME_MIN_LENGTH = 1;+export const DISPLAY_NAME_MAX_LENGTH = 100;++export const USER_SEARCH_MIN_LENGTH = 2;+export const USER_SEARCH_DEFAULT_LIMIT = 10;diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/crypto-service.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/crypto-service.tsnew file mode 100644index 00000000..e60a650e--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/crypto-service.ts@@ -0,0 +1,281 @@+// ===================+// © AngelaMos | 2025+// crypto-service.ts+// ===================+import type {+ IdentityKeyPair,+ SignedPreKey,+ OneTimePreKey,+ DoubleRatchetState,+ EncryptedMessage,+} from "../types"+import { DEFAULT_ONE_TIME_PREKEY_COUNT } from "../types"+import {+ generateIdentityKeyPair,+ generateSignedPreKey,+ generateOneTimePreKeys,+ initiateX3DH,+ receiveX3DH,+} from "./x3dh"+import {+ initializeRatchetSender,+ initializeRatchetReceiver,+ encryptMessage,+ decryptMessage,+ serializeRatchetState,+ deserializeRatchetState,+} from "./double-ratchet"+import {+ saveIdentityKey,+ getIdentityKey,+ saveSignedPreKey,+ getLatestSignedPreKey,+ saveOneTimePreKeys,+ getUnusedOneTimePreKeys,+ getOneTimePreKey,+ markOneTimePreKeyUsed,+ saveRatchetState,+ getRatchetState,+ deleteRatchetState,+ clearAllKeys,+} from "./key-store"+import { api } from "../lib/api-client"+import {+ base64ToBytes,+ bytesToBase64,+ generateX25519KeyPair,+} from "./primitives"++class CryptoService {+ private userId: string | null = null+ private identityKeyPair: IdentityKeyPair | null = null+ private signedPreKey: SignedPreKey | null = null+ private ratchetStates = new Map<string, DoubleRatchetState>()+ private initialized = false++ async initialize(userId: string): Promise<void> {+ if (this.initialized && this.userId === userId) return++ this.userId = userId+ this.ratchetStates.clear()++ this.identityKeyPair = await getIdentityKey(userId)++ if (this.identityKeyPair === null) {+ await this.generateAndStoreKeys()+ }++ this.signedPreKey = await getLatestSignedPreKey(userId)++ if (this.signedPreKey === null || this.isSignedPreKeyExpired(this.signedPreKey)) {+ await this.rotateSignedPreKey()+ }++ const unusedOTPs = await getUnusedOneTimePreKeys(userId)+ if (unusedOTPs.length < DEFAULT_ONE_TIME_PREKEY_COUNT / 2) {+ await this.replenishOneTimePreKeys()+ }++ this.initialized = true+ }++ private isSignedPreKeyExpired(preKey: SignedPreKey): boolean {+ return new Date(preKey.expires_at) < new Date()+ }++ private async generateAndStoreKeys(): Promise<void> {+ if (!this.userId) throw new Error("User ID not set")++ this.identityKeyPair = await generateIdentityKeyPair()+ await saveIdentityKey(this.userId, this.identityKeyPair)++ this.signedPreKey = await generateSignedPreKey(this.identityKeyPair.ed25519_private)+ await saveSignedPreKey(this.userId, this.signedPreKey)++ const oneTimePreKeys = await generateOneTimePreKeys(DEFAULT_ONE_TIME_PREKEY_COUNT)+ await saveOneTimePreKeys(this.userId, oneTimePreKeys)++ await this.uploadPublicKeys(oneTimePreKeys)+ }++ private async rotateSignedPreKey(): Promise<void> {+ if (this.userId === null || this.identityKeyPair === null) throw new Error("Not initialized")++ this.signedPreKey = await generateSignedPreKey(this.identityKeyPair.ed25519_private)+ await saveSignedPreKey(this.userId, this.signedPreKey)++ await api.encryption.rotateSignedPrekey(this.userId)+ }++ private async replenishOneTimePreKeys(): Promise<void> {+ if (!this.userId) throw new Error("User ID not set")++ const newPreKeys = await generateOneTimePreKeys(DEFAULT_ONE_TIME_PREKEY_COUNT / 2)+ await saveOneTimePreKeys(this.userId, newPreKeys)+ }++ private async uploadPublicKeys(_oneTimePreKeys: OneTimePreKey[]): Promise<void> {+ if (!this.userId) throw new Error("User ID not set")+ await api.encryption.initializeKeys(this.userId)+ }++ async establishSession(peerId: string): Promise<void> {+ if (this.identityKeyPair === null) throw new Error("Identity keys not initialized")++ const existingState = await this.getRatchetState(peerId)+ if (existingState !== null) return++ const peerBundle = await api.encryption.getPrekeyBundle(peerId)++ const x3dhResult = await initiateX3DH(this.identityKeyPair, peerBundle)++ const peerIdentityKey = base64ToBytes(peerBundle.identity_key)++ const ratchetState = await initializeRatchetSender(+ peerId,+ x3dhResult.shared_key,+ peerIdentityKey+ )++ this.ratchetStates.set(peerId, ratchetState)++ const serialized = await serializeRatchetState(ratchetState)+ await saveRatchetState(serialized)+ }++ async handleIncomingSession(+ peerId: string,+ senderIdentityKey: string,+ ephemeralKey: string,+ oneTimePreKeyId: string | null+ ): Promise<void> {+ if (this.identityKeyPair === null || this.signedPreKey === null) {+ throw new Error("Keys not initialized")+ }++ let oneTimePreKey: OneTimePreKey | null = null+ if (oneTimePreKeyId !== null) {+ oneTimePreKey = await getOneTimePreKey(oneTimePreKeyId)+ if (oneTimePreKey !== null) {+ await markOneTimePreKeyUsed(oneTimePreKeyId)+ }+ }++ const sharedKey = await receiveX3DH(+ this.identityKeyPair,+ this.signedPreKey,+ oneTimePreKey,+ senderIdentityKey,+ ephemeralKey+ )++ const dhKeyPair = await generateX25519KeyPair()++ const ratchetState = await initializeRatchetReceiver(+ peerId,+ sharedKey,+ dhKeyPair+ )++ this.ratchetStates.set(peerId, ratchetState)++ const serialized = await serializeRatchetState(ratchetState)+ await saveRatchetState(serialized)+ }++ async encrypt(peerId: string, plaintext: string): Promise<{+ ciphertext: string+ nonce: string+ header: string+ }> {+ const state = await this.getRatchetState(peerId)+ if (state === null) {+ await this.establishSession(peerId)+ return await this.encrypt(peerId, plaintext)+ }++ const plaintextBytes = new TextEncoder().encode(plaintext)+ const encrypted = await encryptMessage(state, plaintextBytes)++ const serialized = await serializeRatchetState(state)+ await saveRatchetState(serialized)++ return {+ ciphertext: bytesToBase64(encrypted.ciphertext),+ nonce: bytesToBase64(encrypted.nonce),+ header: JSON.stringify(encrypted.header),+ }+ }++ async decrypt(+ peerId: string,+ ciphertext: string,+ nonce: string,+ header: string+ ): Promise<string> {+ let state = await this.getRatchetState(peerId)++ const parsedHeader = JSON.parse(header) as EncryptedMessage["header"]+ const encryptedMessage: EncryptedMessage = {+ ciphertext: base64ToBytes(ciphertext),+ nonce: base64ToBytes(nonce),+ header: parsedHeader,+ }++ if (state === null) {+ await this.handleIncomingSession(+ peerId,+ parsedHeader.dh_public_key,+ parsedHeader.dh_public_key,+ null+ )+ state = await this.getRatchetState(peerId)+ }++ if (state === null) {+ throw new Error("Failed to establish session")+ }++ const plaintextBytes = await decryptMessage(state, encryptedMessage)++ const serialized = await serializeRatchetState(state)+ await saveRatchetState(serialized)++ return new TextDecoder().decode(plaintextBytes)+ }++ private async getRatchetState(peerId: string): Promise<DoubleRatchetState | null> {+ let state = this.ratchetStates.get(peerId)++ if (state === undefined) {+ const serialized = await getRatchetState(peerId)+ if (serialized !== null && serialized !== undefined) {+ state = await deserializeRatchetState(serialized)+ this.ratchetStates.set(peerId, state)+ }+ }++ return state ?? null+ }++ async endSession(peerId: string): Promise<void> {+ this.ratchetStates.delete(peerId)+ await deleteRatchetState(peerId)+ }++ async clearAllSessions(): Promise<void> {+ this.ratchetStates.clear()+ await clearAllKeys()+ this.initialized = false+ }++ getPublicIdentityKey(): string | null {+ return this.identityKeyPair?.x25519_public ?? null+ }++ isInitialized(): boolean {+ return this.initialized+ }+}++export const cryptoService = new CryptoService()diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/double-ratchet.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/double-ratchet.tsnew file mode 100644index 00000000..f7f62cac--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/double-ratchet.ts@@ -0,0 +1,342 @@+// ===================+// © AngelaMos | 2025+// double-ratchet.ts+// ===================+import type {+ DoubleRatchetState,+ SerializedRatchetState,+ EncryptedMessage,+ MessageHeader,+} from "../types"+import { MAX_SKIP_MESSAGE_KEYS } from "../types"+import {+ generateX25519KeyPair,+ x25519DeriveSharedSecret,+ importX25519PublicKey,+ importX25519PrivateKey,+ exportPublicKey,+ exportPrivateKey,+ hkdfDerive,+ aesGcmEncrypt,+ aesGcmDecrypt,+ hmacSha256,+ concatBytes,+ bytesToBase64,+ base64ToBytes,+} from "./primitives"++const RATCHET_INFO = new TextEncoder().encode("DoubleRatchet")+const MESSAGE_KEY_INFO = new TextEncoder().encode("MessageKey")+const CHAIN_KEY_INFO = new TextEncoder().encode("ChainKey")++function createSkippedKeyId(dhPublicKey: Uint8Array, messageNumber: number): string {+ return `${bytesToBase64(dhPublicKey)}:${messageNumber}`+}++export async function initializeRatchetSender(+ peerId: string,+ sharedKey: Uint8Array,+ peerPublicKey: Uint8Array+): Promise<DoubleRatchetState> {+ const dhKeyPair = await generateX25519KeyPair()+ const dhPublicKey = await exportPublicKey(dhKeyPair.publicKey)++ const peerKey = await importX25519PublicKey(peerPublicKey)+ const dhOutput = await x25519DeriveSharedSecret(dhKeyPair.privateKey, peerKey)++ const rootChainInput = concatBytes(sharedKey, dhOutput)+ const derivedKeys = await hkdfDerive(rootChainInput, new Uint8Array(32), RATCHET_INFO, 64)++ const rootKey = derivedKeys.slice(0, 32)+ const sendingChainKey = derivedKeys.slice(32, 64)++ return {+ peer_id: peerId,+ root_key: rootKey,+ sending_chain_key: sendingChainKey,+ receiving_chain_key: null,+ dh_private_key: dhKeyPair,+ dh_public_key: dhPublicKey,+ dh_peer_public_key: peerPublicKey,+ sending_message_number: 0,+ receiving_message_number: 0,+ previous_sending_chain_length: 0,+ skipped_message_keys: new Map(),+ }+}++export async function initializeRatchetReceiver(+ peerId: string,+ sharedKey: Uint8Array,+ dhKeyPair: CryptoKeyPair+): Promise<DoubleRatchetState> {+ const dhPublicKey = await exportPublicKey(dhKeyPair.publicKey)++ return {+ peer_id: peerId,+ root_key: sharedKey,+ sending_chain_key: new Uint8Array(0),+ receiving_chain_key: null,+ dh_private_key: dhKeyPair,+ dh_public_key: dhPublicKey,+ dh_peer_public_key: null,+ sending_message_number: 0,+ receiving_message_number: 0,+ previous_sending_chain_length: 0,+ skipped_message_keys: new Map(),+ }+}++async function deriveMessageKey(chainKey: Uint8Array): Promise<{+ messageKey: Uint8Array+ nextChainKey: Uint8Array+}> {+ const messageKey = await hmacSha256(chainKey, MESSAGE_KEY_INFO)+ const nextChainKey = await hmacSha256(chainKey, CHAIN_KEY_INFO)++ return {+ messageKey: messageKey.slice(0, 32),+ nextChainKey,+ }+}++async function performDHRatchet(+ state: DoubleRatchetState,+ peerPublicKey: Uint8Array+): Promise<void> {+ if (state.dh_private_key === null) {+ throw new Error("DH private key not initialized")+ }++ state.previous_sending_chain_length = state.sending_message_number+ state.sending_message_number = 0+ state.receiving_message_number = 0+ state.dh_peer_public_key = peerPublicKey++ const peerKey = await importX25519PublicKey(peerPublicKey)+ const dhOutput = await x25519DeriveSharedSecret(state.dh_private_key.privateKey, peerKey)++ const rootChainInput = concatBytes(state.root_key, dhOutput)+ const derivedKeys = await hkdfDerive(rootChainInput, new Uint8Array(32), RATCHET_INFO, 64)++ state.root_key = derivedKeys.slice(0, 32)+ state.receiving_chain_key = derivedKeys.slice(32, 64)++ const newDHKeyPair = await generateX25519KeyPair()+ state.dh_private_key = newDHKeyPair+ state.dh_public_key = await exportPublicKey(newDHKeyPair.publicKey)++ const newDHOutput = await x25519DeriveSharedSecret(newDHKeyPair.privateKey, peerKey)+ const newRootChainInput = concatBytes(state.root_key, newDHOutput)+ const newDerivedKeys = await hkdfDerive(newRootChainInput, new Uint8Array(32), RATCHET_INFO, 64)++ state.root_key = newDerivedKeys.slice(0, 32)+ state.sending_chain_key = newDerivedKeys.slice(32, 64)+}++async function skipMessageKeys(+ state: DoubleRatchetState,+ until: number+): Promise<void> {+ if (state.receiving_chain_key === null || state.dh_peer_public_key === null) return++ if (until - state.receiving_message_number > MAX_SKIP_MESSAGE_KEYS) {+ throw new Error("Too many skipped messages")+ }++ while (state.receiving_message_number < until) {+ const { messageKey, nextChainKey } = await deriveMessageKey(state.receiving_chain_key)++ const keyId = createSkippedKeyId(state.dh_peer_public_key, state.receiving_message_number)+ state.skipped_message_keys.set(keyId, messageKey)++ state.receiving_chain_key = nextChainKey+ state.receiving_message_number+++ }+}++export async function encryptMessage(+ state: DoubleRatchetState,+ plaintext: Uint8Array,+ associatedData?: Uint8Array+): Promise<EncryptedMessage> {+ if (state.dh_public_key === null) {+ throw new Error("DH public key not initialized")+ }++ const { messageKey, nextChainKey } = await deriveMessageKey(state.sending_chain_key)++ const header: MessageHeader = {+ dh_public_key: bytesToBase64(state.dh_public_key),+ message_number: state.sending_message_number,+ previous_chain_length: state.previous_sending_chain_length,+ }++ const headerBytes = new TextEncoder().encode(JSON.stringify(header))+ const aad = associatedData !== undefined ? concatBytes(associatedData, headerBytes) : headerBytes++ const { ciphertext, nonce } = await aesGcmEncrypt(messageKey, plaintext, aad)++ state.sending_chain_key = nextChainKey+ state.sending_message_number++++ return {+ ciphertext,+ nonce,+ header,+ }+}++export async function decryptMessage(+ state: DoubleRatchetState,+ message: EncryptedMessage,+ associatedData?: Uint8Array+): Promise<Uint8Array> {+ const peerPublicKey = base64ToBytes(message.header.dh_public_key)++ const skippedKeyId = createSkippedKeyId(peerPublicKey, message.header.message_number)+ const skippedKey = state.skipped_message_keys.get(skippedKeyId)++ if (skippedKey !== undefined) {+ state.skipped_message_keys.delete(skippedKeyId)++ const headerBytes = new TextEncoder().encode(JSON.stringify(message.header))+ const aad = associatedData !== undefined ? concatBytes(associatedData, headerBytes) : headerBytes++ return await aesGcmDecrypt(skippedKey, message.ciphertext, message.nonce, aad)+ }++ const isDifferentRatchetKey =+ state.dh_peer_public_key === null ||+ bytesToBase64(state.dh_peer_public_key) !== message.header.dh_public_key++ if (isDifferentRatchetKey) {+ if (state.receiving_chain_key !== null && state.dh_peer_public_key !== null) {+ await skipMessageKeys(state, message.header.previous_chain_length)+ }++ await performDHRatchet(state, peerPublicKey)+ }++ await skipMessageKeys(state, message.header.message_number)++ if (state.receiving_chain_key === null) {+ throw new Error("Receiving chain key not initialized after ratchet")+ }++ const { messageKey, nextChainKey } = await deriveMessageKey(state.receiving_chain_key)++ const headerBytes = new TextEncoder().encode(JSON.stringify(message.header))+ const aad = associatedData !== undefined ? concatBytes(associatedData, headerBytes) : headerBytes++ const plaintext = await aesGcmDecrypt(messageKey, message.ciphertext, message.nonce, aad)++ state.receiving_chain_key = nextChainKey+ state.receiving_message_number++++ return plaintext+}++export async function serializeRatchetState(+ state: DoubleRatchetState+): Promise<SerializedRatchetState> {+ let dhPrivateKey: string | null = null+ if (state.dh_private_key !== null) {+ const privateKeyBytes = await exportPrivateKey(state.dh_private_key.privateKey)+ dhPrivateKey = bytesToBase64(privateKeyBytes)+ }++ const skippedKeys: Record<string, string> = {}+ for (const [key, value] of state.skipped_message_keys) {+ skippedKeys[key] = bytesToBase64(value)+ }++ return {+ peer_id: state.peer_id,+ root_key: bytesToBase64(state.root_key),+ sending_chain_key: bytesToBase64(state.sending_chain_key),+ receiving_chain_key: state.receiving_chain_key !== null+ ? bytesToBase64(state.receiving_chain_key)+ : null,+ dh_private_key: dhPrivateKey,+ dh_public_key: state.dh_public_key !== null ? bytesToBase64(state.dh_public_key) : null,+ dh_peer_public_key: state.dh_peer_public_key !== null+ ? bytesToBase64(state.dh_peer_public_key)+ : null,+ sending_message_number: state.sending_message_number,+ receiving_message_number: state.receiving_message_number,+ previous_sending_chain_length: state.previous_sending_chain_length,+ skipped_message_keys: skippedKeys,+ }+}++export async function deserializeRatchetState(+ serialized: SerializedRatchetState+): Promise<DoubleRatchetState> {+ let dhPrivateKey: CryptoKeyPair | null = null+ if (serialized.dh_private_key && serialized.dh_public_key) {+ const privateKeyBytes = base64ToBytes(serialized.dh_private_key)+ const publicKeyBytes = base64ToBytes(serialized.dh_public_key)++ const privateKey = await importX25519PrivateKey(privateKeyBytes)+ const publicKey = await importX25519PublicKey(publicKeyBytes)++ dhPrivateKey = { privateKey, publicKey }+ }++ const skippedKeys = new Map<string, Uint8Array>()+ for (const [key, value] of Object.entries(serialized.skipped_message_keys)) {+ skippedKeys.set(key, base64ToBytes(value))+ }++ return {+ peer_id: serialized.peer_id,+ root_key: base64ToBytes(serialized.root_key),+ sending_chain_key: base64ToBytes(serialized.sending_chain_key),+ receiving_chain_key: serialized.receiving_chain_key+ ? base64ToBytes(serialized.receiving_chain_key)+ : null,+ dh_private_key: dhPrivateKey,+ dh_public_key: serialized.dh_public_key+ ? base64ToBytes(serialized.dh_public_key)+ : null,+ dh_peer_public_key: serialized.dh_peer_public_key+ ? base64ToBytes(serialized.dh_peer_public_key)+ : null,+ sending_message_number: serialized.sending_message_number,+ receiving_message_number: serialized.receiving_message_number,+ previous_sending_chain_length: serialized.previous_sending_chain_length,+ skipped_message_keys: skippedKeys,+ }+}++export function serializeMessageHeader(header: MessageHeader): string {+ return JSON.stringify(header)+}++export function deserializeMessageHeader(serialized: string): MessageHeader {+ return JSON.parse(serialized) as MessageHeader+}++export function serializeEncryptedMessage(message: EncryptedMessage): string {+ return JSON.stringify({+ ciphertext: bytesToBase64(message.ciphertext),+ nonce: bytesToBase64(message.nonce),+ header: message.header,+ })+}++interface SerializedEncryptedMessage {+ ciphertext: string+ nonce: string+ header: MessageHeader+}++export function deserializeEncryptedMessage(serialized: string): EncryptedMessage {+ const parsed = JSON.parse(serialized) as SerializedEncryptedMessage+ return {+ ciphertext: base64ToBytes(parsed.ciphertext),+ nonce: base64ToBytes(parsed.nonce),+ header: parsed.header,+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/index.tsnew file mode 100644index 00000000..a8624282--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/index.ts@@ -0,0 +1,9 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export * from "./primitives"+export * from "./key-store"+export * from "./x3dh"+export * from "./double-ratchet"+export * from "./crypto-service"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/key-store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/key-store.tsnew file mode 100644index 00000000..375e457a--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/key-store.ts@@ -0,0 +1,389 @@+// ===================+// © AngelaMos | 2025+// key-store.ts+// ===================+import type {+ IdentityKeyPair,+ SignedPreKey,+ OneTimePreKey,+ SerializedRatchetState,+} from "../types"++const DB_NAME = "encrypted-chat-keys"+const DB_VERSION = 1++const STORES = {+ IDENTITY: "identity_keys",+ SIGNED_PREKEYS: "signed_prekeys",+ ONE_TIME_PREKEYS: "one_time_prekeys",+ RATCHET_STATES: "ratchet_states",+} as const++let db: IDBDatabase | null = null++async function openDatabase(): Promise<IDBDatabase> {+ if (db !== null) return db++ return new Promise((resolve, reject) => {+ const request = indexedDB.open(DB_NAME, DB_VERSION)++ request.onerror = () => {+ reject(new Error("Failed to open key database"))+ }++ request.onsuccess = () => {+ db = request.result+ resolve(db)+ }++ request.onupgradeneeded = (event) => {+ const database = (event.target as IDBOpenDBRequest).result++ if (!database.objectStoreNames.contains(STORES.IDENTITY)) {+ database.createObjectStore(STORES.IDENTITY, { keyPath: "userId" })+ }++ if (!database.objectStoreNames.contains(STORES.SIGNED_PREKEYS)) {+ const signedStore = database.createObjectStore(STORES.SIGNED_PREKEYS, { keyPath: "id" })+ signedStore.createIndex("userId", "userId", { unique: false })+ }++ if (!database.objectStoreNames.contains(STORES.ONE_TIME_PREKEYS)) {+ const otpStore = database.createObjectStore(STORES.ONE_TIME_PREKEYS, { keyPath: "id" })+ otpStore.createIndex("userId", "userId", { unique: false })+ otpStore.createIndex("isUsed", "is_used", { unique: false })+ }++ if (!database.objectStoreNames.contains(STORES.RATCHET_STATES)) {+ database.createObjectStore(STORES.RATCHET_STATES, { keyPath: "peer_id" })+ }+ }+ })+}++async function performTransaction<T>(+ storeName: string,+ mode: IDBTransactionMode,+ operation: (store: IDBObjectStore) => IDBRequest<T>+): Promise<T> {+ const database = await openDatabase()++ return new Promise((resolve, reject) => {+ const transaction = database.transaction(storeName, mode)+ const store = transaction.objectStore(storeName)+ const request = operation(store)++ request.onsuccess = () => resolve(request.result)+ request.onerror = () => reject(new Error(request.error?.message ?? "Database operation failed"))+ })+}++export interface StoredIdentityKey extends IdentityKeyPair {+ userId: string+}++export async function saveIdentityKey(+ userId: string,+ keyPair: IdentityKeyPair+): Promise<void> {+ const stored: StoredIdentityKey = {+ userId,+ ...keyPair,+ }++ await performTransaction(+ STORES.IDENTITY,+ "readwrite",+ (store) => store.put(stored)+ )+}++export async function getIdentityKey(userId: string): Promise<IdentityKeyPair | null> {+ const result = await performTransaction<StoredIdentityKey | undefined>(+ STORES.IDENTITY,+ "readonly",+ (store) => store.get(userId) as IDBRequest<StoredIdentityKey | undefined>+ )++ if (result === undefined) return null++ return {+ x25519_private: result.x25519_private,+ x25519_public: result.x25519_public,+ ed25519_private: result.ed25519_private,+ ed25519_public: result.ed25519_public,+ }+}++export async function deleteIdentityKey(userId: string): Promise<void> {+ await performTransaction(+ STORES.IDENTITY,+ "readwrite",+ (store) => store.delete(userId)+ )+}++export interface StoredSignedPreKey extends SignedPreKey {+ userId: string+}++export async function saveSignedPreKey(+ userId: string,+ preKey: SignedPreKey+): Promise<void> {+ const stored: StoredSignedPreKey = {+ userId,+ ...preKey,+ }++ await performTransaction(+ STORES.SIGNED_PREKEYS,+ "readwrite",+ (store) => store.put(stored)+ )+}++export async function getSignedPreKey(id: string): Promise<SignedPreKey | null> {+ const result = await performTransaction<StoredSignedPreKey | undefined>(+ STORES.SIGNED_PREKEYS,+ "readonly",+ (store) => store.get(id) as IDBRequest<StoredSignedPreKey | undefined>+ )++ if (result === undefined) return null++ return {+ id: result.id,+ private_key: result.private_key,+ public_key: result.public_key,+ signature: result.signature,+ created_at: result.created_at,+ expires_at: result.expires_at,+ }+}++export async function getLatestSignedPreKey(userId: string): Promise<SignedPreKey | null> {+ const database = await openDatabase()++ return new Promise((resolve, reject) => {+ const transaction = database.transaction(STORES.SIGNED_PREKEYS, "readonly")+ const store = transaction.objectStore(STORES.SIGNED_PREKEYS)+ const index = store.index("userId")+ const request = index.getAll(userId)++ request.onsuccess = () => {+ const results = request.result as StoredSignedPreKey[]+ if (results.length === 0) {+ resolve(null)+ return+ }++ const sorted = results.sort(+ (a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime()+ )++ const latest = sorted[0]+ resolve({+ id: latest.id,+ private_key: latest.private_key,+ public_key: latest.public_key,+ signature: latest.signature,+ created_at: latest.created_at,+ expires_at: latest.expires_at,+ })+ }++ request.onerror = () => reject(new Error(request.error?.message ?? "Failed to get signed prekey"))+ })+}++export async function deleteSignedPreKey(id: string): Promise<void> {+ await performTransaction(+ STORES.SIGNED_PREKEYS,+ "readwrite",+ (store) => store.delete(id)+ )+}++export interface StoredOneTimePreKey extends OneTimePreKey {+ userId: string+}++export async function saveOneTimePreKey(+ userId: string,+ preKey: OneTimePreKey+): Promise<void> {+ const stored: StoredOneTimePreKey = {+ userId,+ ...preKey,+ }++ await performTransaction(+ STORES.ONE_TIME_PREKEYS,+ "readwrite",+ (store) => store.put(stored)+ )+}++export async function saveOneTimePreKeys(+ userId: string,+ preKeys: OneTimePreKey[]+): Promise<void> {+ const database = await openDatabase()++ return new Promise((resolve, reject) => {+ const transaction = database.transaction(STORES.ONE_TIME_PREKEYS, "readwrite")+ const store = transaction.objectStore(STORES.ONE_TIME_PREKEYS)++ transaction.oncomplete = () => resolve()+ transaction.onerror = () => reject(new Error(transaction.error?.message ?? "Failed to save one-time prekeys"))++ for (const preKey of preKeys) {+ const stored: StoredOneTimePreKey = {+ userId,+ ...preKey,+ }+ store.put(stored)+ }+ })+}++export async function getOneTimePreKey(id: string): Promise<OneTimePreKey | null> {+ const result = await performTransaction<StoredOneTimePreKey | undefined>(+ STORES.ONE_TIME_PREKEYS,+ "readonly",+ (store) => store.get(id) as IDBRequest<StoredOneTimePreKey | undefined>+ )++ if (result === undefined) return null++ return {+ id: result.id,+ private_key: result.private_key,+ public_key: result.public_key,+ is_used: result.is_used,+ created_at: result.created_at,+ }+}++export async function getUnusedOneTimePreKeys(userId: string): Promise<OneTimePreKey[]> {+ const database = await openDatabase()++ return new Promise((resolve, reject) => {+ const transaction = database.transaction(STORES.ONE_TIME_PREKEYS, "readonly")+ const store = transaction.objectStore(STORES.ONE_TIME_PREKEYS)+ const index = store.index("userId")+ const request = index.getAll(userId)++ request.onsuccess = () => {+ const results = request.result as StoredOneTimePreKey[]+ const unused = results+ .filter((r) => !r.is_used)+ .map((r) => ({+ id: r.id,+ private_key: r.private_key,+ public_key: r.public_key,+ is_used: r.is_used,+ created_at: r.created_at,+ }))++ resolve(unused)+ }++ request.onerror = () => reject(new Error(request.error?.message ?? "Failed to get unused one-time prekeys"))+ })+}++export async function markOneTimePreKeyUsed(id: string): Promise<void> {+ const preKey = await performTransaction<StoredOneTimePreKey | undefined>(+ STORES.ONE_TIME_PREKEYS,+ "readonly",+ (store) => store.get(id) as IDBRequest<StoredOneTimePreKey | undefined>+ )++ if (preKey === undefined) return++ preKey.is_used = true++ await performTransaction(+ STORES.ONE_TIME_PREKEYS,+ "readwrite",+ (store) => store.put(preKey)+ )+}++export async function deleteOneTimePreKey(id: string): Promise<void> {+ await performTransaction(+ STORES.ONE_TIME_PREKEYS,+ "readwrite",+ (store) => store.delete(id)+ )+}++export async function saveRatchetState(state: SerializedRatchetState): Promise<void> {+ await performTransaction(+ STORES.RATCHET_STATES,+ "readwrite",+ (store) => store.put(state)+ )+}++export async function getRatchetState(peerId: string): Promise<SerializedRatchetState | null> {+ const result = await performTransaction<SerializedRatchetState | undefined>(+ STORES.RATCHET_STATES,+ "readonly",+ (store) => store.get(peerId) as IDBRequest<SerializedRatchetState | undefined>+ )++ return result ?? null+}++export async function deleteRatchetState(peerId: string): Promise<void> {+ await performTransaction(+ STORES.RATCHET_STATES,+ "readwrite",+ (store) => store.delete(peerId)+ )+}++export async function getAllRatchetStates(): Promise<SerializedRatchetState[]> {+ const database = await openDatabase()++ return new Promise((resolve, reject) => {+ const transaction = database.transaction(STORES.RATCHET_STATES, "readonly")+ const store = transaction.objectStore(STORES.RATCHET_STATES)+ const request = store.getAll()++ request.onsuccess = () => resolve(request.result as SerializedRatchetState[])+ request.onerror = () => reject(new Error(request.error?.message ?? "Failed to get all ratchet states"))+ })+}++export async function clearAllKeys(): Promise<void> {+ const database = await openDatabase()++ return new Promise((resolve, reject) => {+ const storeNames = [+ STORES.IDENTITY,+ STORES.SIGNED_PREKEYS,+ STORES.ONE_TIME_PREKEYS,+ STORES.RATCHET_STATES,+ ]++ const transaction = database.transaction(storeNames, "readwrite")++ transaction.oncomplete = () => resolve()+ transaction.onerror = () => reject(new Error(transaction.error?.message ?? "Failed to clear all keys"))++ for (const storeName of storeNames) {+ transaction.objectStore(storeName).clear()+ }+ })+}++export function closeDatabase(): void {+ if (db !== null) {+ db.close()+ db = null+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/primitives.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/primitives.tsnew file mode 100644index 00000000..6c3b82ce--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/primitives.ts@@ -0,0 +1,369 @@+// ===================+// © AngelaMos | 2025+// primitives.ts+// ===================+import {+ X25519_KEY_SIZE,+ AES_GCM_KEY_SIZE,+ AES_GCM_NONCE_SIZE,+ HKDF_OUTPUT_SIZE,+} from "../types"++const crypto = globalThis.crypto+const subtle = crypto.subtle++export async function generateX25519KeyPair(): Promise<CryptoKeyPair> {+ const keyPair = await subtle.generateKey(+ {+ name: "X25519",+ },+ true,+ ["deriveBits"]+ ) as CryptoKeyPair+ return keyPair+}++export async function x25519DeriveSharedSecret(+ privateKey: CryptoKey,+ publicKey: CryptoKey+): Promise<Uint8Array> {+ const sharedBits = await subtle.deriveBits(+ {+ name: "X25519",+ public: publicKey,+ },+ privateKey,+ X25519_KEY_SIZE * 8+ )+ return new Uint8Array(sharedBits)+}++export async function importX25519PublicKey(keyBytes: Uint8Array): Promise<CryptoKey> {+ return await subtle.importKey(+ "raw",+ keyBytes.buffer as ArrayBuffer,+ {+ name: "X25519",+ },+ true,+ []+ )+}++export async function importX25519PrivateKey(keyBytes: Uint8Array): Promise<CryptoKey> {+ return await subtle.importKey(+ "raw",+ keyBytes.buffer as ArrayBuffer,+ {+ name: "X25519",+ },+ true,+ ["deriveBits"]+ )+}++export async function exportPublicKey(key: CryptoKey): Promise<Uint8Array> {+ const exported = await subtle.exportKey("raw", key)+ return new Uint8Array(exported)+}++export async function exportPrivateKey(key: CryptoKey): Promise<Uint8Array> {+ const exported = await subtle.exportKey("raw", key)+ return new Uint8Array(exported)+}++export async function generateEd25519KeyPair(): Promise<CryptoKeyPair> {+ return await subtle.generateKey(+ {+ name: "Ed25519",+ },+ true,+ ["sign", "verify"]+ )+}++export async function ed25519Sign(+ privateKey: CryptoKey,+ data: Uint8Array+): Promise<Uint8Array> {+ const signature = await subtle.sign(+ {+ name: "Ed25519",+ },+ privateKey,+ data.buffer as ArrayBuffer+ )+ return new Uint8Array(signature)+}++export async function ed25519Verify(+ publicKey: CryptoKey,+ signature: Uint8Array,+ data: Uint8Array+): Promise<boolean> {+ return await subtle.verify(+ {+ name: "Ed25519",+ },+ publicKey,+ signature.buffer as ArrayBuffer,+ data.buffer as ArrayBuffer+ )+}++export async function importEd25519PublicKey(keyBytes: Uint8Array): Promise<CryptoKey> {+ return await subtle.importKey(+ "raw",+ keyBytes.buffer as ArrayBuffer,+ {+ name: "Ed25519",+ },+ true,+ ["verify"]+ )+}++export async function importEd25519PrivateKey(keyBytes: Uint8Array): Promise<CryptoKey> {+ return await subtle.importKey(+ "raw",+ keyBytes.buffer as ArrayBuffer,+ {+ name: "Ed25519",+ },+ true,+ ["sign"]+ )+}++export async function hkdfDerive(+ inputKeyMaterial: Uint8Array,+ salt: Uint8Array,+ info: Uint8Array,+ outputLength: number = HKDF_OUTPUT_SIZE+): Promise<Uint8Array> {+ const baseKey = await subtle.importKey(+ "raw",+ inputKeyMaterial.buffer as ArrayBuffer,+ { name: "HKDF" },+ false,+ ["deriveBits"]+ )++ const derivedBits = await subtle.deriveBits(+ {+ name: "HKDF",+ hash: "SHA-256",+ salt: salt.buffer as ArrayBuffer,+ info: info.buffer as ArrayBuffer,+ },+ baseKey,+ outputLength * 8+ )++ return new Uint8Array(derivedBits)+}++export async function hkdfDeriveKey(+ inputKeyMaterial: Uint8Array,+ salt: Uint8Array,+ info: Uint8Array+): Promise<CryptoKey> {+ const keyMaterial = await subtle.importKey(+ "raw",+ inputKeyMaterial.buffer as ArrayBuffer,+ { name: "HKDF" },+ false,+ ["deriveKey"]+ )++ return await subtle.deriveKey(+ {+ name: "HKDF",+ hash: "SHA-256",+ salt: salt.buffer as ArrayBuffer,+ info: info.buffer as ArrayBuffer,+ },+ keyMaterial,+ {+ name: "AES-GCM",+ length: AES_GCM_KEY_SIZE * 8,+ },+ true,+ ["encrypt", "decrypt"]+ )+}++export async function aesGcmEncrypt(+ key: CryptoKey | Uint8Array,+ plaintext: Uint8Array,+ associatedData?: Uint8Array+): Promise<{ ciphertext: Uint8Array; nonce: Uint8Array }> {+ let cryptoKey: CryptoKey++ if (key instanceof Uint8Array) {+ cryptoKey = await subtle.importKey(+ "raw",+ key.buffer as ArrayBuffer,+ { name: "AES-GCM", length: AES_GCM_KEY_SIZE * 8 },+ false,+ ["encrypt"]+ )+ } else {+ cryptoKey = key+ }++ const nonce = generateRandomBytes(AES_GCM_NONCE_SIZE)++ const ciphertext = await subtle.encrypt(+ {+ name: "AES-GCM",+ iv: nonce.buffer as ArrayBuffer,+ additionalData: associatedData?.buffer as ArrayBuffer | undefined,+ },+ cryptoKey,+ plaintext.buffer as ArrayBuffer+ )++ return {+ ciphertext: new Uint8Array(ciphertext),+ nonce,+ }+}++export async function aesGcmDecrypt(+ key: CryptoKey | Uint8Array,+ ciphertext: Uint8Array,+ nonce: Uint8Array,+ associatedData?: Uint8Array+): Promise<Uint8Array> {+ let cryptoKey: CryptoKey++ if (key instanceof Uint8Array) {+ cryptoKey = await subtle.importKey(+ "raw",+ key.buffer as ArrayBuffer,+ { name: "AES-GCM", length: AES_GCM_KEY_SIZE * 8 },+ false,+ ["decrypt"]+ )+ } else {+ cryptoKey = key+ }++ const plaintext = await subtle.decrypt(+ {+ name: "AES-GCM",+ iv: nonce.buffer as ArrayBuffer,+ additionalData: associatedData?.buffer as ArrayBuffer | undefined,+ },+ cryptoKey,+ ciphertext.buffer as ArrayBuffer+ )++ return new Uint8Array(plaintext)+}++export function generateRandomBytes(length: number): Uint8Array {+ const bytes = new Uint8Array(length)+ crypto.getRandomValues(bytes)+ return bytes+}++export async function sha256(data: Uint8Array): Promise<Uint8Array> {+ const hash = await subtle.digest("SHA-256", data.buffer as ArrayBuffer)+ return new Uint8Array(hash)+}++export async function sha512(data: Uint8Array): Promise<Uint8Array> {+ const hash = await subtle.digest("SHA-512", data.buffer as ArrayBuffer)+ return new Uint8Array(hash)+}++export async function hmacSha256(+ key: Uint8Array,+ data: Uint8Array+): Promise<Uint8Array> {+ const cryptoKey = await subtle.importKey(+ "raw",+ key.buffer as ArrayBuffer,+ {+ name: "HMAC",+ hash: "SHA-256",+ },+ false,+ ["sign"]+ )++ const signature = await subtle.sign("HMAC", cryptoKey, data.buffer as ArrayBuffer)+ return new Uint8Array(signature)+}++export async function hmacSha256Verify(+ key: Uint8Array,+ signature: Uint8Array,+ data: Uint8Array+): Promise<boolean> {+ const cryptoKey = await subtle.importKey(+ "raw",+ key.buffer as ArrayBuffer,+ {+ name: "HMAC",+ hash: "SHA-256",+ },+ false,+ ["verify"]+ )++ return await subtle.verify("HMAC", cryptoKey, signature.buffer as ArrayBuffer, data.buffer as ArrayBuffer)+}++export function concatBytes(...arrays: Uint8Array[]): Uint8Array {+ const totalLength = arrays.reduce((sum, arr) => sum + arr.length, 0)+ const result = new Uint8Array(totalLength)+ let offset = 0++ for (const arr of arrays) {+ result.set(arr, offset)+ offset += arr.length+ }++ return result+}++export function bytesToBase64(bytes: Uint8Array): string {+ return btoa(String.fromCharCode(...bytes))+}++export function base64ToBytes(base64: string): Uint8Array {+ const binary = atob(base64)+ const bytes = new Uint8Array(binary.length)+ for (let i = 0; i < binary.length; i++) {+ bytes[i] = binary.charCodeAt(i)+ }+ return bytes+}++export function bytesToHex(bytes: Uint8Array): string {+ return Array.from(bytes)+ .map((b) => b.toString(16).padStart(2, "0"))+ .join("")+}++export function hexToBytes(hex: string): Uint8Array {+ const bytes = new Uint8Array(hex.length / 2)+ for (let i = 0; i < hex.length; i += 2) {+ bytes[i / 2] = parseInt(hex.substring(i, i + 2), 16)+ }+ return bytes+}++export function constantTimeEqual(a: Uint8Array, b: Uint8Array): boolean {+ if (a.length !== b.length) return false++ let result = 0+ for (let i = 0; i < a.length; i++) {+ result |= a[i] ^ b[i]+ }++ return result === 0+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/x3dh.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/x3dh.tsnew file mode 100644index 00000000..532c0de5--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/crypto/x3dh.ts@@ -0,0 +1,235 @@+// ===================+// © AngelaMos | 2025+// x3dh.ts+// ===================+import type {+ PreKeyBundle,+ X3DHResult,+ X3DHHeader,+ IdentityKeyPair,+ SignedPreKey,+ OneTimePreKey,+} from "../types"+import {+ generateX25519KeyPair,+ x25519DeriveSharedSecret,+ importX25519PublicKey,+ importX25519PrivateKey,+ exportPublicKey,+ exportPrivateKey,+ generateEd25519KeyPair,+ ed25519Sign,+ ed25519Verify,+ importEd25519PublicKey,+ importEd25519PrivateKey,+ hkdfDerive,+ concatBytes,+ bytesToBase64,+ base64ToBytes,+ generateRandomBytes,+} from "./primitives"+import { HKDF_OUTPUT_SIZE, DEFAULT_ONE_TIME_PREKEY_COUNT } from "../types"++const X3DH_INFO = new TextEncoder().encode("X3DH")+const EMPTY_SALT = new Uint8Array(HKDF_OUTPUT_SIZE)++export async function generateIdentityKeyPair(): Promise<IdentityKeyPair> {+ const x25519KeyPair = await generateX25519KeyPair()+ const ed25519KeyPair = await generateEd25519KeyPair()++ const x25519Public = await exportPublicKey(x25519KeyPair.publicKey)+ const x25519Private = await exportPrivateKey(x25519KeyPair.privateKey)+ const ed25519Public = await exportPublicKey(ed25519KeyPair.publicKey)+ const ed25519Private = await exportPrivateKey(ed25519KeyPair.privateKey)++ return {+ x25519_public: bytesToBase64(x25519Public),+ x25519_private: bytesToBase64(x25519Private),+ ed25519_public: bytesToBase64(ed25519Public),+ ed25519_private: bytesToBase64(ed25519Private),+ }+}++export async function generateSignedPreKey(+ identityPrivateKey: string+): Promise<SignedPreKey> {+ const keyPair = await generateX25519KeyPair()+ const publicKey = await exportPublicKey(keyPair.publicKey)+ const privateKey = await exportPrivateKey(keyPair.privateKey)++ const signingKey = await importEd25519PrivateKey(base64ToBytes(identityPrivateKey))+ const signature = await ed25519Sign(signingKey, publicKey)++ const id = bytesToBase64(generateRandomBytes(16))+ const now = new Date()+ const expiresAt = new Date(now.getTime() + 48 * 60 * 60 * 1000)++ return {+ id,+ public_key: bytesToBase64(publicKey),+ private_key: bytesToBase64(privateKey),+ signature: bytesToBase64(signature),+ created_at: now.toISOString(),+ expires_at: expiresAt.toISOString(),+ }+}++export async function generateOneTimePreKeys(+ count: number = DEFAULT_ONE_TIME_PREKEY_COUNT+): Promise<OneTimePreKey[]> {+ const preKeys: OneTimePreKey[] = []++ for (let i = 0; i < count; i++) {+ const keyPair = await generateX25519KeyPair()+ const publicKey = await exportPublicKey(keyPair.publicKey)+ const privateKey = await exportPrivateKey(keyPair.privateKey)++ preKeys.push({+ id: bytesToBase64(generateRandomBytes(16)),+ public_key: bytesToBase64(publicKey),+ private_key: bytesToBase64(privateKey),+ is_used: false,+ created_at: new Date().toISOString(),+ })+ }++ return preKeys+}++export async function verifySignedPreKey(+ identityPublicKey: string,+ signedPreKeyPublic: string,+ signature: string+): Promise<boolean> {+ try {+ const verifyKey = await importEd25519PublicKey(base64ToBytes(identityPublicKey))+ const publicKeyBytes = base64ToBytes(signedPreKeyPublic)+ const signatureBytes = base64ToBytes(signature)++ return await ed25519Verify(verifyKey, signatureBytes, publicKeyBytes)+ } catch {+ return false+ }+}++export async function initiateX3DH(+ identityKeyPair: IdentityKeyPair,+ recipientBundle: PreKeyBundle+): Promise<X3DHResult> {+ const signatureValid = await verifySignedPreKey(+ recipientBundle.identity_key,+ recipientBundle.signed_prekey,+ recipientBundle.signed_prekey_signature+ )++ if (!signatureValid) {+ throw new Error("Invalid signed prekey signature")+ }++ const ephemeralKeyPair = await generateX25519KeyPair()+ const ephemeralPublic = await exportPublicKey(ephemeralKeyPair.publicKey)++ const senderIdentityPrivate = await importX25519PrivateKey(+ base64ToBytes(identityKeyPair.x25519_private)+ )+ const recipientIdentityPublic = await importX25519PublicKey(+ base64ToBytes(recipientBundle.identity_key)+ )+ const recipientSignedPreKeyPublic = await importX25519PublicKey(+ base64ToBytes(recipientBundle.signed_prekey)+ )++ const dh1 = await x25519DeriveSharedSecret(senderIdentityPrivate, recipientSignedPreKeyPublic)+ const dh2 = await x25519DeriveSharedSecret(ephemeralKeyPair.privateKey, recipientIdentityPublic)+ const dh3 = await x25519DeriveSharedSecret(ephemeralKeyPair.privateKey, recipientSignedPreKeyPublic)++ let dhResults: Uint8Array[]+ let usedOneTimePreKey = false++ if (recipientBundle.one_time_prekey) {+ const recipientOneTimePreKeyPublic = await importX25519PublicKey(+ base64ToBytes(recipientBundle.one_time_prekey)+ )+ const dh4 = await x25519DeriveSharedSecret(ephemeralKeyPair.privateKey, recipientOneTimePreKeyPublic)+ dhResults = [dh1, dh2, dh3, dh4]+ usedOneTimePreKey = true+ } else {+ dhResults = [dh1, dh2, dh3]+ }++ const concatenated = concatBytes(...dhResults)+ const sharedKey = await hkdfDerive(concatenated, EMPTY_SALT, X3DH_INFO, 32)++ const senderIdentityPublic = base64ToBytes(identityKeyPair.x25519_public)+ const recipientIdentityBytes = base64ToBytes(recipientBundle.identity_key)+ const associatedData = concatBytes(senderIdentityPublic, recipientIdentityBytes)++ return {+ shared_key: sharedKey,+ associated_data: associatedData,+ ephemeral_public_key: bytesToBase64(ephemeralPublic),+ used_one_time_prekey: usedOneTimePreKey,+ }+}++export async function receiveX3DH(+ identityKeyPair: IdentityKeyPair,+ signedPreKey: SignedPreKey,+ oneTimePreKey: OneTimePreKey | null,+ senderIdentityKey: string,+ senderEphemeralKey: string+): Promise<Uint8Array> {+ const recipientIdentityPrivate = await importX25519PrivateKey(+ base64ToBytes(identityKeyPair.x25519_private)+ )+ const recipientSignedPreKeyPrivate = await importX25519PrivateKey(+ base64ToBytes(signedPreKey.private_key)+ )+ const senderIdentityPublic = await importX25519PublicKey(+ base64ToBytes(senderIdentityKey)+ )+ const senderEphemeralPublic = await importX25519PublicKey(+ base64ToBytes(senderEphemeralKey)+ )++ const dh1 = await x25519DeriveSharedSecret(recipientSignedPreKeyPrivate, senderIdentityPublic)+ const dh2 = await x25519DeriveSharedSecret(recipientIdentityPrivate, senderEphemeralPublic)+ const dh3 = await x25519DeriveSharedSecret(recipientSignedPreKeyPrivate, senderEphemeralPublic)++ let dhResults: Uint8Array[]++ if (oneTimePreKey !== null) {+ const recipientOneTimePreKeyPrivate = await importX25519PrivateKey(+ base64ToBytes(oneTimePreKey.private_key)+ )+ const dh4 = await x25519DeriveSharedSecret(recipientOneTimePreKeyPrivate, senderEphemeralPublic)+ dhResults = [dh1, dh2, dh3, dh4]+ } else {+ dhResults = [dh1, dh2, dh3]+ }++ const concatenated = concatBytes(...dhResults)+ const sharedKey = await hkdfDerive(concatenated, EMPTY_SALT, X3DH_INFO, 32)++ return sharedKey+}++export function createX3DHHeader(+ identityKey: string,+ ephemeralKey: string,+ oneTimePreKeyId: string | null+): X3DHHeader {+ return {+ identity_key: identityKey,+ ephemeral_key: ephemeralKey,+ one_time_prekey_id: oneTimePreKeyId,+ }+}++export function serializeX3DHHeader(header: X3DHHeader): string {+ return JSON.stringify(header)+}++export function deserializeX3DHHeader(serialized: string): X3DHHeader {+ return JSON.parse(serialized) as X3DHHeader+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/index.css b/PROJECTS/encrypted-p2p-chat/frontend/src/index.cssnew file mode 100644index 00000000..fa634558--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/index.css@@ -0,0 +1,390 @@+@import "tailwindcss";+@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');++@theme {+ --color-black: #000000;+ --color-orange: #FF5300;+ --color-white: #FFFFFF;+ --color-gray: #808080;+ --color-dark-gray: #333333;+ --color-light-gray: #CCCCCC;++ --color-success: #228B22;+ --color-error: #8B0000;+ --color-info: #4B0082;++ --color-online: #228B22;+ --color-away: #B8860B;+ --color-offline: #808080;++ --font-pixel: "Press Start 2P", "Courier New", monospace;+ --font-placeholder: "Jersey 10", sans-serif;+ --font-mono: "JetBrains Mono", "Fira Code", monospace;++ --shadow-pixel: 4px 4px 0 var(--color-orange);+ --shadow-pixel-sm: 2px 2px 0 var(--color-orange);+ --shadow-pixel-dark: 4px 4px 0 var(--color-dark-gray);+}++@font-face {+ font-family: "Press Start 2P";+ src: url("https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2") format("woff2");+ font-weight: 400;+ font-style: normal;+ font-display: swap;+}++*,+*::before,+*::after {+ box-sizing: border-box;+ border-radius: 0 !important;+}++html {+ background-color: var(--color-black);+ color: var(--color-white);+ font-family: var(--font-pixel);+ font-size: 10px;+ line-height: 1.8;+ image-rendering: pixelated;+ image-rendering: crisp-edges;+ -webkit-font-smoothing: none;+ -moz-osx-font-smoothing: unset;+ overflow: hidden;+ overscroll-behavior: none;+ -webkit-overflow-scrolling: touch;+}++body {+ margin: 0;+ padding: 0;+ min-height: 100vh;+ min-height: 100dvh;+ background-color: var(--color-black);+ overflow: hidden;+ overscroll-behavior: none;+ position: fixed;+ width: 100%;+ touch-action: pan-x pan-y;+}++#root {+ min-height: 100vh;+ min-height: 100dvh;+ overflow-y: auto;+ overscroll-behavior: none;+}++code,+pre {+ font-family: var(--font-mono);+}++.font-placeholder {+ font-family: var(--font-placeholder);+}++::selection {+ background-color: var(--color-orange);+ color: var(--color-black);+}++:focus-visible {+ outline: 2px solid var(--color-orange);+ outline-offset: 2px;+}++input,+textarea,+button,+select {+ font-family: inherit;+ font-size: inherit;+}++a {+ color: var(--color-orange);+ text-decoration: none;+}++a:hover {+ text-decoration: underline;+ text-decoration-thickness: 2px;+ text-underline-offset: 4px;+}++.pixel-border {+ border: 2px solid var(--color-orange);+ box-shadow: var(--shadow-pixel);+}++.pixel-border-sm {+ border: 2px solid var(--color-orange);+ box-shadow: var(--shadow-pixel-sm);+}++.pixel-border-inset {+ border: 2px solid var(--color-orange);+ box-shadow:+ var(--shadow-pixel),+ inset -2px -2px 0 var(--color-dark-gray);+}++.pixel-button {+ border: 2px solid var(--color-orange);+ box-shadow: var(--shadow-pixel);+ transition: transform 0.05s steps(1), box-shadow 0.05s steps(1);+}++.pixel-button:hover {+ background-color: var(--color-orange);+ color: var(--color-black);+}++.pixel-button:active {+ transform: translate(4px, 4px);+ box-shadow: none;+}++.pixel-button:disabled {+ opacity: 0.5;+ cursor: not-allowed;+ box-shadow: var(--shadow-pixel-dark);+ border-color: var(--color-gray);+}++.pixel-button:disabled:hover {+ background-color: transparent;+ color: inherit;+}++.pixel-input {+ background-color: var(--color-black);+ border: 2px solid var(--color-orange);+ color: var(--color-white);+ padding: 12px 16px;+}++.pixel-input::placeholder {+ font-family: var(--font-placeholder);+ font-size: 16px;+ color: var(--color-gray);+}++.pixel-input:focus {+ outline: none;+ box-shadow: 0 0 0 2px var(--color-orange);+}++.pixel-input:disabled {+ opacity: 0.5;+ cursor: not-allowed;+ border-color: var(--color-gray);+}++.pixel-card {+ background-color: var(--color-black);+ border: 2px solid var(--color-orange);+ box-shadow: var(--shadow-pixel);+}++.pixel-card-invert {+ background-color: var(--color-orange);+ color: var(--color-black);+ border: 2px solid var(--color-orange);+ box-shadow: var(--shadow-pixel-dark);+}++.text-pixel-xs { font-size: 8px; }+.text-pixel-sm { font-size: 10px; }+.text-pixel-base { font-size: 12px; }+.text-pixel-lg { font-size: 14px; }+.text-pixel-xl { font-size: 16px; }+.text-pixel-2xl { font-size: 20px; }+.text-pixel-3xl { font-size: 24px; }++.animate-blink {+ animation: blink 1s steps(1) infinite;+}++.animate-pulse-pixel {+ animation: pulse-pixel 1s steps(2) infinite;+}++.animate-bounce-pixel {+ animation: bounce-pixel 0.6s steps(3) infinite;+}++.animate-typing-dots {+ animation: typing-dots 1.2s steps(4) infinite;+}++.animate-spin-pixel {+ animation: spin-pixel 0.8s steps(8) infinite;+}++.animate-slide-in-right {+ animation: slide-in-right 0.3s steps(3) forwards;+}++.animate-slide-in-up {+ animation: slide-in-up 0.3s steps(3) forwards;+}++.animate-shake {+ animation: shake 0.3s steps(4);+}++.animate-pixel-spin {+ animation: spin-pixel 0.8s steps(8) infinite;+}++.animate-pixel-pulse {+ animation: pixel-pulse 1s steps(2) infinite;+}++.animate-fade-in {+ animation: fade-in 0.15s steps(2) forwards;+}++.animate-scale-in {+ animation: scale-in 0.15s steps(3) forwards;+}++@keyframes blink {+ 0%, 50% { opacity: 1; }+ 51%, 100% { opacity: 0; }+}++@keyframes pulse-pixel {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.5; }+}++@keyframes bounce-pixel {+ 0%, 100% { transform: translateY(0); }+ 33% { transform: translateY(-4px); }+ 66% { transform: translateY(-2px); }+}++@keyframes typing-dots {+ 0% { content: ""; }+ 25% { content: "."; }+ 50% { content: ".."; }+ 75% { content: "..."; }+}++@keyframes spin-pixel {+ 0% { transform: rotate(0deg); }+ 12.5% { transform: rotate(45deg); }+ 25% { transform: rotate(90deg); }+ 37.5% { transform: rotate(135deg); }+ 50% { transform: rotate(180deg); }+ 62.5% { transform: rotate(225deg); }+ 75% { transform: rotate(270deg); }+ 87.5% { transform: rotate(315deg); }+ 100% { transform: rotate(360deg); }+}++@keyframes slide-in-right {+ 0% { transform: translateX(100%); opacity: 0; }+ 33% { transform: translateX(66%); opacity: 0.33; }+ 66% { transform: translateX(33%); opacity: 0.66; }+ 100% { transform: translateX(0); opacity: 1; }+}++@keyframes slide-in-up {+ 0% { transform: translateY(100%); opacity: 0; }+ 33% { transform: translateY(66%); opacity: 0.33; }+ 66% { transform: translateY(33%); opacity: 0.66; }+ 100% { transform: translateY(0); opacity: 1; }+}++@keyframes shake {+ 0%, 100% { transform: translateX(0); }+ 25% { transform: translateX(-4px); }+ 50% { transform: translateX(4px); }+ 75% { transform: translateX(-4px); }+}++@keyframes pixel-pulse {+ 0%, 100% { opacity: 0.4; }+ 50% { opacity: 0.2; }+}++@keyframes fade-in {+ 0% { opacity: 0; }+ 100% { opacity: 1; }+}++@keyframes scale-in {+ 0% { transform: scale(0.95); opacity: 0; }+ 50% { transform: scale(0.98); opacity: 0.5; }+ 100% { transform: scale(1); opacity: 1; }+}++.scrollbar-pixel::-webkit-scrollbar {+ width: 12px;+ height: 12px;+}++.scrollbar-pixel::-webkit-scrollbar-track {+ background: var(--color-black);+ border: 2px solid var(--color-dark-gray);+}++.scrollbar-pixel::-webkit-scrollbar-thumb {+ background: var(--color-orange);+ border: 2px solid var(--color-orange);+}++.scrollbar-pixel::-webkit-scrollbar-thumb:hover {+ background: var(--color-white);+}++.scrollbar-pixel::-webkit-scrollbar-corner {+ background: var(--color-black);+}++.status-online { color: var(--color-online); }+.status-away { color: var(--color-away); }+.status-offline { color: var(--color-offline); }+.status-error { color: var(--color-error); }+.status-success { color: var(--color-success); }+.status-info { color: var(--color-info); }++.bg-status-online { background-color: var(--color-online); }+.bg-status-away { background-color: var(--color-away); }+.bg-status-offline { background-color: var(--color-offline); }+.bg-status-error { background-color: var(--color-error); }+.bg-status-success { background-color: var(--color-success); }+.bg-status-info { background-color: var(--color-info); }++@media (min-width: 768px) {+ html {+ font-size: 12px;+ }++ .text-pixel-xs { font-size: 10px; }+ .text-pixel-sm { font-size: 12px; }+ .text-pixel-base { font-size: 14px; }+ .text-pixel-lg { font-size: 16px; }+ .text-pixel-xl { font-size: 18px; }+ .text-pixel-2xl { font-size: 22px; }+ .text-pixel-3xl { font-size: 28px; }+}++@media (min-width: 1024px) {+ html {+ font-size: 14px;+ }++ .text-pixel-xs { font-size: 11px; }+ .text-pixel-sm { font-size: 13px; }+ .text-pixel-base { font-size: 15px; }+ .text-pixel-lg { font-size: 18px; }+ .text-pixel-xl { font-size: 20px; }+ .text-pixel-2xl { font-size: 24px; }+ .text-pixel-3xl { font-size: 32px; }+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/index.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/index.tsxnew file mode 100644index 00000000..6ba03a47--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/index.tsx@@ -0,0 +1,32 @@+import { render } from "solid-js/web";+import { Router } from "@solidjs/router";+import { QueryClient, QueryClientProvider } from "@tanstack/solid-query";+import App from "./App";+import "./index.css";++const queryClient = new QueryClient({+ defaultOptions: {+ queries: {+ refetchOnWindowFocus: false,+ retry: 1,+ staleTime: 5 * 60 * 1000,+ },+ },+});++const root = document.getElementById("root");++if (root === null) {+ throw new Error("Root element not found");+}++render(+ () => (+ <QueryClientProvider client={queryClient}>+ <Router>+ <App />+ </Router>+ </QueryClientProvider>+ ),+ root+);diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Chat.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Chat.tsxnew file mode 100644index 00000000..ce41d187--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Chat.tsx@@ -0,0 +1,165 @@+// ===================+// © AngelaMos | 2025+// Chat.tsx+// ===================+import { createSignal, Show, onMount, onCleanup } from "solid-js"+import type { JSX } from "solid-js"+import type { Participant } from "../types"+import { useStore } from "@nanostores/solid"+import { AppShell, ProtectedRoute } from "../components/Layout"+import {+ MessageList,+ ChatHeader,+ ChatInput,+ NewConversation,+} from "../components/Chat"+import {+ $activeRoom,+ $activeRoomId,+ $userId,+ showToast,+ addRoom,+ setActiveRoom,+} from "../stores"+import { api } from "../lib/api-client"+import {+ connectWebSocket,+ disconnectWebSocket,+ wsManager,+} from "../websocket"++export default function Chat(): JSX.Element {+ const activeRoom = useStore($activeRoom)+ const activeRoomId = useStore($activeRoomId)+ const userId = useStore($userId)+ const [showNewChat, setShowNewChat] = createSignal(false)++ onMount(() => {+ if (userId()) {+ connectWebSocket()+ }+ })++ onCleanup(() => {+ disconnectWebSocket()+ })++ const handleSendMessage = (content: string): void => {+ const roomId = activeRoomId()+ const room = activeRoom()++ if (roomId === null || room === null) return++ const recipientId = room.participants.find((p: Participant) => p.user_id !== userId())?.user_id++ if (recipientId === undefined) {+ showToast("error", "SEND FAILED", "NO RECIPIENT FOUND")+ return+ }++ wsManager.sendEncryptedMessage(+ recipientId,+ roomId,+ content+ )+ }++ const handleCreateRoom = async (targetUserId: string): Promise<void> => {+ try {+ const room = await api.rooms.create({+ participant_id: targetUserId,+ room_type: "direct",+ })++ addRoom(room)+ setActiveRoom(room.id)+ setShowNewChat(false)+ } catch {+ showToast("error", "FAILED", "COULD NOT CREATE CONVERSATION")+ }+ }++ const handleNewChat = (): void => {+ setShowNewChat(true)+ }++ return (+ <ProtectedRoute>+ <AppShell>+ <div class="h-full flex flex-col bg-black">+ <Show+ when={activeRoomId()}+ fallback={<EmptyState onNewChat={handleNewChat} />}+ keyed+ >+ {(roomId) => (+ <>+ <ChatHeader+ room={activeRoom()}+ />+ <MessageList+ roomId={roomId}+ />+ <ChatInput+ roomId={roomId}+ recipientId={activeRoom()?.participants.find((p: Participant) => p.user_id !== userId())?.user_id ?? ""}+ onSend={handleSendMessage}+ />+ </>+ )}+ </Show>+ </div>++ <NewConversation+ isOpen={showNewChat()}+ onClose={() => setShowNewChat(false)}+ onCreateRoom={handleCreateRoom}+ />+ </AppShell>+ </ProtectedRoute>+ )+}++interface EmptyStateProps {+ onNewChat: () => void+}++function EmptyState(props: EmptyStateProps): JSX.Element {+ return (+ <div class="h-full flex flex-col items-center justify-center p-4">+ <div class="text-center">+ <ChatIcon />+ <h2 class="font-pixel text-sm text-orange mt-4 mb-2">+ SELECT A CONVERSATION+ </h2>+ <p class="font-pixel text-[10px] text-gray mb-6">+ CHOOSE A CHAT FROM THE SIDEBAR OR START A NEW ONE+ </p>+ <button+ type="button"+ onClick={() => props.onNewChat()}+ class="px-6 py-3 border-2 border-orange text-orange font-pixel text-[10px] hover:bg-orange hover:text-black transition-colors"+ >+ START NEW CHAT+ </button>+ </div>+ </div>+ )+}++function ChatIcon(): JSX.Element {+ return (+ <svg width="48" height="48" viewBox="0 0 48 48" fill="currentColor" class="text-orange mx-auto">+ <rect x="8" y="8" width="32" height="4" />+ <rect x="4" y="12" width="4" height="24" />+ <rect x="40" y="12" width="4" height="24" />+ <rect x="8" y="36" width="12" height="4" />+ <rect x="28" y="36" width="12" height="4" />+ <rect x="20" y="40" width="4" height="4" />+ <rect x="16" y="44" width="4" height="4" />+ <rect x="12" y="18" width="24" height="2" />+ <rect x="12" y="24" width="16" height="2" />+ <rect x="12" y="30" width="20" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Home.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Home.tsxnew file mode 100644index 00000000..682cb61c--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Home.tsx@@ -0,0 +1,137 @@+/**+ * Home page - landing or redirect to chat+ */++import type { JSX } from "solid-js"+import { Show } from "solid-js"+import { A } from "@solidjs/router"+import { useStore } from "@nanostores/solid"+import { $isAuthenticated } from "../stores"+import { Button } from "../components/UI"++export default function Home(): JSX.Element {+ const isAuthenticated = useStore($isAuthenticated)++ return (+ <div class="min-h-screen flex flex-col items-center justify-center bg-black p-4">+ <div class="text-center max-w-lg">+ <div class="mb-8">+ <LockIcon />+ </div>++ <h1 class="font-pixel text-2xl text-orange mb-4">+ ENCRYPTED CHAT+ </h1>++ <p class="font-pixel text-[10px] text-gray mb-8 leading-relaxed">+ END-TO-END ENCRYPTED MESSAGING WITH DOUBLE RATCHET PROTOCOL.+ YOUR MESSAGES ARE SECURE AND PRIVATE.+ </p>++ <div class="flex flex-col gap-4 items-center">+ <Show+ when={isAuthenticated()}+ fallback={+ <>+ <A href="/register">+ <Button variant="primary" size="lg">+ GET STARTED+ </Button>+ </A>+ <A href="/login">+ <Button variant="secondary" size="md">+ SIGN IN+ </Button>+ </A>+ </>+ }+ >+ <A href="/chat">+ <Button variant="primary" size="lg">+ GO TO CHAT+ </Button>+ </A>+ </Show>+ </div>++ <div class="mt-12 grid grid-cols-3 gap-4">+ <FeatureItem icon={<EncryptIcon />} label="E2E ENCRYPTED" />+ <FeatureItem icon={<KeyIcon />} label="PASSKEY AUTH" />+ <FeatureItem icon={<ShieldIcon />} label="NO PASSWORDS" />+ </div>+ </div>+ </div>+ )+}++interface FeatureItemProps {+ icon: JSX.Element+ label: string+}++function FeatureItem(props: FeatureItemProps): JSX.Element {+ return (+ <div class="flex flex-col items-center gap-2">+ <div class="text-orange">{props.icon}</div>+ <span class="font-pixel text-[8px] text-gray">{props.label}</span>+ </div>+ )+}++function LockIcon(): JSX.Element {+ return (+ <svg width="64" height="64" viewBox="0 0 64 64" fill="none" class="mx-auto">+ <rect x="20" y="12" width="24" height="4" fill="currentColor" class="text-orange" />+ <rect x="16" y="16" width="4" height="16" fill="currentColor" class="text-orange" />+ <rect x="44" y="16" width="4" height="16" fill="currentColor" class="text-orange" />+ <rect x="12" y="32" width="40" height="4" fill="currentColor" class="text-orange" />+ <rect x="12" y="36" width="40" height="20" fill="currentColor" class="text-orange" />+ <rect x="30" y="42" width="4" height="8" fill="currentColor" class="text-black" />+ </svg>+ )+}++function EncryptIcon(): JSX.Element {+ return (+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">+ <rect x="10" y="2" width="4" height="4" />+ <rect x="6" y="6" width="4" height="4" />+ <rect x="14" y="6" width="4" height="4" />+ <rect x="2" y="10" width="4" height="4" />+ <rect x="18" y="10" width="4" height="4" />+ <rect x="6" y="14" width="4" height="4" />+ <rect x="14" y="14" width="4" height="4" />+ <rect x="10" y="18" width="4" height="4" />+ </svg>+ )+}++function KeyIcon(): JSX.Element {+ return (+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">+ <rect x="4" y="8" width="4" height="4" />+ <rect x="8" y="4" width="4" height="4" />+ <rect x="8" y="12" width="4" height="4" />+ <rect x="12" y="8" width="8" height="4" />+ <rect x="16" y="12" width="4" height="4" />+ <rect x="20" y="12" width="4" height="4" />+ </svg>+ )+}++function ShieldIcon(): JSX.Element {+ return (+ <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">+ <rect x="10" y="2" width="4" height="2" />+ <rect x="6" y="4" width="4" height="2" />+ <rect x="14" y="4" width="4" height="2" />+ <rect x="4" y="6" width="2" height="8" />+ <rect x="18" y="6" width="2" height="8" />+ <rect x="6" y="14" width="2" height="4" />+ <rect x="16" y="14" width="2" height="4" />+ <rect x="8" y="18" width="2" height="2" />+ <rect x="14" y="18" width="2" height="2" />+ <rect x="10" y="20" width="4" height="2" />+ </svg>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Login.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Login.tsxnew file mode 100644index 00000000..81767167--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Login.tsx@@ -0,0 +1,17 @@+/**+ * Login page with WebAuthn passkey authentication+ */++import type { JSX } from "solid-js"+import { AuthForm } from "../components/Auth"+import { GuestRoute } from "../components/Layout"++export default function Login(): JSX.Element {+ return (+ <GuestRoute>+ <div class="min-h-screen flex items-center justify-center bg-black p-4">+ <AuthForm mode="login" />+ </div>+ </GuestRoute>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/pages/NotFound.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/NotFound.tsxnew file mode 100644index 00000000..3be4468c--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/NotFound.tsx@@ -0,0 +1,33 @@+/**+ * 404 Not Found page+ */++import type { JSX } from "solid-js"+import { A } from "@solidjs/router"+import { Button } from "../components/UI"++export default function NotFound(): JSX.Element {+ return (+ <div class="min-h-screen flex flex-col items-center justify-center bg-black p-4">+ <div class="text-center">+ <h1 class="font-pixel text-6xl text-orange mb-4">+ 404+ </h1>++ <p class="font-pixel text-sm text-white mb-2">+ PAGE NOT FOUND+ </p>++ <p class="font-pixel text-[10px] text-gray mb-8">+ THE PAGE YOU ARE LOOKING FOR DOES NOT EXIST+ </p>++ <A href="/">+ <Button variant="primary" size="lg">+ GO HOME+ </Button>+ </A>+ </div>+ </div>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Register.tsx b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Register.tsxnew file mode 100644index 00000000..f2c40684--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/pages/Register.tsx@@ -0,0 +1,18 @@+// ===================+// © AngelaMos | 2025+// Registration page with WebAuthn passkey creation+// ===================++import type { JSX } from "solid-js"+import { AuthForm } from "../components/Auth"+import { GuestRoute } from "../components/Layout"++export default function Register(): JSX.Element {+ return (+ <GuestRoute>+ <div class="min-h-screen flex items-center justify-center bg-black p-4">+ <AuthForm mode="register" />+ </div>+ </GuestRoute>+ )+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/services/auth.service.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/services/auth.service.tsnew file mode 100644index 00000000..d404d486--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/services/auth.service.ts@@ -0,0 +1,215 @@+/**+ * WebAuthn authentication service+ * Handles passkey registration and authentication flows+ */++import { api } from "../lib/api-client"+import {+ base64UrlEncode,+ base64UrlDecode,+} from "../lib/base64"+import type {+ User,+ RegistrationBeginRequest,+ AuthenticationBeginRequest,+ PublicKeyCredentialJSON,+} from "../types"+import { isPublicKeyCredential } from "../types/guards"+import { setCurrentUser, logout as storeLogout } from "../stores"++interface PublicKeyCredentialStatic {+ isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>+ isConditionalMediationAvailable?: () => Promise<boolean>+}++function publicKeyCredentialToJSON(+ credential: PublicKeyCredential+): PublicKeyCredentialJSON {+ const response = credential.response++ const json: PublicKeyCredentialJSON = {+ id: credential.id,+ rawId: base64UrlEncode(credential.rawId),+ type: "public-key",+ response: {+ clientDataJSON: base64UrlEncode(response.clientDataJSON),+ },+ authenticatorAttachment: credential.authenticatorAttachment as "platform" | "cross-platform" | undefined,+ clientExtensionResults: credential.getClientExtensionResults() as Record<string, unknown>,+ }++ if ("attestationObject" in response) {+ const attestationResponse = response as AuthenticatorAttestationResponse+ json.response.attestationObject = base64UrlEncode(attestationResponse.attestationObject)+ }++ if ("authenticatorData" in response) {+ const assertionResponse = response as AuthenticatorAssertionResponse+ json.response.authenticatorData = base64UrlEncode(assertionResponse.authenticatorData)+ json.response.signature = base64UrlEncode(assertionResponse.signature)+ if (assertionResponse.userHandle !== null) {+ json.response.userHandle = base64UrlEncode(assertionResponse.userHandle)+ }+ }++ return json+}++function toBufferSource(data: Uint8Array): ArrayBuffer {+ return data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength) as ArrayBuffer+}++function preparePublicKeyOptions(+ options: PublicKeyCredentialCreationOptions | PublicKeyCredentialRequestOptions+): PublicKeyCredentialCreationOptions | PublicKeyCredentialRequestOptions {+ const prepared = { ...options }++ if ("challenge" in prepared && typeof prepared.challenge === "string") {+ prepared.challenge = toBufferSource(base64UrlDecode(prepared.challenge as unknown as string))+ }++ if ("user" in prepared) {+ const creationOptions = prepared as PublicKeyCredentialCreationOptions+ if (typeof creationOptions.user.id === "string") {+ creationOptions.user.id = toBufferSource(base64UrlDecode(creationOptions.user.id as unknown as string))+ }+ }++ if ("excludeCredentials" in prepared) {+ const creationOptions = prepared as PublicKeyCredentialCreationOptions+ if (creationOptions.excludeCredentials !== undefined) {+ creationOptions.excludeCredentials = creationOptions.excludeCredentials.map((cred) => ({+ ...cred,+ id: typeof cred.id === "string" ? toBufferSource(base64UrlDecode(cred.id as unknown as string)) : cred.id,+ }))+ }+ }++ if ("allowCredentials" in prepared) {+ const requestOptions = prepared as PublicKeyCredentialRequestOptions+ if (requestOptions.allowCredentials !== undefined) {+ requestOptions.allowCredentials = requestOptions.allowCredentials.map((cred) => ({+ ...cred,+ id: typeof cred.id === "string" ? toBufferSource(base64UrlDecode(cred.id as unknown as string)) : cred.id,+ }))+ }+ }++ return prepared+}++export async function register(+ username: string,+ displayName: string,+ deviceName?: string+): Promise<User> {+ const beginRequest: RegistrationBeginRequest = {+ username,+ display_name: displayName,+ }++ const beginResponse = await api.auth.beginRegistration(beginRequest)++ const publicKeyOptions = preparePublicKeyOptions(+ beginResponse as unknown as PublicKeyCredentialCreationOptions+ ) as PublicKeyCredentialCreationOptions++ const credential = await navigator.credentials.create({+ publicKey: publicKeyOptions,+ })++ if (!isPublicKeyCredential(credential)) {+ throw new Error("Failed to create credential")+ }++ const credentialJSON = publicKeyCredentialToJSON(credential)++ const user = await api.auth.completeRegistration({+ username,+ credential: credentialJSON,+ device_name: deviceName,+ })++ setCurrentUser(user)++ return user+}++export async function login(username?: string): Promise<User> {+ const beginRequest: AuthenticationBeginRequest = {+ username,+ }++ const beginResponse = await api.auth.beginAuthentication(beginRequest)++ const publicKeyOptions = preparePublicKeyOptions(+ beginResponse as unknown as PublicKeyCredentialRequestOptions+ ) as PublicKeyCredentialRequestOptions++ const credential = await navigator.credentials.get({+ publicKey: publicKeyOptions,+ })++ if (!isPublicKeyCredential(credential)) {+ throw new Error("Failed to get credential")+ }++ const credentialJSON = publicKeyCredentialToJSON(credential)++ const user = await api.auth.completeAuthentication({+ credential: credentialJSON,+ })++ setCurrentUser(user)++ return user+}++export function logout(): void {+ storeLogout()+}++export function isWebAuthnSupported(): boolean {+ return (+ typeof window !== "undefined" &&+ typeof window.PublicKeyCredential !== "undefined" &&+ typeof navigator.credentials !== "undefined"+ )+}++export async function isPlatformAuthenticatorAvailable(): Promise<boolean> {+ if (!isWebAuthnSupported()) {+ return false+ }++ try {+ return await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()+ } catch {+ return false+ }+}++export async function isConditionalUIAvailable(): Promise<boolean> {+ if (!isWebAuthnSupported()) {+ return false+ }++ try {+ const pkc = PublicKeyCredential as unknown as PublicKeyCredentialStatic+ if (typeof pkc.isConditionalMediationAvailable === "function") {+ return await pkc.isConditionalMediationAvailable()+ }+ return false+ } catch {+ return false+ }+}++export const authService = {+ register,+ login,+ logout,+ isWebAuthnSupported,+ isPlatformAuthenticatorAvailable,+ isConditionalUIAvailable,+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/services/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/services/index.tsnew file mode 100644index 00000000..c6cccf3e--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/services/index.ts@@ -0,0 +1,5 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export * from "./auth.service"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/auth.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/auth.store.tsnew file mode 100644index 00000000..84077c0a--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/auth.store.ts@@ -0,0 +1,56 @@+/**+ * Authentication state store+ * Manages current user and authentication status+ */++import { atom, computed } from "nanostores"+import { persistentAtom } from "@nanostores/persistent"+import type { User, Session } from "../types"++export const $currentUser = atom<User | null>(null)++const $userIdRaw = persistentAtom<string>("chat:user_id", "", {+ encode: (value: string) => value,+ decode: (value: string) => value,+})++export const $userId = computed($userIdRaw, (id) => id !== "" ? id : null)++export const $isAuthenticated = computed($currentUser, (user) => user !== null)++export const $session = atom<Session | null>(null)++export function setCurrentUser(user: User | null): void {+ $currentUser.set(user)+ $userIdRaw.set(user?.id ?? "")++ if (user !== null) {+ $session.set({+ userId: user.id,+ username: user.username,+ displayName: user.display_name,+ isActive: user.is_active,+ authenticatedAt: new Date().toISOString(),+ })+ } else {+ $session.set(null)+ }+}++export function logout(): void {+ $currentUser.set(null)+ $userIdRaw.set("")+ $session.set(null)+}++export function updateUserDisplayName(displayName: string): void {+ const user = $currentUser.get()+ if (user !== null) {+ $currentUser.set({ ...user, display_name: displayName })++ const session = $session.get()+ if (session !== null) {+ $session.set({ ...session, displayName })+ }+ }+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/index.tsnew file mode 100644index 00000000..03ce0cbb--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/index.ts@@ -0,0 +1,12 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export * from "./auth.store"+export * from "./session.store"+export * from "./settings.store"+export * from "./ui.store"+export * from "./rooms.store"+export * from "./messages.store"+export * from "./presence.store"+export * from "./typing.store"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/messages.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/messages.store.tsnew file mode 100644index 00000000..a1775cc6--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/messages.store.ts@@ -0,0 +1,148 @@+/**+ * Messages store+ * Manages message cache per room+ */++import { map, computed } from "nanostores"+import type { Message, MessageStatus } from "../types"+import { $activeRoomId } from "./rooms.store"++export const $messagesByRoom = map<Record<string, Message[]>>({})++export const $pendingMessages = map<Record<string, Message[]>>({})++export const $hasMoreByRoom = map<Record<string, boolean>>({})++export const $oldestMessageIdByRoom = map<Record<string, string | undefined>>({})++export const $activeRoomMessages = computed(+ [$messagesByRoom, $activeRoomId],+ (messages, roomId) => (roomId ? messages[roomId] ?? [] : [])+)++export const $activeRoomPendingMessages = computed(+ [$pendingMessages, $activeRoomId],+ (pending, roomId) => (roomId ? pending[roomId] ?? [] : [])+)++export function addMessage(roomId: string, message: Message): void {+ const messages = $messagesByRoom.get()[roomId] ?? []+ const exists = messages.some((m) => m.id === message.id)++ if (!exists) {+ $messagesByRoom.setKey(roomId, [...messages, message])+ }+}++export function prependMessages(roomId: string, newMessages: Message[]): void {+ const existing = $messagesByRoom.get()[roomId] ?? []+ const existingIds = new Set(existing.map((m) => m.id))+ const uniqueNew = newMessages.filter((m) => !existingIds.has(m.id))++ if (uniqueNew.length > 0) {+ $messagesByRoom.setKey(roomId, [...uniqueNew, ...existing])++ if (uniqueNew.length > 0) {+ const oldest = uniqueNew.reduce((a, b) =>+ new Date(a.created_at) < new Date(b.created_at) ? a : b+ )+ $oldestMessageIdByRoom.setKey(roomId, oldest.id)+ }+ }+}++export function updateMessageStatus(+ roomId: string,+ messageId: string,+ status: MessageStatus+): void {+ const messages = $messagesByRoom.get()[roomId]+ if (messages === undefined) return++ const index = messages.findIndex((m) => m.id === messageId)+ if (index === -1) return++ const updated = [...messages]+ updated[index] = { ...updated[index], status }+ $messagesByRoom.setKey(roomId, updated)+}++export function updateMessageContent(+ roomId: string,+ messageId: string,+ content: string+): void {+ const messages = $messagesByRoom.get()[roomId]+ if (messages === undefined) return++ const index = messages.findIndex((m) => m.id === messageId)+ if (index === -1) return++ const updated = [...messages]+ updated[index] = { ...updated[index], content }+ $messagesByRoom.setKey(roomId, updated)+}++export function addPendingMessage(roomId: string, message: Message): void {+ const pending = $pendingMessages.get()[roomId] ?? []+ $pendingMessages.setKey(roomId, [...pending, message])+}++export function removePendingMessage(roomId: string, messageId: string): void {+ const pending = $pendingMessages.get()[roomId] ?? []+ $pendingMessages.setKey(+ roomId,+ pending.filter((m) => m.id !== messageId)+ )+}++export function confirmPendingMessage(+ roomId: string,+ tempId: string,+ confirmedMessage: Message+): void {+ removePendingMessage(roomId, tempId)+ addMessage(roomId, confirmedMessage)+}++export function setRoomMessages(roomId: string, messages: Message[]): void {+ $messagesByRoom.setKey(roomId, messages)++ if (messages.length > 0) {+ const oldest = messages.reduce((a, b) =>+ new Date(a.created_at) < new Date(b.created_at) ? a : b+ )+ $oldestMessageIdByRoom.setKey(roomId, oldest.id)+ }+}++export function setHasMore(roomId: string, hasMore: boolean): void {+ $hasMoreByRoom.setKey(roomId, hasMore)+}++export function getHasMore(roomId: string): boolean {+ return $hasMoreByRoom.get()[roomId] ?? true+}++export function getOldestMessageId(roomId: string): string | undefined {+ return $oldestMessageIdByRoom.get()[roomId]+}++export function clearRoomMessages(roomId: string): void {+ $messagesByRoom.setKey(roomId, [])+ $pendingMessages.setKey(roomId, [])+ $hasMoreByRoom.setKey(roomId, true)+ $oldestMessageIdByRoom.setKey(roomId, undefined)+}++export function clearAllMessages(): void {+ $messagesByRoom.set({})+ $pendingMessages.set({})+ $hasMoreByRoom.set({})+ $oldestMessageIdByRoom.set({})+}++export function getMessageById(roomId: string, messageId: string): Message | null {+ const messages = $messagesByRoom.get()[roomId]+ return messages?.find((m) => m.id === messageId) ?? null+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/presence.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/presence.store.tsnew file mode 100644index 00000000..944fc9da--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/presence.store.ts@@ -0,0 +1,71 @@+/**+ * Presence store+ * Manages user online/offline status+ */++import { map } from "nanostores"+import type { PresenceStatus, UserPresence } from "../types"++export const $presenceByUser = map<Record<string, UserPresence>>({})++export function setUserPresence(+ userId: string,+ status: PresenceStatus,+ lastSeen: string+): void {+ $presenceByUser.setKey(userId, {+ user_id: userId,+ status,+ last_seen: lastSeen,+ })+}++export function updateUserStatus(userId: string, status: PresenceStatus): void {+ const presence = $presenceByUser.get()[userId]+ if (presence !== undefined) {+ $presenceByUser.setKey(userId, {+ ...presence,+ status,+ last_seen: new Date().toISOString(),+ })+ } else {+ setUserPresence(userId, status, new Date().toISOString())+ }+}++export function getUserPresence(userId: string): UserPresence | null {+ return $presenceByUser.get()[userId] ?? null+}++export function getUserStatus(userId: string): PresenceStatus {+ return $presenceByUser.get()[userId]?.status ?? "offline"+}++export function isUserOnline(userId: string): boolean {+ const status = getUserStatus(userId)+ return status === "online"+}++export function getOnlineUserIds(): string[] {+ const presences = $presenceByUser.get()+ return Object.entries(presences)+ .filter(([_, p]) => p.status === "online")+ .map(([id]) => id)+}++export function setMultiplePresences(presences: UserPresence[]): void {+ const presenceMap = { ...$presenceByUser.get() }+ for (const presence of presences) {+ presenceMap[presence.user_id] = presence+ }+ $presenceByUser.set(presenceMap)+}++export function removeUserPresence(userId: string): void {+ const { [userId]: _, ...rest } = $presenceByUser.get()+ $presenceByUser.set(rest)+}++export function clearAllPresences(): void {+ $presenceByUser.set({})+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/rooms.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/rooms.store.tsnew file mode 100644index 00000000..83fc99f8--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/rooms.store.ts@@ -0,0 +1,80 @@+/**+ * Rooms/Conversations store+ * Manages chat rooms and active conversation state+ */++import { atom, computed, map } from "nanostores"+import type { Room } from "../types"++export const $rooms = map<Record<string, Room>>({})++export const $activeRoomId = atom<string | null>(null)++export const $activeRoom = computed(+ [$rooms, $activeRoomId],+ (rooms, activeId) => (activeId ? rooms[activeId] ?? null : null)+)++export const $roomList = computed($rooms, (rooms) =>+ Object.values(rooms).sort((a, b) => {+ const aTime = a.last_message?.created_at ?? a.updated_at+ const bTime = b.last_message?.created_at ?? b.updated_at+ return new Date(bTime).getTime() - new Date(aTime).getTime()+ })+)++export const $totalUnreadCount = computed($rooms, (rooms) =>+ Object.values(rooms).reduce((sum, room) => sum + room.unread_count, 0)+)++export function setActiveRoom(roomId: string | null): void {+ $activeRoomId.set(roomId)+}++export function addRoom(room: Room): void {+ $rooms.setKey(room.id, room)+}++export function updateRoom(roomId: string, updates: Partial<Room>): void {+ const room = $rooms.get()[roomId]+ if (room !== undefined) {+ $rooms.setKey(roomId, { ...room, ...updates })+ }+}++export function removeRoom(roomId: string): void {+ const { [roomId]: _, ...rest } = $rooms.get()+ $rooms.set(rest)++ if ($activeRoomId.get() === roomId) {+ $activeRoomId.set(null)+ }+}++export function setRooms(rooms: Room[]): void {+ const roomMap: Record<string, Room> = {}+ for (const room of rooms) {+ roomMap[room.id] = room+ }+ $rooms.set(roomMap)+}++export function clearUnreadCount(roomId: string): void {+ updateRoom(roomId, { unread_count: 0 })+}++export function incrementUnreadCount(roomId: string): void {+ const room = $rooms.get()[roomId]+ if (room !== undefined) {+ updateRoom(roomId, { unread_count: room.unread_count + 1 })+ }+}++export function getRoomById(roomId: string): Room | null {+ return $rooms.get()[roomId] ?? null+}++export function clearRooms(): void {+ $rooms.set({})+ $activeRoomId.set(null)+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/session.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/session.store.tsnew file mode 100644index 00000000..187176c5--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/session.store.ts@@ -0,0 +1,83 @@+/**+ * Session tokens store with persistence+ * Stores authentication tokens in localStorage+ */++import { persistentMap, persistentAtom } from "@nanostores/persistent"++interface SessionTokens {+ accessToken: string+ refreshToken: string+ expiresAt: number+}++const DEFAULT_TOKENS: SessionTokens = {+ accessToken: "",+ refreshToken: "",+ expiresAt: 0,+}++export const $sessionTokens = persistentMap<SessionTokens>(+ "chat:session:",+ DEFAULT_TOKENS,+ {+ encode: JSON.stringify,+ decode: JSON.parse,+ }+)++export const $lastActivity = persistentAtom<string>(+ "chat:last_activity",+ "",+ {+ encode: String,+ decode: String,+ }+)++export function setSessionTokens(+ accessToken: string,+ refreshToken: string,+ expiresInSeconds: number+): void {+ const expiresAt = Date.now() + expiresInSeconds * 1000+ $sessionTokens.set({+ accessToken,+ refreshToken,+ expiresAt,+ })+ updateLastActivity()+}++export function clearSessionTokens(): void {+ $sessionTokens.set(DEFAULT_TOKENS)+}++export function isSessionValid(): boolean {+ const tokens = $sessionTokens.get()+ if (tokens.accessToken === "") {+ return false+ }+ return tokens.expiresAt > Date.now()+}++export function getAccessToken(): string | null {+ if (!isSessionValid()) {+ return null+ }+ return $sessionTokens.get().accessToken+}++export function getRefreshToken(): string | null {+ const tokens = $sessionTokens.get()+ return tokens.refreshToken !== "" ? tokens.refreshToken : null+}++export function updateLastActivity(): void {+ $lastActivity.set(new Date().toISOString())+}++export function getLastActivity(): Date | null {+ const activity = $lastActivity.get()+ return activity !== "" ? new Date(activity) : null+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/settings.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/settings.store.tsnew file mode 100644index 00000000..230e987a--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/settings.store.ts@@ -0,0 +1,100 @@+/**+ * User settings store with persistence+ * Stores user preferences in localStorage+ */++import { persistentMap } from "@nanostores/persistent"+import { computed } from "nanostores"++type Theme = "dark" | "light"+type FontSize = "small" | "medium" | "large"+type NotificationSound = "retro" | "subtle" | "none"++interface UserSettings {+ theme: Theme+ fontSize: FontSize+ soundEnabled: boolean+ notificationSound: NotificationSound+ desktopNotifications: boolean+ showTypingIndicators: boolean+ showReadReceipts: boolean+ showOnlineStatus: boolean+ enterToSend: boolean+ compactMode: boolean+}++const DEFAULT_SETTINGS: UserSettings = {+ theme: "dark",+ fontSize: "medium",+ soundEnabled: true,+ notificationSound: "retro",+ desktopNotifications: true,+ showTypingIndicators: true,+ showReadReceipts: true,+ showOnlineStatus: true,+ enterToSend: true,+ compactMode: false,+}++export const $settings = persistentMap<UserSettings>(+ "chat:settings:",+ DEFAULT_SETTINGS,+ {+ encode: JSON.stringify,+ decode: JSON.parse,+ }+)++export const $theme = computed($settings, (settings) => settings.theme)++export const $fontSize = computed($settings, (settings) => settings.fontSize)++export function setTheme(theme: Theme): void {+ $settings.setKey("theme", theme)+}++export function setFontSize(fontSize: FontSize): void {+ $settings.setKey("fontSize", fontSize)+}++export function setSoundEnabled(enabled: boolean): void {+ $settings.setKey("soundEnabled", enabled)+}++export function setNotificationSound(sound: NotificationSound): void {+ $settings.setKey("notificationSound", sound)+}++export function setDesktopNotifications(enabled: boolean): void {+ $settings.setKey("desktopNotifications", enabled)+}++export function setShowTypingIndicators(show: boolean): void {+ $settings.setKey("showTypingIndicators", show)+}++export function setShowReadReceipts(show: boolean): void {+ $settings.setKey("showReadReceipts", show)+}++export function setShowOnlineStatus(show: boolean): void {+ $settings.setKey("showOnlineStatus", show)+}++export function setEnterToSend(enabled: boolean): void {+ $settings.setKey("enterToSend", enabled)+}++export function setCompactMode(enabled: boolean): void {+ $settings.setKey("compactMode", enabled)+}++export function resetSettings(): void {+ $settings.set(DEFAULT_SETTINGS)+}++export function getSettings(): UserSettings {+ return $settings.get()+}++export type { Theme, FontSize, NotificationSound, UserSettings }diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/typing.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/typing.store.tsnew file mode 100644index 00000000..02d88fb9--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/typing.store.ts@@ -0,0 +1,112 @@+/**+ * Typing indicators store+ * Manages typing status per room+ */++import { map, computed } from "nanostores"+import type { TypingState } from "../types"+import { $activeRoomId } from "./rooms.store"++const TYPING_TIMEOUT_MS = 5000++export const $typingByRoom = map<Record<string, TypingState[]>>({})++const typingTimeouts = new Map<string, ReturnType<typeof setTimeout>>()++export const $activeRoomTyping = computed(+ [$typingByRoom, $activeRoomId],+ (typing, roomId) => (roomId ? typing[roomId] ?? [] : [])+)++export const $activeRoomTypingUsernames = computed(+ $activeRoomTyping,+ (typingUsers) => typingUsers.map((t) => t.username)+)++function getTimeoutKey(roomId: string, userId: string): string {+ return `${roomId}:${userId}`+}++export function setUserTyping(+ roomId: string,+ userId: string,+ username: string,+ isTyping: boolean+): void {+ const timeoutKey = getTimeoutKey(roomId, userId)+ const existingTimeout = typingTimeouts.get(timeoutKey)++ if (existingTimeout !== undefined) {+ clearTimeout(existingTimeout)+ typingTimeouts.delete(timeoutKey)+ }++ const currentTyping = $typingByRoom.get()[roomId] ?? []+ const filteredTyping = currentTyping.filter((t) => t.user_id !== userId)++ if (isTyping) {+ const typingState: TypingState = {+ user_id: userId,+ username,+ started_at: new Date().toISOString(),+ }++ $typingByRoom.setKey(roomId, [...filteredTyping, typingState])++ const timeout = setTimeout(() => {+ removeUserTyping(roomId, userId)+ }, TYPING_TIMEOUT_MS)++ typingTimeouts.set(timeoutKey, timeout)+ } else {+ $typingByRoom.setKey(roomId, filteredTyping)+ }+}++export function removeUserTyping(roomId: string, userId: string): void {+ const timeoutKey = getTimeoutKey(roomId, userId)+ const existingTimeout = typingTimeouts.get(timeoutKey)++ if (existingTimeout !== undefined) {+ clearTimeout(existingTimeout)+ typingTimeouts.delete(timeoutKey)+ }++ const currentTyping = $typingByRoom.get()[roomId] ?? []+ $typingByRoom.setKey(+ roomId,+ currentTyping.filter((t) => t.user_id !== userId)+ )+}++export function clearRoomTyping(roomId: string): void {+ const currentTyping = $typingByRoom.get()[roomId] ?? []++ for (const typing of currentTyping) {+ const timeoutKey = getTimeoutKey(roomId, typing.user_id)+ const timeout = typingTimeouts.get(timeoutKey)+ if (timeout !== undefined) {+ clearTimeout(timeout)+ typingTimeouts.delete(timeoutKey)+ }+ }++ $typingByRoom.setKey(roomId, [])+}++export function clearAllTyping(): void {+ for (const timeout of typingTimeouts.values()) {+ clearTimeout(timeout)+ }+ typingTimeouts.clear()+ $typingByRoom.set({})+}++export function getTypingUsers(roomId: string): TypingState[] {+ return $typingByRoom.get()[roomId] ?? []+}++export function isAnyoneTyping(roomId: string): boolean {+ const typing = $typingByRoom.get()[roomId]+ return typing !== undefined && typing.length > 0+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/stores/ui.store.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/ui.store.tsnew file mode 100644index 00000000..8e9e52e6--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/stores/ui.store.ts@@ -0,0 +1,128 @@+/**+ * UI state store+ * Manages sidebar, modals, and other UI state+ */++import { atom, computed } from "nanostores"++type ModalType =+ | "new-conversation"+ | "user-search"+ | "settings"+ | "profile"+ | "encryption-info"+ | "confirm-logout"+ | null++interface ToastNotification {+ id: string+ variant: "info" | "success" | "warning" | "error"+ title: string+ description?: string+ duration?: number+}++export const $sidebarOpen = atom<boolean>(true)++export const $sidebarCollapsed = atom<boolean>(false)++export const $activeModal = atom<ModalType>(null)++export const $modalData = atom<Record<string, unknown>>({})++export const $toasts = atom<ToastNotification[]>([])++export const $isLoading = atom<boolean>(false)++export const $loadingMessage = atom<string>("")++export const $isMobile = atom<boolean>(false)++export const $searchQuery = atom<string>("")++export const $hasActiveModal = computed(+ $activeModal,+ (modal) => modal !== null+)++let toastIdCounter = 0++export function toggleSidebar(): void {+ $sidebarOpen.set(!$sidebarOpen.get())+}++export function openSidebar(): void {+ $sidebarOpen.set(true)+}++export function closeSidebar(): void {+ $sidebarOpen.set(false)+}++export function toggleSidebarCollapsed(): void {+ $sidebarCollapsed.set(!$sidebarCollapsed.get())+}++export function openModal(type: ModalType, data?: Record<string, unknown>): void {+ $activeModal.set(type)+ $modalData.set(data ?? {})+}++export function closeModal(): void {+ $activeModal.set(null)+ $modalData.set({})+}++export function showToast(+ variant: ToastNotification["variant"],+ title: string,+ description?: string,+ duration?: number+): string {+ const id = `toast-${++toastIdCounter}`+ const toast: ToastNotification = {+ id,+ variant,+ title,+ description,+ duration: duration ?? 5000,+ }++ $toasts.set([...$toasts.get(), toast])++ const toastDuration = toast.duration ?? 5000+ if (toastDuration > 0) {+ setTimeout(() => {+ dismissToast(id)+ }, toastDuration)+ }++ return id+}++export function dismissToast(id: string): void {+ $toasts.set($toasts.get().filter((t) => t.id !== id))+}++export function clearAllToasts(): void {+ $toasts.set([])+}++export function setLoading(loading: boolean, message?: string): void {+ $isLoading.set(loading)+ $loadingMessage.set(message ?? "")+}++export function setIsMobile(isMobile: boolean): void {+ $isMobile.set(isMobile)+}++export function setSearchQuery(query: string): void {+ $searchQuery.set(query)+}++export function clearSearchQuery(): void {+ $searchQuery.set("")+}++export type { ModalType, ToastNotification }diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/api.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/api.tsnew file mode 100644index 00000000..b75dc3c5--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/api.ts@@ -0,0 +1,37 @@+// ===================+// © AngelaMos | 2025+// api.ts+// ===================+export class ApiError extends Error {+ constructor(+ public status: number,+ public data: unknown,+ message?: string+ ) {+ super(message ?? `API Error: ${status}`)+ this.name = "ApiError"+ }+}++export interface ApiResponse<T> {+ data: T+ status: number+}++export interface PaginatedResponse<T> {+ items: T[]+ total: number+ page: number+ pageSize: number+ hasMore: boolean+}++export interface ValidationError {+ field: string+ message: string+}++export interface ApiErrorResponse {+ detail: string | ValidationError[]+ status_code?: number+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/auth.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/auth.tsnew file mode 100644index 00000000..46a29a82--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/auth.ts@@ -0,0 +1,74 @@+// ===================+// © AngelaMos | 2025+// auth.ts+// ===================+export interface User {+ id: string+ username: string+ display_name: string+ is_active: boolean+ is_verified: boolean+ created_at: string+}++export interface Credential {+ id: string+ credential_id: string+ device_name: string | null+ last_used_at: string | null+ created_at: string+ backup_eligible: boolean+ backup_state: boolean+}++export interface RegistrationBeginRequest {+ username: string+ display_name: string+}++export interface RegistrationCompleteRequest {+ username: string+ credential: PublicKeyCredentialJSON+ device_name?: string+}++export interface AuthenticationBeginRequest {+ username?: string+}++export interface AuthenticationCompleteRequest {+ credential: PublicKeyCredentialJSON+}++export interface WebAuthnOptions {+ publicKey: PublicKeyCredentialCreationOptions | PublicKeyCredentialRequestOptions+}++export interface PublicKeyCredentialJSON {+ id: string+ rawId: string+ type: "public-key"+ response: {+ clientDataJSON: string+ attestationObject?: string+ authenticatorData?: string+ signature?: string+ userHandle?: string+ }+ authenticatorAttachment?: "platform" | "cross-platform"+ clientExtensionResults: Record<string, unknown>+}++export interface Session {+ userId: string+ username: string+ displayName: string+ isActive: boolean+ authenticatedAt: string+}++export const USERNAME_MIN_LENGTH = 3+export const USERNAME_MAX_LENGTH = 50+export const DISPLAY_NAME_MIN_LENGTH = 1+export const DISPLAY_NAME_MAX_LENGTH = 100+export const DEVICE_NAME_MAX_LENGTH = 100diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/chat.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/chat.tsnew file mode 100644index 00000000..0e01c614--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/chat.ts@@ -0,0 +1,87 @@+// ===================+// © AngelaMos | 2025+// chat.ts+// ===================+export type MessageStatus = "sending" | "sent" | "delivered" | "read" | "failed"++export type PresenceStatus = "online" | "away" | "offline"++export type RoomType = "direct" | "group" | "ephemeral"++export interface Message {+ id: string+ room_id: string+ sender_id: string+ sender_username: string+ content: string+ status: MessageStatus+ is_encrypted: boolean+ encrypted_content?: string+ nonce?: string+ header?: string+ created_at: string+ updated_at: string+ delivered_at?: string+ read_at?: string+}++export interface Room {+ id: string+ type: RoomType+ name?: string+ participants: Participant[]+ last_message?: Message+ unread_count: number+ is_encrypted: boolean+ created_at: string+ updated_at: string+}++export interface Participant {+ user_id: string+ username: string+ display_name: string+ role: "owner" | "admin" | "member"+ joined_at: string+}++export interface Conversation {+ room: Room+ messages: Message[]+ typing_users: string[]+ has_more_messages: boolean+ oldest_message_id?: string+}++export interface TypingState {+ user_id: string+ username: string+ started_at: string+}++export interface UserPresence {+ user_id: string+ status: PresenceStatus+ last_seen: string+}++export interface ReadReceipt {+ message_id: string+ user_id: string+ read_at: string+}++export interface FileAttachment {+ id: string+ message_id: string+ filename: string+ mime_type: string+ size_bytes: number+ url: string+ thumbnail_url?: string+ is_encrypted: boolean+}++export const MESSAGE_MAX_LENGTH = 50000+export const DEFAULT_MESSAGE_LIMIT = 50+export const MAX_MESSAGE_LIMIT = 200diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/components.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/components.tsnew file mode 100644index 00000000..5afd0fee--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/components.ts@@ -0,0 +1,187 @@+// ===================+// © AngelaMos | 2025+// components.ts+// ===================+import type { JSX } from "solid-js"+import type { MessageStatus, PresenceStatus } from "./chat"++export type Size = "xs" | "sm" | "md" | "lg" | "xl"++export type ButtonVariant = "primary" | "secondary" | "ghost" | "danger"++export type BadgeVariant = "default" | "primary" | "success" | "warning" | "error"++export interface ButtonProps {+ variant?: ButtonVariant+ size?: Size+ fullWidth?: boolean+ disabled?: boolean+ loading?: boolean+ leftIcon?: JSX.Element+ rightIcon?: JSX.Element+ type?: "button" | "submit" | "reset"+ onClick?: () => void+ class?: string+ children: JSX.Element+}++export interface InputProps {+ type?: "text" | "email" | "password" | "search"+ name?: string+ placeholder?: string+ value?: string+ onInput?: (value: string) => void+ onChange?: (value: string) => void+ onFocus?: () => void+ onBlur?: () => void+ disabled?: boolean+ error?: string+ label?: string+ hint?: string+ leftIcon?: JSX.Element+ rightIcon?: JSX.Element+ fullWidth?: boolean+ maxLength?: number+ minLength?: number+ required?: boolean+ autofocus?: boolean+ class?: string+}++export interface TextAreaProps {+ name?: string+ placeholder?: string+ value?: string+ onInput?: (value: string) => void+ disabled?: boolean+ error?: string+ label?: string+ rows?: number+ maxLength?: number+ autoResize?: boolean+ class?: string+}++export interface AvatarProps {+ src?: string+ alt: string+ size?: Size+ fallback?: string+ status?: PresenceStatus+ showStatus?: boolean+ class?: string+}++export interface BadgeProps {+ variant?: BadgeVariant+ size?: Size+ children: JSX.Element+ dot?: boolean+ class?: string+}++export interface ModalProps {+ isOpen: boolean+ onClose: () => void+ title?: string+ description?: string+ size?: Size+ closeOnOverlayClick?: boolean+ showCloseButton?: boolean+ children: JSX.Element+}++export interface ToastProps {+ id: string+ variant: "info" | "success" | "warning" | "error"+ title: string+ description?: string+ duration?: number+ action?: {+ label: string+ onClick: () => void+ }+}++export interface SpinnerProps {+ size?: Size+ class?: string+}++export interface SkeletonProps {+ variant?: "text" | "circular" | "rectangular"+ width?: string+ height?: string+ lines?: number+ class?: string+}++export interface TooltipProps {+ content: string+ position?: "top" | "bottom" | "left" | "right"+ delay?: number+ children: JSX.Element+}++export interface DropdownItem {+ label: string+ value: string+ icon?: JSX.Element+ disabled?: boolean+ danger?: boolean+}++export interface DropdownProps {+ items: DropdownItem[]+ onSelect: (value: string) => void+ trigger: JSX.Element+ align?: "left" | "right"+ class?: string+}++export interface IconButtonProps {+ icon: JSX.Element+ onClick?: () => void+ size?: Size+ variant?: "ghost" | "subtle"+ ariaLabel: string+ disabled?: boolean+ loading?: boolean+ class?: string+}++export interface MessageBubbleProps {+ content: string+ timestamp: string+ isSent: boolean+ status?: MessageStatus+ senderName?: string+ senderAvatar?: string+ isEncrypted?: boolean+ showTail?: boolean+ isGrouped?: boolean+}++export interface ConversationItemProps {+ id: string+ name: string+ avatar?: string+ lastMessage?: string+ lastMessageTime?: string+ unreadCount?: number+ isOnline?: boolean+ isSelected?: boolean+ isTyping?: boolean+ isGroup?: boolean+ onClick?: () => void+}++export interface OnlineStatusProps {+ status: PresenceStatus+ showLabel?: boolean+ size?: Size+}++export interface TypingIndicatorProps {+ users: string[]+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/encryption.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/encryption.tsnew file mode 100644index 00000000..594c06c1--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/encryption.ts@@ -0,0 +1,104 @@+// ===================+// © AngelaMos | 2025+// encryption.ts+// ===================+export interface PreKeyBundle {+ identity_key: string+ signed_prekey: string+ signed_prekey_signature: string+ one_time_prekey: string | null+}++export interface X3DHResult {+ shared_key: Uint8Array+ associated_data: Uint8Array+ ephemeral_public_key: string+ used_one_time_prekey: boolean+}++export interface X3DHHeader {+ identity_key: string+ ephemeral_key: string+ one_time_prekey_id: string | null+}++export interface DoubleRatchetState {+ peer_id: string+ root_key: Uint8Array+ sending_chain_key: Uint8Array+ receiving_chain_key: Uint8Array | null+ dh_private_key: CryptoKeyPair | null+ dh_public_key: Uint8Array | null+ dh_peer_public_key: Uint8Array | null+ sending_message_number: number+ receiving_message_number: number+ previous_sending_chain_length: number+ skipped_message_keys: Map<string, Uint8Array>+}++export interface SerializedRatchetState {+ peer_id: string+ root_key: string+ sending_chain_key: string+ receiving_chain_key: string | null+ dh_private_key: string | null+ dh_public_key: string | null+ dh_peer_public_key: string | null+ sending_message_number: number+ receiving_message_number: number+ previous_sending_chain_length: number+ skipped_message_keys: Record<string, string>+}++export interface EncryptedMessage {+ ciphertext: Uint8Array+ nonce: Uint8Array+ header: MessageHeader+}++export interface MessageHeader {+ dh_public_key: string+ message_number: number+ previous_chain_length: number+}++export interface IdentityKeyPair {+ x25519_private: string+ x25519_public: string+ ed25519_private: string+ ed25519_public: string+}++export interface SignedPreKey {+ id: string+ private_key: string+ public_key: string+ signature: string+ created_at: string+ expires_at: string+}++export interface OneTimePreKey {+ id: string+ private_key: string+ public_key: string+ is_used: boolean+ created_at: string+}++export interface StoredKeys {+ identity: IdentityKeyPair | null+ signed_prekey: SignedPreKey | null+ one_time_prekeys: OneTimePreKey[]+}++export const X25519_KEY_SIZE = 32+export const ED25519_KEY_SIZE = 32+export const ED25519_SIGNATURE_SIZE = 64+export const AES_GCM_KEY_SIZE = 32+export const AES_GCM_NONCE_SIZE = 12+export const HKDF_OUTPUT_SIZE = 32+export const MAX_SKIP_MESSAGE_KEYS = 1000+export const MAX_CACHED_MESSAGE_KEYS = 2000+export const DEFAULT_ONE_TIME_PREKEY_COUNT = 100+export const SIGNED_PREKEY_ROTATION_HOURS = 48diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/guards.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/guards.tsnew file mode 100644index 00000000..b5070a52--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/guards.ts@@ -0,0 +1,223 @@+/**+ * Type guards for runtime type checking+ */++import type {+ User,+ Message,+ Room,+ MessageStatus,+ PresenceStatus,+ RoomType,+ PreKeyBundle,+ ApiErrorResponse,+ ValidationError,+ WSMessage,+ EncryptedMessageWS,+ TypingIndicatorWS,+ PresenceUpdateWS,+ ReadReceiptWS,+ HeartbeatWS,+ ErrorMessageWS,+} from "./index"++export function isString(value: unknown): value is string {+ return typeof value === "string"+}++export function isNumber(value: unknown): value is number {+ return typeof value === "number" && !Number.isNaN(value)+}++export function isBoolean(value: unknown): value is boolean {+ return typeof value === "boolean"+}++export function isObject(value: unknown): value is Record<string, unknown> {+ return typeof value === "object" && value !== null && !Array.isArray(value)+}++export function isArray(value: unknown): value is unknown[] {+ return Array.isArray(value)+}++export function isNonEmptyString(value: unknown): value is string {+ return isString(value) && value.length > 0+}++export function isUser(value: unknown): value is User {+ if (!isObject(value)) return false++ return (+ isNonEmptyString(value.id) &&+ isNonEmptyString(value.username) &&+ isNonEmptyString(value.display_name) &&+ isBoolean(value.is_active) &&+ isBoolean(value.is_verified) &&+ isNonEmptyString(value.created_at)+ )+}++export function isMessageStatus(value: unknown): value is MessageStatus {+ return (+ value === "sending" ||+ value === "sent" ||+ value === "delivered" ||+ value === "read" ||+ value === "failed"+ )+}++export function isPresenceStatus(value: unknown): value is PresenceStatus {+ return value === "online" || value === "away" || value === "offline"+}++export function isRoomType(value: unknown): value is RoomType {+ return value === "direct" || value === "group" || value === "ephemeral"+}++export function isMessage(value: unknown): value is Message {+ if (!isObject(value)) return false++ return (+ isNonEmptyString(value.id) &&+ isNonEmptyString(value.room_id) &&+ isNonEmptyString(value.sender_id) &&+ isNonEmptyString(value.sender_username) &&+ isString(value.content) &&+ isMessageStatus(value.status) &&+ isBoolean(value.is_encrypted) &&+ isNonEmptyString(value.created_at)+ )+}++export function isRoom(value: unknown): value is Room {+ if (!isObject(value)) return false++ return (+ isNonEmptyString(value.id) &&+ isRoomType(value.type) &&+ isArray(value.participants) &&+ isNumber(value.unread_count) &&+ isBoolean(value.is_encrypted) &&+ isNonEmptyString(value.created_at) &&+ isNonEmptyString(value.updated_at)+ )+}++export function isPreKeyBundle(value: unknown): value is PreKeyBundle {+ if (!isObject(value)) return false++ return (+ isNonEmptyString(value.identity_key) &&+ isNonEmptyString(value.signed_prekey) &&+ isNonEmptyString(value.signed_prekey_signature) &&+ (value.one_time_prekey === null || isString(value.one_time_prekey))+ )+}++export function isValidationError(value: unknown): value is ValidationError {+ if (!isObject(value)) return false++ return isNonEmptyString(value.field) && isNonEmptyString(value.message)+}++export function isValidationErrorArray(value: unknown): value is ValidationError[] {+ return isArray(value) && value.every(isValidationError)+}++export function isApiErrorResponse(value: unknown): value is ApiErrorResponse {+ if (!isObject(value)) return false++ return isString(value.detail) || isValidationErrorArray(value.detail)+}++export function isEncryptedMessageWS(value: unknown): value is EncryptedMessageWS {+ if (!isObject(value)) return false++ return (+ value.type === "encrypted_message" &&+ isNonEmptyString(value.message_id) &&+ isNonEmptyString(value.sender_id) &&+ isNonEmptyString(value.recipient_id) &&+ isNonEmptyString(value.room_id) &&+ isNonEmptyString(value.ciphertext) &&+ isNonEmptyString(value.nonce) &&+ isNonEmptyString(value.header) &&+ isNonEmptyString(value.sender_username)+ )+}++export function isTypingIndicatorWS(value: unknown): value is TypingIndicatorWS {+ if (!isObject(value)) return false++ return (+ value.type === "typing" &&+ isNonEmptyString(value.user_id) &&+ isNonEmptyString(value.room_id) &&+ isBoolean(value.is_typing) &&+ isNonEmptyString(value.username)+ )+}++export function isPresenceUpdateWS(value: unknown): value is PresenceUpdateWS {+ if (!isObject(value)) return false++ return (+ value.type === "presence" &&+ isNonEmptyString(value.user_id) &&+ isPresenceStatus(value.status) &&+ isNonEmptyString(value.last_seen)+ )+}++export function isReadReceiptWS(value: unknown): value is ReadReceiptWS {+ if (!isObject(value)) return false++ return (+ value.type === "receipt" &&+ isNonEmptyString(value.message_id) &&+ isNonEmptyString(value.room_id) &&+ isNonEmptyString(value.user_id) &&+ isNonEmptyString(value.read_at)+ )+}++export function isHeartbeatWS(value: unknown): value is HeartbeatWS {+ if (!isObject(value)) return false++ return value.type === "heartbeat"+}++export function isErrorMessageWS(value: unknown): value is ErrorMessageWS {+ if (!isObject(value)) return false++ return (+ value.type === "error" &&+ isNonEmptyString(value.error_code) &&+ isNonEmptyString(value.error_message)+ )+}++export function isWSMessage(value: unknown): value is WSMessage {+ return (+ isEncryptedMessageWS(value) ||+ isTypingIndicatorWS(value) ||+ isPresenceUpdateWS(value) ||+ isReadReceiptWS(value) ||+ isHeartbeatWS(value) ||+ isErrorMessageWS(value)+ )+}++export function assertNever(value: never, message?: string): never {+ throw new Error(message ?? `Unexpected value: ${JSON.stringify(value)}`)+}++export function isDefined<T>(value: T | null | undefined): value is T {+ return value !== null && value !== undefined+}++export function isPublicKeyCredential(value: Credential | null): value is PublicKeyCredential {+ return value !== null && value.type === "public-key"+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/index.tsnew file mode 100644index 00000000..750b60a4--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/index.ts@@ -0,0 +1,11 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export * from "./api"+export * from "./auth"+export * from "./chat"+export * from "./websocket"+export * from "./encryption"+export * from "./components"+export * from "./guards"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/types/websocket.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/types/websocket.tsnew file mode 100644index 00000000..7d44aad4--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/types/websocket.ts@@ -0,0 +1,112 @@+// ===================+// © AngelaMos | 2025+// websockets.ts+// ===================+import type { PresenceStatus } from "./chat"++export type WSMessageType =+ | "encrypted_message"+ | "typing"+ | "presence"+ | "receipt"+ | "heartbeat"+ | "error"++export interface BaseWSMessage {+ type: WSMessageType+ timestamp?: string+}++export interface EncryptedMessageWS extends BaseWSMessage {+ type: "encrypted_message"+ message_id: string+ sender_id: string+ recipient_id: string+ room_id: string+ ciphertext: string+ nonce: string+ header: string+ sender_username: string+}++export interface TypingIndicatorWS extends BaseWSMessage {+ type: "typing"+ user_id: string+ room_id: string+ is_typing: boolean+ username: string+}++export interface PresenceUpdateWS extends BaseWSMessage {+ type: "presence"+ user_id: string+ status: PresenceStatus+ last_seen: string+}++export interface ReadReceiptWS extends BaseWSMessage {+ type: "receipt"+ message_id: string+ room_id: string+ user_id: string+ read_at: string+}++export interface HeartbeatWS extends BaseWSMessage {+ type: "heartbeat"+}++export interface ErrorMessageWS extends BaseWSMessage {+ type: "error"+ error_code: string+ error_message: string+ details?: Record<string, unknown>+}++export type WSMessage =+ | EncryptedMessageWS+ | TypingIndicatorWS+ | PresenceUpdateWS+ | ReadReceiptWS+ | HeartbeatWS+ | ErrorMessageWS++export interface WSOutgoingEncryptedMessage {+ type: "encrypted_message"+ recipient_id: string+ room_id: string+ plaintext: string+}++export interface WSOutgoingTyping {+ type: "typing"+ room_id: string+ is_typing: boolean+}++export interface WSOutgoingPresence {+ type: "presence"+ status: PresenceStatus+}++export interface WSOutgoingReceipt {+ type: "receipt"+ message_id: string+ room_id: string+}++export interface WSOutgoingHeartbeat {+ type: "heartbeat"+ timestamp: string+}++export type WSOutgoingMessage =+ | WSOutgoingEncryptedMessage+ | WSOutgoingTyping+ | WSOutgoingPresence+ | WSOutgoingReceipt+ | WSOutgoingHeartbeat++export const WS_HEARTBEAT_INTERVAL = 30000+export const WS_RECONNECT_DELAY = 5000+export const WS_MAX_RECONNECT_ATTEMPTS = 10diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/vite-env.d.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/vite-env.d.tsnew file mode 100644index 00000000..86325a36--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/vite-env.d.ts@@ -0,0 +1,11 @@+/// <reference types="vite/client" />++interface ImportMetaEnv {+ readonly VITE_API_URL: string+ readonly VITE_WS_URL: string+ readonly VITE_RP_ID: string+}++interface ImportMeta {+ readonly env: ImportMetaEnv+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/index.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/index.tsnew file mode 100644index 00000000..4eaabd71--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/index.ts@@ -0,0 +1,6 @@+// ===================+// © AngelaMos | 2025+// index.ts+// ===================+export * from "./websocket-manager"+export * from "./message-handlers"diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/message-handlers.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/message-handlers.tsnew file mode 100644index 00000000..5071b6bc--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/message-handlers.ts@@ -0,0 +1,111 @@+// ===================+// © AngelaMos | 2025+// message-handlers.ts+// ===================+import type {+ WSMessage,+ EncryptedMessageWS,+ TypingIndicatorWS,+ PresenceUpdateWS,+ ReadReceiptWS,+ ErrorMessageWS,+ Message,+} from "../types"+import {+ isEncryptedMessageWS,+ isTypingIndicatorWS,+ isPresenceUpdateWS,+ isReadReceiptWS,+ isErrorMessageWS,+} from "../types/guards"+import {+ addMessage,+ updateMessageStatus,+} from "../stores/messages.store"+import {+ setUserPresence,+} from "../stores/presence.store"+import {+ setUserTyping,+} from "../stores/typing.store"+import { showToast } from "../stores/ui.store"++type MessageHandler<T extends WSMessage> = (message: T) => void++const encryptedMessageHandler: MessageHandler<EncryptedMessageWS> = (message) => {+ const chatMessage: Message = {+ id: message.message_id,+ room_id: message.room_id,+ sender_id: message.sender_id,+ sender_username: message.sender_username,+ content: message.ciphertext,+ status: "delivered",+ is_encrypted: true,+ encrypted_content: message.ciphertext,+ nonce: message.nonce,+ header: message.header,+ created_at: message.timestamp ?? new Date().toISOString(),+ updated_at: message.timestamp ?? new Date().toISOString(),+ }++ addMessage(message.room_id, chatMessage)+}++const typingIndicatorHandler: MessageHandler<TypingIndicatorWS> = (message) => {+ setUserTyping(+ message.room_id,+ message.user_id,+ message.username,+ message.is_typing+ )+}++const presenceUpdateHandler: MessageHandler<PresenceUpdateWS> = (message) => {+ setUserPresence(+ message.user_id,+ message.status,+ message.last_seen+ )+}++const readReceiptHandler: MessageHandler<ReadReceiptWS> = (message) => {+ updateMessageStatus(message.room_id, message.message_id, "read")+}++const errorMessageHandler: MessageHandler<ErrorMessageWS> = (message) => {+ showToast("error", "CONNECTION ERROR", message.error_message.toUpperCase())+}++export function handleWSMessage(message: WSMessage): void {+ if (isEncryptedMessageWS(message)) {+ encryptedMessageHandler(message)+ } else if (isTypingIndicatorWS(message)) {+ typingIndicatorHandler(message)+ } else if (isPresenceUpdateWS(message)) {+ presenceUpdateHandler(message)+ } else if (isReadReceiptWS(message)) {+ readReceiptHandler(message)+ } else if (isErrorMessageWS(message)) {+ errorMessageHandler(message)+ }+}++export function handleEncryptedMessage(message: EncryptedMessageWS): void {+ encryptedMessageHandler(message)+}++export function handleTypingIndicator(message: TypingIndicatorWS): void {+ typingIndicatorHandler(message)+}++export function handlePresenceUpdate(message: PresenceUpdateWS): void {+ presenceUpdateHandler(message)+}++export function handleReadReceipt(message: ReadReceiptWS): void {+ readReceiptHandler(message)+}++export function handleErrorMessage(message: ErrorMessageWS): void {+ errorMessageHandler(message)+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/websocket-manager.ts b/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/websocket-manager.tsnew file mode 100644index 00000000..4e734822--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/src/websocket/websocket-manager.ts@@ -0,0 +1,290 @@+// ===================+// ©AngelaMos | 2025+// websocket-manager.ts+// ===================+import { atom, computed } from "nanostores"+import {+ WS_URL,+ WS_HEARTBEAT_INTERVAL,+ WS_RECONNECT_DELAY,+} from "../config"+import { $userId } from "../stores"+import type {+ WSMessage,+ WSOutgoingMessage,+ WSOutgoingHeartbeat,+ WSOutgoingTyping,+ WSOutgoingPresence,+ WSOutgoingReceipt,+ WSOutgoingEncryptedMessage,+} from "../types"+import { handleWSMessage } from "./message-handlers"+import {+ isWSMessage,+ isEncryptedMessageWS,+ isTypingIndicatorWS,+ isPresenceUpdateWS,+ isReadReceiptWS,+ isHeartbeatWS,+ isErrorMessageWS,+} from "../types/guards"++export type ConnectionStatus = "disconnected" | "connecting" | "connected" | "reconnecting"++export const $connectionStatus = atom<ConnectionStatus>("disconnected")+export const $reconnectAttempts = atom<number>(0)+export const $lastError = atom<string | null>(null)++export const $isConnected = computed(+ $connectionStatus,+ (status) => status === "connected"+)++const MAX_RECONNECT_ATTEMPTS = 10+const MAX_RECONNECT_DELAY = 30000++class WebSocketManager {+ private ws: WebSocket | null = null+ private heartbeatInterval: ReturnType<typeof setInterval> | null = null+ private reconnectTimeout: ReturnType<typeof setTimeout> | null = null+ private messageQueue: WSOutgoingMessage[] = []+ private intentionalClose = false++ connect(): void {+ const userId = $userId.get()+ if (!userId) {+ $lastError.set("Cannot connect: User not authenticated")+ return+ }++ if (this.ws?.readyState === WebSocket.OPEN) {+ return+ }++ this.intentionalClose = false+ $connectionStatus.set("connecting")+ $lastError.set(null)++ const wsUrl = `${WS_URL}/ws?user_id=${userId}`+ this.ws = new WebSocket(wsUrl)++ this.ws.onopen = this.handleOpen.bind(this)+ this.ws.onmessage = this.handleMessage.bind(this)+ this.ws.onclose = this.handleClose.bind(this)+ this.ws.onerror = this.handleError.bind(this)+ }++ disconnect(): void {+ this.intentionalClose = true+ this.cleanup()+ $connectionStatus.set("disconnected")+ $reconnectAttempts.set(0)+ }++ send(message: WSOutgoingMessage): boolean {+ if (this.ws?.readyState !== WebSocket.OPEN) {+ this.messageQueue.push(message)+ return false+ }++ try {+ this.ws.send(JSON.stringify(message))+ return true+ } catch {+ this.messageQueue.push(message)+ return false+ }+ }++ sendEncryptedMessage(+ recipientId: string,+ roomId: string,+ plaintext: string+ ): boolean {+ const message: WSOutgoingEncryptedMessage = {+ type: "encrypted_message",+ recipient_id: recipientId,+ room_id: roomId,+ plaintext,+ }+ return this.send(message)+ }++ sendTypingIndicator(roomId: string, isTyping: boolean): boolean {+ const message: WSOutgoingTyping = {+ type: "typing",+ room_id: roomId,+ is_typing: isTyping,+ }+ return this.send(message)+ }++ sendPresenceUpdate(status: "online" | "away" | "offline"): boolean {+ const message: WSOutgoingPresence = {+ type: "presence",+ status,+ }+ return this.send(message)+ }++ sendReadReceipt(messageId: string, roomId: string): boolean {+ const message: WSOutgoingReceipt = {+ type: "receipt",+ message_id: messageId,+ room_id: roomId,+ }+ return this.send(message)+ }++ getStatus(): ConnectionStatus {+ return $connectionStatus.get()+ }++ private handleOpen(): void {+ $connectionStatus.set("connected")+ $reconnectAttempts.set(0)+ $lastError.set(null)++ this.startHeartbeat()+ this.sendPresenceUpdate("online")+ this.flushMessageQueue()+ }++ private handleMessage(event: MessageEvent): void {+ try {+ const data: unknown = JSON.parse(event.data as string)++ if (!isWSMessage(data)) {+ return+ }++ this.routeMessage(data)+ } catch {+ return+ }+ }++ private routeMessage(message: WSMessage): void {+ if (isEncryptedMessageWS(message)) {+ handleWSMessage(message)+ } else if (isTypingIndicatorWS(message)) {+ handleWSMessage(message)+ } else if (isPresenceUpdateWS(message)) {+ handleWSMessage(message)+ } else if (isReadReceiptWS(message)) {+ handleWSMessage(message)+ } else if (isHeartbeatWS(message)) {+ return+ } else if (isErrorMessageWS(message)) {+ handleWSMessage(message)+ }+ }++ private handleClose(event: CloseEvent): void {+ this.cleanup()++ if (this.intentionalClose) {+ $connectionStatus.set("disconnected")+ return+ }++ const attempts = $reconnectAttempts.get()++ if (attempts >= MAX_RECONNECT_ATTEMPTS) {+ $connectionStatus.set("disconnected")+ const reason = event.reason !== "" ? event.reason : "Unknown reason"+ $lastError.set(`Connection failed after maximum retry attempts (code: ${event.code}, reason: ${reason})`)+ return+ }++ if (!event.wasClean) {+ $lastError.set(`Connection closed unexpectedly (code: ${event.code})`)+ }++ $connectionStatus.set("reconnecting")+ $reconnectAttempts.set(attempts + 1)++ const delay = Math.min(+ WS_RECONNECT_DELAY * Math.pow(2, attempts),+ MAX_RECONNECT_DELAY+ )++ this.reconnectTimeout = setTimeout(() => {+ this.connect()+ }, delay)+ }++ private handleError(_event: Event): void {+ $lastError.set("WebSocket connection error")+ }++ private startHeartbeat(): void {+ this.stopHeartbeat()++ this.heartbeatInterval = setInterval(() => {+ if (this.ws?.readyState === WebSocket.OPEN) {+ const heartbeat: WSOutgoingHeartbeat = {+ type: "heartbeat",+ timestamp: new Date().toISOString(),+ }+ this.ws.send(JSON.stringify(heartbeat))+ }+ }, WS_HEARTBEAT_INTERVAL)+ }++ private stopHeartbeat(): void {+ if (this.heartbeatInterval !== null) {+ clearInterval(this.heartbeatInterval)+ this.heartbeatInterval = null+ }+ }++ private flushMessageQueue(): void {+ while (this.messageQueue.length > 0 && this.ws?.readyState === WebSocket.OPEN) {+ const message = this.messageQueue.shift()+ if (message !== undefined) {+ try {+ this.ws.send(JSON.stringify(message))+ } catch {+ this.messageQueue.unshift(message)+ break+ }+ }+ }+ }++ private cleanup(): void {+ this.stopHeartbeat()++ if (this.reconnectTimeout !== null) {+ clearTimeout(this.reconnectTimeout)+ this.reconnectTimeout = null+ }++ if (this.ws !== null) {+ this.ws.onopen = null+ this.ws.onmessage = null+ this.ws.onclose = null+ this.ws.onerror = null++ if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) {+ this.ws.close()+ }+ this.ws = null+ }+ }+}++export const wsManager = new WebSocketManager()++export function connectWebSocket(): void {+ wsManager.connect()+}++export function disconnectWebSocket(): void {+ wsManager.disconnect()+}++export function sendWSMessage(message: WSOutgoingMessage): boolean {+ return wsManager.send(message)+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/tsconfig.json b/PROJECTS/encrypted-p2p-chat/frontend/tsconfig.jsonnew file mode 100644index 00000000..6d95ade0--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/tsconfig.json@@ -0,0 +1,29 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "useDefineForClassFields": true,+ "module": "ESNext",+ "lib": ["ES2020", "DOM", "DOM.Iterable"],+ "skipLibCheck": true,++ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "isolatedModules": true,+ "moduleDetection": "force",+ "noEmit": true,+ "jsx": "preserve",+ "jsxImportSource": "solid-js",++ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,+ "noUncheckedSideEffectImports": true,++ "baseUrl": ".",+ "paths": {+ "~/*": ["./src/*"]+ }+ },+ "include": ["src"]+}diff --git a/PROJECTS/encrypted-p2p-chat/frontend/vite.config.ts b/PROJECTS/encrypted-p2p-chat/frontend/vite.config.tsnew file mode 100644index 00000000..3c4e37b1--- /dev/null+++ b/PROJECTS/encrypted-p2p-chat/frontend/vite.config.ts@@ -0,0 +1,46 @@+// ===================+// © AngelaMos | 2025+// vite.config.ts+// ===================+import { defineConfig } from "vite";+import solid from "vite-plugin-solid";+import tailwindcss from "@tailwindcss/vite";+import path from "path";++export default defineConfig({+ plugins: [solid(), tailwindcss()],+ envDir: "../",+ resolve: {+ alias: {+ "~": path.resolve(__dirname, "./src"),+ },+ },+ server: {+ port: 5173,+ host: true,+ proxy: {+ "/api": {+ target: "http://backend:8000",+ changeOrigin: true,+ },+ "/ws": {+ target: "ws://backend:8000",+ ws: true,+ },+ },+ },+ build: {+ target: "esnext",+ outDir: "dist",+ sourcemap: true,+ rollupOptions: {+ output: {+ manualChunks: {+ "solid-js": ["solid-js"],+ "solid-router": ["@solidjs/router"],+ "solid-query": ["@tanstack/solid-query"],+ },+ },+ },+ },+});