commit 6255fc4845bad6886e374882e72e94c552893671 Author: Jerrit Fritzsche Date: Thu Nov 26 03:51:13 2026 +0100 Syncova. Folio mit Docker-Publishing einrichten diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8b656b3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +node_modules +dist +.git +.env +data +*.log diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..389fc46 --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +BIND_ADDRESS=127.0.0.1 +HOST_PORT=4170 +PUBLIC_BASE_URL=http://localhost:4170 +DEMO_MODE=false +SAMPLE_DATA=false +ADMIN_USERNAME=admin +ADMIN_PASSWORD= +POSTGRES_PASSWORD= diff --git a/.gitea/workflows/publish-image.yml b/.gitea/workflows/publish-image.yml new file mode 100644 index 0000000..7b82da8 --- /dev/null +++ b/.gitea/workflows/publish-image.yml @@ -0,0 +1,53 @@ +name: Docker-Image veröffentlichen + +on: + push: + branches: [main] + workflow_dispatch: + +env: + REGISTRY: git.jfritzsche.de + IMAGE: git.jfritzsche.de/jf/syncova-folio + +jobs: + publish: + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 25 + steps: + - name: Quellcode auschecken + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Docker-Image bauen + run: | + set -eu + docker build --pull \ + --label "org.opencontainers.image.title=Syncova. Folio" \ + --label "org.opencontainers.image.source=https://git.jfritzsche.de/jf/syncova-folio" \ + --label "org.opencontainers.image.revision=${GITHUB_SHA}" \ + --tag "${IMAGE}:sha-${GITHUB_SHA}" \ + --tag "${IMAGE}:latest" . + + - name: Image in der Gitea-Registry veröffentlichen + env: + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + run: | + set -eu + : "${REGISTRY_TOKEN:?Das Actions-Secret REGISTRY_TOKEN fehlt}" + DOCKER_CONFIG="$(mktemp -d)" + export DOCKER_CONFIG + cleanup() { + docker logout "${REGISTRY}" >/dev/null 2>&1 || true + rm -rf -- "${DOCKER_CONFIG}" + } + trap cleanup EXIT + + printf '%s' "${REGISTRY_TOKEN}" | docker login "${REGISTRY}" --username jf --password-stdin + docker push "${IMAGE}:sha-${GITHUB_SHA}" + main_ref="$(git ls-remote --exit-code origin refs/heads/main)" + main_commit="${main_ref%%[[:space:]]*}" + if [ "${main_commit}" = "${GITHUB_SHA}" ]; then + docker push "${IMAGE}:latest" + fi diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d98640 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.env +data/ +*.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3d1f364 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:24-bookworm-slim AS build +WORKDIR /app +COPY package*.json ./ +RUN npm ci --no-audit --no-fund +COPY . . +RUN npm run build && npm prune --omit=dev --no-audit --no-fund + +FROM node:24-bookworm-slim +RUN node -e "const fs=require('node:fs'); fs.mkdirSync('/etc/ssl/certs',{recursive:true}); fs.writeFileSync('/etc/ssl/certs/ca-certificates.crt',require('node:tls').rootCertificates.join('\n')+'\n')" \ + && sed -i -e 's|http://deb.debian.org/debian-security|https://deb.debian.org/debian-security|' -e 's|http://deb.debian.org/debian$|https://mirror.netcologne.de/debian|' /etc/apt/sources.list.d/debian.sources \ + && apt-get -o APT::Update::Error-Mode=any -o Acquire::Retries=3 -o Acquire::https::Timeout=20 update \ + && apt-get -o Acquire::Retries=2 -o Acquire::https::Timeout=20 install -y --no-install-recommends chromium fonts-liberation ca-certificates \ + && rm -rf /var/lib/apt/lists/* +WORKDIR /app +ENV NODE_ENV=production PORT=4170 DATA_DIR=/data CHROMIUM_PATH=/usr/bin/chromium +COPY --from=build --chown=node:node /app/node_modules ./node_modules +COPY --from=build --chown=node:node /app/dist ./dist +COPY --chown=node:node package.json ./ +COPY --chown=node:node server ./server +COPY --chown=node:node shared ./shared +RUN mkdir /data && chown node:node /data +USER node +EXPOSE 4170 +CMD ["node", "server/index.js"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8530e34 --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +# Syncova. Folio + +Syncova. Folio ist eine selbst gehostete Webanwendung für digitale Magazine und Broschüren. Browser-Anwendung, API und Publishing-Worker laufen in einem Container. PostgreSQL läuft in einem zweiten Container. Schrift, UI, Blätteranimation, Medien und PDF-Erzeugung kommen aus dem lokalen Stack. + +## Lokal starten + +Voraussetzung ist Docker mit Compose. Kopiere `.env.example` nach `.env` und setze dort den gewünschten `ADMIN_USERNAME`, ein `ADMIN_PASSWORD` mit mindestens 12 Zeichen sowie ein eigenes `POSTGRES_PASSWORD`. + +```sh +docker compose up -d --build +docker compose ps +``` + +Melde dich unter [localhost:4170](http://localhost:4170) mit dem Benutzernamen und Passwort aus `.env` an. Veröffentlichte Ausgaben sind über ihre Reader-Links ohne Studio-Anmeldung erreichbar. Für eine separate lokale Demo kannst du `DEMO_MODE=true` und `SAMPLE_DATA=true` setzen. [NACHTKAUF](http://localhost:4170/ausgabe/nachtkauf) ist die zwölfseitige Vorlage für den freien Editor. Öffne im Magazinmenü **Als Vorlage kopieren**, um einen eigenständigen bearbeitbaren Entwurf anzulegen. + +Mit `docker compose down` lässt sich der Stack anhalten und später mit denselben Daten starten. Die Volumes `folio_postgres` und `folio_files` enthalten alle Daten. `docker compose down -v` löscht beide Volumes einschließlich Ausgaben, Medien und Entwürfen. + +## Redaktion und Veröffentlichung + +1. Lege ein Magazin an. Ziehe Elemente aus der Seitenleiste auf die freie A4-Fläche. Ziehe direkt am Element zum Verschieben, an den Eckgriffen zum Skalieren und am runden Griff zum Drehen. Tippen fügt einen Baustein ein und Ziehen auf der Seite funktioniert auch mit Touch. Die Ebenenliste wählt verdeckte Elemente aus und steuert die Reihenfolge. Ein Doppelklick bearbeitet Text direkt. Die Pfeiltasten bewegen das fokussierte Element um einen Seitenpixel, mit Umschalt um zehn. Position und Größe sind zusätzlich im Inspektor verfügbar. An bestehenden Flusslayouts reicht eine Ziehbewegung oder **Seite frei bearbeiten**, um das Layout zu übernehmen. +2. **Entwurf speichern** legt eine neue Version an. Der Versionsverlauf bietet Vorschau und Wiederherstellung. Beim Speichern landen entfernte Seiten und Elemente im Papierkorb. Dort lassen sich auch gelöschte Magazine, Mediendateien und Galerien wiederherstellen. +3. **Vorschau** zeigt den aktuellen Entwurf inklusive ungespeicherter Änderungen. Unter **Veröffentlichen** lässt sich die Ausgabe sofort oder zu einem geplanten Zeitpunkt in der Browser-Zeitzone einplanen. +4. Der Worker validiert den gespeicherten Stand, erzeugt HTML und rendert ein A4-PDF mit Chromium. Enthält eine Seite zu viel Inhalt, meldet die Veröffentlichung den Seitentitel. Die bisherige Ausgabe bleibt bis zur erfolgreichen Fertigstellung erreichbar. Hochgeladene Videos werden im Flipbook abgespielt. Im PDF steht an ihrer Stelle ein Hinweis auf die Online-Ausgabe. +5. Unter **Veröffentlichungen** erscheinen Status, Fehler und Zeitpunkte. **Link & Einbettung** liefert die URL und den iframe-Code. Der öffentliche Reader bietet Blättern per Touch oder Maus, Pfeiltasten, Zoom, Inhaltsverzeichnis, Seitensprung, Vollbild und PDF-Download. + +Der öffentliche Reader setzt keine Cookies. Er erhöht je Ladevorgang einen Aufrufzähler und bei einer erfolgreichen PDF-Übertragung den Downloadzähler. Die Anwendung speichert dafür aggregierte Zahlen je Magazin. Admin-Sitzungen verwenden im geschützten Modus ein separates Sitzungscookie. + +## Deployment vorbereiten + +Kopiere `.env.example` nach `.env` und setze `PUBLIC_BASE_URL` auf die tatsächliche HTTPS-Adresse. Konfiguriere `ADMIN_USERNAME`, `ADMIN_PASSWORD` und `POSTGRES_PASSWORD` und belasse `DEMO_MODE=false` und `SAMPLE_DATA=false`. Nach Änderungen an den Studio-Zugangsdaten übernimmt `docker compose up -d` die geänderte Umgebung. Bei einer bestehenden PostgreSQL-Installation muss eine Änderung von `POSTGRES_PASSWORD` auch in der Datenbank angewendet werden. + +Leite HTTPS mit einem Reverse Proxy an Port `4170` weiter. Läuft der Proxy auf dem Docker-Host, kann `BIND_ADDRESS=127.0.0.1` bestehen bleiben. Das Studio verwendet `PUBLIC_BASE_URL` für öffentliche Links und Einbettungen. Die Datenbank hat keinen veröffentlichten Host-Port. Für Backups sichere sowohl PostgreSQL als auch das Dateivolume, damit Snapshots und zugehörige Dateien zusammen wiederherstellbar sind. + +Gitea Actions baut bei einem Push nach `main` das Docker-Image. Die Registry erhält einen Tag `sha-` für jeden erfolgreichen Build. `latest` verweist auf den zuletzt veröffentlichten Stand von `main`. Der Workflow verwendet das Actions-Secret `REGISTRY_TOKEN` mit Schreibzugriff auf die Registry und kann auf `main` auch manuell gestartet werden. + +```sh +docker pull git.jfritzsche.de/jf/syncova-folio:latest +``` + +## Technische Entscheidungen + +- React mit Vite und shadcn/ui-Komponenten auf Radix für die Oberfläche. +- Frei positionierbare Bausteine mit gemeinsamem HTML-Renderer für Vorschau und Publikation. Der Baustein **HTML & CSS** unterstützt eigene statische Layouts, Tabellen, Listen, SVG-Grafiken und Inline-Stile. CSS bleibt auf seinen Rahmen beschränkt. Skripte, Formularübermittlungen und externe Medienquellen sind im Rahmen gesperrt. Eigene Bilder und Videos stehen über die Medienbausteine zur Verfügung. +- PostgreSQL für Entwürfe, Versionen, Warteschlange und Zähler. Ein Docker-Volume enthält Uploads und erzeugte Dateien. +- StPageFlip für die Animation und Chromium für die PDF-Erzeugung. Die Anwendung benötigt zur Laufzeit keine externen Dienste. Redaktionell gesetzte Links führen erst beim Anklicken zu ihrem Ziel. + +## Beispielcover + +Die drei JPEG-Dateien in `server/demo/` stammen aus einem Triptychon des eingebauten ImageGen-Tools. + +
+ImageGen-Prompt + +> Generate one wide landscape 3:2 image, seamless grid of EXACTLY THREE flush and equal-width vertical photography panels, no gaps or borders. It will be split into three separate cover photos for a sophisticated German editorial magazine studio. Left third: rugged dramatic Italian Dolomites at blue hour with a placid alpine lake, pale mist, dark pine forest at its shores and moody teal blue tones, distant jagged mountain centrally framed. Center third: architectural interior with terracotta orange monumental stair and arch, warm tactile plaster, strong oblique sun with angular shadows, contemporary Mediterranean minimalism. Right third: bright glossy Sicilian yellow and orange citrus fruit on fresh deep-green branches, late afternoon garden, cinematic dark forest green on upper half. Distinct editorial fine art photography in each region, rich film tones, highly art-directed, credible, restrained. Fill full bleed to outer edges. Absolutely no lettering, text, people, UI, frames, watermarks or logos. + +
+ +### NACHTKAUF + +Die neun JPEG-Motive und der daraus geschnittene stumme WebM-Film liegen in [`server/demo/nightkauf/`](server/demo/nightkauf/). Das Atrium und beide Fotobögen wurden mit dem eingebauten ImageGen-Tool erzeugt. + +
+Cover · Atrium + +> A single portrait 2:3 full-bleed editorial photograph for a fictional luxury night department store catalog, designed to be typeset later. Surreal yet photorealistic architectural photograph of a midnight-black mirrored atrium with a single luminous chartreuse circular halo framing a brutalist staircase, one small distant silhouette at the entrance, liquid chrome reflections, hard shadows, museum installation, 35mm film grain, elevated avant-garde fashion art direction. Composition centered with dark negative space on the top quarter and lower edge for type overlay. Palette near-black, cold silver, bright acid chartreuse #dcfc36. No letters, numerals, logos, watermarks or borders. + +
+ +
+Fotobogen · Objekte und Mode + +> One 3:2 landscape photographic contact sheet. EXACTLY four equal flush rectangular photo quadrants in a 2 by 2 grid with no spacing or margins, each a different luxury object editorial shot, suitable to be cropped individually. Top left: singular sculptural molten chrome table lamp in the form of a liquid silver dome on a glossy charcoal plinth, hard specular light. Top right: a large crumpled black technical nylon couture jacket on a torso mannequin with face out of frame in chartreuse spotlight. Bottom left: extravagant black cherry tart dusted with sugar, bright red candied cherries in an oval chrome dish, vermilion studio background. Bottom right: bright electric lavender satin clutch bag with a single polished metal handle floating against deep ultramarine, rich folds. Photorealistic high-fashion store editorial, coherent analog film and directional light. Each scene stays in its own quadrant. Absolutely no text, numerals, logos, borders, or watermarks. + +
+ +
+Fotobogen · Bar, Duft und Architektur + +> One 3:2 landscape contact sheet of four equal separate flush photo quadrants in a 2 by 2 grid, no dividers/gaps; each photograph for an avant-garde midnight department store lookbook. Top left: neon acid green aperitif with a spiral lemon peel in tall stemmed glass on black lacquer, boutique bar, film grain. Top right: architectural chrome escalators in a dimly lit brutalist department store, acid green horizontal lighting and dark forest shadows. Bottom left: two transparent sculptural perfume bottles with tinted deep cobalt glass and water reflections, no labels, highly editorial. Bottom right: ceiling of a futuristic mirrored fashion store in rich copper with hanging dark chrome spherical lights, industrial editorial photograph. Sophisticated architectural still life, real material textures, clean subjects. No letters, numbers, logos, text, people, or watermarks. + +
diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..11add6e --- /dev/null +++ b/compose.yaml @@ -0,0 +1,47 @@ +name: syncova-folio +services: + app: + image: syncova-folio:1.1.1 + build: . + init: true + restart: unless-stopped + ports: + - '${BIND_ADDRESS:-127.0.0.1}:${HOST_PORT:-4170}:4170' + environment: + DATABASE_HOST: db + DATABASE_NAME: folio + DATABASE_USER: folio + DATABASE_PASSWORD: ${POSTGRES_PASSWORD:-folio-local-development} + PUBLIC_BASE_URL: ${PUBLIC_BASE_URL:-http://localhost:4170} + DEMO_MODE: ${DEMO_MODE:-false} + SAMPLE_DATA: ${SAMPLE_DATA:-false} + ADMIN_USERNAME: ${ADMIN_USERNAME:-admin} + ADMIN_PASSWORD: ${ADMIN_PASSWORD:-} + volumes: + - folio_files:/data + depends_on: + db: + condition: service_healthy + healthcheck: + test: [CMD, node, -e, "fetch('http://localhost:4170/api/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 20s + db: + image: postgres:17-bookworm + restart: unless-stopped + environment: + POSTGRES_DB: folio + POSTGRES_USER: folio + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-folio-local-development} + volumes: + - folio_postgres:/var/lib/postgresql/data + healthcheck: + test: [CMD-SHELL, pg_isready -U folio -d folio] + interval: 5s + timeout: 5s + retries: 12 +volumes: + folio_files: + folio_postgres: diff --git a/index.html b/index.html new file mode 100644 index 0000000..f74d5a6 --- /dev/null +++ b/index.html @@ -0,0 +1,15 @@ + + + + + + + + + Syncova. Folio + + +
+ + + diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..e80339d --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4238 @@ +{ + "name": "syncova-folio", + "version": "1.1.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "syncova-folio", + "version": "1.1.1", + "dependencies": { + "@fontsource-variable/manrope": "^5.2.8", + "@radix-ui/react-dialog": "^1.1.15", + "@radix-ui/react-slot": "^1.2.3", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "express": "^5.1.0", + "file-type": "^21.0.0", + "lucide-react": "^0.562.0", + "multer": "^2.0.2", + "page-flip": "^2.0.7", + "parse5": "^8.1.1", + "pg": "^8.16.3", + "puppeteer-core": "^25.19.0", + "qrcode": "^1.5.4", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-router-dom": "^7.11.0", + "zod": "^4.6.7" + }, + "devDependencies": { + "@vitejs/plugin-react": "^5.1.2", + "vite": "^7.3.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.13.tgz", + "integrity": "sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.13", + "@babel/helper-compilation-targets": "^7.29.13", + "@babel/helper-module-transforms": "^7.29.13", + "@babel/helpers": "^7.29.13", + "@babel/parser": "^7.29.13", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.13", + "@babel/types": "^7.29.11", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.15.tgz", + "integrity": "sha512-gNWJUX0FlevflramOkaInywOMhU1lkln38gAC7TFZv2tsWbLYbN/2WZFGcq8zbX0Z55e4vGa27IB/NaeZoauWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.15", + "@babel/types": "^7.29.15", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz", + "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.14.tgz", + "integrity": "sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.14" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.15.tgz", + "integrity": "sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.15.tgz", + "integrity": "sha512-l+ezV2czw3t2d2ELq+3CwPL4WLKK5O8IywBXb9/gpmbCOVZFmRYJPmHVqSCv2k+8iKbE30Zf54siOoIZ52XOxA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.15.tgz", + "integrity": "sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.15" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.15.tgz", + "integrity": "sha512-ZfawBo2i8vvt+BTt37dWDKBPjUfm/H+bw+ltwsCRhW7gPtyNVwUXuNo54eO2Xo+P4VXpalPFfFISbBTRKC8SOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.15", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.15", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.15", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.15.tgz", + "integrity": "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.15", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@borewit/text-codec": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.3.tgz", + "integrity": "sha512-49CycTz1aAZmvFcwkeFyhud1HUmRIB5Tabf7ALV+VA4Iu85MTfz2cUwzPagMFAdVBvrWdkCxG67I30tUwwpKsw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@fontsource-variable/manrope": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/manrope/-/manrope-5.3.0.tgz", + "integrity": "sha512-6D5dgokHsWDDMtmXHznKa0hK229NN+1a4BLPmUCLqcO1Pw5EEhWY5RFt0AcXnVRAljFFPfRtLkJePQj6LSsV6g==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "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, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@puppeteer/browsers": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.3.0.tgz", + "integrity": "sha512-ZiOVHQ5KmsinwZJMwRc/a3xsGHbi9dRuAyf2gq4i9J5vRaI4r7SSIaJUniF1JVClG+qNoVdtBBWfL08N9Oib6g==", + "license": "Apache-2.0", + "dependencies": { + "modern-tar": "^0.8.6", + "yargs": "^18.0.0" + }, + "bin": { + "browsers": "lib/main-cli.js" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "proxy-agent": ">=8.0.1", + "yauzl": "^2.10.0 || ^3.4.0" + }, + "peerDependenciesMeta": { + "proxy-agent": { + "optional": true + }, + "yauzl": { + "optional": true + } + } + }, + "node_modules/@radix-ui/primitive": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.2.0.tgz", + "integrity": "sha512-KABY+VMIRPJL+Vyzv/335FEhXXD/xDv8BMb1kl48/aXJZMH0LtHCTx5ga5RnxaEP3nZHtmTLf1P9vanmFX46bw==", + "license": "MIT" + }, + "node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.5.tgz", + "integrity": "sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-context": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.3.0.tgz", + "integrity": "sha512-v5AYEocMISkbJ+1fTXzZpiFv7NRr3D2WiYbLIKf+FkmJ8VkP6d503eV2n34MFussHXY1pcoq3yfJiQH77dc4Mg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dialog": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.3.1.tgz", + "integrity": "sha512-+0E4qvVTwjAWra9sEhJ+9BTsvHE00zkUuNw1VGh7S+Gc13dfYk+S1PVQdchWDj+XYHhAai7Z7IpzXVDCGsDplg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.2.0", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-context": "1.3.0", + "@radix-ui/react-dismissable-layer": "1.2.1", + "@radix-ui/react-focus-guards": "1.2.0", + "@radix-ui/react-focus-scope": "1.3.1", + "@radix-ui/react-id": "1.1.4", + "@radix-ui/react-portal": "1.2.0", + "@radix-ui/react-presence": "1.1.11", + "@radix-ui/react-primitive": "2.2.0", + "@radix-ui/react-slot": "1.5.0", + "@radix-ui/react-use-controllable-state": "1.3.0", + "@radix-ui/react-use-layout-effect": "1.1.4", + "aria-hidden": "^1.2.4", + "react-remove-scroll": "^2.7.2" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-dismissable-layer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.2.1.tgz", + "integrity": "sha512-KIfDcAsx+oVylFZ4xryVKusJUrLLhTQmfnJW4kwk4Km5myvhHCrj04hnWWUC166+xD4DHdH8tQGylwYX1h6+Pg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.2.0", + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-primitive": "2.2.0", + "@radix-ui/react-use-callback-ref": "1.1.5", + "@radix-ui/react-use-effect-event": "0.0.5" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-guards": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.2.0.tgz", + "integrity": "sha512-MPm5R0iRGUDrDnPNxmLBkv+X7pN4XKzt+MbWJEuJQsH3NFH4omrbpXpucyYCCKTSt+na/ZxGhEWQrWTZ0285cA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-focus-scope": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.3.1.tgz", + "integrity": "sha512-ugeMhbXt4y5S2T1GnIqbWDKEN962PDwnX1fN0eKOOgf5f63Dh2mn8F1FUySlgW0iF6GiVsRF32DzuDIWTUyQJg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.5", + "@radix-ui/react-primitive": "2.2.0", + "@radix-ui/react-use-callback-ref": "1.1.5" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-id": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.4.tgz", + "integrity": "sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-portal": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.2.0.tgz", + "integrity": "sha512-StX7xXnaRU41VvFtMm9zlhVGz8XF6GmWWTXftkQaY+tqVkbs/R9UmAp5mLzHHapk5hM9RMZQvO/3usyIP/g42g==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-primitive": "2.2.0", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-presence": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.11.tgz", + "integrity": "sha512-Z7/atlkab36Z8hm+V8zYc79r0W+tiOB1o0tun1By94JyadkekLQmtEAnBSP9XKXBNQsStoStS4+gX10JpS5akA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-primitive": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.2.0.tgz", + "integrity": "sha512-HCTSPMNqv55Qk0IX4geJbpyXazmqulcimwuyjxTkKi29v+QZbG2Zho9BnbBq4YS2PF+KlNb2CXoLz66uUmblkg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.5.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-slot": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.5.0.tgz", + "integrity": "sha512-tyYd9ddPXAysAbdbD9eYxgwpCSv6f3PncqVSNKQFSR5lcJVLz3cb/pANDoYrLiHBpXv7skortyUgGUWsYuPPFQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.5" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.5.tgz", + "integrity": "sha512-Y5GBf4NKeADoXI1geiMlMuMoURT3k9MizzzKhGb/m55H94aGigZ01PIpkvsO6lML13BA6XYAXSJ6gza7vTn5nw==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.3.0.tgz", + "integrity": "sha512-TAcBI7bw2ljYCbv4+zuTSd6zICu8pRt6SDN2vJ/Z06K2MXh6I9WYFe/A9ovlFDtR5HVHGm5iDxDoABm/++dbKg==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.2.0", + "@radix-ui/react-use-effect-event": "0.0.5", + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-effect-event": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.5.tgz", + "integrity": "sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.4" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.4.tgz", + "integrity": "sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.68.8.tgz", + "integrity": "sha512-7l9FdeCGjhmMTVePgndK4t9u5tLR+VuTTMoyc0PscqZDdYjS07ZsQ0vQYsWsODu/ZZYPG7WVJwbUZ77n1hVT+w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.68.8.tgz", + "integrity": "sha512-kXkkIiJujBjArHwEToz99BQqIqibn4xdV6SjsoaxuZzvLUCVEzoHQ1Lp62m7xOhpLRpWpCtxL2ZUy/ADKuz9/g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-x64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-x64/-/rollup-android-x64-4.68.8.tgz", + "integrity": "sha512-KYoBygnHs3zUOLR0z7SaqhMnUrSF9pbuTOJT/uHK3PrgCXdv/xaMubZD8jCpg6NTo46deasLgZRq38xFTyu8uw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.68.8.tgz", + "integrity": "sha512-YmBUNjgm5bsjOByO+H1TFbuGZe+ZnHcYtPXYj9+L1cwTu/BG8zjuUzO2PH9KwS85P0UH+WJDSb+mQ2hqjp5uBQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.68.8.tgz", + "integrity": "sha512-XMX5ybuOmkwiM13KJtsBxakZ69pyaR9thRYU2fMejhaB0VuzLMIkIc+9TBsu2rv34eEf6XaSMOaLOyEgHGWHTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.68.8.tgz", + "integrity": "sha512-WuBXScWJDaqPJKwVrotUe1sM9DHWMN937C23RClt0MVHVt7A1rBy285ZfZTLccPEVMxmGJMt2jvdHMOI33lrKA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.68.8.tgz", + "integrity": "sha512-kegwGqP3rMenEMaKo8OzMBb5WvLW2h2jrQ3iKuYptTTF8C/yuxz+hinjBPrtYuIPLJDwxHc/hv2e4u5pmrqo9A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.68.8.tgz", + "integrity": "sha512-Qct0oLM1zGNbvqs1udQnuchg+Q9uHbkMcQqCfs3M7foNn7HvEkUypfFn9o5fklimUI5OF3A2nMknd4/vrEyeVg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.68.8.tgz", + "integrity": "sha512-xTH5vD+lW/5MU3kL/Op8RSSG/O9fxUQZuJcSBmmBeYem9uXYvCq6PDHx/oDSNeyLD/p4pGujG2PVI0R8MjAhSw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.68.8.tgz", + "integrity": "sha512-lPPStmynSHvwWpSrAsuemPFB+EWFObXjwz44EK4Hph47U6SBAk1Kehq5MkI7i8EYVjrXddaAV7YkJH8mX8QSZQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.68.8.tgz", + "integrity": "sha512-kZkvIYAihM6l6M+giSUHayDDf/JL+TYR5bYWiAX7/jUFWvMkMmysA4GV2F0HOsXQNEyctW3x1xLjww1GqW7Q1w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.68.8.tgz", + "integrity": "sha512-XZKLEIY977OJr6zUtK6nlQcLXme34c8HqVp3+WmKQxKVN6Nj+b9qE3ZHWIDHXznHJsGl2AsaMOgB0GL0fkZGUg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.68.8.tgz", + "integrity": "sha512-+sN+Fj6F9suk8SkL6boIfXDmj9iJwSKPCTeCy8/pfTOHuzNX+duhTb9uyj6154oVK8Odl5zgL4DXRZzXjsRKcw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.68.8.tgz", + "integrity": "sha512-EBCu3uDFaGwSodUl+XR8yubvVFUkSo6QK9YAIOV1vljqntzTF2/mXLM6utgLaSGf/8oM+qEe8Ai0Jd4+tyMoIQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.68.8.tgz", + "integrity": "sha512-hRC0jWdsLBckCijx2wiUfk7zW1SqEW47yMsCNoDGmQfoqq0AjW+9UYZqxg3LTmG76PyHNdNGBSuspB3CqrhGIA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.68.8.tgz", + "integrity": "sha512-OZKrTRWyGnLITUTipbeXDdtb2dxQPyFk/Fbw9qER8pIvd2Ja9hHELkY0Fv5p9yYYkimqtzVhApKKXGv0cWGQGw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.68.8.tgz", + "integrity": "sha512-HmhSRSQ+dOeOntPfmYux4rCpOQLtsGbcGLQu4nm8ig3tuVqe/bKfDHorg36LKAqYq4X/nwFr79ImtaFHHsn4ug==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.68.8.tgz", + "integrity": "sha512-wk1Ci1hsMREaBELoKPSnzRAh1oUULI+8kfb2F5vVmTD2IcfR9AKMskCusizZhIAvojOtPZihPj4OdKy6ifZwhQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.68.8.tgz", + "integrity": "sha512-mDufoUJ6fnKZnCyjV3sGEDvXQQkM6j1UmINHheGX4Emau3TZWJzX3sCVmbzkNB+W2G84BiFQdDCcF09lv0i0VA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.68.8.tgz", + "integrity": "sha512-7EGVL9rYRYQZe3UC8JQzfBN9rxk484Rfs4u/yGWumTYKUdJt6tmdP+0Y3qHvAvzJCQ+JQM5rSqZbVyrJARlGpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.68.8.tgz", + "integrity": "sha512-Umklz+QSGwKWQVlVrsMJrwFx1oNRYHgrxSGiZM8pJCMpzWnMDMinDhPILf0BvRXfA1QOArsDcs+AE7Jd6dQxvA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.68.8.tgz", + "integrity": "sha512-BlRp6uzQDK5rczAdaXQ8dlSIRFRlkDRBqpb8GGtv8iwZxQdOjoigdFU5t5dcxpnpU0caMoT9mH27MyAl4dWwKw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.68.8.tgz", + "integrity": "sha512-Sc8Mkf/fVfcV0hBJNDRIM82BjS4kJn2Of0jP8dgQ+TodquxtCZ/5D6FgSsY3uN5IBmNi8Zrb/OHd60IEYKaw+Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.68.8.tgz", + "integrity": "sha512-XPTFXclN+I+Cfu3ONWDsw+uvgSZjTJa1B2u2EvtdKlSdgNU6mrOZdgeaMkvN+2T2KPTEXn6fnRY8IODlRg3/Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.68.8.tgz", + "integrity": "sha512-63dWiHgvpWcienfdr465lT3SIn4u3535vbDfaLKhSn0F2KJ06bbcUsewDGJZUPZCbJ67qESrPDhb85UnWdb5ew==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.68.8.tgz", + "integrity": "sha512-/W1LBsMeQAdiCuH3Z2gkRspl3mlxL+butknhq4vXjmxO45vuT08BqhehxDoE4YS+m6s9lhpq6M9/PjTEAg8PYw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tokenizer/inflate": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz", + "integrity": "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "token-types": "^6.1.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.11.tgz", + "integrity": "sha512-YBdNe5JcjYR0sPhJW1QIeRCmI11YhYvaRuGCs9+WCeTTb+Yhb2BE2XMe5/wAqF10FK5g3+q1PDhQABfT7aX0gg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", + "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", + "license": "MIT" + }, + "node_modules/aria-hidden": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz", + "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.39", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.39.tgz", + "integrity": "sha512-Q9buOYhr2ggrEZpImICecZTJHCCd8yXkRUokFlUEQ8uiD6oP82F4W4jWnhOHZYV+wlvrC51V7Wy0ULyWjil5Wg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/body-parser": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz", + "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^2.1.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.3", + "on-finished": "^2.4.1", + "qs": "^6.16.1", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/browserslist": { + "version": "4.29.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.6.tgz", + "integrity": "sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.37", + "caniuse-lite": "^1.0.30001826", + "electron-to-chromium": "^1.5.486", + "node-releases": "^2.0.64", + "update-browserslist-db": "^1.4.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001828", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001828.tgz", + "integrity": "sha512-7MWeT+3DlrpuDybTWHl4Zb1Z80Z1fLLnOXuBjDXebzDVcqnEWUlV8JcbASg8B8BhcW8QT2UiR1KAtzYFIZHZYA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chromium-bidi": { + "version": "157.0.8090-0", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-157.0.8090-0.tgz", + "integrity": "sha512-KJw7IQgqXwxpJgJlEIPg5mr2ZoqA+jkTRtc5EABI7sUJ3bu3cpI7NuEBoj4Gn1AsF78CaT9So5WQWspK3/wYag==", + "license": "Apache-2.0", + "dependencies": { + "mitt": "^3.0.1", + "zod": "^4.6.5" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, + "node_modules/class-variance-authority": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", + "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1" + }, + "funding": { + "url": "https://polar.sh/cva" + } + }, + "node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", + "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/detect-node-es": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", + "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", + "license": "MIT" + }, + "node_modules/devtools-protocol": { + "version": "0.0.1724436", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1724436.tgz", + "integrity": "sha512-GcO1782pvzpmY4pQO1zjr8WZ95Wv8GodOs0v5J9QWwLGulTzfYIYECEd9iUsnqJmcehu+VMKxZquvjY8T2jhAA==", + "license": "BSD-3-Clause" + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", + "license": "MIT" + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.494", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.494.tgz", + "integrity": "sha512-Tph7ohL4Xc0ft3DXElYEIVTmPI3H0MtPCTdgtz5AwWGZG6q+vMiT3IzJ3RJX/HJQ8pYzeimQyvi6SsBTOS0nyQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.3.tgz", + "integrity": "sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/entities": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", + "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", + "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.3.0", + "content-disposition": "^2.0.1", + "content-type": "^2.0.0", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.8", + "qs": "^6.16.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.1.0", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-type": { + "version": "21.3.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.4.tgz", + "integrity": "sha512-Ievi/yy8DS3ygGvT47PjSfdFoX+2isQueoYP1cntFW1JLYAuS4GD7NUPGg4zv2iZfV52uDyk5w5Z0TdpRS6Q1g==", + "license": "MIT", + "dependencies": { + "@tokenizer/inflate": "^0.4.1", + "strtok3": "^10.3.4", + "token-types": "^6.1.1", + "uint8array-extras": "^1.4.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-nonce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", + "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lucide-react": { + "version": "0.562.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.562.0.tgz", + "integrity": "sha512-82hOAu7y0dbVuFfmO4bYF1XEwYk/mEbM5E+b1jgci/udUBEE/R7LF5Ip0CCEmXe8AybRM8L+04eP+LGZeDvkiw==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, + "node_modules/modern-tar": { + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.8.6.tgz", + "integrity": "sha512-LYSks0tNVqbtez/9OB0YFP6qLRSqkdAxJWOQpVaR67lNTbj2zNLyYpowkRMia5lXLCZKzxwoxkxH2MbbBR2aEg==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/multer": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/multer/-/multer-2.5.0.tgz", + "integrity": "sha512-BsqOzYGVq49JcW2IzoSAxeKYRevb+dGGPPWleOR8Lrlk4igwxu1/9pwSXlByhCb7MVZDrNJFC0IBP5/O5nLYRw==", + "license": "MIT", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.6.0", + "type-is": "^1.6.18" + }, + "engines": { + "node": ">= 10.16.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/multer/node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/multer/node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/node-releases": { + "version": "2.0.65", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.65.tgz", + "integrity": "sha512-PfvofsGQ+MiOQIPkX9fU8ELUWmy5zL74CdQaph/ismKszfFkfwXaw0cGiwbwym2hT9k5+mdyl8O5WQ1MD8EHmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/object-inspect": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.14.0.tgz", + "integrity": "sha512-IVgHNlp/jwQX271+Xzoq9LZNTWXxZK+cEOrGBOBxXNbn7fapnZ+Ts6TVMgNOuAezwG2wdtnMX97tTPK6VEnuOQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.2.tgz", + "integrity": "sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/page-flip": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/page-flip/-/page-flip-2.0.7.tgz", + "integrity": "sha512-96lQFUUz7r/LZzEUZJ3yBIMEKU9+m8HMFDzTvTdD6P7Ag/wXINjp9n0W7b4wanwnDbQETo4uNUoL3zMqpFxwGA==", + "license": "MIT" + }, + "node_modules/parse5": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz", + "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==", + "license": "MIT", + "dependencies": { + "entities": "^9.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pg": { + "version": "8.23.1", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.23.1.tgz", + "integrity": "sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==", + "license": "MIT", + "dependencies": { + "pg-connection-string": "^2.14.1", + "pg-pool": "^3.14.0", + "pg-protocol": "^1.16.1", + "pg-types": "2.2.0", + "pgpass": "1.0.5" + }, + "engines": { + "node": ">= 16.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.4.1" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.4.1.tgz", + "integrity": "sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.14.1.tgz", + "integrity": "sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-pool": { + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.14.0.tgz", + "integrity": "sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.16.1.tgz", + "integrity": "sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postcss": { + "version": "8.5.33", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz", + "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/puppeteer-core": { + "version": "25.19.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.19.0.tgz", + "integrity": "sha512-F4pw8kpSczJS3TCHBw7/qskDxv4cMj09oOv7BwhHGYOerxLF1Sk2t4tpWlLvy6Vx/mM6TuqkDj4j0j3PRN1FiA==", + "license": "Apache-2.0", + "dependencies": { + "@puppeteer/browsers": "3.3.0", + "chromium-bidi": "157.0.8090-0", + "devtools-protocol": "0.0.1724436", + "typed-query-selector": "^2.12.3", + "webdriver-bidi-protocol": "1.0.2", + "ws": "^8.23.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/qrcode": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", + "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/qrcode/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/qrcode/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "license": "ISC" + }, + "node_modules/qrcode/node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/qrcode/node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz", + "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==", + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", + "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/react": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.1" + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-remove-scroll": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz", + "integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==", + "license": "MIT", + "dependencies": { + "react-remove-scroll-bar": "^2.3.7", + "react-style-singleton": "^2.2.3", + "tslib": "^2.1.0", + "use-callback-ref": "^1.3.3", + "use-sidecar": "^1.1.3" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-remove-scroll-bar": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz", + "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==", + "license": "MIT", + "dependencies": { + "react-style-singleton": "^2.2.2", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/react-router": { + "version": "7.18.7", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.7.tgz", + "integrity": "sha512-nXl672FFobymVY/Ywbo0DnlXV/+VXOB5pOslCeuVqoegwwL7sau2yASdyGoWHvPRxAoqUBrAiFZRdli4nT7Wow==", + "license": "MIT", + "dependencies": { + "cookie": "^1.0.1", + "set-cookie-parser": "^2.6.0" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@types/react": ">=18", + "react": ">=18", + "react-dom": ">=18" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/react-router-dom": { + "version": "7.18.7", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.7.tgz", + "integrity": "sha512-EBWBKV1TjvScebAIvidowN0Bfh9Bg7p54IDBRVJkFXz0wBKTBblDNLxUvCewx/GdzTiC7VWV/MOjWqsLWEMygA==", + "license": "MIT", + "dependencies": { + "react-router": "7.18.7" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" + } + }, + "node_modules/react-router/node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/react-style-singleton": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz", + "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==", + "license": "MIT", + "dependencies": { + "get-nonce": "^1.0.0", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "license": "ISC" + }, + "node_modules/rollup": { + "version": "4.68.8", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.68.8.tgz", + "integrity": "sha512-IHx4DeeTGhoAPke6p1Wlg0JEQFyQoZQQjEe1iD+nhEERk7eoeHK9zyOpVJiGc54Z1MCgI96rN1tD7Ttub8XyPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.10" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.68.8", + "@rollup/rollup-android-arm64": "4.68.8", + "@rollup/rollup-android-x64": "4.68.8", + "@rollup/rollup-darwin-arm64": "4.68.8", + "@rollup/rollup-darwin-x64": "4.68.8", + "@rollup/rollup-freebsd-arm64": "4.68.8", + "@rollup/rollup-freebsd-x64": "4.68.8", + "@rollup/rollup-linux-arm-gnueabihf": "4.68.8", + "@rollup/rollup-linux-arm-musleabihf": "4.68.8", + "@rollup/rollup-linux-arm64-gnu": "4.68.8", + "@rollup/rollup-linux-arm64-musl": "4.68.8", + "@rollup/rollup-linux-loong64-gnu": "4.68.8", + "@rollup/rollup-linux-loong64-musl": "4.68.8", + "@rollup/rollup-linux-ppc64-gnu": "4.68.8", + "@rollup/rollup-linux-ppc64-musl": "4.68.8", + "@rollup/rollup-linux-riscv64-gnu": "4.68.8", + "@rollup/rollup-linux-riscv64-musl": "4.68.8", + "@rollup/rollup-linux-s390x-gnu": "4.68.8", + "@rollup/rollup-linux-x64-gnu": "4.68.8", + "@rollup/rollup-linux-x64-musl": "4.68.8", + "@rollup/rollup-openbsd-x64": "4.68.8", + "@rollup/rollup-openharmony-arm64": "4.68.8", + "@rollup/rollup-win32-arm64-msvc": "4.68.8", + "@rollup/rollup-win32-ia32-msvc": "4.68.8", + "@rollup/rollup-win32-x64-gnu": "4.68.8", + "@rollup/rollup-win32-x64-msvc": "4.68.8", + "fsevents": "~2.3.2" + } + }, + "node_modules/router": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.3.0.tgz", + "integrity": "sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/set-cookie-parser": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz", + "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==", + "license": "MIT" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/source-map-js": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz", + "integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strtok3": { + "version": "10.8.0", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.8.0.tgz", + "integrity": "sha512-e6bW3fD6V01DPmcbLfNtn0cjsiHvTKS/hivgbzqYMfHb/nLes4QQ0H5QBxlkPQayF4xv08AvlSgptGwN86Eemw==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/token-types": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.2.0.tgz", + "integrity": "sha512-s9euYHM//T3loJtbNUYdbAzsMlvKBeRS+XCLFy+UGosMQH19Hwjap5k19i4PPAEJJBsVIpMpVTxl4fIqCuNfUg==", + "license": "MIT", + "dependencies": { + "@borewit/text-codec": "^0.2.3", + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "license": "0BSD" + }, + "node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "license": "MIT", + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/typed-query-selector": { + "version": "2.12.4", + "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.4.tgz", + "integrity": "sha512-lF6/OY655DSWZeuNovde8TZhju6QyC0Xtav57b07oZQ1EQvfSowA3+WfLEhvFJOc9sVfAtW5hie1lGIppOqbpQ==", + "license": "MIT" + }, + "node_modules/uint8array-extras": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.6.0.tgz", + "integrity": "sha512-8iAasVS4wUx0gPLjH8Xtz2PeDzTSiy8QiLGu2DT3X5GU+egFEQhpnbtkehbAwjvDcxIERmCYcysiODFmE3Ud0Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.4.0.tgz", + "integrity": "sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/use-callback-ref": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz", + "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/use-sidecar": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz", + "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==", + "license": "MIT", + "dependencies": { + "detect-node-es": "^1.1.0", + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vite": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.8.tgz", + "integrity": "sha512-3tTi78MAKhVk9h+YZVXMQ8POmneJuE97QUPAWtJghHzhH7BAyiqQOC2KZh1DWOsu/USB2cRXhznPByaabvYXfw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0 || ^0.28.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/webdriver-bidi-protocol": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-1.0.2.tgz", + "integrity": "sha512-nghazPI+J5RrLZ+qb6vMjC6l1/tnwqr2muVEax4Ufd6eIdcjeqNnhLsAxTG9s+7Zf4umgf0DrEwDC8CoU91nAA==", + "license": "Apache-2.0" + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "license": "ISC" + }, + "node_modules/wrap-ansi": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "license": "MIT" + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.23.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz", + "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz", + "integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==", + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^8.2.1", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz", + "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==", + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.5.0", + "strip-ansi": "^7.1.2" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..33c7dcb --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "syncova-folio", + "version": "1.1.1", + "private": true, + "type": "module", + "scripts": { + "dev": "vite --host 127.0.0.1", + "build": "vite build", + "start": "node server/index.js" + }, + "dependencies": { + "@fontsource-variable/manrope": "^5.2.8", + "@radix-ui/react-dialog": "^1.1.15", + "@radix-ui/react-slot": "^1.2.3", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "express": "^5.1.0", + "file-type": "^21.0.0", + "lucide-react": "^0.562.0", + "multer": "^2.0.2", + "page-flip": "^2.0.7", + "parse5": "^8.1.1", + "pg": "^8.16.3", + "puppeteer-core": "^25.19.0", + "qrcode": "^1.5.4", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-router-dom": "^7.11.0", + "zod": "^4.6.7" + }, + "devDependencies": { + "@vitejs/plugin-react": "^5.1.2", + "vite": "^7.3.0" + } +} diff --git a/public/folio.svg b/public/folio.svg new file mode 100644 index 0000000..e9e5e29 --- /dev/null +++ b/public/folio.svg @@ -0,0 +1 @@ + diff --git a/server/demo/form-und-raum.jpg b/server/demo/form-und-raum.jpg new file mode 100644 index 0000000..3440b9c Binary files /dev/null and b/server/demo/form-und-raum.jpg differ diff --git a/server/demo/nachtkauf.js b/server/demo/nachtkauf.js new file mode 100644 index 0000000..86a72fc --- /dev/null +++ b/server/demo/nachtkauf.js @@ -0,0 +1,173 @@ +import { makeBlock, makePage } from '../../shared/magazine.js'; + +export const nightAssets = { + atrium: 'Nächtliches Atrium mit leuchtendem Ring', chromlampe: 'Chromlampe Liquid No. 04', + nylonjacke: 'Matt schwarze Nylonjacke im Neonschein', kirschtarte: 'Kirschtarte auf poliertem Silber', + satintasche: 'Violette Satintasche mit Bügel', aperitif: 'Chartreusefarbener Aperitif im Stielglas', + rolltreppen: 'Rolltreppen in einem schwach beleuchteten Kaufhaus', parfum: 'Kobaltblaue Parfumflakons auf Wasser', + spiegelsaal: 'Spiegelsaal mit dunklen Kugelleuchten', film: 'NACHTKAUF · Sechs Sekunden nach Ladenschluss', +}; + +const acid = '#e3fa44'; +const black = '#10110e'; +const white = '#f7f5ea'; +const lilac = '#d0b9ff'; +const blue = '#231bbb'; +const red = '#aa1423'; + +function item(type, x, y, width, height, properties = {}, appearance, angle = 0) { + return { ...makeBlock(type), ...properties, frame: { x, y, width, height, angle }, ...(appearance && { appearance }) }; +} + +function text(value, x, y, width, height, options = {}) { + const { color, size = 28, font = 'sans', weight = 400, leading = 1.17, tracking = 0, align = 'left', angle = 0 } = options; + return item('text', x, y, width, height, { text: value, align, style: 'body' }, { color, fontSize: size, font, weight, leading, tracking }, angle); +} + +const label = (value, x, y, width, color) => text(value, x, y, width, 35, { size: 17, color, font: 'mono', weight: 700, tracking: 1.8 }); +const headline = (value, x, y, width, height, color, size = 112, options = {}) => text(value, x, y, width, height, { size, color, weight: 900, leading: .89, tracking: -6, ...options }); +const box = (color, x, y, width, height, options = {}) => item('shape', x, y, width, height, { shape: options.shape || 'rectangle' }, { fill: color, ...options.paint }, options.angle); +const line = (color, x, y, width) => box(color, x, y, width, 12, { shape: 'line' }); +const html = (markup, x, y, width, height) => item('html', x, y, width, height, { markup }); +const page = (title, background, color, blocks) => ({ ...makePage(title), background, color, blocks }); + +export function nightkaufDraft(media, online) { + const photo = (name, x, y, width, height, options = {}) => item('image', x, y, width, height, { mediaId: media[name], alt: nightAssets[name] }, { fit: 'cover', position: options.position || 'center', radius: options.radius, opacity: options.opacity }, options.angle); + const footer = (number, color) => [line(color, 45, 1045, 704), label('NACHTKAUF / 23:59', 45, 1066, 383, color), label(`SEITE ${number}`, 644, 1066, 120, color)]; + + return { + title: 'NACHTKAUF', issue: '23:59 · Das Kaufhaus nach Ladenschluss', + description: 'Ein fiktives Nachtkaufhaus in zwölf Seiten. Mode, Objekte und ein Abend, der um 23:59 erst beginnt.', cover: media.atrium, + pages: [ + page('Cover · 23:59', black, white, [ + photo('atrium', 0, 0, 794, 1122), + box(black, 0, 0, 794, 245, { paint: { opacity: 73 } }), + line(acid, 46, 42, 702), label('JOURNAL 01 / NUR BEI NACHT', 46, 63, 590, acid), + headline('NACHTKAUF', 41, 107, 725, 145, acid, 112, { tracking: -8 }), + box(acid, 544, 835, 186, 128, { shape: 'ellipse', angle: -12 }), + text('23:59', 562, 870, 148, 52, { color: black, size: 38, tracking: -1, weight: 900, align: 'center', angle: -12 }), + box(black, 0, 976, 794, 146, { paint: { opacity: 81 } }), + text('DAS KAUFHAUS NACH LADENSCHLUSS.', 48, 1008, 670, 57, { color: white, size: 32, weight: 800, tracking: -1.2 }), + label('MODE / OBJEKTE / BAR / DUFT', 49, 1064, 688, acid), + ]), + page('Willkommen nach Ladenschluss', acid, black, [ + label('EDITORIAL', 45, 48, 300, black), + headline('DIE NACHT\nIST OFFEN.', 42, 129, 718, 251, black, 106, { tracking: -7 }), + photo('rolltreppen', 86, 437, 614, 404, { angle: -5 }), + box(lilac, 490, 721, 226, 92, { angle: 9 }), + label('AB 23:59', 535, 752, 195, black), + text('Das Licht ist runtergedimmt, die Rolltreppen laufen noch. Ein Kaufhaus für Dinge, die im Tageslicht zu laut wären.', 51, 875, 681, 128, { size: 28, font: 'serif', leading: 1.25 }), + ...footer('02', black), + ]), + page('Etagenplan · Drei Stockwerke', blue, white, [ + label('ORIENTIERUNG IM HAUS', 46, 49, 500, lilac), + headline('WAS WO\nPASSIERT.', 43, 119, 711, 252, white, 115), + box(lilac, 44, 409, 703, 490), + html(` + + + +
ETAGEN / ROUTE
02Bar & DuftRouge, Nachtbar und Blue Noise.S. 07–10
01Mode & EditionenAfter Hours und Mondseide.S. 05–06
00ObjekteDas Atelier für Licht und Metall.S. 04
`, 44, 409, 703, 490), + text('Erst nach oben. Dann der Neugier nach.', 45, 926, 680, 60, { size: 33, color: white, font: 'serif' }), + ...footer('03', lilac), + ]), + page('Objekte · Liquid No. 04', white, black, [ + photo('chromlampe', 0, 280, 794, 515), + label('LICHTOBJEKT / 00', 44, 49, 473, black), + headline('LIQUID', 34, 119, 684, 183, black, 150, { tracking: -10 }), + box(acid, 484, 672, 248, 130, { angle: -6 }), + headline('340 €', 513, 709, 210, 78, black, 53, { tracking: -3, angle: -6 }), + text('No. 04 / Tischleuchte', 45, 828, 682, 60, { size: 43, font: 'serif', tracking: -1.8 }), + text('Polierter Metallguss, warmes Licht. Eine Leuchte, die selbst ausgeschaltet etwas im Raum verändert.', 46, 904, 689, 97, { size: 24, leading: 1.35 }), + ...footer('04', black), + ]), + page('Mode · After Hours', black, white, [ + photo('nylonjacke', 0, 0, 794, 805, { position: 'right' }), + box(black, 0, 0, 794, 162, { paint: { opacity: 55 } }), + label('MODE / 01 / NACHTUNIFORM', 45, 43, 590, acid), + box(black, -23, 516, 646, 241, { angle: -5, paint: { opacity: 92 } }), + headline('AFTER\nHOURS', 44, 540, 544, 237, white, 110, { angle: -5 }), + label('01.02 / JACKE AUS TECHNISCHEM NYLON', 46, 845, 680, acid), + text('Überzeichnete Silhouette, matte Oberfläche. Lässt sich hoch schließen, wenn die Stadt abkühlt.', 44, 908, 490, 110, { size: 26, color: white, leading: 1.27 }), + text('280 €', 539, 914, 207, 63, { size: 46, color: acid, weight: 900, align: 'right', tracking: -2 }), + ...footer('05', acid), + ]), + page('Edition · Mondseide', lilac, black, [ + label('TASCHE AUS SATIN / 01.03', 44, 47, 656, blue), + box(white, 97, 213, 575, 695, { angle: 7 }), + photo('satintasche', 63, 295, 664, 480, { angle: -7 }), + headline('MOND\nSEIDE', 40, 102, 670, 252, black, 122, { font: 'serif', weight: 700, angle: -6, tracking: -7 }), + box(acid, 520, 733, 210, 134, { shape: 'ellipse', angle: 9 }), + text('160 €', 550, 776, 145, 53, { size: 38, weight: 900, align: 'center', angle: 9 }), + text('Satin in Violett mit einem Bügel aus poliertem Stahl. Für alles, was man nachts wirklich braucht.', 51, 915, 684, 97, { font: 'serif', size: 26, leading: 1.25 }), + ...footer('06', blue), + ]), + page('Patisserie · Rouge', red, white, [ + photo('kirschtarte', 0, 0, 794, 661), box(red, 0, 0, 794, 220, { paint: { opacity: 87 } }), + label('PATISSERIE / 02', 46, 44, 420, white), + headline('ROUGE.', 41, 99, 718, 167, white, 140, { tracking: -9 }), + text('Süßes zum Schluss.', 45, 700, 694, 62, { size: 49, color: white, font: 'serif', tracking: -2.7 }), + html(`
Schwarzkirschtarte12 €
Vanillecreme mit rosa Pfeffer9 €
Espresso doppio4 €
`, 45, 794, 704, 188), + ...footer('07', white), + ]), + page('Nachtbar · Grüner Blitz', black, acid, [ + label('NACHTBAR / 02', 45, 50, 520, acid), + box(lilac, 19, 370, 697, 499, { angle: 8 }), + photo('aperitif', 45, 264, 704, 592, { angle: -3 }), + headline('GRÜNER\nBLITZ', 41, 120, 700, 243, acid, 112), + box(acid, 500, 779, 252, 83, { angle: -7 }), + text('NACHTDRINK / 14 €', 511, 805, 232, 39, { color: black, size: 22, font: 'mono', weight: 700, align: 'center', angle: -7 }), + text('Kräuter, Zitrone und ein bitteres Finish. Auch alkoholfrei erhältlich.', 44, 919, 697, 100, { color: white, size: 27, font: 'serif', leading: 1.26 }), + ...footer('08', acid), + ]), + page('Galerie · Blue Noise', blue, white, [ + label('DUFTATELIER / 02', 45, 48, 519, lilac), + headline('BLUE\nNOISE', 41, 118, 710, 279, white, 130, { tracking: -7 }), + item('gallery', 44, 410, 705, 442, { mediaIds: [media.parfum, media.spiegelsaal, media.chromlampe, media.aperitif], height: 30 }, { fit: 'cover' }), + box(acid, 479, 780, 247, 85, { angle: -8 }), + label('PARFUM / 96 €', 507, 808, 218, black), + text('Kalter Stein, Wacholder und dunkles Holz. Vier Bilder zu einem Duft.', 45, 901, 694, 99, { color: white, size: 28, font: 'serif', leading: 1.23 }), + ...footer('09', lilac), + ]), + page('Film · Sechs Sekunden nach Ladenschluss', black, acid, [ + label('BEWEGTBILD / NACHTKAUF JOURNAL', 46, 48, 670, acid), + headline('SECHS\nSEKUNDEN.', 40, 115, 705, 248, acid, 113, { tracking: -7 }), + box(lilac, 32, 400, 730, 460, { angle: -4 }), + item('video', 44, 411, 706, 447, { mediaId: media.film, posterMediaId: media.spiegelsaal, text: 'NACHTKAUF / 23:59 · Motion Study' }, { color: white, fill: black, fontSize: 17 }), + text('Ein Blick durch das Haus, bevor es wieder hell wird.', 45, 920, 690, 82, { color: white, size: 29, font: 'serif' }), + ...footer('10', acid), + ]), + page('Einlass · Die Nachtkarte', acid, black, [ + label('NACHTKAUF / EINTRITT', 45, 47, 450, black), + headline('DIE NACHT-\nKARTE', 43, 120, 710, 241, black, 109, { tracking: -6.5 }), + box(black, 44, 404, 703, 309, { angle: -2 }), + text('23:59 – 03:00', 75, 445, 644, 97, { size: 66, color: acid, weight: 900, tracking: -4, angle: -2 }), + text('Die digitale Ausgabe passt in jede Jackentasche. Scanne den Code oder öffne das Flipbook direkt.', 79, 553, 580, 119, { size: 30, color: white, font: 'serif', leading: 1.2, angle: -2 }), + item('qr', 49, 761, 195, 231, { text: 'Online-Ausgabe', url: online }, { color: black, fontSize: 16 }), + item('button', 287, 785, 396, 80, { text: 'Flipbook öffnen', url: online }, { fill: black, color: acid, fontSize: 27, weight: 700, radius: 8 }), + item('social', 292, 902, 391, 64, { text: 'Visuelle Inspiration · Instagram', url: 'https://www.instagram.com/' }, { color: black, fontSize: 22 }), + ...footer('11', black), + ]), + page('Rückseite · Bis morgen Nacht', black, white, [ + photo('spiegelsaal', 0, 0, 794, 1122), + box(black, 0, 0, 794, 1122, { paint: { opacity: 47 } }), + label('NACHTKAUF JOURNAL / ENDE', 46, 52, 665, acid), + box(acid, 434, 266, 320, 320, { shape: 'ellipse', paint: { opacity: 86 } }), + headline('BIS\nMORGEN\nNACHT.', 42, 386, 716, 456, white, 151, { tracking: -10.5 }), + box(black, 0, 944, 794, 178, { paint: { opacity: 82 } }), + text('Ein fiktives Kaufhaus. Ein Beispiel für freie Gestaltung in Syncova. Folio.', 48, 977, 660, 68, { font: 'serif', size: 27, color: white }), + label('AUSGABE 01 / 23:59', 50, 1064, 683, acid), + ]), + ], + }; +} diff --git a/server/demo/nightkauf/aperitif.jpg b/server/demo/nightkauf/aperitif.jpg new file mode 100644 index 0000000..00760dc Binary files /dev/null and b/server/demo/nightkauf/aperitif.jpg differ diff --git a/server/demo/nightkauf/atrium.jpg b/server/demo/nightkauf/atrium.jpg new file mode 100644 index 0000000..3623604 Binary files /dev/null and b/server/demo/nightkauf/atrium.jpg differ diff --git a/server/demo/nightkauf/chromlampe.jpg b/server/demo/nightkauf/chromlampe.jpg new file mode 100644 index 0000000..1dcbcc5 Binary files /dev/null and b/server/demo/nightkauf/chromlampe.jpg differ diff --git a/server/demo/nightkauf/kirschtarte.jpg b/server/demo/nightkauf/kirschtarte.jpg new file mode 100644 index 0000000..2352095 Binary files /dev/null and b/server/demo/nightkauf/kirschtarte.jpg differ diff --git a/server/demo/nightkauf/nachtkauf-film.webm b/server/demo/nightkauf/nachtkauf-film.webm new file mode 100644 index 0000000..f751d6c Binary files /dev/null and b/server/demo/nightkauf/nachtkauf-film.webm differ diff --git a/server/demo/nightkauf/nylonjacke.jpg b/server/demo/nightkauf/nylonjacke.jpg new file mode 100644 index 0000000..70151bf Binary files /dev/null and b/server/demo/nightkauf/nylonjacke.jpg differ diff --git a/server/demo/nightkauf/parfum.jpg b/server/demo/nightkauf/parfum.jpg new file mode 100644 index 0000000..090b921 Binary files /dev/null and b/server/demo/nightkauf/parfum.jpg differ diff --git a/server/demo/nightkauf/rolltreppen.jpg b/server/demo/nightkauf/rolltreppen.jpg new file mode 100644 index 0000000..20f6406 Binary files /dev/null and b/server/demo/nightkauf/rolltreppen.jpg differ diff --git a/server/demo/nightkauf/satintasche.jpg b/server/demo/nightkauf/satintasche.jpg new file mode 100644 index 0000000..5a5693a Binary files /dev/null and b/server/demo/nightkauf/satintasche.jpg differ diff --git a/server/demo/nightkauf/spiegelsaal.jpg b/server/demo/nightkauf/spiegelsaal.jpg new file mode 100644 index 0000000..98eb6c3 Binary files /dev/null and b/server/demo/nightkauf/spiegelsaal.jpg differ diff --git a/server/demo/saison.jpg b/server/demo/saison.jpg new file mode 100644 index 0000000..e4efc73 Binary files /dev/null and b/server/demo/saison.jpg differ diff --git a/server/demo/weitblick.jpg b/server/demo/weitblick.jpg new file mode 100644 index 0000000..ec8139a Binary files /dev/null and b/server/demo/weitblick.jpg differ diff --git a/server/index.js b/server/index.js new file mode 100644 index 0000000..181affb --- /dev/null +++ b/server/index.js @@ -0,0 +1,149 @@ +import { createHash, randomBytes, timingSafeEqual } from 'node:crypto'; +import { fileURLToPath } from 'node:url'; +import { join } from 'node:path'; +import express from 'express'; +import { z, ZodError } from 'zod'; +import { magazines } from './magazines.js'; +import { library } from './library.js'; +import { HttpError, idSchema } from './model.js'; +import { releasePath, startPublishing } from './publisher.js'; +import { seed, seedNightkauf } from './seed.js'; +import { adminPassword, adminUsername, demoMode, pool, publicBase, setup, uploadPath } from './storage.js'; + +const app = express(); +const dist = fileURLToPath(new URL('../dist/', import.meta.url)); +const port = Number(process.env.PORT || 4170); +const cookie = 'folio_session'; +const sessionAge = 12 * 60 * 60 * 1000; +const cookieOptions = { httpOnly: true, secure: publicBase.protocol === 'https:', sameSite: 'strict', path: '/api/admin' }; +const hash = (value) => createHash('sha256').update(value).digest('hex'); +let attemptWindow = 0; +let failures = 0; + +app.disable('x-powered-by'); +app.use((req, res, next) => { + const reader = req.path.startsWith('/ausgabe/'); + res.set('X-Content-Type-Options', 'nosniff'); + res.set('Referrer-Policy', 'no-referrer'); + res.set('Content-Security-Policy', `default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data: blob:; media-src 'self'; frame-src 'self' about:; object-src 'none'; base-uri 'none'; form-action 'self'${reader ? '' : "; frame-ancestors 'none'"}`); + if (req.path.startsWith('/api')) res.set('Cache-Control', 'no-store'); + next(); +}); +app.use('/api', express.json({ limit: '16mb' })); + +app.get('/api/health', async (_req, res) => { + await pool.query('SELECT 1'); + res.json({ ok: true }); +}); + +const admin = express.Router(); +app.use('/api/admin', admin); +admin.use((req, _res, next) => { + if (['GET', 'HEAD'].includes(req.method) || req.get('X-Folio-Request') === 'studio') return next(); + next(new HttpError(403, 'Ungültige Anfrage.')); +}); + +function tokenFrom(req) { + const match = req.headers.cookie?.match(/(?:^|;\s*)folio_session=([a-f0-9]{64})(?:;|$)/); + return match ? hash(match[1]) : ''; +} + +async function authorized(req) { + if (demoMode) return true; + const token = tokenFrom(req); + if (!token) return false; + return (await pool.query('SELECT 1 FROM sessions WHERE digest=$1 AND expires_at>now()', [token])).rowCount > 0; +} + +admin.get('/session', async (req, res) => res.json({ authorized: await authorized(req), demo: demoMode })); +admin.post('/login', async (req, res) => { + const { username, password } = z.object({ + username: z.string().trim().min(1).max(128), + password: z.string().max(1024), + }).parse(req.body); + if (demoMode) return res.json({ authorized: true, demo: true }); + if (Date.now() >= attemptWindow) { + failures = 0; + attemptWindow = Date.now() + 60_000; + } + if (failures >= 10) throw new HttpError(429, 'Zu viele Anmeldeversuche. Versuche es in einer Minute erneut.'); + const usernameMatches = timingSafeEqual(Buffer.from(hash(username)), Buffer.from(hash(adminUsername))); + const passwordMatches = timingSafeEqual(Buffer.from(hash(password)), Buffer.from(hash(adminPassword))); + if (!usernameMatches || !passwordMatches) { + failures += 1; + throw new HttpError(401, 'Benutzername oder Passwort stimmt nicht.'); + } + const token = randomBytes(32).toString('hex'); + await pool.query('DELETE FROM sessions WHERE expires_at<=now()'); + await pool.query('INSERT INTO sessions (digest,expires_at) VALUES ($1,$2)', [hash(token), new Date(Date.now() + sessionAge)]); + res.cookie(cookie, token, { ...cookieOptions, maxAge: sessionAge }).json({ authorized: true, demo: false }); +}); + +admin.use(async (req, _res, next) => { + if (!(await authorized(req))) throw new HttpError(401, 'Bitte melde dich an.'); + next(); +}); +admin.post('/logout', async (req, res) => { + await pool.query('DELETE FROM sessions WHERE digest=$1', [tokenFrom(req)]); + res.clearCookie(cookie, cookieOptions).status(204).end(); +}); +admin.use(magazines, library); + +async function publicRelease(slug) { + const result = await pool.query(`SELECT m.id AS magazine_id,r.id,r.pages,r.draft->>'title' AS title,r.draft->>'issue' AS issue + FROM magazines m JOIN releases r ON r.id=m.current_release WHERE m.slug=$1 AND m.deleted_at IS NULL AND r.state='ready'`, [slug]); + if (!result.rowCount) throw new HttpError(404, 'Diese Ausgabe ist nicht verfügbar.'); + return result.rows[0]; +} + +app.get('/api/public/:slug', async (req, res) => { + const publication = await publicRelease(req.params.slug); + const base = `/api/public/${req.params.slug}`; + res.json({ pages: publication.pages, title: publication.title, issue: publication.issue, pdf: `${base}/pdf` }); +}); +app.post('/api/public/:slug/view', async (req, res) => { + await pool.query('UPDATE magazines SET views=views+1 WHERE slug=$1 AND deleted_at IS NULL AND current_release IS NOT NULL', [req.params.slug]); + res.status(204).end(); +}); +app.get('/api/public/:slug/media/:release/:media', async (req, res) => { + const result = await pool.query(`SELECT f.* FROM magazines m JOIN releases r ON r.magazine_id=m.id + JOIN media f ON f.id=ANY(r.media_ids) WHERE m.slug=$1 AND m.deleted_at IS NULL AND m.current_release IS NOT NULL + AND r.id=$2 AND r.state='ready' AND f.id=$3`, [req.params.slug, idSchema.parse(req.params.release), idSchema.parse(req.params.media)]); + if (!result.rowCount) throw new HttpError(404, 'Datei nicht gefunden.'); + res.type(result.rows[0].mime).sendFile(uploadPath(result.rows[0]), { cacheControl: false }); +}); +app.get('/api/public/:slug/pdf', async (req, res, next) => { + const publication = await publicRelease(req.params.slug); + res.download(releasePath(publication.id, 'pdf'), `${req.params.slug}.pdf`, { acceptRanges: false, cacheControl: false }, (error) => { + if (error) return next(error); + if (req.method === 'GET') pool.query('UPDATE magazines SET downloads=downloads+1 WHERE id=$1', [publication.magazine_id]) + .catch((err) => console.error('Downloadzähler:', err.message)); + }); +}); +app.get('/ausgabe/:slug/html', async (req, res) => { + const publication = await publicRelease(req.params.slug); + res.set('Cache-Control', 'no-store').sendFile(releasePath(publication.id, 'html')); +}); +app.use('/api', (_req, _res, next) => next(new HttpError(404, 'Diese Adresse gibt es nicht.'))); +app.use(express.static(dist, { index: false, maxAge: '1h' })); +app.get('/{*spa}', (_req, res) => res.set('Cache-Control', 'no-cache').sendFile(join(dist, 'index.html'))); +app.use((error, _req, res, next) => { + if (res.headersSent) return next(error); + if (error instanceof ZodError) return res.status(422).json({ error: error.issues[0]?.message || 'Prüfe die eingegebenen Werte.' }); + if (error.code === 'LIMIT_FILE_SIZE') return res.status(413).json({ error: 'Dateien dürfen bis zu 100 MB groß sein.' }); + const status = error instanceof HttpError || [400, 404, 413, 416].includes(error.status) ? error.status : 500; + if (status === 500) console.error(error); + res.status(status).json({ error: status === 500 ? 'Der Server konnte die Anfrage nicht verarbeiten.' : error.message }); +}); + +await setup(); +await seed(); +await seedNightkauf(); +const stopPublishing = startPublishing(); +const server = app.listen(port, '0.0.0.0', () => console.log(`Syncova. Folio auf Port ${port}`)); +function stop() { + stopPublishing(); + server.close(() => void pool.end()); +} +process.once('SIGTERM', stop); +process.once('SIGINT', stop); diff --git a/server/library.js b/server/library.js new file mode 100644 index 0000000..390d42b --- /dev/null +++ b/server/library.js @@ -0,0 +1,91 @@ +import fs from 'node:fs/promises'; +import { Router } from 'express'; +import multer from 'multer'; +import { fileTypeFromFile } from 'file-type'; +import { z } from 'zod'; +import { HttpError, idSchema } from './model.js'; +import { audit, pool, stagingDir, transaction, uploadPath } from './storage.js'; + +const upload = multer({ dest: stagingDir, limits: { fileSize: 100 * 1024 * 1024, files: 1, fields: 0 } }); +const formats = { + 'image/jpeg': 'jpg', 'image/png': 'png', 'image/webp': 'webp', 'image/gif': 'gif', 'image/avif': 'avif', + 'video/mp4': 'mp4', 'video/webm': 'webm', +}; +export const library = Router(); + +library.get('/media', async (_req, res) => { + const [files, galleries] = await Promise.all([ + pool.query('SELECT id,name,mime,bytes,created_at FROM media WHERE deleted_at IS NULL ORDER BY created_at DESC,name'), + pool.query('SELECT id,name,media_ids,created_at FROM galleries WHERE deleted_at IS NULL ORDER BY created_at DESC,name'), + ]); + res.json({ files: files.rows, galleries: galleries.rows }); +}); + +library.post('/media', upload.single('file'), async (req, res) => { + if (!req.file) throw new HttpError(400, 'Wähle eine Datei aus.'); + const temp = req.file.path; + let saved; + try { + const fileType = await fileTypeFromFile(temp).catch(() => null); + const mime = fileType?.mime; + const extension = formats[mime]; + if (!extension) throw new HttpError(415, 'Unterstützt werden JPG, PNG, WebP, GIF, AVIF, MP4 und WebM.'); + const file = { id: crypto.randomUUID(), extension }; + const name = Buffer.from(req.file.originalname, 'latin1').toString('utf8').replace(/[\u0000-\u001f]/g, '').slice(0, 200) || 'Datei'; + const finalPath = uploadPath(file); + await fs.rename(temp, finalPath); + try { + saved = await transaction(async (db) => { + const result = await db.query('INSERT INTO media (id,name,mime,extension,bytes) VALUES ($1,$2,$3,$4,$5) RETURNING *', + [file.id, name, mime, extension, req.file.size]); + await audit(db, 'uploaded', `„${name}“ hochgeladen`); + return result.rows[0]; + }); + } finally { + if (!saved) await fs.rm(finalPath, { force: true }); + } + res.status(201).json(saved); + } finally { + await fs.rm(temp, { force: true }); + } +}); + +library.get('/media/:id/file', async (req, res) => { + const result = await pool.query('SELECT * FROM media WHERE id=$1 AND deleted_at IS NULL', [idSchema.parse(req.params.id)]); + if (!result.rowCount) throw new HttpError(404, 'Datei nicht gefunden.'); + res.type(result.rows[0].mime).sendFile(uploadPath(result.rows[0]), { cacheControl: false }); +}); + +const gallerySchema = z.object({ name: z.string().trim().min(1).max(100), mediaIds: z.array(idSchema).min(1).max(12) }); + +async function saveGallery(req, res) { + const id = req.params.id ? idSchema.parse(req.params.id) : crypto.randomUUID(); + const gallery = gallerySchema.parse(req.body); + const ids = [...new Set(gallery.mediaIds)]; + const item = await transaction(async (db) => { + const found = await db.query("SELECT id FROM media WHERE id=ANY($1) AND deleted_at IS NULL AND mime LIKE 'image/%'", [ids]); + if (found.rowCount !== ids.length) throw new HttpError(422, 'Wähle Bilder aus der Medienbibliothek aus.'); + const result = req.params.id + ? await db.query('UPDATE galleries SET name=$2,media_ids=$3 WHERE id=$1 AND deleted_at IS NULL RETURNING *', [id, gallery.name, ids]) + : await db.query('INSERT INTO galleries (id,name,media_ids) VALUES ($1,$2,$3) RETURNING *', [id, gallery.name, ids]); + if (!result.rowCount) throw new HttpError(404, 'Galerie nicht gefunden.'); + await audit(db, 'edited', `Galerie „${gallery.name}“ gespeichert`); + return result.rows[0]; + }); + res.status(req.params.id ? 200 : 201).json(item); +} + +library.post('/galleries', saveGallery); +library.put('/galleries/:id', saveGallery); + +for (const [route, table] of [['media', 'media'], ['galleries', 'galleries']]) { + library.delete(`/${route}/:id`, async (req, res) => { + await transaction(async (db) => { + const result = await db.query(`UPDATE ${table} SET deleted_at=now() WHERE id=$1 AND deleted_at IS NULL RETURNING name`, + [idSchema.parse(req.params.id)]); + if (!result.rowCount) throw new HttpError(404, 'Eintrag nicht gefunden.'); + await audit(db, 'deleted', `„${result.rows[0].name}“ in den Papierkorb verschoben`); + }); + res.status(204).end(); + }); +} diff --git a/server/magazines.js b/server/magazines.js new file mode 100644 index 0000000..a33db6c --- /dev/null +++ b/server/magazines.js @@ -0,0 +1,233 @@ +import { Router } from 'express'; +import { z } from 'zod'; +import { renderPages } from '../shared/magazine.js'; +import { baseDraft, draftSchema, HttpError, idSchema, metadata, slugFor, validatePublication } from './model.js'; +import { audit, pool, publicBase, transaction } from './storage.js'; + +const revisionSchema = z.number().int().positive(); +const columns = `m.*, r.published_at, r.revision AS published_revision, q.id AS job_id, + q.state AS job_state, q.publish_at AS job_at, q.error AS job_error`; +const joins = `LEFT JOIN releases r ON r.id=m.current_release + LEFT JOIN LATERAL (SELECT id,state,publish_at,error FROM releases WHERE magazine_id=m.id ORDER BY created_at DESC,id DESC LIMIT 1) q ON true`; + +function format(row) { + return { + id: row.id, slug: row.slug, ...row.draft, revision: row.revision, updatedAt: row.updated_at, + publicUrl: new URL(`/ausgabe/${row.slug}`, publicBase).href, publishedAt: row.published_at, + publishedRevision: row.published_revision, job: row.job_id ? { id: row.job_id, state: row.job_state, at: row.job_at, error: row.job_error } : null, + views: Number(row.views), downloads: Number(row.downloads), + }; +} + +async function find(db, id, lock = false) { + const sql = lock ? 'SELECT * FROM magazines m' : `SELECT ${columns} FROM magazines m ${joins}`; + const result = await db.query(`${sql} WHERE m.id=$1 AND m.deleted_at IS NULL${lock ? ' FOR UPDATE' : ''}`, [id]); + if (!result.rowCount) throw new HttpError(404, 'Magazin nicht gefunden.'); + return result.rows[0]; +} + +async function trashItem(db, magazineId, pageId, index, item) { + await db.query('INSERT INTO removed_items (id,magazine_id,page_id,sort_index,item) VALUES ($1,$2,$3,$4,$5)', + [crypto.randomUUID(), magazineId, pageId, index, item]); +} + +async function save(db, current, draft, reason) { + const pages = new Map(draft.pages.map((page) => [page.id, page])); + for (const [index, page] of current.draft.pages.entries()) { + const newPage = pages.get(page.id); + if (!newPage) { + await trashItem(db, current.id, null, index, page); + continue; + } + const blocks = new Set(newPage.blocks.map((block) => block.id)); + for (const [position, block] of page.blocks.entries()) { + if (!blocks.has(block.id)) await trashItem(db, current.id, page.id, position, block); + } + } + const restoredIds = draft.pages.flatMap((page) => [page.id, ...page.blocks.map((block) => block.id)]); + await db.query("UPDATE removed_items SET restored_at=now() WHERE magazine_id=$1 AND restored_at IS NULL AND item->>'id'=ANY($2::text[])", [current.id, restoredIds]); + const revision = current.revision + 1; + await db.query('UPDATE magazines SET draft=$2,revision=$3,updated_at=now() WHERE id=$1', [current.id, draft, revision]); + await db.query('INSERT INTO versions (magazine_id,revision,draft,reason) VALUES ($1,$2,$3,$4)', [current.id, revision, draft, reason]); + await audit(db, 'edited', `„${draft.title}“ · ${reason.toLowerCase()}`); + return revision; +} + +function assertRevision(row, revision) { + if (row.revision !== revision) throw new HttpError(409, 'Der Entwurf wurde geändert. Lade das Magazin neu, bevor du weiterarbeitest.'); +} + +export const magazines = Router(); + +magazines.get('/dashboard', async (_req, res) => { + const [result, activity, storage, publications] = await Promise.all([ + pool.query(`SELECT ${columns} FROM magazines m ${joins} WHERE m.deleted_at IS NULL ORDER BY m.updated_at DESC,m.id`), + pool.query('SELECT * FROM activity ORDER BY id DESC LIMIT 20'), + pool.query(`SELECT (SELECT COALESCE(SUM(bytes),0) FROM media) + (SELECT COALESCE(SUM(bytes),0) FROM releases) AS bytes, + (SELECT count(*) FROM media WHERE deleted_at IS NULL) AS files`), + pool.query(`SELECT r.id,r.magazine_id,r.draft->>'title' AS title,r.revision,r.state,r.publish_at,r.published_at,r.error, + m.current_release=r.id AS is_current,m.slug FROM releases r JOIN magazines m ON m.id=r.magazine_id + WHERE m.deleted_at IS NULL ORDER BY r.created_at DESC LIMIT 100`), + ]); + res.json({ magazines: result.rows.map(format), activity: activity.rows, publications: publications.rows, + storage: { bytes: Number(storage.rows[0].bytes), files: Number(storage.rows[0].files) } }); +}); + +magazines.post('/magazines', async (req, res) => { + const fields = metadata.pick({ title: true, issue: true, description: true }).parse(req.body); + const draft = baseDraft(fields.title, fields.issue, fields.description); + const id = crypto.randomUUID(); + await transaction(async (db) => { + const base = slugFor(fields.title); + const result = await db.query('INSERT INTO magazines (id,slug,draft) VALUES ($1,$2,$3) ON CONFLICT (slug) DO NOTHING', [id, base, draft]); + if (!result.rowCount) await db.query('INSERT INTO magazines (id,slug,draft) VALUES ($1,$2,$3)', [id, `${base}-${id}`, draft]); + await db.query("INSERT INTO versions (magazine_id,revision,draft,reason) VALUES ($1,1,$2,'Angelegt')", [id, draft]); + await audit(db, 'created', `„${draft.title}“ angelegt`); + }); + res.status(201).json(format(await find(pool, id))); +}); + +magazines.get('/magazines/:id', async (req, res) => res.json(format(await find(pool, idSchema.parse(req.params.id))))); + +magazines.post('/magazines/:id/duplicate', async (req, res) => { + const source = await find(pool, idSchema.parse(req.params.id)); + const id = crypto.randomUUID(); + const title = `${source.draft.title.slice(0, 92).trimEnd()} · Kopie`; + const draft = { ...source.draft, title, pages: source.draft.pages.map((page) => ({ ...page, id: crypto.randomUUID(), + blocks: page.blocks.map((item) => ({ ...item, id: crypto.randomUUID() })) })) }; + await transaction(async (db) => { + await db.query('INSERT INTO magazines (id,slug,draft) VALUES ($1,$2,$3)', [id, `${slugFor(title)}-${id}`, draft]); + await db.query("INSERT INTO versions (magazine_id,revision,draft,reason) VALUES ($1,1,$2,'Aus Vorlage angelegt')", [id, draft]); + await audit(db, 'created', `„${title}“ aus Vorlage angelegt`); + }); + res.status(201).json(format(await find(pool, id))); +}); + +magazines.put('/magazines/:id', async (req, res) => { + const id = idSchema.parse(req.params.id); + const { draft, revision } = z.object({ draft: draftSchema, revision: revisionSchema }).parse(req.body); + const result = await transaction(async (db) => { + const current = await find(db, id, true); + assertRevision(current, revision); + await save(db, current, draft, 'Entwurf gespeichert'); + return format(await find(db, id)); + }); + res.json(result); +}); + +magazines.post('/magazines/:id/preview', async (req, res) => { + await find(pool, idSchema.parse(req.params.id)); + const draft = draftSchema.parse(req.body); + const pages = await renderPages(draft, (id) => `/api/admin/media/${id}/file`); + res.json({ title: draft.title, issue: draft.issue, pages }); +}); + +magazines.get('/magazines/:id/versions', async (req, res) => { + const id = idSchema.parse(req.params.id); + await find(pool, id); + const result = await pool.query('SELECT revision,reason,created_at,draft FROM versions WHERE magazine_id=$1 ORDER BY revision DESC', [id]); + res.json(result.rows); +}); + +magazines.post('/magazines/:id/versions/:version/restore', async (req, res) => { + const id = idSchema.parse(req.params.id); + const revision = revisionSchema.parse(req.body.revision); + const version = z.coerce.number().int().positive().parse(req.params.version); + const result = await transaction(async (db) => { + const current = await find(db, id, true); + assertRevision(current, revision); + const history = await db.query('SELECT draft FROM versions WHERE magazine_id=$1 AND revision=$2', [id, version]); + if (!history.rowCount) throw new HttpError(404, 'Version nicht gefunden.'); + await save(db, current, history.rows[0].draft, `Version ${version} wiederhergestellt`); + return format(await find(db, id)); + }); + res.json(result); +}); + +magazines.delete('/magazines/:id', async (req, res) => { + const id = idSchema.parse(req.params.id); + await transaction(async (db) => { + const row = await find(db, id, true); + await db.query('UPDATE magazines SET deleted_at=now() WHERE id=$1', [id]); + await db.query("UPDATE releases SET state='cancelled' WHERE magazine_id=$1 AND state='queued'", [id]); + await audit(db, 'deleted', `„${row.draft.title}“ in den Papierkorb verschoben`); + }); + res.status(204).end(); +}); + +magazines.post('/magazines/:id/releases', async (req, res) => { + const id = idSchema.parse(req.params.id); + const { at, revision } = z.object({ at: z.iso.datetime().nullish(), revision: revisionSchema }).parse(req.body); + if (at && Date.parse(at) <= Date.now()) throw new HttpError(422, 'Wähle einen Zeitpunkt in der Zukunft.'); + const release = await transaction(async (db) => { + const current = await find(db, id, true); + assertRevision(current, revision); + await validatePublication(db, current.draft); + const job = crypto.randomUUID(); + await db.query("UPDATE releases SET state='cancelled' WHERE magazine_id=$1 AND state='queued'", [id]); + await db.query('INSERT INTO releases (id,magazine_id,revision,draft,publish_at) VALUES ($1,$2,$3,$4,$5)', + [job, id, revision, current.draft, at || new Date()]); + await audit(db, 'scheduled', `„${current.draft.title}“ · ${at ? 'Veröffentlichung geplant' : 'Veröffentlichung gestartet'}`); + return job; + }); + res.status(202).json({ id: release }); +}); + +magazines.delete('/releases/:id', async (req, res) => { + const id = idSchema.parse(req.params.id); + await transaction(async (db) => { + const result = await db.query("UPDATE releases SET state='cancelled' WHERE id=$1 AND state='queued' RETURNING draft", [id]); + if (!result.rowCount) throw new HttpError(409, 'Diese Veröffentlichung kann nicht mehr abgebrochen werden.'); + await audit(db, 'cancelled', `„${result.rows[0].draft.title}“ · Veröffentlichung abgebrochen`); + }); + res.status(204).end(); +}); + +magazines.delete('/magazines/:id/publication', async (req, res) => { + const id = idSchema.parse(req.params.id); + await transaction(async (db) => { + const row = await find(db, id, true); + await db.query('UPDATE magazines SET current_release=NULL WHERE id=$1', [id]); + await audit(db, 'unpublished', `„${row.draft.title}“ offline genommen`); + }); + res.status(204).end(); +}); + +magazines.get('/trash', async (_req, res) => { + const [magazines, items, files, galleries] = await Promise.all([ + pool.query("SELECT id,draft->>'title' AS title,deleted_at FROM magazines WHERE deleted_at IS NOT NULL ORDER BY deleted_at DESC"), + pool.query(`SELECT i.id,i.page_id,i.item,i.deleted_at,m.draft->>'title' AS magazine FROM removed_items i + JOIN magazines m ON m.id=i.magazine_id WHERE i.restored_at IS NULL AND m.deleted_at IS NULL ORDER BY i.deleted_at DESC`), + pool.query('SELECT id,name,deleted_at FROM media WHERE deleted_at IS NOT NULL ORDER BY deleted_at DESC'), + pool.query('SELECT id,name,deleted_at FROM galleries WHERE deleted_at IS NOT NULL ORDER BY deleted_at DESC'), + ]); + res.json({ magazines: magazines.rows, items: items.rows, files: files.rows, galleries: galleries.rows }); +}); + +magazines.post('/trash/:kind/:id/restore', async (req, res) => { + const id = idSchema.parse(req.params.id); + const kind = z.enum(['magazine', 'item', 'media', 'gallery']).parse(req.params.kind); + await transaction(async (db) => { + if (kind === 'item') { + const result = await db.query('SELECT * FROM removed_items WHERE id=$1 AND restored_at IS NULL', [id]); + if (!result.rowCount) throw new HttpError(404, 'Eintrag nicht gefunden.'); + const entry = result.rows[0]; + const current = await find(db, entry.magazine_id, true); + const stillDeleted = await db.query('SELECT 1 FROM removed_items WHERE id=$1 AND restored_at IS NULL', [id]); + if (!stillDeleted.rowCount) throw new HttpError(409, 'Der Eintrag wurde bereits wiederhergestellt.'); + const draft = structuredClone(current.draft); + const targetPage = draft.pages.find((page) => page.id === entry.page_id); + if (entry.page_id && !targetPage) throw new HttpError(409, 'Stelle zuerst die zugehörige Seite wieder her.'); + const target = targetPage ? targetPage.blocks : draft.pages; + target.splice(entry.sort_index, 0, entry.item); + await save(db, current, draftSchema.parse(draft), targetPage ? 'Element wiederhergestellt' : 'Seite wiederhergestellt'); + return; + } + const table = { magazine: 'magazines', media: 'media', gallery: 'galleries' }[kind]; + const label = kind === 'magazine' ? "draft->>'title'" : 'name'; + const result = await db.query(`UPDATE ${table} SET deleted_at=NULL WHERE id=$1 AND deleted_at IS NOT NULL RETURNING ${label} AS label`, [id]); + if (!result.rowCount) throw new HttpError(404, 'Eintrag nicht gefunden.'); + await audit(db, 'restored', `„${result.rows[0].label}“ wiederhergestellt`); + }); + res.status(204).end(); +}); diff --git a/server/model.js b/server/model.js new file mode 100644 index 0000000..415e342 --- /dev/null +++ b/server/model.js @@ -0,0 +1,91 @@ +import { z } from 'zod'; +import { makePage, safeUrl } from '../shared/magazine.js'; + +export const idSchema = z.uuid(); +const color = z.string().regex(/^#[0-9a-f]{6}$/i); +const frame = z.object({ x: z.number().int().min(-5000).max(5000), y: z.number().int().min(-5000).max(5000), + width: z.number().int().min(12).max(1588), height: z.number().int().min(12).max(2244), angle: z.number().min(-180).max(180) }); +const appearance = z.object({ + color: color.optional(), fill: color.optional(), stroke: color.optional(), strokeWidth: z.number().min(0).max(100).optional(), + radius: z.number().min(0).max(800).optional(), opacity: z.number().min(0).max(100).optional(), + font: z.enum(['sans', 'serif', 'mono']).optional(), fontSize: z.number().min(6).max(360).optional(), + weight: z.number().int().min(100).max(900).optional(), leading: z.number().min(.5).max(4).optional(), tracking: z.number().min(-40).max(75).optional(), + fit: z.enum(['cover', 'contain', 'fill']).optional(), position: z.enum(['center', 'top', 'bottom', 'left', 'right']).optional(), +}); +const block = z.discriminatedUnion('type', [ + z.object({ type: z.literal('text'), text: z.string().max(6000), style: z.enum(['body', 'title', 'heading', 'caption']), align: z.enum(['left', 'center', 'right']) }), + z.object({ type: z.literal('image'), mediaId: z.union([idSchema, z.literal('')]), alt: z.string().max(200), height: z.number().min(12).max(135) }), + z.object({ type: z.literal('gallery'), mediaIds: z.array(idSchema).max(12), height: z.number().min(12).max(100) }), + z.object({ type: z.literal('video'), mediaId: z.union([idSchema, z.literal('')]), posterMediaId: z.union([idSchema, z.literal('')]).optional(), text: z.string().max(200) }), + z.object({ type: z.literal('shape'), shape: z.enum(['rectangle', 'ellipse', 'line']) }), + z.object({ type: z.literal('html'), markup: z.string().max(60000) }), + ...['button', 'qr', 'social'].map((type) => z.object({ type: z.literal(type), text: z.string().max(200), url: z.string().max(500) })), +].map((schema) => schema.extend({ id: idSchema, width: z.enum(['full', 'half']), frame: frame.optional(), appearance: appearance.optional() }))); + +export const metadata = z.object({ + title: z.string().trim().min(1, 'Gib deinem Magazin einen Titel.').max(100), + issue: z.string().trim().max(100), description: z.string().trim().max(1000), + cover: z.union([idSchema, z.literal('')]), +}); +export const draftSchema = metadata.extend({ + pages: z.array(z.object({ + id: idSchema, title: z.string().trim().min(1, 'Jede Seite benötigt einen Titel.').max(100), + layout: z.enum(['free', 'single', 'columns', 'cover']), background: color, color, + blocks: z.array(block).max(60), + })).max(120), +}).refine((draft) => { + const ids = draft.pages.flatMap((page) => [page.id, ...page.blocks.map((item) => item.id)]); + return new Set(ids).size === ids.length; +}, 'Seiten und Elemente müssen eindeutige IDs haben.'); + +export const baseDraft = (title, issue = '', description = '') => ({ + title, issue, description, cover: '', pages: [makePage('Titelseite')], +}); + +export function slugFor(title) { + return title.toLowerCase().replaceAll('ß', 'ss').normalize('NFKD').replace(/\p{M}/gu, '') + .replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '').slice(0, 65).replace(/-$/, '') || 'magazin'; +} + +export class HttpError extends Error { + constructor(status, message) { + super(message); + this.status = status; + } +} + +export async function validatePublication(db, draft) { + const document = draftSchema.parse(draft); + if (!document.pages.length) throw new HttpError(422, 'Lege mindestens eine Seite an.'); + + const expected = new Map(); + if (document.cover) expected.set(document.cover, 'image/'); + for (const page of document.pages) { + const label = `„${page.title}“`; + if (!page.blocks.length) throw new HttpError(422, `${label} ist leer.`); + for (const item of page.blocks) { + if (item.type === 'text' && !item.text.trim()) throw new HttpError(422, `${label} enthält ein leeres Textfeld.`); + if (item.type === 'html' && !item.markup.trim()) throw new HttpError(422, `${label} enthält einen leeren HTML-Block.`); + if (['button', 'qr', 'social'].includes(item.type) && !safeUrl(item.url, item.type === 'social')) { + throw new HttpError(422, `${label} enthält einen ungültigen Link.`); + } + if (['button', 'social'].includes(item.type) && !item.text.trim()) { + throw new HttpError(422, `${label} enthält einen Link ohne Beschriftung.`); + } + const ids = item.type === 'gallery' ? item.mediaIds : [item.mediaId].filter(Boolean); + if (['image', 'gallery', 'video'].includes(item.type) && !ids.length) { + throw new HttpError(422, `${label} enthält ein Element ohne Medium.`); + } + const refs = ids.map((id) => [id, item.type === 'video' ? 'video/' : 'image/']); + if (item.posterMediaId) refs.push([item.posterMediaId, 'image/']); + for (const [id, kind] of refs) { + if (expected.has(id) && expected.get(id) !== kind) throw new HttpError(422, `${label} verwendet ein Medium im falschen Format.`); + expected.set(id, kind); + } + } + } + const result = await db.query('SELECT * FROM media WHERE id = ANY($1) AND deleted_at IS NULL', [[...expected.keys()]]); + if (result.rowCount !== expected.size) throw new HttpError(422, 'Ein verwendetes Medium fehlt oder liegt im Papierkorb.'); + if (result.rows.some((file) => !file.mime.startsWith(expected.get(file.id)))) throw new HttpError(422, 'Ein verwendetes Medium hat das falsche Format.'); + return result.rows; +} diff --git a/server/publisher.js b/server/publisher.js new file mode 100644 index 0000000..19c3d93 --- /dev/null +++ b/server/publisher.js @@ -0,0 +1,119 @@ +import fs from 'node:fs/promises'; +import { join } from 'node:path'; +import puppeteer from 'puppeteer-core'; +import { escapeHtml, renderPages } from '../shared/magazine.js'; +import { validatePublication } from './model.js'; +import { audit, pool, releaseDir, transaction, uploadPath } from './storage.js'; + +const width = 794; +const height = 1122; +const styles = await fs.readFile(new URL('../shared/publication.css', import.meta.url), 'utf8'); +const paper = `@page{size:${width}px ${height}px;margin:0}body{margin:0}.print-sheet{width:${width}px;height:${height}px;break-after:page}.print-sheet:last-child{break-after:auto}`; + +function documentHtml(title, pages) { + return `${escapeHtml(title)}${pages.map(({ html }) => ``).join('')}`; +} + +async function createPdf(draft, files) { + const origin = 'http://folio-render.invalid'; + const imageMap = new Map(files.filter((file) => file.mime.startsWith('image/')).map((file) => [file.id, file])); + const pages = await renderPages(draft, (id) => `${origin}/image/${id}`, true); + const browser = await puppeteer.launch({ + executablePath: process.env.CHROMIUM_PATH || '/usr/bin/chromium', + args: ['--no-sandbox', '--disable-dev-shm-usage', '--disable-background-networking'], + headless: true, + }); + try { + const page = await browser.newPage(); + await page.setJavaScriptEnabled(false); + await page.setRequestInterception(true); + page.on('request', async (request) => { + const url = new URL(request.url()); + if (['data:', 'about:'].includes(url.protocol)) return request.continue(); + const file = url.origin === origin && imageMap.get(url.pathname.slice('/image/'.length)); + if (!file) return request.abort(); + try { + await request.respond({ status: 200, contentType: file.mime, body: await fs.readFile(uploadPath(file)) }); + } catch { + if (!request.isInterceptResolutionHandled()) await request.abort(); + } + }); + await page.setViewport({ width, height }); + await page.setContent(documentHtml(draft.title, pages), { waitUntil: 'load', timeout: 30000 }); + const invalid = await page.evaluate(() => [...document.querySelectorAll('.folio-page')].findIndex((sheet) => + (!sheet.querySelector('.folio-layout-free') && sheet.scrollHeight > sheet.clientHeight + 2) || [...sheet.querySelectorAll('img')].some((img) => !img.naturalWidth))); + if (invalid !== -1) throw new Error(`„${pages[invalid].title}“ ist zu voll oder enthält ein Bild, das sich nicht laden lässt.`); + return await page.pdf({ printBackground: true, preferCSSPageSize: true, timeout: 30000 }); + } finally { + await browser.close(); + } +} + +export const releasePath = (release, format) => join(releaseDir, `${release}.${format}`); + +async function writeArtifact(path, contents) { + const temp = `${path}.tmp`; + await fs.writeFile(temp, contents); + await fs.rename(temp, path); +} + +async function publish(job) { + const pdfPath = releasePath(job.id, 'pdf'); + const htmlPath = releasePath(job.id, 'html'); + let committed = false; + try { + const files = await validatePublication(pool, job.draft); + const pages = await renderPages(job.draft, (id) => `/api/public/${job.slug}/media/${job.id}/${id}`); + const html = documentHtml(job.draft.title, pages); + const pdf = await createPdf(job.draft, files); + await writeArtifact(htmlPath, html); + await writeArtifact(pdfPath, pdf); + committed = await transaction(async (db) => { + const magazine = await db.query('SELECT deleted_at FROM magazines WHERE id=$1 FOR UPDATE', [job.magazine_id]); + if (magazine.rows[0]?.deleted_at) return false; + const update = await db.query(`UPDATE releases SET state='ready',pages=$2,media_ids=$3,bytes=$4,published_at=now() + WHERE id=$1 AND state='queued' RETURNING id`, [job.id, JSON.stringify(pages), files.map((file) => file.id), Buffer.byteLength(html) + pdf.length]); + if (!update.rowCount) return false; + await db.query('UPDATE magazines SET current_release=$2 WHERE id=$1', [job.magazine_id, job.id]); + await audit(db, 'published', `„${job.draft.title}“ veröffentlicht`); + return true; + }); + } catch (error) { + console.error('Veröffentlichung:', error.message); + await transaction(async (db) => { + const updated = await db.query("UPDATE releases SET state='failed',error=$2 WHERE id=$1 AND state='queued'", [job.id, error.message.slice(0, 500)]); + if (updated.rowCount) await audit(db, 'failed', `Veröffentlichung von „${job.draft.title}“ fehlgeschlagen`); + }); + } finally { + if (!committed) await Promise.all([pdfPath, htmlPath, `${pdfPath}.tmp`, `${htmlPath}.tmp`].map((path) => fs.rm(path, { force: true }))); + } +} + +export function startPublishing() { + let timer; + let stopped = false; + const run = async () => { + let db; + let locked = false; + try { + db = await pool.connect(); + locked = (await db.query('SELECT pg_try_advisory_lock(918401) AS locked')).rows[0].locked; + while (locked && !stopped) { + const result = await db.query(`SELECT r.*,m.slug FROM releases r JOIN magazines m ON m.id=r.magazine_id + WHERE r.state='queued' AND r.publish_at <= now() AND m.deleted_at IS NULL ORDER BY r.publish_at,r.created_at LIMIT 1`); + if (!result.rowCount) break; + await publish(result.rows[0]); + } + } catch (error) { + console.error('Publishing-Worker:', error.message); + } finally { + if (db) { + const unlockError = locked ? await db.query('SELECT pg_advisory_unlock(918401)').then(() => undefined).catch((error) => error) : undefined; + db.release(unlockError); + } + if (!stopped) timer = setTimeout(run, 2500); + } + }; + void run(); + return () => { stopped = true; clearTimeout(timer); }; +} diff --git a/server/schema.sql b/server/schema.sql new file mode 100644 index 0000000..9d575da --- /dev/null +++ b/server/schema.sql @@ -0,0 +1,74 @@ +CREATE TABLE IF NOT EXISTS magazines ( + id uuid PRIMARY KEY, + slug text UNIQUE NOT NULL, + draft jsonb NOT NULL, + revision integer NOT NULL DEFAULT 1, + current_release uuid, + created_at timestamptz NOT NULL DEFAULT now(), + updated_at timestamptz NOT NULL DEFAULT now(), + deleted_at timestamptz, + views bigint NOT NULL DEFAULT 0, + downloads bigint NOT NULL DEFAULT 0 +); +CREATE TABLE IF NOT EXISTS versions ( + magazine_id uuid NOT NULL REFERENCES magazines(id), + revision integer NOT NULL, + draft jsonb NOT NULL, + reason text NOT NULL, + created_at timestamptz NOT NULL DEFAULT now(), + PRIMARY KEY (magazine_id, revision) +); +CREATE TABLE IF NOT EXISTS releases ( + id uuid PRIMARY KEY, + magazine_id uuid NOT NULL REFERENCES magazines(id), + revision integer NOT NULL, + draft jsonb NOT NULL, + publish_at timestamptz NOT NULL, + state text NOT NULL DEFAULT 'queued' CHECK (state IN ('queued','ready','failed','cancelled')), + pages jsonb, + media_ids uuid[] NOT NULL DEFAULT '{}', + bytes bigint NOT NULL DEFAULT 0, + error text, + created_at timestamptz NOT NULL DEFAULT now(), + published_at timestamptz +); +CREATE INDEX IF NOT EXISTS releases_due ON releases (publish_at) WHERE state = 'queued'; +CREATE INDEX IF NOT EXISTS releases_magazine ON releases (magazine_id, created_at DESC); +CREATE TABLE IF NOT EXISTS media ( + id uuid PRIMARY KEY, + name text NOT NULL, + mime text NOT NULL, + extension text NOT NULL, + bytes bigint NOT NULL, + created_at timestamptz NOT NULL DEFAULT now(), + deleted_at timestamptz +); +CREATE TABLE IF NOT EXISTS galleries ( + id uuid PRIMARY KEY, + name text NOT NULL, + media_ids uuid[] NOT NULL, + created_at timestamptz NOT NULL DEFAULT now(), + deleted_at timestamptz +); +CREATE TABLE IF NOT EXISTS removed_items ( + id uuid PRIMARY KEY, + magazine_id uuid NOT NULL REFERENCES magazines(id), + page_id uuid, + sort_index integer NOT NULL, + item jsonb NOT NULL, + deleted_at timestamptz NOT NULL DEFAULT now(), + restored_at timestamptz +); +CREATE TABLE IF NOT EXISTS activity ( + id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY, + kind text NOT NULL, + message text NOT NULL, + created_at timestamptz NOT NULL DEFAULT now() +); +CREATE TABLE IF NOT EXISTS sessions ( + digest text PRIMARY KEY, + expires_at timestamptz NOT NULL +); +CREATE TABLE IF NOT EXISTS settings ( + key text PRIMARY KEY +); diff --git a/server/seed.js b/server/seed.js new file mode 100644 index 0000000..019be02 --- /dev/null +++ b/server/seed.js @@ -0,0 +1,88 @@ +import fs from 'node:fs/promises'; +import { makeBlock, makePage } from '../shared/magazine.js'; +import { baseDraft } from './model.js'; +import { audit, publicBase, transaction, uploadPath } from './storage.js'; +import { nightAssets, nightkaufDraft } from './demo/nachtkauf.js'; + +const editions = [ + { slug: 'weitblick', title: 'Weitblick', issue: 'Ausgabe 04 · Das Alpenheft', cover: 'Dolomiten am Morgen', color: '#0e2e39', pages: ['Jenseits der Baumgrenze', 'Am stillen Ufer', 'Unterwegs im Fels', 'Ein letzter Blick'], text: 'Zwischen dunklem Wasser und kühlem Fels beginnt der Tag langsam. Ein Heft über die Landschaften, die uns den Atem anhalten lassen.' }, + { slug: 'form-und-raum', title: 'Form & Raum', issue: 'Ausgabe 02 · Architektur', cover: 'Treppenhaus aus Terrakotta', color: '#682f1c', pages: ['Räume im Licht', 'Material und Handwerk', 'Der Blick nach draußen'], text: 'Sonnenlicht wandert über Terrakotta, und mit ihm verändert sich der Raum. Diese Ausgabe folgt dem Zusammenspiel von Material, Form und Zeit.' }, + { slug: 'saison', title: 'Saison', issue: 'Ausgabe 01 · Eine Reise nach Süden', cover: 'Zitrusgarten in Sizilien', color: '#243722', pages: ['Im Zitrusgarten', 'Von Baum zu Tisch'], text: 'Wo Zitronen und Orangen wachsen, erzählt jede Jahreszeit eine eigene Geschichte. Wir folgen den Früchten vom Garten bis auf den Tisch.' }, +]; + +const text = (value, style = 'body') => ({ ...makeBlock('text'), text: value, style }); +const picture = (mediaId, alt, height) => ({ ...makeBlock('image'), mediaId, alt, height }); + +export async function seed() { + if (process.env.SAMPLE_DATA !== 'true') return; + + await transaction(async (db) => { + const flag = await db.query("INSERT INTO settings (key) VALUES ('sample-v1') ON CONFLICT DO NOTHING RETURNING key"); + if (!flag.rowCount) return; + const coverIds = []; + for (const [index, edition] of editions.entries()) { + const media = { id: crypto.randomUUID(), extension: 'jpg' }; + const bytes = await fs.readFile(new URL(`./demo/${edition.slug}.jpg`, import.meta.url)); + await fs.writeFile(uploadPath(media), bytes); + const id = crypto.randomUUID(); + coverIds.push(media.id); + const draft = baseDraft(edition.title, edition.issue, edition.text); + draft.cover = media.id; + draft.pages = [ + { ...makePage('Titelseite'), layout: 'cover', background: edition.color, color: '#fff9ed', blocks: [text(edition.issue, 'caption'), text(edition.title, 'title'), picture(media.id, edition.cover, 92)] }, + ...edition.pages.map((title, number) => ({ ...makePage(title), layout: 'single', blocks: [text(edition.title, 'caption'), text(title, 'heading'), picture(media.id, edition.cover, number === 0 ? 58 : 43), text(edition.text)] })), + ]; + await db.query("INSERT INTO media (id,name,mime,extension,bytes) VALUES ($1,$2,'image/jpeg','jpg',$3)", [media.id, edition.cover, bytes.length]); + await db.query('INSERT INTO magazines (id,slug,draft,views,downloads,updated_at) VALUES ($1,$2,$3,$4,$5,now() - $6::interval)', + [id, edition.slug, draft, index === 0 ? 2841 : 0, index === 0 ? 186 : 0, `${index} days`]); + await db.query("INSERT INTO versions (magazine_id,revision,draft,reason) VALUES ($1,1,$2,'Angelegt')", [id, draft]); + await audit(db, 'created', `„${edition.title}“ angelegt`); + if (index === 0 || index === 2) { + await db.query('INSERT INTO releases (id,magazine_id,revision,draft,publish_at) VALUES ($1,$2,1,$3,now() + $4::interval)', + [crypto.randomUUID(), id, draft, index === 0 ? '0 days' : '7 days']); + } + } + await db.query('INSERT INTO galleries (id,name,media_ids) VALUES ($1,$2,$3)', [crypto.randomUUID(), 'Beispielcover', coverIds]); + }); +} + +export async function seedNightkauf() { + if (process.env.SAMPLE_DATA !== 'true') return; + const paths = []; + try { + await transaction(async (db) => { + const flag = await db.query("INSERT INTO settings (key) VALUES ('sample-nachtkauf-v1') ON CONFLICT DO NOTHING RETURNING key"); + if (!flag.rowCount) return; + const media = {}; + for (const [key, name] of Object.entries(nightAssets)) { + const video = key === 'film'; + const file = { id: crypto.randomUUID(), extension: video ? 'webm' : 'jpg' }; + const filename = video ? 'nachtkauf-film.webm' : `${key}.jpg`; + const data = await fs.readFile(new URL(`./demo/nightkauf/${filename}`, import.meta.url)); + const path = uploadPath(file); + paths.push(path); + await fs.writeFile(path, data); + await db.query('INSERT INTO media (id,name,mime,extension,bytes) VALUES ($1,$2,$3,$4,$5)', + [file.id, name, video ? 'video/webm' : 'image/jpeg', file.extension, data.length]); + media[key] = file.id; + } + const id = crypto.randomUUID(); + const gallery = ['parfum', 'spiegelsaal', 'chromlampe', 'aperitif'].map((key) => media[key]); + await db.query('INSERT INTO galleries (id,name,media_ids) VALUES ($1,$2,$3)', [crypto.randomUUID(), 'NACHTKAUF · Blue Noise', gallery]); + let slug = 'nachtkauf'; + let draft = nightkaufDraft(media, new URL(`/ausgabe/${slug}`, publicBase).href); + const inserted = await db.query('INSERT INTO magazines (id,slug,draft) VALUES ($1,$2,$3) ON CONFLICT (slug) DO NOTHING', [id, slug, draft]); + if (!inserted.rowCount) { + slug = `nachtkauf-${id.slice(0, 8)}`; + draft = nightkaufDraft(media, new URL(`/ausgabe/${slug}`, publicBase).href); + await db.query('INSERT INTO magazines (id,slug,draft) VALUES ($1,$2,$3)', [id, slug, draft]); + } + await db.query("INSERT INTO versions (magazine_id,revision,draft,reason) VALUES ($1,1,$2,'Beispielbroschüre angelegt')", [id, draft]); + await db.query('INSERT INTO releases (id,magazine_id,revision,draft,publish_at) VALUES ($1,$2,1,$3,now())', [crypto.randomUUID(), id, draft]); + await audit(db, 'created', '„NACHTKAUF“ als bearbeitbare Beispielbroschüre angelegt'); + }); + } catch (error) { + await Promise.all(paths.map((path) => fs.rm(path, { force: true }))); + throw error; + } +} diff --git a/server/storage.js b/server/storage.js new file mode 100644 index 0000000..2835846 --- /dev/null +++ b/server/storage.js @@ -0,0 +1,54 @@ +import fs from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import pg from 'pg'; + +export const root = resolve(process.env.DATA_DIR || './data'); +export const uploadDir = join(root, 'uploads'); +export const stagingDir = join(root, 'staging'); +export const releaseDir = join(root, 'releases'); +export const uploadPath = (file) => join(uploadDir, `${file.id}.${file.extension}`); +export const publicBase = new URL(process.env.PUBLIC_BASE_URL || 'http://localhost:4170'); +export const demoMode = process.env.DEMO_MODE === 'true'; +export const adminUsername = process.env.ADMIN_USERNAME?.trim() || 'admin'; +export const adminPassword = process.env.ADMIN_PASSWORD || ''; + +export const pool = new pg.Pool(process.env.DATABASE_URL ? { connectionString: process.env.DATABASE_URL } : { + host: process.env.DATABASE_HOST || '127.0.0.1', + database: process.env.DATABASE_NAME || 'folio', + user: process.env.DATABASE_USER || 'folio', + password: process.env.DATABASE_PASSWORD || 'folio-local-development', +}); +pool.on('error', (error) => console.error('PostgreSQL:', error.message)); + +export async function setup() { + if (!['http:', 'https:'].includes(publicBase.protocol) || publicBase.pathname !== '/' || publicBase.search || publicBase.hash || publicBase.username || publicBase.password) { + throw new Error('PUBLIC_BASE_URL benötigt eine HTTP(S)-Adresse ohne Unterpfad.'); + } + if (demoMode && !['localhost', '127.0.0.1', '[::1]'].includes(publicBase.hostname)) { + throw new Error('Der Beispielmodus ist auf lokale URLs beschränkt.'); + } + if (!demoMode && adminPassword.length < 12) throw new Error('Setze ADMIN_PASSWORD auf mindestens 12 Zeichen.'); + if (!demoMode && adminUsername.length > 128) throw new Error('ADMIN_USERNAME darf höchstens 128 Zeichen enthalten.'); + await Promise.all([uploadDir, stagingDir, releaseDir].map((path) => fs.mkdir(path, { recursive: true }))); + await transaction(async (db) => { + await db.query('SELECT pg_advisory_xact_lock(918402)'); + await db.query(await fs.readFile(new URL('./schema.sql', import.meta.url), 'utf8')); + }); +} + +export async function transaction(work) { + const client = await pool.connect(); + try { + await client.query('BEGIN'); + const result = await work(client); + await client.query('COMMIT'); + return result; + } catch (error) { + await client.query('ROLLBACK'); + throw error; + } finally { + client.release(); + } +} + +export const audit = (db, kind, message) => db.query('INSERT INTO activity (kind,message) VALUES ($1,$2)', [kind, message]); diff --git a/shared/free-layout.js b/shared/free-layout.js new file mode 100644 index 0000000..4d3ddf2 --- /dev/null +++ b/shared/free-layout.js @@ -0,0 +1,68 @@ +export const pageWidth = 794; +export const pageHeight = 1122; +export const minFrame = 12; + +const dimensions = { + text: [448, 100], image: [380, 296], gallery: [480, 260], button: [224, 61], + qr: [170, 197], video: [440, 280], social: [232, 56], shape: [245, 158], html: [462, 240], +}; + +export const fontFamilies = { sans: 'Arial, sans-serif', serif: 'Georgia, serif', mono: 'monospace' }; +export const designLength = (value) => `${value * 100 / pageWidth}cqw`; + +export function initialFrame(type, index = 0) { + const [width, height] = dimensions[type] || dimensions.text; + const offset = (index % 11) * 23; + return { x: 63 + offset, y: 63 + offset, width, height, angle: 0 }; +} + +const clamp = (value, minimum, maximum) => Math.min(maximum, Math.max(minimum, Math.round(value))); + +export function moveFrame(frame, x, y) { + return { ...frame, x: clamp(x, minFrame - frame.width, pageWidth - minFrame), y: clamp(y, minFrame - frame.height, pageHeight - minFrame) }; +} + +export function resizeFrame(frame, corner, dx, dy) { + const west = corner.includes('w'); + const north = corner.includes('n'); + const width = clamp(frame.width + (west ? -dx : dx), minFrame, pageWidth * 2); + const height = clamp(frame.height + (north ? -dy : dy), minFrame, pageHeight * 2); + const radians = frame.angle * Math.PI / 180; + const dw = (west ? -1 : 1) * (width - frame.width) / 2; + const dh = (north ? -1 : 1) * (height - frame.height) / 2; + return { + ...frame, width, height, + x: Math.round(frame.x + (frame.width - width) / 2 + dw * Math.cos(radians) - dh * Math.sin(radians)), + y: Math.round(frame.y + (frame.height - height) / 2 + dw * Math.sin(radians) + dh * Math.cos(radians)), + }; +} + +export function frameStyle(frame) { + return { + left: `${frame.x * 100 / pageWidth}%`, top: `${frame.y * 100 / pageHeight}%`, + width: `${frame.width * 100 / pageWidth}%`, height: `${frame.height * 100 / pageHeight}%`, + transform: frame.angle ? `rotate(${frame.angle}deg)` : undefined, + }; +} + +export function appearanceStyle(appearance = {}) { + return { + '--item-ink': appearance.color, + '--item-fill': appearance.fill, + '--item-font': fontFamilies[appearance.font], + '--item-size': appearance.fontSize === undefined ? undefined : designLength(appearance.fontSize), + '--item-weight': appearance.weight, + '--item-leading': appearance.leading, + '--item-tracking': appearance.tracking === undefined ? undefined : designLength(appearance.tracking), + '--item-fit': appearance.fit, + '--item-position': appearance.position, + '--item-border': appearance.stroke, + '--item-stroke': appearance.strokeWidth ? designLength(appearance.strokeWidth) : undefined, + '--item-radius': appearance.radius ? designLength(appearance.radius) : undefined, + opacity: appearance.opacity === undefined ? undefined : appearance.opacity / 100, + }; +} + +export function cssText(rules) { + return Object.entries(rules).filter(([, value]) => value !== undefined).map(([property, value]) => `${property}:${value}`).join(';'); +} diff --git a/shared/inline-html.js b/shared/inline-html.js new file mode 100644 index 0000000..716f18e --- /dev/null +++ b/shared/inline-html.js @@ -0,0 +1,39 @@ +import { parseFragment, serialize } from 'parse5'; + +const tags = new Set(`a abbr address article aside b bdi bdo blockquote br button caption cite code col colgroup +data dd del details dfn div dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hgroup hr +i img input ins kbd label legend li main mark meter nav ol optgroup option p picture pre progress q rp rt ruby s +samp section select small span strong style sub summary sup table tbody td textarea tfoot th thead time tr u ul var wbr +svg g path rect circle ellipse line polyline polygon defs lineargradient radialgradient stop text tspan`.split(/\s+/)); +const attributes = new Set(`alt aria-hidden aria-label class colspan controls datetime dir fill for height id lang max min +multiple name open placeholder readonly reversed role rowspan scope selected start step style tabindex title type value width +viewbox d x y x1 y1 x2 y2 cx cy r rx ry points transform stroke stroke-width stroke-linecap stroke-linejoin fill-rule +offset stop-color stop-opacity gradientunits`.split(/\s+/)); + +function safeLink(value) { + try { + return ['http:', 'https:', 'mailto:', 'tel:'].includes(new URL(value).protocol); + } catch { + return false; + } +} + +function clean(node) { + if (node.nodeName === '#text') return true; + if (!node.tagName || !tags.has(node.tagName.toLowerCase())) return false; + node.attrs = node.attrs.filter(({ name, value, namespace }) => { + if (namespace) return false; + if (name === 'href') return node.tagName === 'a' && safeLink(value); + if (name === 'src') return node.tagName === 'img' && /^data:image\/(png|jpeg|gif|webp|avif);base64,[a-z0-9+/=]+$/i.test(value); + return attributes.has(name.toLowerCase()); + }); + if (node.tagName === 'a') node.attrs.push({ name: 'target', value: '_blank' }, { name: 'rel', value: 'noopener noreferrer' }); + node.childNodes = node.childNodes.filter(clean); + return true; +} + +export function htmlDocument(markup) { + const tree = parseFragment(markup); + tree.childNodes = tree.childNodes.filter(clean); + return `${serialize(tree)}`; +} diff --git a/shared/magazine.js b/shared/magazine.js new file mode 100644 index 0000000..49b0fce --- /dev/null +++ b/shared/magazine.js @@ -0,0 +1,112 @@ +import QRCode from 'qrcode'; +import { appearanceStyle, cssText, frameStyle, initialFrame } from './free-layout.js'; + +export const blockTypes = { + text: 'Text', image: 'Bild', gallery: 'Galerie', button: 'Button', + qr: 'QR-Code', video: 'Video', social: 'Social-Media-Link', shape: 'Form', html: 'HTML & CSS', +}; + +export function makeBlock(type) { + const defaults = { + text: { text: 'Hier steht dein Text.', style: 'body', align: 'left' }, + image: { mediaId: '', alt: '', height: 46 }, + gallery: { mediaIds: [], height: 29 }, + button: { text: 'Mehr erfahren', url: '' }, + qr: { text: '', url: '' }, + video: { mediaId: '', posterMediaId: '', text: '' }, + social: { text: 'Instagram', url: '' }, + shape: { shape: 'rectangle', appearance: { fill: '#ddd7ff' } }, + html: { markup: '

Eigener Inhalt

\n

Hier kannst du HTML und CSS einfügen.

' }, + }; + return { id: crypto.randomUUID(), type, width: 'full', ...defaults[type] }; +} + +export function makePage(title = 'Neue Seite') { + return { id: crypto.randomUUID(), title, layout: 'free', background: '#fffefa', color: '#20202b', blocks: [] }; +} + +export function escapeHtml(value = '') { + return String(value).replace(/[&<>"']/g, (character) => ({ + '&': '&', '<': '<', '>': '>', '"': '"', "'": ''', + })[character]); +} + +export function safeUrl(value, webOnly = false) { + try { + const parsed = new URL(value); + return (webOnly ? ['https:', 'http:'] : ['https:', 'http:', 'mailto:', 'tel:']).includes(parsed.protocol) + ? parsed.href : ''; + } catch { + return ''; + } +} + +export function mediaRefs(draft) { + return [draft.cover, ...draft.pages.flatMap((page) => page.blocks.flatMap((block) => + block.type === 'gallery' ? block.mediaIds : [block.mediaId, block.posterMediaId]))].filter(Boolean); +} + +export function pageStyle(page) { + return `--paper:${page.background};--ink:${page.color}`; +} + +export async function renderBlock(block, mediaUrl, forPdf = false) { + const text = escapeHtml(block.text); + const media = (id) => escapeHtml(mediaUrl(id)); + const href = escapeHtml(safeUrl(block.url, block.type === 'social')); + const link = (label, kind) => href + ? `${label}` + : `${label || 'Link hinzufügen'}`; + const placeholder = (label) => `
${label}
`; + + switch (block.type) { + case 'text': { + const tag = block.style === 'title' ? 'h1' : block.style === 'heading' ? 'h2' : 'p'; + const align = ['left', 'center', 'right'].includes(block.align) ? block.align : 'left'; + return `<${tag} class="folio-text folio-${block.style}" style="text-align:${align}">${text}`; + } + case 'image': + return block.mediaId + ? `${escapeHtml(block.alt)}` + : placeholder('Bild auswählen'); + case 'gallery': + return block.mediaIds.length + ? `` + : placeholder('Galeriebilder auswählen'); + case 'button': return link(text, 'button'); + case 'social': return link(text, 'social'); + case 'shape': return ``; + case 'html': { + const { htmlDocument } = await import('./inline-html.js'); + return ``; + } + case 'video': { + if (!block.mediaId) return placeholder('Video auswählen'); + const poster = block.posterMediaId ? media(block.posterMediaId) : ''; + return `
${forPdf + ? `
${poster ? `` : ''}Video in der Online-Ausgabe ansehen
` + : ``}${text ? `
${text}
` : ''}
`; + } + case 'qr': + if (!href) return placeholder('QR-Ziel eingeben'); + return `
QR-Code${text ? `
${text}
` : ''}
`; + default: return ''; + } +} + +export async function renderPages(draft, mediaUrl, forPdf = false) { + return Promise.all(draft.pages.map(async (page) => { + const blocks = await Promise.all(page.blocks.map(async (block, index) => { + const positioning = page.layout === 'free' ? ` style="${frameStyleText(block.frame || initialFrame(block.type, index))}"` : ''; + return `
${await renderBlock(block, mediaUrl, forPdf)}
`; + })); + return { + id: page.id, title: page.title, + html: `
${blocks.join('')}
`, + }; + })); +} + +function frameStyleText(frame) { + return escapeHtml(cssText(frameStyle(frame))); +} diff --git a/shared/publication.css b/shared/publication.css new file mode 100644 index 0000000..1f2e5b4 --- /dev/null +++ b/shared/publication.css @@ -0,0 +1,51 @@ +.folio-page { box-sizing: border-box; height: 100%; width: 100%; overflow: hidden; container-type: inline-size; color: var(--ink, #20202b); background: var(--paper, #fffefa); font-family: Arial, sans-serif; text-align: left; } +.folio-page *, .folio-page *::before, .folio-page *::after { box-sizing: border-box; } +.folio-content { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4cqw; padding: 8cqw; min-height: 100%; } +.folio-layout-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } +.folio-layout-cover { padding: 0; gap: 0; } +.folio-layout-cover > :not(:has(.folio-image)) { margin: 3cqw 8cqw; } +.folio-width-full { grid-column: 1 / -1; } +.folio-block { min-width: 0; } +.folio-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: 3.65cqw; line-height: 1.48; } +.folio-title, .folio-heading { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.05em; line-height: 1.08; } +.folio-title { font-size: 10cqw; } +.folio-heading { font-size: 6.5cqw; } +.folio-caption { font-size: 2.65cqw; text-transform: uppercase; letter-spacing: .15em; } +.folio-image { width: 100%; display: block; object-fit: cover; } +.folio-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3cqw; } +.folio-gallery img { display: block; object-fit: cover; width: 100%; height: var(--gallery-height, 29cqw); } +.folio-gallery img:only-child { grid-column: 1 / -1; } +.folio-button, .folio-social, .folio-placeholder { display: inline-block; font-size: 3.3cqw; overflow-wrap: anywhere; } +.folio-button { background: var(--ink, #20202b); color: var(--paper, #fffefa); border-radius: .8cqw; padding: 2.4cqw 3.2cqw; text-decoration: none; } +.folio-social { color: inherit; text-underline-offset: .4em; } +.folio-placeholder { background: #eae9f5; color: #555375; padding: 3cqw; border-radius: 1cqw; } +.folio-video, .folio-qr { margin: 0; font-size: 3cqw; } +.folio-video video, .folio-video-print { width: 100%; height: 48cqw; background: #191923; } +.folio-video video { display: block; object-fit: contain; } +.folio-video-print { display: grid; place-items: center; position: relative; isolation: isolate; padding: 3cqw; color: #fff; text-align: center; } +.folio-video-print img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; } +.folio-video-print span { display: block; padding: 1.2cqw 2cqw; background: #191923d9; border-radius: .5cqw; } +.folio-qr img { width: 25cqw; display: block; } +.folio-video figcaption, .folio-qr figcaption { margin-top: 1.3cqw; } +.folio-item-content { color: var(--item-ink, inherit); background: var(--item-fill, transparent); border: var(--item-stroke, 0) solid var(--item-border, currentColor); border-radius: var(--item-radius, 0); } +.folio-layout-free { position: relative; height: 100%; padding: 0; display: block; overflow: hidden; } +.folio-layout-free > .folio-block { position: absolute; } +.folio-layout-free .folio-item-content { width: 100%; height: 100%; overflow: hidden; } +.folio-layout-free .folio-body { font-family: var(--item-font, Arial, sans-serif); font-size: var(--item-size, 3.65cqw); font-weight: var(--item-weight, 400); line-height: var(--item-leading, 1.48); letter-spacing: var(--item-tracking, normal); } +.folio-layout-free .folio-title, .folio-layout-free .folio-heading { font-family: var(--item-font, Georgia, serif); font-weight: var(--item-weight, 500); line-height: var(--item-leading, 1.08); letter-spacing: var(--item-tracking, -.05em); } +.folio-layout-free .folio-title { font-size: var(--item-size, 10cqw); } +.folio-layout-free .folio-heading { font-size: var(--item-size, 6.5cqw); } +.folio-layout-free .folio-caption { font-family: var(--item-font, Arial, sans-serif); font-size: var(--item-size, 2.65cqw); font-weight: var(--item-weight, 400); line-height: var(--item-leading, 1.48); letter-spacing: var(--item-tracking, .15em); } +.folio-layout-free .folio-image { height: 100% !important; object-fit: var(--item-fit, cover); object-position: var(--item-position, center); } +.folio-layout-free .folio-gallery { height: 100%; grid-auto-rows: minmax(0, 1fr); } +.folio-layout-free .folio-gallery img { height: 100%; object-fit: var(--item-fit, cover); object-position: var(--item-position, center); } +.folio-layout-free .folio-video, .folio-layout-free .folio-qr { display: flex; flex-direction: column; height: 100%; font-size: var(--item-size, 2.4cqw); } +.folio-layout-free .folio-video video, .folio-layout-free .folio-video-print { height: auto; flex: 1; min-height: 0; } +.folio-layout-free .folio-qr img { width: auto; max-width: 100%; flex: 1; min-height: 0; object-fit: contain; object-position: left center; } +.folio-layout-free .folio-button, .folio-layout-free .folio-social { font-family: var(--item-font, Arial, sans-serif); font-size: var(--item-size, 3.3cqw); font-weight: var(--item-weight, 500); } +.folio-layout-free .folio-button { display: grid; place-items: center; text-align: center; width: 100%; height: 100%; padding: .9cqw; background: var(--item-fill, var(--ink)); color: var(--item-ink, var(--paper)); } +.folio-shape, .folio-html { width: 100%; height: 100%; display: block; border: 0; } +.folio-shape-ellipse { border-radius: 100%; background: var(--item-fill, #ddd7ff); } +.folio-shape-line { position: relative; top: 37%; height: 26%; background: var(--item-fill, #ddd7ff); } +.folio-shape-rectangle { background: var(--item-fill, #ddd7ff); } +.folio-layout-free .folio-item-content:has(.folio-shape-ellipse, .folio-shape-line) { background: none; } diff --git a/src/api.js b/src/api.js new file mode 100644 index 0000000..f9b531d --- /dev/null +++ b/src/api.js @@ -0,0 +1,48 @@ +export async function api(path, options = {}) { + const request = { ...options, headers: { ...(path.startsWith('/admin/') && { 'X-Folio-Request': 'studio' }), ...options.headers } }; + if (options.body !== undefined && !(options.body instanceof FormData)) { + request.headers['Content-Type'] = 'application/json'; + request.body = JSON.stringify(options.body); + } + const res = await fetch(`/api${path}`, request); + if (res.status === 204) return null; + const data = await res.json().catch(() => null); + if (!res.ok) throw new Error(data?.error || 'Die Verbindung zum Studio ist fehlgeschlagen.'); + return data; +} + +export const admin = (path, options) => api(`/admin${path}`, options); +export const mediaUrl = (id) => `/api/admin/media/${id}/file`; +export const formatNumber = (value) => new Intl.NumberFormat('de-DE').format(value); +export const formatDate = (value, withTime = false) => value ? new Intl.DateTimeFormat('de-DE', { + day: '2-digit', month: 'short', year: 'numeric', ...(withTime && { hour: '2-digit', minute: '2-digit' }), +}).format(new Date(value)) : '–'; + +export function bytesLabel(bytes) { + if (bytes < 1024) return `${bytes} B`; + if (bytes < 1024 ** 2) return `${formatNumber(Math.round(bytes / 1024))} KB`; + if (bytes < 1024 ** 3) return `${formatNumber(Math.round(bytes / 1024 ** 2 * 10) / 10)} MB`; + return `${formatNumber(Math.round(bytes / 1024 ** 3 * 10) / 10)} GB`; +} + +export function statusFor(magazine) { + if (magazine.job?.state === 'queued') return Date.parse(magazine.job.at) > Date.now() ? 'scheduled' : 'processing'; + if (magazine.publishedAt) return 'published'; + if (magazine.job?.state === 'failed') return 'failed'; + return 'draft'; +} + +export const statusLabels = { published: 'Veröffentlicht', draft: 'Entwurf', scheduled: 'Geplant', processing: 'In Verarbeitung', failed: 'Fehlgeschlagen', cancelled: 'Abgebrochen', archived: 'Archiviert' }; + +export async function copyText(value) { + if (navigator.clipboard?.writeText) return navigator.clipboard.writeText(value); + const input = document.createElement('textarea'); + input.value = value; + input.style.position = 'fixed'; + input.style.opacity = '0'; + document.body.appendChild(input); + input.select(); + const copied = document.execCommand('copy'); + input.remove(); + if (!copied) throw new Error('Kopiere den Text aus dem Eingabefeld.'); +} diff --git a/src/dashboard.jsx b/src/dashboard.jsx new file mode 100644 index 0000000..a85069d --- /dev/null +++ b/src/dashboard.jsx @@ -0,0 +1,173 @@ +import { useMemo, useState } from 'react'; +import { Link, useNavigate } from 'react-router-dom'; +import { Activity, BookOpen, CalendarDays, CloudUpload, Copy, Download, ExternalLink, Eye, Globe2, HardDrive, Image, LayoutGrid, LibraryBig, Link2, List, Pencil, Plus, Search, Trash2 } from 'lucide-react'; +import { admin, bytesLabel, copyText, formatDate, formatNumber, mediaUrl, statusFor, statusLabels } from './api.js'; +import { Button, Dialog, Empty, ErrorMessage, Field, Menu } from './ui.jsx'; + +export const Badge = ({ status }) => {statusLabels[status] || status}; +const filters = [['all', 'Alle Magazine'], ['published', 'Veröffentlicht'], ['draft', 'Entwürfe'], ['scheduled', 'Geplant']]; + +export function PageTitle({ title, description, children }) { + return

{title}

{description}

{children}
; +} + +export function Metrics({ data }) { + const rows = data.magazines; + const metrics = [ + { label: 'Magazine', number: rows.length, detail: `${rows.filter((mag) => statusFor(mag) === 'draft').length} im Entwurf`, Icon: BookOpen, tone: 'purple' }, + { label: 'Veröffentlicht', number: rows.filter((mag) => mag.publishedAt).length, detail: `${rows.filter((mag) => statusFor(mag) === 'scheduled').length} geplant`, Icon: Globe2, tone: 'green' }, + { label: 'Aufrufe', number: rows.reduce((sum, mag) => sum + mag.views, 0), detail: 'Über alle Magazine', Icon: Eye, tone: 'blue' }, + { label: 'PDF-Downloads', number: rows.reduce((sum, mag) => sum + mag.downloads, 0), detail: 'Über alle Magazine', Icon: Download, tone: 'orange' }, + ]; + return
{metrics.map(({ Icon, label, number, detail, tone }) => +
{label}
{formatNumber(number)}
{detail}
)}
; +} + +function Cover({ magazine }) { + return
+ {magazine.cover && } +
{magazine.issue || 'Magazin'}{magazine.title}
+
; +} + +function MagazineActions({ magazine, remove, share, duplicate }) { + return + Bearbeiten + + {magazine.publishedAt && Ausgabe öffnen} + {magazine.publishedAt && } + + ; +} + +function MagazineCard({ magazine, remove, share, duplicate }) { + return
+ +
+
+ {magazine.title} +

{magazine.issue || 'Ohne Ausgabenbezeichnung'}

+
{magazine.pages.length} Seiten {formatDate(magazine.updatedAt)}
+
+
; +} + +export function ShareDialog({ magazine, close, notify }) { + const url = magazine?.publicUrl; + const embed = url ? `` : ''; + async function copy(value) { + try { await copyText(value); notify('In die Zwischenablage kopiert.'); } catch (error) { notify(error.message, true); } + } + return !open && close()}> + ev.target.select()} /> +
+